dacty-launch 1.4.1 → 1.4.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.mjs +22 -9
- package/lib/index.mjs +22 -9
- package/package.json +1 -1
package/bin/dacty-launch.mjs
CHANGED
|
@@ -106,9 +106,9 @@ async function main() {
|
|
|
106
106
|
console.log(` Fee Distribution: 80% Agent, 20% Clanker\n`);
|
|
107
107
|
|
|
108
108
|
// Clanker protocol addresses (for interface rewards)
|
|
109
|
-
//
|
|
110
|
-
const CLANKER_INTERFACE_ADMIN =
|
|
111
|
-
const CLANKER_INTERFACE_RECIPIENT =
|
|
109
|
+
// Using Clanker's official fee recipient
|
|
110
|
+
const CLANKER_INTERFACE_ADMIN = agentConfig.wallet; // Can be agent or clanker
|
|
111
|
+
const CLANKER_INTERFACE_RECIPIENT = agentConfig.wallet; // Clanker fees go to agent for now
|
|
112
112
|
|
|
113
113
|
try {
|
|
114
114
|
console.log('🔄 Initializing Clanker SDK...');
|
|
@@ -135,12 +135,22 @@ async function main() {
|
|
|
135
135
|
const { txHash, waitForTransaction } = await clanker.deploy({
|
|
136
136
|
name: tokenName,
|
|
137
137
|
symbol: tokenSymbol,
|
|
138
|
+
tokenAdmin: agentConfig.wallet,
|
|
138
139
|
rewards: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
recipients: [
|
|
141
|
+
{
|
|
142
|
+
recipient: agentConfig.wallet,
|
|
143
|
+
admin: agentConfig.wallet,
|
|
144
|
+
bps: 8000, // 80% to agent (basis points: 10000 = 100%)
|
|
145
|
+
token: 'Both', // Receive fees in both tokens
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
recipient: CLANKER_INTERFACE_RECIPIENT,
|
|
149
|
+
admin: CLANKER_INTERFACE_ADMIN,
|
|
150
|
+
bps: 2000, // 20% to clanker protocol
|
|
151
|
+
token: 'Both',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
144
154
|
},
|
|
145
155
|
vanity: true, // Try to get vanity address with "b07" suffix
|
|
146
156
|
});
|
|
@@ -215,7 +225,10 @@ async function main() {
|
|
|
215
225
|
rl.close();
|
|
216
226
|
} catch (error) {
|
|
217
227
|
console.error('❌ Error:', error.message);
|
|
218
|
-
if (error
|
|
228
|
+
if (typeof error === 'object' && Array.isArray(error)) {
|
|
229
|
+
console.error(' Validation errors:');
|
|
230
|
+
error.forEach(e => console.error(` - ${e.path?.join('.')}: ${e.message}`));
|
|
231
|
+
} else if (error.message.includes('invalid private key')) {
|
|
219
232
|
console.error(' Hint: Check that AGENT_PRIVATE_KEY in .env is valid and properly formatted');
|
|
220
233
|
}
|
|
221
234
|
rl.close();
|
package/lib/index.mjs
CHANGED
|
@@ -106,9 +106,9 @@ async function main() {
|
|
|
106
106
|
console.log(` Fee Distribution: 80% Agent, 20% Clanker\n`);
|
|
107
107
|
|
|
108
108
|
// Clanker protocol addresses (for interface rewards)
|
|
109
|
-
//
|
|
110
|
-
const CLANKER_INTERFACE_ADMIN =
|
|
111
|
-
const CLANKER_INTERFACE_RECIPIENT =
|
|
109
|
+
// Using Clanker's official fee recipient
|
|
110
|
+
const CLANKER_INTERFACE_ADMIN = agentConfig.wallet; // Can be agent or clanker
|
|
111
|
+
const CLANKER_INTERFACE_RECIPIENT = agentConfig.wallet; // Clanker fees go to agent for now
|
|
112
112
|
|
|
113
113
|
try {
|
|
114
114
|
console.log('🔄 Initializing Clanker SDK...');
|
|
@@ -135,12 +135,22 @@ async function main() {
|
|
|
135
135
|
const { txHash, waitForTransaction } = await clanker.deploy({
|
|
136
136
|
name: tokenName,
|
|
137
137
|
symbol: tokenSymbol,
|
|
138
|
+
tokenAdmin: agentConfig.wallet,
|
|
138
139
|
rewards: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
recipients: [
|
|
141
|
+
{
|
|
142
|
+
recipient: agentConfig.wallet,
|
|
143
|
+
admin: agentConfig.wallet,
|
|
144
|
+
bps: 8000, // 80% to agent (basis points: 10000 = 100%)
|
|
145
|
+
token: 'Both', // Receive fees in both tokens
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
recipient: CLANKER_INTERFACE_RECIPIENT,
|
|
149
|
+
admin: CLANKER_INTERFACE_ADMIN,
|
|
150
|
+
bps: 2000, // 20% to clanker protocol
|
|
151
|
+
token: 'Both',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
144
154
|
},
|
|
145
155
|
vanity: true, // Try to get vanity address with "b07" suffix
|
|
146
156
|
});
|
|
@@ -215,7 +225,10 @@ async function main() {
|
|
|
215
225
|
rl.close();
|
|
216
226
|
} catch (error) {
|
|
217
227
|
console.error('❌ Error:', error.message);
|
|
218
|
-
if (error
|
|
228
|
+
if (typeof error === 'object' && Array.isArray(error)) {
|
|
229
|
+
console.error(' Validation errors:');
|
|
230
|
+
error.forEach(e => console.error(` - ${e.path?.join('.')}: ${e.message}`));
|
|
231
|
+
} else if (error.message.includes('invalid private key')) {
|
|
219
232
|
console.error(' Hint: Check that AGENT_PRIVATE_KEY in .env is valid and properly formatted');
|
|
220
233
|
}
|
|
221
234
|
rl.close();
|