clanker-sdk 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cli.js +5 -3
- package/dist/cli/create-clanker.js +5 -3
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -10,8 +10,8 @@ var __export = (target, all) => {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
// node_modules/tsup/assets/esm_shims.js
|
|
13
|
-
import { fileURLToPath } from "url";
|
|
14
13
|
import path from "path";
|
|
14
|
+
import { fileURLToPath } from "url";
|
|
15
15
|
var getFilename, getDirname, __dirname;
|
|
16
16
|
var init_esm_shims = __esm({
|
|
17
17
|
"node_modules/tsup/assets/esm_shims.js"() {
|
|
@@ -3811,11 +3811,13 @@ async function deployTokenV3(cfg, wallet, publicClient) {
|
|
|
3811
3811
|
},
|
|
3812
3812
|
desiredPrice
|
|
3813
3813
|
});
|
|
3814
|
+
const value = cfg.devBuy && cfg.devBuy.ethAmount && cfg.devBuy.ethAmount !== "0" ? BigInt(parseFloat(cfg.devBuy.ethAmount) * 1e18) : BigInt(0);
|
|
3814
3815
|
console.log("tx", tx);
|
|
3815
3816
|
const hash = await wallet.sendTransaction({
|
|
3816
3817
|
...tx.transaction,
|
|
3817
3818
|
account: wallet.account,
|
|
3818
|
-
chain: publicClient.chain
|
|
3819
|
+
chain: publicClient.chain,
|
|
3820
|
+
value
|
|
3819
3821
|
});
|
|
3820
3822
|
console.log("hash", hash);
|
|
3821
3823
|
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
@@ -4820,7 +4822,7 @@ import {
|
|
|
4820
4822
|
parseEventLogs as parseEventLogs2
|
|
4821
4823
|
} from "viem";
|
|
4822
4824
|
function buildTokenV4(cfg, chainId) {
|
|
4823
|
-
const feeConfig = cfg.feeConfig || { type: "static", fee:
|
|
4825
|
+
const feeConfig = cfg.feeConfig || { type: "static", fee: 1e4 };
|
|
4824
4826
|
const { hook, poolData } = encodeFeeConfig(feeConfig);
|
|
4825
4827
|
const deploymentConfig = {
|
|
4826
4828
|
tokenConfig: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// node_modules/tsup/assets/esm_shims.js
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
5
4
|
import path from "path";
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
6
6
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
7
7
|
var getDirname = () => path.dirname(getFilename());
|
|
8
8
|
var __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -3688,11 +3688,13 @@ async function deployTokenV3(cfg, wallet, publicClient) {
|
|
|
3688
3688
|
},
|
|
3689
3689
|
desiredPrice
|
|
3690
3690
|
});
|
|
3691
|
+
const value = cfg.devBuy && cfg.devBuy.ethAmount && cfg.devBuy.ethAmount !== "0" ? BigInt(parseFloat(cfg.devBuy.ethAmount) * 1e18) : BigInt(0);
|
|
3691
3692
|
console.log("tx", tx);
|
|
3692
3693
|
const hash = await wallet.sendTransaction({
|
|
3693
3694
|
...tx.transaction,
|
|
3694
3695
|
account: wallet.account,
|
|
3695
|
-
chain: publicClient.chain
|
|
3696
|
+
chain: publicClient.chain,
|
|
3697
|
+
value
|
|
3696
3698
|
});
|
|
3697
3699
|
console.log("hash", hash);
|
|
3698
3700
|
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
@@ -4681,7 +4683,7 @@ var bigIntReplacer = (_key, value) => {
|
|
|
4681
4683
|
return value;
|
|
4682
4684
|
};
|
|
4683
4685
|
function buildTokenV4(cfg, chainId) {
|
|
4684
|
-
const feeConfig = cfg.feeConfig || { type: "static", fee:
|
|
4686
|
+
const feeConfig = cfg.feeConfig || { type: "static", fee: 1e4 };
|
|
4685
4687
|
const { hook, poolData } = encodeFeeConfig(feeConfig);
|
|
4686
4688
|
const deploymentConfig = {
|
|
4687
4689
|
tokenConfig: {
|
package/dist/index.js
CHANGED
|
@@ -3686,11 +3686,13 @@ async function deployTokenV3(cfg, wallet, publicClient) {
|
|
|
3686
3686
|
},
|
|
3687
3687
|
desiredPrice
|
|
3688
3688
|
});
|
|
3689
|
+
const value = cfg.devBuy && cfg.devBuy.ethAmount && cfg.devBuy.ethAmount !== "0" ? BigInt(parseFloat(cfg.devBuy.ethAmount) * 1e18) : BigInt(0);
|
|
3689
3690
|
console.log("tx", tx);
|
|
3690
3691
|
const hash = await wallet.sendTransaction({
|
|
3691
3692
|
...tx.transaction,
|
|
3692
3693
|
account: wallet.account,
|
|
3693
|
-
chain: publicClient.chain
|
|
3694
|
+
chain: publicClient.chain,
|
|
3695
|
+
value
|
|
3694
3696
|
});
|
|
3695
3697
|
console.log("hash", hash);
|
|
3696
3698
|
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
@@ -4679,7 +4681,7 @@ var bigIntReplacer = (_key, value) => {
|
|
|
4679
4681
|
return value;
|
|
4680
4682
|
};
|
|
4681
4683
|
function buildTokenV4(cfg, chainId) {
|
|
4682
|
-
const feeConfig = cfg.feeConfig || { type: "static", fee:
|
|
4684
|
+
const feeConfig = cfg.feeConfig || { type: "static", fee: 1e4 };
|
|
4683
4685
|
const { hook, poolData } = encodeFeeConfig(feeConfig);
|
|
4684
4686
|
const deploymentConfig = {
|
|
4685
4687
|
tokenConfig: {
|