chore: bump clarity-codegen to latest version

This commit is contained in:
Kyle Fang
2023-08-31 12:10:25 +08:00
parent 3e92696fd7
commit d4a021520a
10 changed files with 586 additions and 569 deletions

View File

@@ -1,26 +1,26 @@
import { generateContracts } from "clarity-codegen/lib/generate"
import * as path from "path"
const { generateContracts } = require('clarity-codegen/lib/generate');
const path = require('path');
const API_HOST = "https://stacks-node-api.alexlab.co"
const CONTRACT_DEPLOYER = "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9"
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",
"amm-swap-pool-v1-1",
"token-amm-swap-pool",
'swap-helper-v1-02',
'swap-helper-v1-03',
'amm-swap-pool',
'amm-swap-pool-v1-1',
'token-amm-swap-pool',
"swap-helper-bridged-v1-1",
]
'swap-helper-bridged-v1-1',
];
;(async function main() {
(async function main() {
await generateContracts(
API_HOST,
CONTRACT_DEPLOYER,
contracts,
path.resolve(__dirname, "../src/generated/smartContract/"),
"Alex",
"../smartContractHelpers/codegenImport",
)
})().catch(console.error)
path.resolve(__dirname, '../src/generated/smartContract/'),
'Alex',
'../smartContractHelpers/codegenImport'
);
})().catch(console.error);