mirror of
https://github.com/alexgo-io/alex-sdk.git
synced 2026-01-12 14:25:02 +08:00
feat: add run swap
This commit is contained in:
25
scripts/gen-contract.ts
Normal file
25
scripts/gen-contract.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { generateContracts } from "clarity-codegen/lib/generate"
|
||||
import * as path from "path"
|
||||
|
||||
const API_HOST = "https://stacks-node-api.alexlab.co"
|
||||
const CONTRACT_DEPLOYER = "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9"
|
||||
|
||||
const contracts = [
|
||||
"swap-helper-v1-02",
|
||||
"swap-helper-v1-03",
|
||||
"amm-swap-pool",
|
||||
"token-amm-swap-pool",
|
||||
|
||||
"swap-helper-bridged",
|
||||
]
|
||||
|
||||
;(async function main() {
|
||||
await generateContracts(
|
||||
API_HOST,
|
||||
CONTRACT_DEPLOYER,
|
||||
contracts,
|
||||
path.resolve(__dirname, "../src/generated/smartContract/"),
|
||||
"Alex",
|
||||
"../smartContractHelpers/codegenImport",
|
||||
)
|
||||
})().catch(console.error)
|
||||
Reference in New Issue
Block a user