dactyclaw 1.3.0 ā 1.3.2
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/bin/dacty-launch.js +17 -19
- package/error.log +0 -0
- package/package.json +1 -1
package/bin/dacty-launch.js
CHANGED
|
@@ -6,7 +6,8 @@ const { program } = require('commander');
|
|
|
6
6
|
const { createPublicClient, createWalletClient, http, formatEther } = require('viem');
|
|
7
7
|
const { privateKeyToAccount } = require('viem/accounts');
|
|
8
8
|
const { base } = require('viem/chains');
|
|
9
|
-
const { Clanker } = require('clanker-sdk');
|
|
9
|
+
const { Clanker } = require('clanker-sdk/v4');
|
|
10
|
+
const { POOL_POSITIONS } = require('clanker-sdk');
|
|
10
11
|
|
|
11
12
|
program
|
|
12
13
|
.version('1.0.0')
|
|
@@ -80,6 +81,7 @@ program
|
|
|
80
81
|
const tokenConfig = {
|
|
81
82
|
name: config.name,
|
|
82
83
|
symbol: config.ticker,
|
|
84
|
+
tokenAdmin: account.address,
|
|
83
85
|
image: "ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi", // Placeholder Clanker/Agent image
|
|
84
86
|
metadata: {
|
|
85
87
|
description: `Autonomous agent token for ${config.name} created via Dactyclaw CLI. DNA: ${config.dna}`,
|
|
@@ -95,37 +97,33 @@ program
|
|
|
95
97
|
pool: {
|
|
96
98
|
quoteToken: "0x4200000000000000000000000000000000000006", // WETH
|
|
97
99
|
initialMarketCap: "0.2", // 0.2 ETH (Base) minimal initial
|
|
100
|
+
positions: POOL_POSITIONS.Standard
|
|
98
101
|
},
|
|
99
|
-
vault: { percentage: 0,
|
|
100
|
-
devBuy: { ethAmount: 0 }
|
|
101
|
-
rewardsConfig: {
|
|
102
|
-
creatorReward: 75,
|
|
103
|
-
creatorAdmin: account.address,
|
|
104
|
-
creatorRewardRecipient: account.address,
|
|
105
|
-
interfaceAdmin: "0x1eaf444ebDf6495C57aD52A04C61521bBf564ace", // Assuming default interface addr from docs
|
|
106
|
-
interfaceRewardRecipient: devAddress,
|
|
107
|
-
}
|
|
102
|
+
vault: { percentage: 0, lockupDuration: 604800 },
|
|
103
|
+
devBuy: { ethAmount: 0.0001 }
|
|
108
104
|
};
|
|
109
105
|
|
|
110
|
-
//
|
|
111
|
-
console.log(`[2/3] Calling SDK
|
|
112
|
-
|
|
113
|
-
// Execute the deployment using clanker-sdk
|
|
114
|
-
const tokenAddress = await clanker.deployToken(tokenConfig);
|
|
106
|
+
// Execute the deployment using clanker-sdk v4
|
|
107
|
+
console.log(`[2/3] Calling SDK deploy... (This will spend Base ETH gas)`);
|
|
108
|
+
const deployResult = await clanker.deploy(tokenConfig);
|
|
115
109
|
|
|
116
110
|
console.log(`[3/3] Broadcasting transaction to Base network...`);
|
|
111
|
+
console.log(`Transaction Hash: ${deployResult.txHash}`);
|
|
112
|
+
|
|
113
|
+
console.log(`Waiting for confirmation...`);
|
|
114
|
+
const result = await deployResult.waitForTransaction();
|
|
117
115
|
|
|
118
116
|
console.log(`\nš SUCCESS! Token deployed autonomously on-chain.`);
|
|
119
|
-
if (
|
|
120
|
-
console.log(`Token Contract: ${
|
|
121
|
-
console.log(`Explorer: https://basescan.org/token/${
|
|
117
|
+
if (result && result.address) {
|
|
118
|
+
console.log(`Token Contract: ${result.address}`);
|
|
119
|
+
console.log(`Explorer: https://basescan.org/token/${result.address}`);
|
|
122
120
|
}
|
|
123
121
|
console.log(`\nTrading will be live on Clanker shortly.`);
|
|
124
122
|
|
|
125
123
|
} catch (error) {
|
|
126
124
|
console.error(`\nā Network Error: Failed to interact with Base network or Clanker SDK.`);
|
|
127
125
|
console.error(error.message);
|
|
128
|
-
|
|
126
|
+
console.error(error); // debug raw error
|
|
129
127
|
return;
|
|
130
128
|
}
|
|
131
129
|
});
|
package/error.log
ADDED
|
Binary file
|