dacty-launch 1.1.6 → 1.2.0

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.
@@ -75,7 +75,7 @@ async function main() {
75
75
  console.log(` Fee Distribution: 80% Agent, 20% Dactyclaw\n`);
76
76
 
77
77
  // Dactyclaw wallet address (should be configured)
78
- const DACTYCLAW_WALLET = process.env.DACTYCLAW_WALLET || '0x0000000000000000000000000000000000000000';
78
+ const DACTYCLAW_WALLET = process.env.DACTYCLAW_WALLET || '0x1eaf444ebDf6495C57aD52A04C61521bBf564ace';
79
79
 
80
80
  try {
81
81
  console.log('šŸ”„ Initializing Clanker SDK...');
@@ -97,58 +97,34 @@ async function main() {
97
97
 
98
98
  console.log('\nšŸš€ Deploying token...');
99
99
 
100
- // Deploy token with 80/20 reward split
101
- const { txHash, waitForTransaction, error } = await clanker.deploy({
100
+ // Deploy token with 80/20 reward split using correct SDK structure
101
+ const tokenAddress = await clanker.deployToken({
102
102
  name: tokenName,
103
103
  symbol: tokenSymbol,
104
- tokenAdmin: account.address,
105
- vanity: true, // Generate vanity address with "b07" suffix
106
- rewards: {
107
- recipients: [
108
- {
109
- recipient: agentConfig.wallet,
110
- admin: agentConfig.wallet,
111
- bps: 8_000, // 80% of rewards
112
- token: 'Paired', // Take fees in WETH
113
- },
114
- {
115
- recipient: DACTYCLAW_WALLET,
116
- admin: DACTYCLAW_WALLET,
117
- bps: 2_000, // 20% of rewards
118
- token: 'Both', // Take fees in both tokens
119
- },
120
- ],
121
- },
122
- fees: {
123
- type: 'static',
124
- clankerFee: 100, // 1%
125
- pairedFee: 100, // 1%
126
- },
127
104
  metadata: {
128
105
  description: `${tokenName} - Created with DACTYCLAW`,
129
106
  },
130
107
  context: {
131
108
  interface: 'DACTYCLAW',
132
109
  },
110
+ pool: {
111
+ quoteToken: '0x4200000000000000000000000000000000000006', // WETH on Base
112
+ initialMarketCap: '10', // 10 ETH initial market cap
113
+ },
114
+ rewardsConfig: {
115
+ creatorReward: 80, // 80% to agent
116
+ creatorAdmin: agentConfig.wallet,
117
+ creatorRewardRecipient: agentConfig.wallet,
118
+ interfaceAdmin: DACTYCLAW_WALLET,
119
+ interfaceRewardRecipient: DACTYCLAW_WALLET,
120
+ },
133
121
  });
134
122
 
135
- if (error) {
136
- console.error('āŒ Deployment error:', error);
123
+ if (!tokenAddress) {
124
+ console.error('āŒ Deployment error: No token address returned');
137
125
  process.exit(1);
138
126
  }
139
127
 
140
- console.log(`āœ“ Transaction submitted: ${txHash}`);
141
- console.log('ā³ Waiting for confirmation...\n');
142
-
143
- const result = await waitForTransaction();
144
-
145
- if (result.error) {
146
- console.error('āŒ Transaction failed:', result.error);
147
- process.exit(1);
148
- }
149
-
150
- const tokenAddress = result.address;
151
-
152
128
  console.log('āœ… Token deployed successfully!');
153
129
  console.log(`\nšŸ“Š Token Details:`);
154
130
  console.log(` Address: ${tokenAddress}`);
@@ -168,7 +144,6 @@ async function main() {
168
144
  symbol: tokenSymbol,
169
145
  address: tokenAddress,
170
146
  supply: initialSupply,
171
- txHash,
172
147
  deployedAt: new Date().toISOString(),
173
148
  network: 'base',
174
149
  agentDNA: agentConfig.dna,
@@ -208,6 +183,7 @@ async function main() {
208
183
  rl.close();
209
184
  } catch (error) {
210
185
  console.error('āŒ Error:', error.message);
186
+ console.error('Stack:', error.stack);
211
187
  rl.close();
212
188
  process.exit(1);
213
189
  }
package/lib/index.mjs CHANGED
@@ -75,7 +75,7 @@ async function main() {
75
75
  console.log(` Fee Distribution: 80% Agent, 20% Dactyclaw\n`);
76
76
 
77
77
  // Dactyclaw wallet address (should be configured)
78
- const DACTYCLAW_WALLET = process.env.DACTYCLAW_WALLET || '0x0000000000000000000000000000000000000000';
78
+ const DACTYCLAW_WALLET = process.env.DACTYCLAW_WALLET || '0x1eaf444ebDf6495C57aD52A04C61521bBf564ace';
79
79
 
80
80
  try {
81
81
  console.log('šŸ”„ Initializing Clanker SDK...');
@@ -97,58 +97,34 @@ async function main() {
97
97
 
98
98
  console.log('\nšŸš€ Deploying token...');
99
99
 
100
- // Deploy token with 80/20 reward split
101
- const { txHash, waitForTransaction, error } = await clanker.deploy({
100
+ // Deploy token with 80/20 reward split using correct SDK structure
101
+ const tokenAddress = await clanker.deployToken({
102
102
  name: tokenName,
103
103
  symbol: tokenSymbol,
104
- tokenAdmin: account.address,
105
- vanity: true, // Generate vanity address with "b07" suffix
106
- rewards: {
107
- recipients: [
108
- {
109
- recipient: agentConfig.wallet,
110
- admin: agentConfig.wallet,
111
- bps: 8_000, // 80% of rewards
112
- token: 'Paired', // Take fees in WETH
113
- },
114
- {
115
- recipient: DACTYCLAW_WALLET,
116
- admin: DACTYCLAW_WALLET,
117
- bps: 2_000, // 20% of rewards
118
- token: 'Both', // Take fees in both tokens
119
- },
120
- ],
121
- },
122
- fees: {
123
- type: 'static',
124
- clankerFee: 100, // 1%
125
- pairedFee: 100, // 1%
126
- },
127
104
  metadata: {
128
105
  description: `${tokenName} - Created with DACTYCLAW`,
129
106
  },
130
107
  context: {
131
108
  interface: 'DACTYCLAW',
132
109
  },
110
+ pool: {
111
+ quoteToken: '0x4200000000000000000000000000000000000006', // WETH on Base
112
+ initialMarketCap: '10', // 10 ETH initial market cap
113
+ },
114
+ rewardsConfig: {
115
+ creatorReward: 80, // 80% to agent
116
+ creatorAdmin: agentConfig.wallet,
117
+ creatorRewardRecipient: agentConfig.wallet,
118
+ interfaceAdmin: DACTYCLAW_WALLET,
119
+ interfaceRewardRecipient: DACTYCLAW_WALLET,
120
+ },
133
121
  });
134
122
 
135
- if (error) {
136
- console.error('āŒ Deployment error:', error);
123
+ if (!tokenAddress) {
124
+ console.error('āŒ Deployment error: No token address returned');
137
125
  process.exit(1);
138
126
  }
139
127
 
140
- console.log(`āœ“ Transaction submitted: ${txHash}`);
141
- console.log('ā³ Waiting for confirmation...\n');
142
-
143
- const result = await waitForTransaction();
144
-
145
- if (result.error) {
146
- console.error('āŒ Transaction failed:', result.error);
147
- process.exit(1);
148
- }
149
-
150
- const tokenAddress = result.address;
151
-
152
128
  console.log('āœ… Token deployed successfully!');
153
129
  console.log(`\nšŸ“Š Token Details:`);
154
130
  console.log(` Address: ${tokenAddress}`);
@@ -168,7 +144,6 @@ async function main() {
168
144
  symbol: tokenSymbol,
169
145
  address: tokenAddress,
170
146
  supply: initialSupply,
171
- txHash,
172
147
  deployedAt: new Date().toISOString(),
173
148
  network: 'base',
174
149
  agentDNA: agentConfig.dna,
@@ -208,6 +183,7 @@ async function main() {
208
183
  rl.close();
209
184
  } catch (error) {
210
185
  console.error('āŒ Error:', error.message);
186
+ console.error('Stack:', error.stack);
211
187
  rl.close();
212
188
  process.exit(1);
213
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dacty-launch",
3
- "version": "1.1.6",
3
+ "version": "1.2.0",
4
4
  "description": "Launch tokens for agents in the Dactyclaw ecosystem",
5
5
  "type": "module",
6
6
  "bin": {