clanker-sdk 4.2.2 → 4.2.3
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/{clankerTokenV4-CYKWWpwe.d.ts → clankerTokenV4-Btn0ZN4v.d.ts} +1 -1
- package/dist/errors-5Gv28Tkr.d.ts +14 -0
- package/dist/index.d.ts +2 -2
- package/dist/legacyFeeClaims/data/token_creators_with_updates.csv +356508 -0
- package/dist/legacyFeeClaims/index.d.ts +2686 -0
- package/dist/legacyFeeClaims/index.js +682 -0
- package/dist/v3/index.d.ts +2 -1
- package/dist/v4/extensions/index.d.ts +3 -2
- package/dist/v4/index.d.ts +4 -3
- package/dist/{write-clanker-contracts-DVM3LXMa.d.ts → write-clanker-contracts-B4LSHPv2.d.ts} +401 -15
- package/package.json +7 -2
|
@@ -0,0 +1,2686 @@
|
|
|
1
|
+
import { WalletClient, Transport, Chain, Account, PublicClient } from 'viem';
|
|
2
|
+
import { C as ClankerError } from '../errors-5Gv28Tkr.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Contract address for ClankerSafeErc20Spender on Base network
|
|
6
|
+
*/
|
|
7
|
+
declare const LEGACY_FEE_CLAIMS_ADDRESS: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
8
|
+
type LegacyFeeClaimsConfig = {
|
|
9
|
+
wallet?: WalletClient<Transport, Chain, Account>;
|
|
10
|
+
publicClient?: PublicClient;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* SDK for claiming legacy fees from Clanker v0-v3.1 tokens.
|
|
14
|
+
*
|
|
15
|
+
* Creators of Clankers v0-v3.1 can claim their returned fees by interacting
|
|
16
|
+
* with the ClankerSafeErc20Spender contract.
|
|
17
|
+
*
|
|
18
|
+
* Creators have three main actions:
|
|
19
|
+
* 1. Initialize their ownership of the token's fees, with optional ability to set a different admin key
|
|
20
|
+
* 2. Update the admin key that can trigger claims
|
|
21
|
+
* 3. Claim the generated fees for their token
|
|
22
|
+
*/
|
|
23
|
+
declare class LegacyFeeClaims {
|
|
24
|
+
readonly wallet?: WalletClient<Transport, Chain, Account>;
|
|
25
|
+
readonly publicClient?: PublicClient;
|
|
26
|
+
constructor(config?: LegacyFeeClaimsConfig);
|
|
27
|
+
/**
|
|
28
|
+
* Get an abi-typed transaction for initializing token creator ownership.
|
|
29
|
+
*
|
|
30
|
+
* This must be called once per token by the original creator to claim ownership
|
|
31
|
+
* of the token's fees. During this call, the creator can optionally set a different
|
|
32
|
+
* admin key to manage the token's rewards.
|
|
33
|
+
*
|
|
34
|
+
* @param token The token address to initialize a creator for
|
|
35
|
+
* @param newCreator The address to set as the creator for this token (can be different from msg.sender)
|
|
36
|
+
* @param proof The Merkle proof demonstrating msg.sender is authorized for this token
|
|
37
|
+
* @returns Abi transaction config
|
|
38
|
+
*/
|
|
39
|
+
getInitializeTokenCreatorTransaction({ token, newCreator, proof, }: {
|
|
40
|
+
token: `0x${string}`;
|
|
41
|
+
newCreator: `0x${string}`;
|
|
42
|
+
proof: `0x${string}`[];
|
|
43
|
+
}): {
|
|
44
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
45
|
+
abi: readonly [{
|
|
46
|
+
readonly type: "constructor";
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly name: "owner_";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "teamSpender_";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "teamGrantedTokens_";
|
|
57
|
+
readonly type: "address[]";
|
|
58
|
+
readonly internalType: "address[]";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "initializeTokenCreator";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "token";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "newCreator";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "proof";
|
|
74
|
+
readonly type: "bytes32[]";
|
|
75
|
+
readonly internalType: "bytes32[]";
|
|
76
|
+
}];
|
|
77
|
+
readonly outputs: readonly [];
|
|
78
|
+
readonly stateMutability: "nonpayable";
|
|
79
|
+
}, {
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
readonly name: "owner";
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly name: "renounceOwnership";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [];
|
|
94
|
+
readonly stateMutability: "nonpayable";
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
readonly name: "setTeamSpender";
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "teamSpender_";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
}];
|
|
103
|
+
readonly outputs: readonly [];
|
|
104
|
+
readonly stateMutability: "nonpayable";
|
|
105
|
+
}, {
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
readonly name: "setTokenCreatorRoot";
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly name: "tokenCreatorRoot_";
|
|
110
|
+
readonly type: "bytes32";
|
|
111
|
+
readonly internalType: "bytes32";
|
|
112
|
+
}];
|
|
113
|
+
readonly outputs: readonly [];
|
|
114
|
+
readonly stateMutability: "nonpayable";
|
|
115
|
+
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly name: "teamGrantedTokens";
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
readonly outputs: readonly [{
|
|
124
|
+
readonly name: "";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
}];
|
|
128
|
+
readonly stateMutability: "view";
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
readonly name: "teamGrantedTokensMap";
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly name: "token";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
}];
|
|
137
|
+
readonly outputs: readonly [{
|
|
138
|
+
readonly name: "teamGranted";
|
|
139
|
+
readonly type: "bool";
|
|
140
|
+
readonly internalType: "bool";
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "view";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
readonly name: "teamSpender";
|
|
146
|
+
readonly inputs: readonly [];
|
|
147
|
+
readonly outputs: readonly [{
|
|
148
|
+
readonly name: "";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
readonly internalType: "address";
|
|
151
|
+
}];
|
|
152
|
+
readonly stateMutability: "view";
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
readonly name: "teamTransfer";
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly name: "safe";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "token";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "recipient";
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "amount";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly outputs: readonly [];
|
|
174
|
+
readonly stateMutability: "nonpayable";
|
|
175
|
+
}, {
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
readonly name: "teamTransferEth";
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly name: "safe";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
}];
|
|
183
|
+
readonly outputs: readonly [];
|
|
184
|
+
readonly stateMutability: "nonpayable";
|
|
185
|
+
}, {
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
readonly name: "tokenCreator";
|
|
188
|
+
readonly inputs: readonly [{
|
|
189
|
+
readonly name: "token";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
}];
|
|
193
|
+
readonly outputs: readonly [{
|
|
194
|
+
readonly name: "creator";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
}];
|
|
198
|
+
readonly stateMutability: "view";
|
|
199
|
+
}, {
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
readonly name: "tokenCreatorRoot";
|
|
202
|
+
readonly inputs: readonly [];
|
|
203
|
+
readonly outputs: readonly [{
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "bytes32";
|
|
206
|
+
readonly internalType: "bytes32";
|
|
207
|
+
}];
|
|
208
|
+
readonly stateMutability: "view";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
readonly name: "tokenCreatorTransfer";
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly name: "safe";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
readonly internalType: "address";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "token";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "recipient";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
}];
|
|
225
|
+
readonly outputs: readonly [];
|
|
226
|
+
readonly stateMutability: "nonpayable";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
readonly name: "transferOwnership";
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly name: "newOwner";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
}];
|
|
235
|
+
readonly outputs: readonly [];
|
|
236
|
+
readonly stateMutability: "nonpayable";
|
|
237
|
+
}, {
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
readonly name: "updateTokenCreator";
|
|
240
|
+
readonly inputs: readonly [{
|
|
241
|
+
readonly name: "token";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
readonly internalType: "address";
|
|
244
|
+
}, {
|
|
245
|
+
readonly name: "newCreator";
|
|
246
|
+
readonly type: "address";
|
|
247
|
+
readonly internalType: "address";
|
|
248
|
+
}];
|
|
249
|
+
readonly outputs: readonly [];
|
|
250
|
+
readonly stateMutability: "nonpayable";
|
|
251
|
+
}, {
|
|
252
|
+
readonly type: "event";
|
|
253
|
+
readonly name: "InitializeTokenCreator";
|
|
254
|
+
readonly inputs: readonly [{
|
|
255
|
+
readonly name: "token";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
readonly indexed: false;
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "initializer";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly indexed: false;
|
|
263
|
+
readonly internalType: "address";
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "creator";
|
|
266
|
+
readonly type: "address";
|
|
267
|
+
readonly indexed: false;
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
}];
|
|
270
|
+
readonly anonymous: false;
|
|
271
|
+
}, {
|
|
272
|
+
readonly type: "event";
|
|
273
|
+
readonly name: "OwnershipTransferred";
|
|
274
|
+
readonly inputs: readonly [{
|
|
275
|
+
readonly name: "previousOwner";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
readonly indexed: true;
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "newOwner";
|
|
281
|
+
readonly type: "address";
|
|
282
|
+
readonly indexed: true;
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly anonymous: false;
|
|
286
|
+
}, {
|
|
287
|
+
readonly type: "event";
|
|
288
|
+
readonly name: "SetTeamSpender";
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly name: "previousTeamSpender";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
readonly indexed: true;
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "newTeamSpender";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
readonly indexed: true;
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly anonymous: false;
|
|
301
|
+
}, {
|
|
302
|
+
readonly type: "event";
|
|
303
|
+
readonly name: "SetTokenCreatorRoot";
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly name: "tokenCreatorRoot";
|
|
306
|
+
readonly type: "bytes32";
|
|
307
|
+
readonly indexed: false;
|
|
308
|
+
readonly internalType: "bytes32";
|
|
309
|
+
}];
|
|
310
|
+
readonly anonymous: false;
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "event";
|
|
313
|
+
readonly name: "Transfer";
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly name: "safe";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
readonly indexed: true;
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "token";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
readonly indexed: true;
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "amount";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
readonly indexed: false;
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "spender";
|
|
331
|
+
readonly type: "address";
|
|
332
|
+
readonly indexed: false;
|
|
333
|
+
readonly internalType: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "recipient";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
readonly indexed: true;
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
}];
|
|
340
|
+
readonly anonymous: false;
|
|
341
|
+
}, {
|
|
342
|
+
readonly type: "event";
|
|
343
|
+
readonly name: "UpdateTokenCreator";
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly name: "token";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
readonly indexed: false;
|
|
348
|
+
readonly internalType: "address";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "previousCreator";
|
|
351
|
+
readonly type: "address";
|
|
352
|
+
readonly indexed: false;
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "newCreator";
|
|
356
|
+
readonly type: "address";
|
|
357
|
+
readonly indexed: false;
|
|
358
|
+
readonly internalType: "address";
|
|
359
|
+
}];
|
|
360
|
+
readonly anonymous: false;
|
|
361
|
+
}, {
|
|
362
|
+
readonly type: "error";
|
|
363
|
+
readonly name: "InsufficientBalance";
|
|
364
|
+
readonly inputs: readonly [{
|
|
365
|
+
readonly name: "safe";
|
|
366
|
+
readonly type: "address";
|
|
367
|
+
readonly internalType: "address";
|
|
368
|
+
}, {
|
|
369
|
+
readonly name: "token";
|
|
370
|
+
readonly type: "address";
|
|
371
|
+
readonly internalType: "address";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "balance";
|
|
374
|
+
readonly type: "uint256";
|
|
375
|
+
readonly internalType: "uint256";
|
|
376
|
+
}];
|
|
377
|
+
}, {
|
|
378
|
+
readonly type: "error";
|
|
379
|
+
readonly name: "InvalidProof";
|
|
380
|
+
readonly inputs: readonly [];
|
|
381
|
+
}, {
|
|
382
|
+
readonly type: "error";
|
|
383
|
+
readonly name: "NotAuthorizedToSpend";
|
|
384
|
+
readonly inputs: readonly [{
|
|
385
|
+
readonly name: "sender";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
}, {
|
|
389
|
+
readonly name: "token";
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
readonly internalType: "address";
|
|
392
|
+
}];
|
|
393
|
+
}, {
|
|
394
|
+
readonly type: "error";
|
|
395
|
+
readonly name: "OwnableInvalidOwner";
|
|
396
|
+
readonly inputs: readonly [{
|
|
397
|
+
readonly name: "owner";
|
|
398
|
+
readonly type: "address";
|
|
399
|
+
readonly internalType: "address";
|
|
400
|
+
}];
|
|
401
|
+
}, {
|
|
402
|
+
readonly type: "error";
|
|
403
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly name: "account";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
readonly internalType: "address";
|
|
408
|
+
}];
|
|
409
|
+
}, {
|
|
410
|
+
readonly type: "error";
|
|
411
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
412
|
+
readonly inputs: readonly [{
|
|
413
|
+
readonly name: "token";
|
|
414
|
+
readonly type: "address";
|
|
415
|
+
readonly internalType: "address";
|
|
416
|
+
}, {
|
|
417
|
+
readonly name: "delegate";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
readonly internalType: "address";
|
|
420
|
+
}];
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "error";
|
|
423
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
424
|
+
readonly inputs: readonly [{
|
|
425
|
+
readonly name: "tokenCreatorRoot";
|
|
426
|
+
readonly type: "bytes32";
|
|
427
|
+
readonly internalType: "bytes32";
|
|
428
|
+
}];
|
|
429
|
+
}, {
|
|
430
|
+
readonly type: "error";
|
|
431
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
432
|
+
readonly inputs: readonly [];
|
|
433
|
+
}, {
|
|
434
|
+
readonly type: "error";
|
|
435
|
+
readonly name: "Unauthorized";
|
|
436
|
+
readonly inputs: readonly [{
|
|
437
|
+
readonly name: "unauthorized";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
readonly internalType: "address";
|
|
440
|
+
}];
|
|
441
|
+
}];
|
|
442
|
+
functionName: "initializeTokenCreator";
|
|
443
|
+
args: readonly [`0x${string}`, `0x${string}`, `0x${string}`[]];
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Simulate initializing token creator ownership.
|
|
447
|
+
*
|
|
448
|
+
* @param token The token address to initialize a creator for
|
|
449
|
+
* @param newCreator The address to set as the creator for this token
|
|
450
|
+
* @param proof The Merkle proof demonstrating msg.sender is authorized for this token
|
|
451
|
+
* @param account Optional account to simulate calling for
|
|
452
|
+
* @returns The simulated output
|
|
453
|
+
*/
|
|
454
|
+
initializeTokenCreatorSimulate({ token, newCreator, proof, }: {
|
|
455
|
+
token: `0x${string}`;
|
|
456
|
+
newCreator: `0x${string}`;
|
|
457
|
+
proof: `0x${string}`[];
|
|
458
|
+
}, account?: Account): Promise<any>;
|
|
459
|
+
/**
|
|
460
|
+
* Initialize token creator ownership to enable fee claims.
|
|
461
|
+
*
|
|
462
|
+
* This must be called once per token by the original creator. The proof must be
|
|
463
|
+
* obtained from the Clanker team or frontend. During initialization, you can
|
|
464
|
+
* optionally set a different admin address to manage future claims.
|
|
465
|
+
*
|
|
466
|
+
* @param token The token address to initialize a creator for
|
|
467
|
+
* @param newCreator The address to set as the creator for this token (can be different from msg.sender)
|
|
468
|
+
* @param proof The Merkle proof demonstrating msg.sender is authorized for this token
|
|
469
|
+
* @returns Transaction hash or error
|
|
470
|
+
*/
|
|
471
|
+
initializeTokenCreator({ token, newCreator, proof, }: {
|
|
472
|
+
token: `0x${string}`;
|
|
473
|
+
newCreator: `0x${string}`;
|
|
474
|
+
proof: `0x${string}`[];
|
|
475
|
+
}): Promise<{
|
|
476
|
+
txHash: `0x${string}`;
|
|
477
|
+
error: undefined;
|
|
478
|
+
} | {
|
|
479
|
+
txHash: undefined;
|
|
480
|
+
error: ClankerError;
|
|
481
|
+
}>;
|
|
482
|
+
/**
|
|
483
|
+
* Get an abi-typed transaction for updating the token creator admin address.
|
|
484
|
+
*
|
|
485
|
+
* This allows the current creator to change the address that can trigger claims.
|
|
486
|
+
* Only callable by the current creator address for the specified token.
|
|
487
|
+
*
|
|
488
|
+
* @param token The token address to update the creator for
|
|
489
|
+
* @param newCreator The new creator/admin address
|
|
490
|
+
* @returns Abi transaction config
|
|
491
|
+
*/
|
|
492
|
+
getUpdateTokenCreatorTransaction({ token, newCreator, }: {
|
|
493
|
+
token: `0x${string}`;
|
|
494
|
+
newCreator: `0x${string}`;
|
|
495
|
+
}): {
|
|
496
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
497
|
+
abi: readonly [{
|
|
498
|
+
readonly type: "constructor";
|
|
499
|
+
readonly inputs: readonly [{
|
|
500
|
+
readonly name: "owner_";
|
|
501
|
+
readonly type: "address";
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "teamSpender_";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
readonly internalType: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "teamGrantedTokens_";
|
|
509
|
+
readonly type: "address[]";
|
|
510
|
+
readonly internalType: "address[]";
|
|
511
|
+
}];
|
|
512
|
+
readonly stateMutability: "nonpayable";
|
|
513
|
+
}, {
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
readonly name: "initializeTokenCreator";
|
|
516
|
+
readonly inputs: readonly [{
|
|
517
|
+
readonly name: "token";
|
|
518
|
+
readonly type: "address";
|
|
519
|
+
readonly internalType: "address";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "newCreator";
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
readonly internalType: "address";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "proof";
|
|
526
|
+
readonly type: "bytes32[]";
|
|
527
|
+
readonly internalType: "bytes32[]";
|
|
528
|
+
}];
|
|
529
|
+
readonly outputs: readonly [];
|
|
530
|
+
readonly stateMutability: "nonpayable";
|
|
531
|
+
}, {
|
|
532
|
+
readonly type: "function";
|
|
533
|
+
readonly name: "owner";
|
|
534
|
+
readonly inputs: readonly [];
|
|
535
|
+
readonly outputs: readonly [{
|
|
536
|
+
readonly name: "";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
}];
|
|
540
|
+
readonly stateMutability: "view";
|
|
541
|
+
}, {
|
|
542
|
+
readonly type: "function";
|
|
543
|
+
readonly name: "renounceOwnership";
|
|
544
|
+
readonly inputs: readonly [];
|
|
545
|
+
readonly outputs: readonly [];
|
|
546
|
+
readonly stateMutability: "nonpayable";
|
|
547
|
+
}, {
|
|
548
|
+
readonly type: "function";
|
|
549
|
+
readonly name: "setTeamSpender";
|
|
550
|
+
readonly inputs: readonly [{
|
|
551
|
+
readonly name: "teamSpender_";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
readonly internalType: "address";
|
|
554
|
+
}];
|
|
555
|
+
readonly outputs: readonly [];
|
|
556
|
+
readonly stateMutability: "nonpayable";
|
|
557
|
+
}, {
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
readonly name: "setTokenCreatorRoot";
|
|
560
|
+
readonly inputs: readonly [{
|
|
561
|
+
readonly name: "tokenCreatorRoot_";
|
|
562
|
+
readonly type: "bytes32";
|
|
563
|
+
readonly internalType: "bytes32";
|
|
564
|
+
}];
|
|
565
|
+
readonly outputs: readonly [];
|
|
566
|
+
readonly stateMutability: "nonpayable";
|
|
567
|
+
}, {
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
readonly name: "teamGrantedTokens";
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly name: "";
|
|
572
|
+
readonly type: "uint256";
|
|
573
|
+
readonly internalType: "uint256";
|
|
574
|
+
}];
|
|
575
|
+
readonly outputs: readonly [{
|
|
576
|
+
readonly name: "";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
readonly internalType: "address";
|
|
579
|
+
}];
|
|
580
|
+
readonly stateMutability: "view";
|
|
581
|
+
}, {
|
|
582
|
+
readonly type: "function";
|
|
583
|
+
readonly name: "teamGrantedTokensMap";
|
|
584
|
+
readonly inputs: readonly [{
|
|
585
|
+
readonly name: "token";
|
|
586
|
+
readonly type: "address";
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
}];
|
|
589
|
+
readonly outputs: readonly [{
|
|
590
|
+
readonly name: "teamGranted";
|
|
591
|
+
readonly type: "bool";
|
|
592
|
+
readonly internalType: "bool";
|
|
593
|
+
}];
|
|
594
|
+
readonly stateMutability: "view";
|
|
595
|
+
}, {
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
readonly name: "teamSpender";
|
|
598
|
+
readonly inputs: readonly [];
|
|
599
|
+
readonly outputs: readonly [{
|
|
600
|
+
readonly name: "";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
readonly internalType: "address";
|
|
603
|
+
}];
|
|
604
|
+
readonly stateMutability: "view";
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
readonly name: "teamTransfer";
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly name: "safe";
|
|
610
|
+
readonly type: "address";
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "token";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "recipient";
|
|
618
|
+
readonly type: "address";
|
|
619
|
+
readonly internalType: "address";
|
|
620
|
+
}, {
|
|
621
|
+
readonly name: "amount";
|
|
622
|
+
readonly type: "uint256";
|
|
623
|
+
readonly internalType: "uint256";
|
|
624
|
+
}];
|
|
625
|
+
readonly outputs: readonly [];
|
|
626
|
+
readonly stateMutability: "nonpayable";
|
|
627
|
+
}, {
|
|
628
|
+
readonly type: "function";
|
|
629
|
+
readonly name: "teamTransferEth";
|
|
630
|
+
readonly inputs: readonly [{
|
|
631
|
+
readonly name: "safe";
|
|
632
|
+
readonly type: "address";
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
}];
|
|
635
|
+
readonly outputs: readonly [];
|
|
636
|
+
readonly stateMutability: "nonpayable";
|
|
637
|
+
}, {
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
readonly name: "tokenCreator";
|
|
640
|
+
readonly inputs: readonly [{
|
|
641
|
+
readonly name: "token";
|
|
642
|
+
readonly type: "address";
|
|
643
|
+
readonly internalType: "address";
|
|
644
|
+
}];
|
|
645
|
+
readonly outputs: readonly [{
|
|
646
|
+
readonly name: "creator";
|
|
647
|
+
readonly type: "address";
|
|
648
|
+
readonly internalType: "address";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
}, {
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
readonly name: "tokenCreatorRoot";
|
|
654
|
+
readonly inputs: readonly [];
|
|
655
|
+
readonly outputs: readonly [{
|
|
656
|
+
readonly name: "";
|
|
657
|
+
readonly type: "bytes32";
|
|
658
|
+
readonly internalType: "bytes32";
|
|
659
|
+
}];
|
|
660
|
+
readonly stateMutability: "view";
|
|
661
|
+
}, {
|
|
662
|
+
readonly type: "function";
|
|
663
|
+
readonly name: "tokenCreatorTransfer";
|
|
664
|
+
readonly inputs: readonly [{
|
|
665
|
+
readonly name: "safe";
|
|
666
|
+
readonly type: "address";
|
|
667
|
+
readonly internalType: "address";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "token";
|
|
670
|
+
readonly type: "address";
|
|
671
|
+
readonly internalType: "address";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "recipient";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
readonly internalType: "address";
|
|
676
|
+
}];
|
|
677
|
+
readonly outputs: readonly [];
|
|
678
|
+
readonly stateMutability: "nonpayable";
|
|
679
|
+
}, {
|
|
680
|
+
readonly type: "function";
|
|
681
|
+
readonly name: "transferOwnership";
|
|
682
|
+
readonly inputs: readonly [{
|
|
683
|
+
readonly name: "newOwner";
|
|
684
|
+
readonly type: "address";
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
}];
|
|
687
|
+
readonly outputs: readonly [];
|
|
688
|
+
readonly stateMutability: "nonpayable";
|
|
689
|
+
}, {
|
|
690
|
+
readonly type: "function";
|
|
691
|
+
readonly name: "updateTokenCreator";
|
|
692
|
+
readonly inputs: readonly [{
|
|
693
|
+
readonly name: "token";
|
|
694
|
+
readonly type: "address";
|
|
695
|
+
readonly internalType: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "newCreator";
|
|
698
|
+
readonly type: "address";
|
|
699
|
+
readonly internalType: "address";
|
|
700
|
+
}];
|
|
701
|
+
readonly outputs: readonly [];
|
|
702
|
+
readonly stateMutability: "nonpayable";
|
|
703
|
+
}, {
|
|
704
|
+
readonly type: "event";
|
|
705
|
+
readonly name: "InitializeTokenCreator";
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly name: "token";
|
|
708
|
+
readonly type: "address";
|
|
709
|
+
readonly indexed: false;
|
|
710
|
+
readonly internalType: "address";
|
|
711
|
+
}, {
|
|
712
|
+
readonly name: "initializer";
|
|
713
|
+
readonly type: "address";
|
|
714
|
+
readonly indexed: false;
|
|
715
|
+
readonly internalType: "address";
|
|
716
|
+
}, {
|
|
717
|
+
readonly name: "creator";
|
|
718
|
+
readonly type: "address";
|
|
719
|
+
readonly indexed: false;
|
|
720
|
+
readonly internalType: "address";
|
|
721
|
+
}];
|
|
722
|
+
readonly anonymous: false;
|
|
723
|
+
}, {
|
|
724
|
+
readonly type: "event";
|
|
725
|
+
readonly name: "OwnershipTransferred";
|
|
726
|
+
readonly inputs: readonly [{
|
|
727
|
+
readonly name: "previousOwner";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
readonly indexed: true;
|
|
730
|
+
readonly internalType: "address";
|
|
731
|
+
}, {
|
|
732
|
+
readonly name: "newOwner";
|
|
733
|
+
readonly type: "address";
|
|
734
|
+
readonly indexed: true;
|
|
735
|
+
readonly internalType: "address";
|
|
736
|
+
}];
|
|
737
|
+
readonly anonymous: false;
|
|
738
|
+
}, {
|
|
739
|
+
readonly type: "event";
|
|
740
|
+
readonly name: "SetTeamSpender";
|
|
741
|
+
readonly inputs: readonly [{
|
|
742
|
+
readonly name: "previousTeamSpender";
|
|
743
|
+
readonly type: "address";
|
|
744
|
+
readonly indexed: true;
|
|
745
|
+
readonly internalType: "address";
|
|
746
|
+
}, {
|
|
747
|
+
readonly name: "newTeamSpender";
|
|
748
|
+
readonly type: "address";
|
|
749
|
+
readonly indexed: true;
|
|
750
|
+
readonly internalType: "address";
|
|
751
|
+
}];
|
|
752
|
+
readonly anonymous: false;
|
|
753
|
+
}, {
|
|
754
|
+
readonly type: "event";
|
|
755
|
+
readonly name: "SetTokenCreatorRoot";
|
|
756
|
+
readonly inputs: readonly [{
|
|
757
|
+
readonly name: "tokenCreatorRoot";
|
|
758
|
+
readonly type: "bytes32";
|
|
759
|
+
readonly indexed: false;
|
|
760
|
+
readonly internalType: "bytes32";
|
|
761
|
+
}];
|
|
762
|
+
readonly anonymous: false;
|
|
763
|
+
}, {
|
|
764
|
+
readonly type: "event";
|
|
765
|
+
readonly name: "Transfer";
|
|
766
|
+
readonly inputs: readonly [{
|
|
767
|
+
readonly name: "safe";
|
|
768
|
+
readonly type: "address";
|
|
769
|
+
readonly indexed: true;
|
|
770
|
+
readonly internalType: "address";
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "token";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
readonly indexed: true;
|
|
775
|
+
readonly internalType: "address";
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "amount";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
readonly indexed: false;
|
|
780
|
+
readonly internalType: "uint256";
|
|
781
|
+
}, {
|
|
782
|
+
readonly name: "spender";
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
readonly indexed: false;
|
|
785
|
+
readonly internalType: "address";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "recipient";
|
|
788
|
+
readonly type: "address";
|
|
789
|
+
readonly indexed: true;
|
|
790
|
+
readonly internalType: "address";
|
|
791
|
+
}];
|
|
792
|
+
readonly anonymous: false;
|
|
793
|
+
}, {
|
|
794
|
+
readonly type: "event";
|
|
795
|
+
readonly name: "UpdateTokenCreator";
|
|
796
|
+
readonly inputs: readonly [{
|
|
797
|
+
readonly name: "token";
|
|
798
|
+
readonly type: "address";
|
|
799
|
+
readonly indexed: false;
|
|
800
|
+
readonly internalType: "address";
|
|
801
|
+
}, {
|
|
802
|
+
readonly name: "previousCreator";
|
|
803
|
+
readonly type: "address";
|
|
804
|
+
readonly indexed: false;
|
|
805
|
+
readonly internalType: "address";
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "newCreator";
|
|
808
|
+
readonly type: "address";
|
|
809
|
+
readonly indexed: false;
|
|
810
|
+
readonly internalType: "address";
|
|
811
|
+
}];
|
|
812
|
+
readonly anonymous: false;
|
|
813
|
+
}, {
|
|
814
|
+
readonly type: "error";
|
|
815
|
+
readonly name: "InsufficientBalance";
|
|
816
|
+
readonly inputs: readonly [{
|
|
817
|
+
readonly name: "safe";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "token";
|
|
822
|
+
readonly type: "address";
|
|
823
|
+
readonly internalType: "address";
|
|
824
|
+
}, {
|
|
825
|
+
readonly name: "balance";
|
|
826
|
+
readonly type: "uint256";
|
|
827
|
+
readonly internalType: "uint256";
|
|
828
|
+
}];
|
|
829
|
+
}, {
|
|
830
|
+
readonly type: "error";
|
|
831
|
+
readonly name: "InvalidProof";
|
|
832
|
+
readonly inputs: readonly [];
|
|
833
|
+
}, {
|
|
834
|
+
readonly type: "error";
|
|
835
|
+
readonly name: "NotAuthorizedToSpend";
|
|
836
|
+
readonly inputs: readonly [{
|
|
837
|
+
readonly name: "sender";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
readonly internalType: "address";
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "token";
|
|
842
|
+
readonly type: "address";
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
}];
|
|
845
|
+
}, {
|
|
846
|
+
readonly type: "error";
|
|
847
|
+
readonly name: "OwnableInvalidOwner";
|
|
848
|
+
readonly inputs: readonly [{
|
|
849
|
+
readonly name: "owner";
|
|
850
|
+
readonly type: "address";
|
|
851
|
+
readonly internalType: "address";
|
|
852
|
+
}];
|
|
853
|
+
}, {
|
|
854
|
+
readonly type: "error";
|
|
855
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
856
|
+
readonly inputs: readonly [{
|
|
857
|
+
readonly name: "account";
|
|
858
|
+
readonly type: "address";
|
|
859
|
+
readonly internalType: "address";
|
|
860
|
+
}];
|
|
861
|
+
}, {
|
|
862
|
+
readonly type: "error";
|
|
863
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
864
|
+
readonly inputs: readonly [{
|
|
865
|
+
readonly name: "token";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
readonly internalType: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "delegate";
|
|
870
|
+
readonly type: "address";
|
|
871
|
+
readonly internalType: "address";
|
|
872
|
+
}];
|
|
873
|
+
}, {
|
|
874
|
+
readonly type: "error";
|
|
875
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
876
|
+
readonly inputs: readonly [{
|
|
877
|
+
readonly name: "tokenCreatorRoot";
|
|
878
|
+
readonly type: "bytes32";
|
|
879
|
+
readonly internalType: "bytes32";
|
|
880
|
+
}];
|
|
881
|
+
}, {
|
|
882
|
+
readonly type: "error";
|
|
883
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
884
|
+
readonly inputs: readonly [];
|
|
885
|
+
}, {
|
|
886
|
+
readonly type: "error";
|
|
887
|
+
readonly name: "Unauthorized";
|
|
888
|
+
readonly inputs: readonly [{
|
|
889
|
+
readonly name: "unauthorized";
|
|
890
|
+
readonly type: "address";
|
|
891
|
+
readonly internalType: "address";
|
|
892
|
+
}];
|
|
893
|
+
}];
|
|
894
|
+
functionName: "updateTokenCreator";
|
|
895
|
+
args: readonly [`0x${string}`, `0x${string}`];
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Simulate updating the token creator admin address.
|
|
899
|
+
*
|
|
900
|
+
* @param token The token address to update the creator for
|
|
901
|
+
* @param newCreator The new creator/admin address
|
|
902
|
+
* @param account Optional account to simulate calling for
|
|
903
|
+
* @returns The simulated output
|
|
904
|
+
*/
|
|
905
|
+
updateTokenCreatorSimulate({ token, newCreator, }: {
|
|
906
|
+
token: `0x${string}`;
|
|
907
|
+
newCreator: `0x${string}`;
|
|
908
|
+
}, account?: Account): Promise<any>;
|
|
909
|
+
/**
|
|
910
|
+
* Update the token creator admin address.
|
|
911
|
+
*
|
|
912
|
+
* This allows you to change which address can trigger fee claims for your token.
|
|
913
|
+
* Only callable by the current creator address.
|
|
914
|
+
*
|
|
915
|
+
* @param token The token address to update the creator for
|
|
916
|
+
* @param newCreator The new creator/admin address
|
|
917
|
+
* @returns Transaction hash or error
|
|
918
|
+
*/
|
|
919
|
+
updateTokenCreator({ token, newCreator, }: {
|
|
920
|
+
token: `0x${string}`;
|
|
921
|
+
newCreator: `0x${string}`;
|
|
922
|
+
}): Promise<{
|
|
923
|
+
txHash: `0x${string}`;
|
|
924
|
+
error: undefined;
|
|
925
|
+
} | {
|
|
926
|
+
txHash: undefined;
|
|
927
|
+
error: ClankerError;
|
|
928
|
+
}>;
|
|
929
|
+
/**
|
|
930
|
+
* Get an abi-typed transaction for claiming token creator fees.
|
|
931
|
+
*
|
|
932
|
+
* This allows the authorized creator to transfer all accumulated fees from the
|
|
933
|
+
* Safe wallet to any recipient address. Only callable by the authorized creator
|
|
934
|
+
* for the specified token.
|
|
935
|
+
*
|
|
936
|
+
* @param safe The Safe wallet address holding the fees
|
|
937
|
+
* @param token The ERC20 token address to transfer
|
|
938
|
+
* @param recipient The address to receive the fees
|
|
939
|
+
* @returns Abi transaction config
|
|
940
|
+
*/
|
|
941
|
+
getTokenCreatorTransferTransaction({ safe, token, recipient, }: {
|
|
942
|
+
safe: `0x${string}`;
|
|
943
|
+
token: `0x${string}`;
|
|
944
|
+
recipient: `0x${string}`;
|
|
945
|
+
}): {
|
|
946
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
947
|
+
abi: readonly [{
|
|
948
|
+
readonly type: "constructor";
|
|
949
|
+
readonly inputs: readonly [{
|
|
950
|
+
readonly name: "owner_";
|
|
951
|
+
readonly type: "address";
|
|
952
|
+
readonly internalType: "address";
|
|
953
|
+
}, {
|
|
954
|
+
readonly name: "teamSpender_";
|
|
955
|
+
readonly type: "address";
|
|
956
|
+
readonly internalType: "address";
|
|
957
|
+
}, {
|
|
958
|
+
readonly name: "teamGrantedTokens_";
|
|
959
|
+
readonly type: "address[]";
|
|
960
|
+
readonly internalType: "address[]";
|
|
961
|
+
}];
|
|
962
|
+
readonly stateMutability: "nonpayable";
|
|
963
|
+
}, {
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
readonly name: "initializeTokenCreator";
|
|
966
|
+
readonly inputs: readonly [{
|
|
967
|
+
readonly name: "token";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
readonly internalType: "address";
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "newCreator";
|
|
972
|
+
readonly type: "address";
|
|
973
|
+
readonly internalType: "address";
|
|
974
|
+
}, {
|
|
975
|
+
readonly name: "proof";
|
|
976
|
+
readonly type: "bytes32[]";
|
|
977
|
+
readonly internalType: "bytes32[]";
|
|
978
|
+
}];
|
|
979
|
+
readonly outputs: readonly [];
|
|
980
|
+
readonly stateMutability: "nonpayable";
|
|
981
|
+
}, {
|
|
982
|
+
readonly type: "function";
|
|
983
|
+
readonly name: "owner";
|
|
984
|
+
readonly inputs: readonly [];
|
|
985
|
+
readonly outputs: readonly [{
|
|
986
|
+
readonly name: "";
|
|
987
|
+
readonly type: "address";
|
|
988
|
+
readonly internalType: "address";
|
|
989
|
+
}];
|
|
990
|
+
readonly stateMutability: "view";
|
|
991
|
+
}, {
|
|
992
|
+
readonly type: "function";
|
|
993
|
+
readonly name: "renounceOwnership";
|
|
994
|
+
readonly inputs: readonly [];
|
|
995
|
+
readonly outputs: readonly [];
|
|
996
|
+
readonly stateMutability: "nonpayable";
|
|
997
|
+
}, {
|
|
998
|
+
readonly type: "function";
|
|
999
|
+
readonly name: "setTeamSpender";
|
|
1000
|
+
readonly inputs: readonly [{
|
|
1001
|
+
readonly name: "teamSpender_";
|
|
1002
|
+
readonly type: "address";
|
|
1003
|
+
readonly internalType: "address";
|
|
1004
|
+
}];
|
|
1005
|
+
readonly outputs: readonly [];
|
|
1006
|
+
readonly stateMutability: "nonpayable";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly type: "function";
|
|
1009
|
+
readonly name: "setTokenCreatorRoot";
|
|
1010
|
+
readonly inputs: readonly [{
|
|
1011
|
+
readonly name: "tokenCreatorRoot_";
|
|
1012
|
+
readonly type: "bytes32";
|
|
1013
|
+
readonly internalType: "bytes32";
|
|
1014
|
+
}];
|
|
1015
|
+
readonly outputs: readonly [];
|
|
1016
|
+
readonly stateMutability: "nonpayable";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "function";
|
|
1019
|
+
readonly name: "teamGrantedTokens";
|
|
1020
|
+
readonly inputs: readonly [{
|
|
1021
|
+
readonly name: "";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
readonly internalType: "uint256";
|
|
1024
|
+
}];
|
|
1025
|
+
readonly outputs: readonly [{
|
|
1026
|
+
readonly name: "";
|
|
1027
|
+
readonly type: "address";
|
|
1028
|
+
readonly internalType: "address";
|
|
1029
|
+
}];
|
|
1030
|
+
readonly stateMutability: "view";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly type: "function";
|
|
1033
|
+
readonly name: "teamGrantedTokensMap";
|
|
1034
|
+
readonly inputs: readonly [{
|
|
1035
|
+
readonly name: "token";
|
|
1036
|
+
readonly type: "address";
|
|
1037
|
+
readonly internalType: "address";
|
|
1038
|
+
}];
|
|
1039
|
+
readonly outputs: readonly [{
|
|
1040
|
+
readonly name: "teamGranted";
|
|
1041
|
+
readonly type: "bool";
|
|
1042
|
+
readonly internalType: "bool";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly stateMutability: "view";
|
|
1045
|
+
}, {
|
|
1046
|
+
readonly type: "function";
|
|
1047
|
+
readonly name: "teamSpender";
|
|
1048
|
+
readonly inputs: readonly [];
|
|
1049
|
+
readonly outputs: readonly [{
|
|
1050
|
+
readonly name: "";
|
|
1051
|
+
readonly type: "address";
|
|
1052
|
+
readonly internalType: "address";
|
|
1053
|
+
}];
|
|
1054
|
+
readonly stateMutability: "view";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly type: "function";
|
|
1057
|
+
readonly name: "teamTransfer";
|
|
1058
|
+
readonly inputs: readonly [{
|
|
1059
|
+
readonly name: "safe";
|
|
1060
|
+
readonly type: "address";
|
|
1061
|
+
readonly internalType: "address";
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly name: "token";
|
|
1064
|
+
readonly type: "address";
|
|
1065
|
+
readonly internalType: "address";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "recipient";
|
|
1068
|
+
readonly type: "address";
|
|
1069
|
+
readonly internalType: "address";
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly name: "amount";
|
|
1072
|
+
readonly type: "uint256";
|
|
1073
|
+
readonly internalType: "uint256";
|
|
1074
|
+
}];
|
|
1075
|
+
readonly outputs: readonly [];
|
|
1076
|
+
readonly stateMutability: "nonpayable";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly type: "function";
|
|
1079
|
+
readonly name: "teamTransferEth";
|
|
1080
|
+
readonly inputs: readonly [{
|
|
1081
|
+
readonly name: "safe";
|
|
1082
|
+
readonly type: "address";
|
|
1083
|
+
readonly internalType: "address";
|
|
1084
|
+
}];
|
|
1085
|
+
readonly outputs: readonly [];
|
|
1086
|
+
readonly stateMutability: "nonpayable";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly type: "function";
|
|
1089
|
+
readonly name: "tokenCreator";
|
|
1090
|
+
readonly inputs: readonly [{
|
|
1091
|
+
readonly name: "token";
|
|
1092
|
+
readonly type: "address";
|
|
1093
|
+
readonly internalType: "address";
|
|
1094
|
+
}];
|
|
1095
|
+
readonly outputs: readonly [{
|
|
1096
|
+
readonly name: "creator";
|
|
1097
|
+
readonly type: "address";
|
|
1098
|
+
readonly internalType: "address";
|
|
1099
|
+
}];
|
|
1100
|
+
readonly stateMutability: "view";
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly type: "function";
|
|
1103
|
+
readonly name: "tokenCreatorRoot";
|
|
1104
|
+
readonly inputs: readonly [];
|
|
1105
|
+
readonly outputs: readonly [{
|
|
1106
|
+
readonly name: "";
|
|
1107
|
+
readonly type: "bytes32";
|
|
1108
|
+
readonly internalType: "bytes32";
|
|
1109
|
+
}];
|
|
1110
|
+
readonly stateMutability: "view";
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly type: "function";
|
|
1113
|
+
readonly name: "tokenCreatorTransfer";
|
|
1114
|
+
readonly inputs: readonly [{
|
|
1115
|
+
readonly name: "safe";
|
|
1116
|
+
readonly type: "address";
|
|
1117
|
+
readonly internalType: "address";
|
|
1118
|
+
}, {
|
|
1119
|
+
readonly name: "token";
|
|
1120
|
+
readonly type: "address";
|
|
1121
|
+
readonly internalType: "address";
|
|
1122
|
+
}, {
|
|
1123
|
+
readonly name: "recipient";
|
|
1124
|
+
readonly type: "address";
|
|
1125
|
+
readonly internalType: "address";
|
|
1126
|
+
}];
|
|
1127
|
+
readonly outputs: readonly [];
|
|
1128
|
+
readonly stateMutability: "nonpayable";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly type: "function";
|
|
1131
|
+
readonly name: "transferOwnership";
|
|
1132
|
+
readonly inputs: readonly [{
|
|
1133
|
+
readonly name: "newOwner";
|
|
1134
|
+
readonly type: "address";
|
|
1135
|
+
readonly internalType: "address";
|
|
1136
|
+
}];
|
|
1137
|
+
readonly outputs: readonly [];
|
|
1138
|
+
readonly stateMutability: "nonpayable";
|
|
1139
|
+
}, {
|
|
1140
|
+
readonly type: "function";
|
|
1141
|
+
readonly name: "updateTokenCreator";
|
|
1142
|
+
readonly inputs: readonly [{
|
|
1143
|
+
readonly name: "token";
|
|
1144
|
+
readonly type: "address";
|
|
1145
|
+
readonly internalType: "address";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly name: "newCreator";
|
|
1148
|
+
readonly type: "address";
|
|
1149
|
+
readonly internalType: "address";
|
|
1150
|
+
}];
|
|
1151
|
+
readonly outputs: readonly [];
|
|
1152
|
+
readonly stateMutability: "nonpayable";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly type: "event";
|
|
1155
|
+
readonly name: "InitializeTokenCreator";
|
|
1156
|
+
readonly inputs: readonly [{
|
|
1157
|
+
readonly name: "token";
|
|
1158
|
+
readonly type: "address";
|
|
1159
|
+
readonly indexed: false;
|
|
1160
|
+
readonly internalType: "address";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly name: "initializer";
|
|
1163
|
+
readonly type: "address";
|
|
1164
|
+
readonly indexed: false;
|
|
1165
|
+
readonly internalType: "address";
|
|
1166
|
+
}, {
|
|
1167
|
+
readonly name: "creator";
|
|
1168
|
+
readonly type: "address";
|
|
1169
|
+
readonly indexed: false;
|
|
1170
|
+
readonly internalType: "address";
|
|
1171
|
+
}];
|
|
1172
|
+
readonly anonymous: false;
|
|
1173
|
+
}, {
|
|
1174
|
+
readonly type: "event";
|
|
1175
|
+
readonly name: "OwnershipTransferred";
|
|
1176
|
+
readonly inputs: readonly [{
|
|
1177
|
+
readonly name: "previousOwner";
|
|
1178
|
+
readonly type: "address";
|
|
1179
|
+
readonly indexed: true;
|
|
1180
|
+
readonly internalType: "address";
|
|
1181
|
+
}, {
|
|
1182
|
+
readonly name: "newOwner";
|
|
1183
|
+
readonly type: "address";
|
|
1184
|
+
readonly indexed: true;
|
|
1185
|
+
readonly internalType: "address";
|
|
1186
|
+
}];
|
|
1187
|
+
readonly anonymous: false;
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly type: "event";
|
|
1190
|
+
readonly name: "SetTeamSpender";
|
|
1191
|
+
readonly inputs: readonly [{
|
|
1192
|
+
readonly name: "previousTeamSpender";
|
|
1193
|
+
readonly type: "address";
|
|
1194
|
+
readonly indexed: true;
|
|
1195
|
+
readonly internalType: "address";
|
|
1196
|
+
}, {
|
|
1197
|
+
readonly name: "newTeamSpender";
|
|
1198
|
+
readonly type: "address";
|
|
1199
|
+
readonly indexed: true;
|
|
1200
|
+
readonly internalType: "address";
|
|
1201
|
+
}];
|
|
1202
|
+
readonly anonymous: false;
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly type: "event";
|
|
1205
|
+
readonly name: "SetTokenCreatorRoot";
|
|
1206
|
+
readonly inputs: readonly [{
|
|
1207
|
+
readonly name: "tokenCreatorRoot";
|
|
1208
|
+
readonly type: "bytes32";
|
|
1209
|
+
readonly indexed: false;
|
|
1210
|
+
readonly internalType: "bytes32";
|
|
1211
|
+
}];
|
|
1212
|
+
readonly anonymous: false;
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly type: "event";
|
|
1215
|
+
readonly name: "Transfer";
|
|
1216
|
+
readonly inputs: readonly [{
|
|
1217
|
+
readonly name: "safe";
|
|
1218
|
+
readonly type: "address";
|
|
1219
|
+
readonly indexed: true;
|
|
1220
|
+
readonly internalType: "address";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly name: "token";
|
|
1223
|
+
readonly type: "address";
|
|
1224
|
+
readonly indexed: true;
|
|
1225
|
+
readonly internalType: "address";
|
|
1226
|
+
}, {
|
|
1227
|
+
readonly name: "amount";
|
|
1228
|
+
readonly type: "uint256";
|
|
1229
|
+
readonly indexed: false;
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly name: "spender";
|
|
1233
|
+
readonly type: "address";
|
|
1234
|
+
readonly indexed: false;
|
|
1235
|
+
readonly internalType: "address";
|
|
1236
|
+
}, {
|
|
1237
|
+
readonly name: "recipient";
|
|
1238
|
+
readonly type: "address";
|
|
1239
|
+
readonly indexed: true;
|
|
1240
|
+
readonly internalType: "address";
|
|
1241
|
+
}];
|
|
1242
|
+
readonly anonymous: false;
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly type: "event";
|
|
1245
|
+
readonly name: "UpdateTokenCreator";
|
|
1246
|
+
readonly inputs: readonly [{
|
|
1247
|
+
readonly name: "token";
|
|
1248
|
+
readonly type: "address";
|
|
1249
|
+
readonly indexed: false;
|
|
1250
|
+
readonly internalType: "address";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "previousCreator";
|
|
1253
|
+
readonly type: "address";
|
|
1254
|
+
readonly indexed: false;
|
|
1255
|
+
readonly internalType: "address";
|
|
1256
|
+
}, {
|
|
1257
|
+
readonly name: "newCreator";
|
|
1258
|
+
readonly type: "address";
|
|
1259
|
+
readonly indexed: false;
|
|
1260
|
+
readonly internalType: "address";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly anonymous: false;
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "error";
|
|
1265
|
+
readonly name: "InsufficientBalance";
|
|
1266
|
+
readonly inputs: readonly [{
|
|
1267
|
+
readonly name: "safe";
|
|
1268
|
+
readonly type: "address";
|
|
1269
|
+
readonly internalType: "address";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly name: "token";
|
|
1272
|
+
readonly type: "address";
|
|
1273
|
+
readonly internalType: "address";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly name: "balance";
|
|
1276
|
+
readonly type: "uint256";
|
|
1277
|
+
readonly internalType: "uint256";
|
|
1278
|
+
}];
|
|
1279
|
+
}, {
|
|
1280
|
+
readonly type: "error";
|
|
1281
|
+
readonly name: "InvalidProof";
|
|
1282
|
+
readonly inputs: readonly [];
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly type: "error";
|
|
1285
|
+
readonly name: "NotAuthorizedToSpend";
|
|
1286
|
+
readonly inputs: readonly [{
|
|
1287
|
+
readonly name: "sender";
|
|
1288
|
+
readonly type: "address";
|
|
1289
|
+
readonly internalType: "address";
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly name: "token";
|
|
1292
|
+
readonly type: "address";
|
|
1293
|
+
readonly internalType: "address";
|
|
1294
|
+
}];
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "error";
|
|
1297
|
+
readonly name: "OwnableInvalidOwner";
|
|
1298
|
+
readonly inputs: readonly [{
|
|
1299
|
+
readonly name: "owner";
|
|
1300
|
+
readonly type: "address";
|
|
1301
|
+
readonly internalType: "address";
|
|
1302
|
+
}];
|
|
1303
|
+
}, {
|
|
1304
|
+
readonly type: "error";
|
|
1305
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
1306
|
+
readonly inputs: readonly [{
|
|
1307
|
+
readonly name: "account";
|
|
1308
|
+
readonly type: "address";
|
|
1309
|
+
readonly internalType: "address";
|
|
1310
|
+
}];
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly type: "error";
|
|
1313
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
1314
|
+
readonly inputs: readonly [{
|
|
1315
|
+
readonly name: "token";
|
|
1316
|
+
readonly type: "address";
|
|
1317
|
+
readonly internalType: "address";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "delegate";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
readonly internalType: "address";
|
|
1322
|
+
}];
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly type: "error";
|
|
1325
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
1326
|
+
readonly inputs: readonly [{
|
|
1327
|
+
readonly name: "tokenCreatorRoot";
|
|
1328
|
+
readonly type: "bytes32";
|
|
1329
|
+
readonly internalType: "bytes32";
|
|
1330
|
+
}];
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly type: "error";
|
|
1333
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
1334
|
+
readonly inputs: readonly [];
|
|
1335
|
+
}, {
|
|
1336
|
+
readonly type: "error";
|
|
1337
|
+
readonly name: "Unauthorized";
|
|
1338
|
+
readonly inputs: readonly [{
|
|
1339
|
+
readonly name: "unauthorized";
|
|
1340
|
+
readonly type: "address";
|
|
1341
|
+
readonly internalType: "address";
|
|
1342
|
+
}];
|
|
1343
|
+
}];
|
|
1344
|
+
functionName: "tokenCreatorTransfer";
|
|
1345
|
+
args: readonly [`0x${string}`, `0x${string}`, `0x${string}`];
|
|
1346
|
+
};
|
|
1347
|
+
/**
|
|
1348
|
+
* Simulate claiming token creator fees.
|
|
1349
|
+
*
|
|
1350
|
+
* @param safe The Safe wallet address holding the fees
|
|
1351
|
+
* @param token The ERC20 token address to transfer
|
|
1352
|
+
* @param recipient The address to receive the fees
|
|
1353
|
+
* @param account Optional account to simulate calling for
|
|
1354
|
+
* @returns The simulated output
|
|
1355
|
+
*/
|
|
1356
|
+
tokenCreatorTransferSimulate({ safe, token, recipient, }: {
|
|
1357
|
+
safe: `0x${string}`;
|
|
1358
|
+
token: `0x${string}`;
|
|
1359
|
+
recipient: `0x${string}`;
|
|
1360
|
+
}, account?: Account): Promise<any>;
|
|
1361
|
+
/**
|
|
1362
|
+
* Claim token creator fees by transferring them from the Safe to a recipient.
|
|
1363
|
+
*
|
|
1364
|
+
* This transfers all accumulated fees for your token to the specified recipient.
|
|
1365
|
+
* Only callable by the authorized creator address for the token.
|
|
1366
|
+
*
|
|
1367
|
+
* Note: Not all Clanker tokens can be sent to the zero address. If you get an error,
|
|
1368
|
+
* consider sending to 0x000000000000000000000000000000000000dEaD instead.
|
|
1369
|
+
*
|
|
1370
|
+
* @param safe The Safe wallet address holding the fees
|
|
1371
|
+
* @param token The ERC20 token address to transfer
|
|
1372
|
+
* @param recipient The address to receive the fees
|
|
1373
|
+
* @returns Transaction hash or error
|
|
1374
|
+
*/
|
|
1375
|
+
tokenCreatorTransfer({ safe, token, recipient, }: {
|
|
1376
|
+
safe: `0x${string}`;
|
|
1377
|
+
token: `0x${string}`;
|
|
1378
|
+
recipient: `0x${string}`;
|
|
1379
|
+
}): Promise<{
|
|
1380
|
+
txHash: `0x${string}`;
|
|
1381
|
+
error: undefined;
|
|
1382
|
+
} | {
|
|
1383
|
+
txHash: undefined;
|
|
1384
|
+
error: ClankerError;
|
|
1385
|
+
}>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Get the stored creator address for a token.
|
|
1388
|
+
*
|
|
1389
|
+
* Returns the address that is authorized to claim fees for this token.
|
|
1390
|
+
* Returns zero address if the token creator has not been initialized yet.
|
|
1391
|
+
*
|
|
1392
|
+
* @param token The token address to check
|
|
1393
|
+
* @returns The creator address for the token
|
|
1394
|
+
*/
|
|
1395
|
+
getTokenCreator({ token }: {
|
|
1396
|
+
token: `0x${string}`;
|
|
1397
|
+
}): Promise<`0x${string}`>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Get the current Merkle root used for verifying token creator proofs.
|
|
1400
|
+
*
|
|
1401
|
+
* This is used internally by the contract to verify initialization proofs.
|
|
1402
|
+
*
|
|
1403
|
+
* @returns The current token creator Merkle root
|
|
1404
|
+
*/
|
|
1405
|
+
getTokenCreatorRoot(): Promise<`0x${string}`>;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Interface for token creator entries in the CSV data
|
|
1409
|
+
*/
|
|
1410
|
+
interface TokenCreatorEntry {
|
|
1411
|
+
tokenAddress: `0x${string}`;
|
|
1412
|
+
currentCreator: `0x${string}`;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Result of merkle proof generation
|
|
1416
|
+
*/
|
|
1417
|
+
interface MerkleProofResult {
|
|
1418
|
+
tokenAddress: `0x${string}`;
|
|
1419
|
+
currentCreator: `0x${string}`;
|
|
1420
|
+
proof: `0x${string}`[];
|
|
1421
|
+
leafHash: `0x${string}`;
|
|
1422
|
+
root: `0x${string}`;
|
|
1423
|
+
index: number;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Build a merkle tree from token-creator entries and get a proof for a specific token.
|
|
1427
|
+
*
|
|
1428
|
+
* @param entries Array of token-creator pairs
|
|
1429
|
+
* @param targetToken The token address to generate a proof for
|
|
1430
|
+
* @returns Merkle proof result or null if token not found
|
|
1431
|
+
*/
|
|
1432
|
+
declare function getTokenCreatorMerkleProof(entries: TokenCreatorEntry[], targetToken: `0x${string}`): MerkleProofResult | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* Parse CSV content into token-creator entries.
|
|
1435
|
+
*
|
|
1436
|
+
* @param csvContent CSV string with columns: tokenAddress,currentCreator
|
|
1437
|
+
* @returns Array of token-creator entries
|
|
1438
|
+
*/
|
|
1439
|
+
declare function parseTokenCreatorCSV(csvContent: string): TokenCreatorEntry[];
|
|
1440
|
+
/**
|
|
1441
|
+
* Get the expected merkle root for the current dataset.
|
|
1442
|
+
* This is the root that should be set in the contract.
|
|
1443
|
+
*/
|
|
1444
|
+
declare const EXPECTED_MERKLE_ROOT: "0xa7dcc91a2136ef1b3c708dbab901cbeb075f6df5cf5987494fedc340c57f7025";
|
|
1445
|
+
/**
|
|
1446
|
+
* Get a transaction config for initializing token creator ownership.
|
|
1447
|
+
*
|
|
1448
|
+
* @param token The token address to initialize a creator for
|
|
1449
|
+
* @param newCreator The address to set as the creator for this token
|
|
1450
|
+
* @param proof The Merkle proof demonstrating authorization
|
|
1451
|
+
* @returns Transaction config
|
|
1452
|
+
*/
|
|
1453
|
+
declare function getInitializeTokenCreatorTransaction({ token, newCreator, proof, }: {
|
|
1454
|
+
token: `0x${string}`;
|
|
1455
|
+
newCreator: `0x${string}`;
|
|
1456
|
+
proof: `0x${string}`[];
|
|
1457
|
+
}): {
|
|
1458
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
1459
|
+
abi: readonly [{
|
|
1460
|
+
readonly type: "constructor";
|
|
1461
|
+
readonly inputs: readonly [{
|
|
1462
|
+
readonly name: "owner_";
|
|
1463
|
+
readonly type: "address";
|
|
1464
|
+
readonly internalType: "address";
|
|
1465
|
+
}, {
|
|
1466
|
+
readonly name: "teamSpender_";
|
|
1467
|
+
readonly type: "address";
|
|
1468
|
+
readonly internalType: "address";
|
|
1469
|
+
}, {
|
|
1470
|
+
readonly name: "teamGrantedTokens_";
|
|
1471
|
+
readonly type: "address[]";
|
|
1472
|
+
readonly internalType: "address[]";
|
|
1473
|
+
}];
|
|
1474
|
+
readonly stateMutability: "nonpayable";
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly type: "function";
|
|
1477
|
+
readonly name: "initializeTokenCreator";
|
|
1478
|
+
readonly inputs: readonly [{
|
|
1479
|
+
readonly name: "token";
|
|
1480
|
+
readonly type: "address";
|
|
1481
|
+
readonly internalType: "address";
|
|
1482
|
+
}, {
|
|
1483
|
+
readonly name: "newCreator";
|
|
1484
|
+
readonly type: "address";
|
|
1485
|
+
readonly internalType: "address";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly name: "proof";
|
|
1488
|
+
readonly type: "bytes32[]";
|
|
1489
|
+
readonly internalType: "bytes32[]";
|
|
1490
|
+
}];
|
|
1491
|
+
readonly outputs: readonly [];
|
|
1492
|
+
readonly stateMutability: "nonpayable";
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly type: "function";
|
|
1495
|
+
readonly name: "owner";
|
|
1496
|
+
readonly inputs: readonly [];
|
|
1497
|
+
readonly outputs: readonly [{
|
|
1498
|
+
readonly name: "";
|
|
1499
|
+
readonly type: "address";
|
|
1500
|
+
readonly internalType: "address";
|
|
1501
|
+
}];
|
|
1502
|
+
readonly stateMutability: "view";
|
|
1503
|
+
}, {
|
|
1504
|
+
readonly type: "function";
|
|
1505
|
+
readonly name: "renounceOwnership";
|
|
1506
|
+
readonly inputs: readonly [];
|
|
1507
|
+
readonly outputs: readonly [];
|
|
1508
|
+
readonly stateMutability: "nonpayable";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly type: "function";
|
|
1511
|
+
readonly name: "setTeamSpender";
|
|
1512
|
+
readonly inputs: readonly [{
|
|
1513
|
+
readonly name: "teamSpender_";
|
|
1514
|
+
readonly type: "address";
|
|
1515
|
+
readonly internalType: "address";
|
|
1516
|
+
}];
|
|
1517
|
+
readonly outputs: readonly [];
|
|
1518
|
+
readonly stateMutability: "nonpayable";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly type: "function";
|
|
1521
|
+
readonly name: "setTokenCreatorRoot";
|
|
1522
|
+
readonly inputs: readonly [{
|
|
1523
|
+
readonly name: "tokenCreatorRoot_";
|
|
1524
|
+
readonly type: "bytes32";
|
|
1525
|
+
readonly internalType: "bytes32";
|
|
1526
|
+
}];
|
|
1527
|
+
readonly outputs: readonly [];
|
|
1528
|
+
readonly stateMutability: "nonpayable";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly type: "function";
|
|
1531
|
+
readonly name: "teamGrantedTokens";
|
|
1532
|
+
readonly inputs: readonly [{
|
|
1533
|
+
readonly name: "";
|
|
1534
|
+
readonly type: "uint256";
|
|
1535
|
+
readonly internalType: "uint256";
|
|
1536
|
+
}];
|
|
1537
|
+
readonly outputs: readonly [{
|
|
1538
|
+
readonly name: "";
|
|
1539
|
+
readonly type: "address";
|
|
1540
|
+
readonly internalType: "address";
|
|
1541
|
+
}];
|
|
1542
|
+
readonly stateMutability: "view";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly type: "function";
|
|
1545
|
+
readonly name: "teamGrantedTokensMap";
|
|
1546
|
+
readonly inputs: readonly [{
|
|
1547
|
+
readonly name: "token";
|
|
1548
|
+
readonly type: "address";
|
|
1549
|
+
readonly internalType: "address";
|
|
1550
|
+
}];
|
|
1551
|
+
readonly outputs: readonly [{
|
|
1552
|
+
readonly name: "teamGranted";
|
|
1553
|
+
readonly type: "bool";
|
|
1554
|
+
readonly internalType: "bool";
|
|
1555
|
+
}];
|
|
1556
|
+
readonly stateMutability: "view";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly type: "function";
|
|
1559
|
+
readonly name: "teamSpender";
|
|
1560
|
+
readonly inputs: readonly [];
|
|
1561
|
+
readonly outputs: readonly [{
|
|
1562
|
+
readonly name: "";
|
|
1563
|
+
readonly type: "address";
|
|
1564
|
+
readonly internalType: "address";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly stateMutability: "view";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly type: "function";
|
|
1569
|
+
readonly name: "teamTransfer";
|
|
1570
|
+
readonly inputs: readonly [{
|
|
1571
|
+
readonly name: "safe";
|
|
1572
|
+
readonly type: "address";
|
|
1573
|
+
readonly internalType: "address";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "token";
|
|
1576
|
+
readonly type: "address";
|
|
1577
|
+
readonly internalType: "address";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly name: "recipient";
|
|
1580
|
+
readonly type: "address";
|
|
1581
|
+
readonly internalType: "address";
|
|
1582
|
+
}, {
|
|
1583
|
+
readonly name: "amount";
|
|
1584
|
+
readonly type: "uint256";
|
|
1585
|
+
readonly internalType: "uint256";
|
|
1586
|
+
}];
|
|
1587
|
+
readonly outputs: readonly [];
|
|
1588
|
+
readonly stateMutability: "nonpayable";
|
|
1589
|
+
}, {
|
|
1590
|
+
readonly type: "function";
|
|
1591
|
+
readonly name: "teamTransferEth";
|
|
1592
|
+
readonly inputs: readonly [{
|
|
1593
|
+
readonly name: "safe";
|
|
1594
|
+
readonly type: "address";
|
|
1595
|
+
readonly internalType: "address";
|
|
1596
|
+
}];
|
|
1597
|
+
readonly outputs: readonly [];
|
|
1598
|
+
readonly stateMutability: "nonpayable";
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly type: "function";
|
|
1601
|
+
readonly name: "tokenCreator";
|
|
1602
|
+
readonly inputs: readonly [{
|
|
1603
|
+
readonly name: "token";
|
|
1604
|
+
readonly type: "address";
|
|
1605
|
+
readonly internalType: "address";
|
|
1606
|
+
}];
|
|
1607
|
+
readonly outputs: readonly [{
|
|
1608
|
+
readonly name: "creator";
|
|
1609
|
+
readonly type: "address";
|
|
1610
|
+
readonly internalType: "address";
|
|
1611
|
+
}];
|
|
1612
|
+
readonly stateMutability: "view";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly type: "function";
|
|
1615
|
+
readonly name: "tokenCreatorRoot";
|
|
1616
|
+
readonly inputs: readonly [];
|
|
1617
|
+
readonly outputs: readonly [{
|
|
1618
|
+
readonly name: "";
|
|
1619
|
+
readonly type: "bytes32";
|
|
1620
|
+
readonly internalType: "bytes32";
|
|
1621
|
+
}];
|
|
1622
|
+
readonly stateMutability: "view";
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly type: "function";
|
|
1625
|
+
readonly name: "tokenCreatorTransfer";
|
|
1626
|
+
readonly inputs: readonly [{
|
|
1627
|
+
readonly name: "safe";
|
|
1628
|
+
readonly type: "address";
|
|
1629
|
+
readonly internalType: "address";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "token";
|
|
1632
|
+
readonly type: "address";
|
|
1633
|
+
readonly internalType: "address";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly name: "recipient";
|
|
1636
|
+
readonly type: "address";
|
|
1637
|
+
readonly internalType: "address";
|
|
1638
|
+
}];
|
|
1639
|
+
readonly outputs: readonly [];
|
|
1640
|
+
readonly stateMutability: "nonpayable";
|
|
1641
|
+
}, {
|
|
1642
|
+
readonly type: "function";
|
|
1643
|
+
readonly name: "transferOwnership";
|
|
1644
|
+
readonly inputs: readonly [{
|
|
1645
|
+
readonly name: "newOwner";
|
|
1646
|
+
readonly type: "address";
|
|
1647
|
+
readonly internalType: "address";
|
|
1648
|
+
}];
|
|
1649
|
+
readonly outputs: readonly [];
|
|
1650
|
+
readonly stateMutability: "nonpayable";
|
|
1651
|
+
}, {
|
|
1652
|
+
readonly type: "function";
|
|
1653
|
+
readonly name: "updateTokenCreator";
|
|
1654
|
+
readonly inputs: readonly [{
|
|
1655
|
+
readonly name: "token";
|
|
1656
|
+
readonly type: "address";
|
|
1657
|
+
readonly internalType: "address";
|
|
1658
|
+
}, {
|
|
1659
|
+
readonly name: "newCreator";
|
|
1660
|
+
readonly type: "address";
|
|
1661
|
+
readonly internalType: "address";
|
|
1662
|
+
}];
|
|
1663
|
+
readonly outputs: readonly [];
|
|
1664
|
+
readonly stateMutability: "nonpayable";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly type: "event";
|
|
1667
|
+
readonly name: "InitializeTokenCreator";
|
|
1668
|
+
readonly inputs: readonly [{
|
|
1669
|
+
readonly name: "token";
|
|
1670
|
+
readonly type: "address";
|
|
1671
|
+
readonly indexed: false;
|
|
1672
|
+
readonly internalType: "address";
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly name: "initializer";
|
|
1675
|
+
readonly type: "address";
|
|
1676
|
+
readonly indexed: false;
|
|
1677
|
+
readonly internalType: "address";
|
|
1678
|
+
}, {
|
|
1679
|
+
readonly name: "creator";
|
|
1680
|
+
readonly type: "address";
|
|
1681
|
+
readonly indexed: false;
|
|
1682
|
+
readonly internalType: "address";
|
|
1683
|
+
}];
|
|
1684
|
+
readonly anonymous: false;
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly type: "event";
|
|
1687
|
+
readonly name: "OwnershipTransferred";
|
|
1688
|
+
readonly inputs: readonly [{
|
|
1689
|
+
readonly name: "previousOwner";
|
|
1690
|
+
readonly type: "address";
|
|
1691
|
+
readonly indexed: true;
|
|
1692
|
+
readonly internalType: "address";
|
|
1693
|
+
}, {
|
|
1694
|
+
readonly name: "newOwner";
|
|
1695
|
+
readonly type: "address";
|
|
1696
|
+
readonly indexed: true;
|
|
1697
|
+
readonly internalType: "address";
|
|
1698
|
+
}];
|
|
1699
|
+
readonly anonymous: false;
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly type: "event";
|
|
1702
|
+
readonly name: "SetTeamSpender";
|
|
1703
|
+
readonly inputs: readonly [{
|
|
1704
|
+
readonly name: "previousTeamSpender";
|
|
1705
|
+
readonly type: "address";
|
|
1706
|
+
readonly indexed: true;
|
|
1707
|
+
readonly internalType: "address";
|
|
1708
|
+
}, {
|
|
1709
|
+
readonly name: "newTeamSpender";
|
|
1710
|
+
readonly type: "address";
|
|
1711
|
+
readonly indexed: true;
|
|
1712
|
+
readonly internalType: "address";
|
|
1713
|
+
}];
|
|
1714
|
+
readonly anonymous: false;
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly type: "event";
|
|
1717
|
+
readonly name: "SetTokenCreatorRoot";
|
|
1718
|
+
readonly inputs: readonly [{
|
|
1719
|
+
readonly name: "tokenCreatorRoot";
|
|
1720
|
+
readonly type: "bytes32";
|
|
1721
|
+
readonly indexed: false;
|
|
1722
|
+
readonly internalType: "bytes32";
|
|
1723
|
+
}];
|
|
1724
|
+
readonly anonymous: false;
|
|
1725
|
+
}, {
|
|
1726
|
+
readonly type: "event";
|
|
1727
|
+
readonly name: "Transfer";
|
|
1728
|
+
readonly inputs: readonly [{
|
|
1729
|
+
readonly name: "safe";
|
|
1730
|
+
readonly type: "address";
|
|
1731
|
+
readonly indexed: true;
|
|
1732
|
+
readonly internalType: "address";
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly name: "token";
|
|
1735
|
+
readonly type: "address";
|
|
1736
|
+
readonly indexed: true;
|
|
1737
|
+
readonly internalType: "address";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "amount";
|
|
1740
|
+
readonly type: "uint256";
|
|
1741
|
+
readonly indexed: false;
|
|
1742
|
+
readonly internalType: "uint256";
|
|
1743
|
+
}, {
|
|
1744
|
+
readonly name: "spender";
|
|
1745
|
+
readonly type: "address";
|
|
1746
|
+
readonly indexed: false;
|
|
1747
|
+
readonly internalType: "address";
|
|
1748
|
+
}, {
|
|
1749
|
+
readonly name: "recipient";
|
|
1750
|
+
readonly type: "address";
|
|
1751
|
+
readonly indexed: true;
|
|
1752
|
+
readonly internalType: "address";
|
|
1753
|
+
}];
|
|
1754
|
+
readonly anonymous: false;
|
|
1755
|
+
}, {
|
|
1756
|
+
readonly type: "event";
|
|
1757
|
+
readonly name: "UpdateTokenCreator";
|
|
1758
|
+
readonly inputs: readonly [{
|
|
1759
|
+
readonly name: "token";
|
|
1760
|
+
readonly type: "address";
|
|
1761
|
+
readonly indexed: false;
|
|
1762
|
+
readonly internalType: "address";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly name: "previousCreator";
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
readonly indexed: false;
|
|
1767
|
+
readonly internalType: "address";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "newCreator";
|
|
1770
|
+
readonly type: "address";
|
|
1771
|
+
readonly indexed: false;
|
|
1772
|
+
readonly internalType: "address";
|
|
1773
|
+
}];
|
|
1774
|
+
readonly anonymous: false;
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly type: "error";
|
|
1777
|
+
readonly name: "InsufficientBalance";
|
|
1778
|
+
readonly inputs: readonly [{
|
|
1779
|
+
readonly name: "safe";
|
|
1780
|
+
readonly type: "address";
|
|
1781
|
+
readonly internalType: "address";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly name: "token";
|
|
1784
|
+
readonly type: "address";
|
|
1785
|
+
readonly internalType: "address";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly name: "balance";
|
|
1788
|
+
readonly type: "uint256";
|
|
1789
|
+
readonly internalType: "uint256";
|
|
1790
|
+
}];
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly type: "error";
|
|
1793
|
+
readonly name: "InvalidProof";
|
|
1794
|
+
readonly inputs: readonly [];
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly type: "error";
|
|
1797
|
+
readonly name: "NotAuthorizedToSpend";
|
|
1798
|
+
readonly inputs: readonly [{
|
|
1799
|
+
readonly name: "sender";
|
|
1800
|
+
readonly type: "address";
|
|
1801
|
+
readonly internalType: "address";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly name: "token";
|
|
1804
|
+
readonly type: "address";
|
|
1805
|
+
readonly internalType: "address";
|
|
1806
|
+
}];
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly type: "error";
|
|
1809
|
+
readonly name: "OwnableInvalidOwner";
|
|
1810
|
+
readonly inputs: readonly [{
|
|
1811
|
+
readonly name: "owner";
|
|
1812
|
+
readonly type: "address";
|
|
1813
|
+
readonly internalType: "address";
|
|
1814
|
+
}];
|
|
1815
|
+
}, {
|
|
1816
|
+
readonly type: "error";
|
|
1817
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
1818
|
+
readonly inputs: readonly [{
|
|
1819
|
+
readonly name: "account";
|
|
1820
|
+
readonly type: "address";
|
|
1821
|
+
readonly internalType: "address";
|
|
1822
|
+
}];
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly type: "error";
|
|
1825
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
1826
|
+
readonly inputs: readonly [{
|
|
1827
|
+
readonly name: "token";
|
|
1828
|
+
readonly type: "address";
|
|
1829
|
+
readonly internalType: "address";
|
|
1830
|
+
}, {
|
|
1831
|
+
readonly name: "delegate";
|
|
1832
|
+
readonly type: "address";
|
|
1833
|
+
readonly internalType: "address";
|
|
1834
|
+
}];
|
|
1835
|
+
}, {
|
|
1836
|
+
readonly type: "error";
|
|
1837
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
1838
|
+
readonly inputs: readonly [{
|
|
1839
|
+
readonly name: "tokenCreatorRoot";
|
|
1840
|
+
readonly type: "bytes32";
|
|
1841
|
+
readonly internalType: "bytes32";
|
|
1842
|
+
}];
|
|
1843
|
+
}, {
|
|
1844
|
+
readonly type: "error";
|
|
1845
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
1846
|
+
readonly inputs: readonly [];
|
|
1847
|
+
}, {
|
|
1848
|
+
readonly type: "error";
|
|
1849
|
+
readonly name: "Unauthorized";
|
|
1850
|
+
readonly inputs: readonly [{
|
|
1851
|
+
readonly name: "unauthorized";
|
|
1852
|
+
readonly type: "address";
|
|
1853
|
+
readonly internalType: "address";
|
|
1854
|
+
}];
|
|
1855
|
+
}];
|
|
1856
|
+
functionName: "initializeTokenCreator";
|
|
1857
|
+
args: readonly [`0x${string}`, `0x${string}`, `0x${string}`[]];
|
|
1858
|
+
};
|
|
1859
|
+
/**
|
|
1860
|
+
* Get a transaction config for updating the token creator admin address.
|
|
1861
|
+
*
|
|
1862
|
+
* @param token The token address to update the creator for
|
|
1863
|
+
* @param newCreator The new creator/admin address
|
|
1864
|
+
* @returns Transaction config
|
|
1865
|
+
*/
|
|
1866
|
+
declare function getUpdateTokenCreatorTransaction({ token, newCreator, }: {
|
|
1867
|
+
token: `0x${string}`;
|
|
1868
|
+
newCreator: `0x${string}`;
|
|
1869
|
+
}): {
|
|
1870
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
1871
|
+
abi: readonly [{
|
|
1872
|
+
readonly type: "constructor";
|
|
1873
|
+
readonly inputs: readonly [{
|
|
1874
|
+
readonly name: "owner_";
|
|
1875
|
+
readonly type: "address";
|
|
1876
|
+
readonly internalType: "address";
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly name: "teamSpender_";
|
|
1879
|
+
readonly type: "address";
|
|
1880
|
+
readonly internalType: "address";
|
|
1881
|
+
}, {
|
|
1882
|
+
readonly name: "teamGrantedTokens_";
|
|
1883
|
+
readonly type: "address[]";
|
|
1884
|
+
readonly internalType: "address[]";
|
|
1885
|
+
}];
|
|
1886
|
+
readonly stateMutability: "nonpayable";
|
|
1887
|
+
}, {
|
|
1888
|
+
readonly type: "function";
|
|
1889
|
+
readonly name: "initializeTokenCreator";
|
|
1890
|
+
readonly inputs: readonly [{
|
|
1891
|
+
readonly name: "token";
|
|
1892
|
+
readonly type: "address";
|
|
1893
|
+
readonly internalType: "address";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly name: "newCreator";
|
|
1896
|
+
readonly type: "address";
|
|
1897
|
+
readonly internalType: "address";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly name: "proof";
|
|
1900
|
+
readonly type: "bytes32[]";
|
|
1901
|
+
readonly internalType: "bytes32[]";
|
|
1902
|
+
}];
|
|
1903
|
+
readonly outputs: readonly [];
|
|
1904
|
+
readonly stateMutability: "nonpayable";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly type: "function";
|
|
1907
|
+
readonly name: "owner";
|
|
1908
|
+
readonly inputs: readonly [];
|
|
1909
|
+
readonly outputs: readonly [{
|
|
1910
|
+
readonly name: "";
|
|
1911
|
+
readonly type: "address";
|
|
1912
|
+
readonly internalType: "address";
|
|
1913
|
+
}];
|
|
1914
|
+
readonly stateMutability: "view";
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly type: "function";
|
|
1917
|
+
readonly name: "renounceOwnership";
|
|
1918
|
+
readonly inputs: readonly [];
|
|
1919
|
+
readonly outputs: readonly [];
|
|
1920
|
+
readonly stateMutability: "nonpayable";
|
|
1921
|
+
}, {
|
|
1922
|
+
readonly type: "function";
|
|
1923
|
+
readonly name: "setTeamSpender";
|
|
1924
|
+
readonly inputs: readonly [{
|
|
1925
|
+
readonly name: "teamSpender_";
|
|
1926
|
+
readonly type: "address";
|
|
1927
|
+
readonly internalType: "address";
|
|
1928
|
+
}];
|
|
1929
|
+
readonly outputs: readonly [];
|
|
1930
|
+
readonly stateMutability: "nonpayable";
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly type: "function";
|
|
1933
|
+
readonly name: "setTokenCreatorRoot";
|
|
1934
|
+
readonly inputs: readonly [{
|
|
1935
|
+
readonly name: "tokenCreatorRoot_";
|
|
1936
|
+
readonly type: "bytes32";
|
|
1937
|
+
readonly internalType: "bytes32";
|
|
1938
|
+
}];
|
|
1939
|
+
readonly outputs: readonly [];
|
|
1940
|
+
readonly stateMutability: "nonpayable";
|
|
1941
|
+
}, {
|
|
1942
|
+
readonly type: "function";
|
|
1943
|
+
readonly name: "teamGrantedTokens";
|
|
1944
|
+
readonly inputs: readonly [{
|
|
1945
|
+
readonly name: "";
|
|
1946
|
+
readonly type: "uint256";
|
|
1947
|
+
readonly internalType: "uint256";
|
|
1948
|
+
}];
|
|
1949
|
+
readonly outputs: readonly [{
|
|
1950
|
+
readonly name: "";
|
|
1951
|
+
readonly type: "address";
|
|
1952
|
+
readonly internalType: "address";
|
|
1953
|
+
}];
|
|
1954
|
+
readonly stateMutability: "view";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly type: "function";
|
|
1957
|
+
readonly name: "teamGrantedTokensMap";
|
|
1958
|
+
readonly inputs: readonly [{
|
|
1959
|
+
readonly name: "token";
|
|
1960
|
+
readonly type: "address";
|
|
1961
|
+
readonly internalType: "address";
|
|
1962
|
+
}];
|
|
1963
|
+
readonly outputs: readonly [{
|
|
1964
|
+
readonly name: "teamGranted";
|
|
1965
|
+
readonly type: "bool";
|
|
1966
|
+
readonly internalType: "bool";
|
|
1967
|
+
}];
|
|
1968
|
+
readonly stateMutability: "view";
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly type: "function";
|
|
1971
|
+
readonly name: "teamSpender";
|
|
1972
|
+
readonly inputs: readonly [];
|
|
1973
|
+
readonly outputs: readonly [{
|
|
1974
|
+
readonly name: "";
|
|
1975
|
+
readonly type: "address";
|
|
1976
|
+
readonly internalType: "address";
|
|
1977
|
+
}];
|
|
1978
|
+
readonly stateMutability: "view";
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "function";
|
|
1981
|
+
readonly name: "teamTransfer";
|
|
1982
|
+
readonly inputs: readonly [{
|
|
1983
|
+
readonly name: "safe";
|
|
1984
|
+
readonly type: "address";
|
|
1985
|
+
readonly internalType: "address";
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly name: "token";
|
|
1988
|
+
readonly type: "address";
|
|
1989
|
+
readonly internalType: "address";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "recipient";
|
|
1992
|
+
readonly type: "address";
|
|
1993
|
+
readonly internalType: "address";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly name: "amount";
|
|
1996
|
+
readonly type: "uint256";
|
|
1997
|
+
readonly internalType: "uint256";
|
|
1998
|
+
}];
|
|
1999
|
+
readonly outputs: readonly [];
|
|
2000
|
+
readonly stateMutability: "nonpayable";
|
|
2001
|
+
}, {
|
|
2002
|
+
readonly type: "function";
|
|
2003
|
+
readonly name: "teamTransferEth";
|
|
2004
|
+
readonly inputs: readonly [{
|
|
2005
|
+
readonly name: "safe";
|
|
2006
|
+
readonly type: "address";
|
|
2007
|
+
readonly internalType: "address";
|
|
2008
|
+
}];
|
|
2009
|
+
readonly outputs: readonly [];
|
|
2010
|
+
readonly stateMutability: "nonpayable";
|
|
2011
|
+
}, {
|
|
2012
|
+
readonly type: "function";
|
|
2013
|
+
readonly name: "tokenCreator";
|
|
2014
|
+
readonly inputs: readonly [{
|
|
2015
|
+
readonly name: "token";
|
|
2016
|
+
readonly type: "address";
|
|
2017
|
+
readonly internalType: "address";
|
|
2018
|
+
}];
|
|
2019
|
+
readonly outputs: readonly [{
|
|
2020
|
+
readonly name: "creator";
|
|
2021
|
+
readonly type: "address";
|
|
2022
|
+
readonly internalType: "address";
|
|
2023
|
+
}];
|
|
2024
|
+
readonly stateMutability: "view";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly type: "function";
|
|
2027
|
+
readonly name: "tokenCreatorRoot";
|
|
2028
|
+
readonly inputs: readonly [];
|
|
2029
|
+
readonly outputs: readonly [{
|
|
2030
|
+
readonly name: "";
|
|
2031
|
+
readonly type: "bytes32";
|
|
2032
|
+
readonly internalType: "bytes32";
|
|
2033
|
+
}];
|
|
2034
|
+
readonly stateMutability: "view";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly type: "function";
|
|
2037
|
+
readonly name: "tokenCreatorTransfer";
|
|
2038
|
+
readonly inputs: readonly [{
|
|
2039
|
+
readonly name: "safe";
|
|
2040
|
+
readonly type: "address";
|
|
2041
|
+
readonly internalType: "address";
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly name: "token";
|
|
2044
|
+
readonly type: "address";
|
|
2045
|
+
readonly internalType: "address";
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly name: "recipient";
|
|
2048
|
+
readonly type: "address";
|
|
2049
|
+
readonly internalType: "address";
|
|
2050
|
+
}];
|
|
2051
|
+
readonly outputs: readonly [];
|
|
2052
|
+
readonly stateMutability: "nonpayable";
|
|
2053
|
+
}, {
|
|
2054
|
+
readonly type: "function";
|
|
2055
|
+
readonly name: "transferOwnership";
|
|
2056
|
+
readonly inputs: readonly [{
|
|
2057
|
+
readonly name: "newOwner";
|
|
2058
|
+
readonly type: "address";
|
|
2059
|
+
readonly internalType: "address";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly outputs: readonly [];
|
|
2062
|
+
readonly stateMutability: "nonpayable";
|
|
2063
|
+
}, {
|
|
2064
|
+
readonly type: "function";
|
|
2065
|
+
readonly name: "updateTokenCreator";
|
|
2066
|
+
readonly inputs: readonly [{
|
|
2067
|
+
readonly name: "token";
|
|
2068
|
+
readonly type: "address";
|
|
2069
|
+
readonly internalType: "address";
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly name: "newCreator";
|
|
2072
|
+
readonly type: "address";
|
|
2073
|
+
readonly internalType: "address";
|
|
2074
|
+
}];
|
|
2075
|
+
readonly outputs: readonly [];
|
|
2076
|
+
readonly stateMutability: "nonpayable";
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly type: "event";
|
|
2079
|
+
readonly name: "InitializeTokenCreator";
|
|
2080
|
+
readonly inputs: readonly [{
|
|
2081
|
+
readonly name: "token";
|
|
2082
|
+
readonly type: "address";
|
|
2083
|
+
readonly indexed: false;
|
|
2084
|
+
readonly internalType: "address";
|
|
2085
|
+
}, {
|
|
2086
|
+
readonly name: "initializer";
|
|
2087
|
+
readonly type: "address";
|
|
2088
|
+
readonly indexed: false;
|
|
2089
|
+
readonly internalType: "address";
|
|
2090
|
+
}, {
|
|
2091
|
+
readonly name: "creator";
|
|
2092
|
+
readonly type: "address";
|
|
2093
|
+
readonly indexed: false;
|
|
2094
|
+
readonly internalType: "address";
|
|
2095
|
+
}];
|
|
2096
|
+
readonly anonymous: false;
|
|
2097
|
+
}, {
|
|
2098
|
+
readonly type: "event";
|
|
2099
|
+
readonly name: "OwnershipTransferred";
|
|
2100
|
+
readonly inputs: readonly [{
|
|
2101
|
+
readonly name: "previousOwner";
|
|
2102
|
+
readonly type: "address";
|
|
2103
|
+
readonly indexed: true;
|
|
2104
|
+
readonly internalType: "address";
|
|
2105
|
+
}, {
|
|
2106
|
+
readonly name: "newOwner";
|
|
2107
|
+
readonly type: "address";
|
|
2108
|
+
readonly indexed: true;
|
|
2109
|
+
readonly internalType: "address";
|
|
2110
|
+
}];
|
|
2111
|
+
readonly anonymous: false;
|
|
2112
|
+
}, {
|
|
2113
|
+
readonly type: "event";
|
|
2114
|
+
readonly name: "SetTeamSpender";
|
|
2115
|
+
readonly inputs: readonly [{
|
|
2116
|
+
readonly name: "previousTeamSpender";
|
|
2117
|
+
readonly type: "address";
|
|
2118
|
+
readonly indexed: true;
|
|
2119
|
+
readonly internalType: "address";
|
|
2120
|
+
}, {
|
|
2121
|
+
readonly name: "newTeamSpender";
|
|
2122
|
+
readonly type: "address";
|
|
2123
|
+
readonly indexed: true;
|
|
2124
|
+
readonly internalType: "address";
|
|
2125
|
+
}];
|
|
2126
|
+
readonly anonymous: false;
|
|
2127
|
+
}, {
|
|
2128
|
+
readonly type: "event";
|
|
2129
|
+
readonly name: "SetTokenCreatorRoot";
|
|
2130
|
+
readonly inputs: readonly [{
|
|
2131
|
+
readonly name: "tokenCreatorRoot";
|
|
2132
|
+
readonly type: "bytes32";
|
|
2133
|
+
readonly indexed: false;
|
|
2134
|
+
readonly internalType: "bytes32";
|
|
2135
|
+
}];
|
|
2136
|
+
readonly anonymous: false;
|
|
2137
|
+
}, {
|
|
2138
|
+
readonly type: "event";
|
|
2139
|
+
readonly name: "Transfer";
|
|
2140
|
+
readonly inputs: readonly [{
|
|
2141
|
+
readonly name: "safe";
|
|
2142
|
+
readonly type: "address";
|
|
2143
|
+
readonly indexed: true;
|
|
2144
|
+
readonly internalType: "address";
|
|
2145
|
+
}, {
|
|
2146
|
+
readonly name: "token";
|
|
2147
|
+
readonly type: "address";
|
|
2148
|
+
readonly indexed: true;
|
|
2149
|
+
readonly internalType: "address";
|
|
2150
|
+
}, {
|
|
2151
|
+
readonly name: "amount";
|
|
2152
|
+
readonly type: "uint256";
|
|
2153
|
+
readonly indexed: false;
|
|
2154
|
+
readonly internalType: "uint256";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly name: "spender";
|
|
2157
|
+
readonly type: "address";
|
|
2158
|
+
readonly indexed: false;
|
|
2159
|
+
readonly internalType: "address";
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly name: "recipient";
|
|
2162
|
+
readonly type: "address";
|
|
2163
|
+
readonly indexed: true;
|
|
2164
|
+
readonly internalType: "address";
|
|
2165
|
+
}];
|
|
2166
|
+
readonly anonymous: false;
|
|
2167
|
+
}, {
|
|
2168
|
+
readonly type: "event";
|
|
2169
|
+
readonly name: "UpdateTokenCreator";
|
|
2170
|
+
readonly inputs: readonly [{
|
|
2171
|
+
readonly name: "token";
|
|
2172
|
+
readonly type: "address";
|
|
2173
|
+
readonly indexed: false;
|
|
2174
|
+
readonly internalType: "address";
|
|
2175
|
+
}, {
|
|
2176
|
+
readonly name: "previousCreator";
|
|
2177
|
+
readonly type: "address";
|
|
2178
|
+
readonly indexed: false;
|
|
2179
|
+
readonly internalType: "address";
|
|
2180
|
+
}, {
|
|
2181
|
+
readonly name: "newCreator";
|
|
2182
|
+
readonly type: "address";
|
|
2183
|
+
readonly indexed: false;
|
|
2184
|
+
readonly internalType: "address";
|
|
2185
|
+
}];
|
|
2186
|
+
readonly anonymous: false;
|
|
2187
|
+
}, {
|
|
2188
|
+
readonly type: "error";
|
|
2189
|
+
readonly name: "InsufficientBalance";
|
|
2190
|
+
readonly inputs: readonly [{
|
|
2191
|
+
readonly name: "safe";
|
|
2192
|
+
readonly type: "address";
|
|
2193
|
+
readonly internalType: "address";
|
|
2194
|
+
}, {
|
|
2195
|
+
readonly name: "token";
|
|
2196
|
+
readonly type: "address";
|
|
2197
|
+
readonly internalType: "address";
|
|
2198
|
+
}, {
|
|
2199
|
+
readonly name: "balance";
|
|
2200
|
+
readonly type: "uint256";
|
|
2201
|
+
readonly internalType: "uint256";
|
|
2202
|
+
}];
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly type: "error";
|
|
2205
|
+
readonly name: "InvalidProof";
|
|
2206
|
+
readonly inputs: readonly [];
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly type: "error";
|
|
2209
|
+
readonly name: "NotAuthorizedToSpend";
|
|
2210
|
+
readonly inputs: readonly [{
|
|
2211
|
+
readonly name: "sender";
|
|
2212
|
+
readonly type: "address";
|
|
2213
|
+
readonly internalType: "address";
|
|
2214
|
+
}, {
|
|
2215
|
+
readonly name: "token";
|
|
2216
|
+
readonly type: "address";
|
|
2217
|
+
readonly internalType: "address";
|
|
2218
|
+
}];
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly type: "error";
|
|
2221
|
+
readonly name: "OwnableInvalidOwner";
|
|
2222
|
+
readonly inputs: readonly [{
|
|
2223
|
+
readonly name: "owner";
|
|
2224
|
+
readonly type: "address";
|
|
2225
|
+
readonly internalType: "address";
|
|
2226
|
+
}];
|
|
2227
|
+
}, {
|
|
2228
|
+
readonly type: "error";
|
|
2229
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2230
|
+
readonly inputs: readonly [{
|
|
2231
|
+
readonly name: "account";
|
|
2232
|
+
readonly type: "address";
|
|
2233
|
+
readonly internalType: "address";
|
|
2234
|
+
}];
|
|
2235
|
+
}, {
|
|
2236
|
+
readonly type: "error";
|
|
2237
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
2238
|
+
readonly inputs: readonly [{
|
|
2239
|
+
readonly name: "token";
|
|
2240
|
+
readonly type: "address";
|
|
2241
|
+
readonly internalType: "address";
|
|
2242
|
+
}, {
|
|
2243
|
+
readonly name: "delegate";
|
|
2244
|
+
readonly type: "address";
|
|
2245
|
+
readonly internalType: "address";
|
|
2246
|
+
}];
|
|
2247
|
+
}, {
|
|
2248
|
+
readonly type: "error";
|
|
2249
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
2250
|
+
readonly inputs: readonly [{
|
|
2251
|
+
readonly name: "tokenCreatorRoot";
|
|
2252
|
+
readonly type: "bytes32";
|
|
2253
|
+
readonly internalType: "bytes32";
|
|
2254
|
+
}];
|
|
2255
|
+
}, {
|
|
2256
|
+
readonly type: "error";
|
|
2257
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
2258
|
+
readonly inputs: readonly [];
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly type: "error";
|
|
2261
|
+
readonly name: "Unauthorized";
|
|
2262
|
+
readonly inputs: readonly [{
|
|
2263
|
+
readonly name: "unauthorized";
|
|
2264
|
+
readonly type: "address";
|
|
2265
|
+
readonly internalType: "address";
|
|
2266
|
+
}];
|
|
2267
|
+
}];
|
|
2268
|
+
functionName: "updateTokenCreator";
|
|
2269
|
+
args: readonly [`0x${string}`, `0x${string}`];
|
|
2270
|
+
};
|
|
2271
|
+
/**
|
|
2272
|
+
* Get a transaction config for claiming token creator fees.
|
|
2273
|
+
*
|
|
2274
|
+
* @param safe The Safe wallet address holding the fees
|
|
2275
|
+
* @param token The ERC20 token address to transfer
|
|
2276
|
+
* @param recipient The address to receive the fees
|
|
2277
|
+
* @returns Transaction config
|
|
2278
|
+
*/
|
|
2279
|
+
declare function getTokenCreatorTransferTransaction({ safe, token, recipient, }: {
|
|
2280
|
+
safe: `0x${string}`;
|
|
2281
|
+
token: `0x${string}`;
|
|
2282
|
+
recipient: `0x${string}`;
|
|
2283
|
+
}): {
|
|
2284
|
+
address: "0x10F4485d6f90239B72c6A5eaD2F2320993D285E4";
|
|
2285
|
+
abi: readonly [{
|
|
2286
|
+
readonly type: "constructor";
|
|
2287
|
+
readonly inputs: readonly [{
|
|
2288
|
+
readonly name: "owner_";
|
|
2289
|
+
readonly type: "address";
|
|
2290
|
+
readonly internalType: "address";
|
|
2291
|
+
}, {
|
|
2292
|
+
readonly name: "teamSpender_";
|
|
2293
|
+
readonly type: "address";
|
|
2294
|
+
readonly internalType: "address";
|
|
2295
|
+
}, {
|
|
2296
|
+
readonly name: "teamGrantedTokens_";
|
|
2297
|
+
readonly type: "address[]";
|
|
2298
|
+
readonly internalType: "address[]";
|
|
2299
|
+
}];
|
|
2300
|
+
readonly stateMutability: "nonpayable";
|
|
2301
|
+
}, {
|
|
2302
|
+
readonly type: "function";
|
|
2303
|
+
readonly name: "initializeTokenCreator";
|
|
2304
|
+
readonly inputs: readonly [{
|
|
2305
|
+
readonly name: "token";
|
|
2306
|
+
readonly type: "address";
|
|
2307
|
+
readonly internalType: "address";
|
|
2308
|
+
}, {
|
|
2309
|
+
readonly name: "newCreator";
|
|
2310
|
+
readonly type: "address";
|
|
2311
|
+
readonly internalType: "address";
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly name: "proof";
|
|
2314
|
+
readonly type: "bytes32[]";
|
|
2315
|
+
readonly internalType: "bytes32[]";
|
|
2316
|
+
}];
|
|
2317
|
+
readonly outputs: readonly [];
|
|
2318
|
+
readonly stateMutability: "nonpayable";
|
|
2319
|
+
}, {
|
|
2320
|
+
readonly type: "function";
|
|
2321
|
+
readonly name: "owner";
|
|
2322
|
+
readonly inputs: readonly [];
|
|
2323
|
+
readonly outputs: readonly [{
|
|
2324
|
+
readonly name: "";
|
|
2325
|
+
readonly type: "address";
|
|
2326
|
+
readonly internalType: "address";
|
|
2327
|
+
}];
|
|
2328
|
+
readonly stateMutability: "view";
|
|
2329
|
+
}, {
|
|
2330
|
+
readonly type: "function";
|
|
2331
|
+
readonly name: "renounceOwnership";
|
|
2332
|
+
readonly inputs: readonly [];
|
|
2333
|
+
readonly outputs: readonly [];
|
|
2334
|
+
readonly stateMutability: "nonpayable";
|
|
2335
|
+
}, {
|
|
2336
|
+
readonly type: "function";
|
|
2337
|
+
readonly name: "setTeamSpender";
|
|
2338
|
+
readonly inputs: readonly [{
|
|
2339
|
+
readonly name: "teamSpender_";
|
|
2340
|
+
readonly type: "address";
|
|
2341
|
+
readonly internalType: "address";
|
|
2342
|
+
}];
|
|
2343
|
+
readonly outputs: readonly [];
|
|
2344
|
+
readonly stateMutability: "nonpayable";
|
|
2345
|
+
}, {
|
|
2346
|
+
readonly type: "function";
|
|
2347
|
+
readonly name: "setTokenCreatorRoot";
|
|
2348
|
+
readonly inputs: readonly [{
|
|
2349
|
+
readonly name: "tokenCreatorRoot_";
|
|
2350
|
+
readonly type: "bytes32";
|
|
2351
|
+
readonly internalType: "bytes32";
|
|
2352
|
+
}];
|
|
2353
|
+
readonly outputs: readonly [];
|
|
2354
|
+
readonly stateMutability: "nonpayable";
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly type: "function";
|
|
2357
|
+
readonly name: "teamGrantedTokens";
|
|
2358
|
+
readonly inputs: readonly [{
|
|
2359
|
+
readonly name: "";
|
|
2360
|
+
readonly type: "uint256";
|
|
2361
|
+
readonly internalType: "uint256";
|
|
2362
|
+
}];
|
|
2363
|
+
readonly outputs: readonly [{
|
|
2364
|
+
readonly name: "";
|
|
2365
|
+
readonly type: "address";
|
|
2366
|
+
readonly internalType: "address";
|
|
2367
|
+
}];
|
|
2368
|
+
readonly stateMutability: "view";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly type: "function";
|
|
2371
|
+
readonly name: "teamGrantedTokensMap";
|
|
2372
|
+
readonly inputs: readonly [{
|
|
2373
|
+
readonly name: "token";
|
|
2374
|
+
readonly type: "address";
|
|
2375
|
+
readonly internalType: "address";
|
|
2376
|
+
}];
|
|
2377
|
+
readonly outputs: readonly [{
|
|
2378
|
+
readonly name: "teamGranted";
|
|
2379
|
+
readonly type: "bool";
|
|
2380
|
+
readonly internalType: "bool";
|
|
2381
|
+
}];
|
|
2382
|
+
readonly stateMutability: "view";
|
|
2383
|
+
}, {
|
|
2384
|
+
readonly type: "function";
|
|
2385
|
+
readonly name: "teamSpender";
|
|
2386
|
+
readonly inputs: readonly [];
|
|
2387
|
+
readonly outputs: readonly [{
|
|
2388
|
+
readonly name: "";
|
|
2389
|
+
readonly type: "address";
|
|
2390
|
+
readonly internalType: "address";
|
|
2391
|
+
}];
|
|
2392
|
+
readonly stateMutability: "view";
|
|
2393
|
+
}, {
|
|
2394
|
+
readonly type: "function";
|
|
2395
|
+
readonly name: "teamTransfer";
|
|
2396
|
+
readonly inputs: readonly [{
|
|
2397
|
+
readonly name: "safe";
|
|
2398
|
+
readonly type: "address";
|
|
2399
|
+
readonly internalType: "address";
|
|
2400
|
+
}, {
|
|
2401
|
+
readonly name: "token";
|
|
2402
|
+
readonly type: "address";
|
|
2403
|
+
readonly internalType: "address";
|
|
2404
|
+
}, {
|
|
2405
|
+
readonly name: "recipient";
|
|
2406
|
+
readonly type: "address";
|
|
2407
|
+
readonly internalType: "address";
|
|
2408
|
+
}, {
|
|
2409
|
+
readonly name: "amount";
|
|
2410
|
+
readonly type: "uint256";
|
|
2411
|
+
readonly internalType: "uint256";
|
|
2412
|
+
}];
|
|
2413
|
+
readonly outputs: readonly [];
|
|
2414
|
+
readonly stateMutability: "nonpayable";
|
|
2415
|
+
}, {
|
|
2416
|
+
readonly type: "function";
|
|
2417
|
+
readonly name: "teamTransferEth";
|
|
2418
|
+
readonly inputs: readonly [{
|
|
2419
|
+
readonly name: "safe";
|
|
2420
|
+
readonly type: "address";
|
|
2421
|
+
readonly internalType: "address";
|
|
2422
|
+
}];
|
|
2423
|
+
readonly outputs: readonly [];
|
|
2424
|
+
readonly stateMutability: "nonpayable";
|
|
2425
|
+
}, {
|
|
2426
|
+
readonly type: "function";
|
|
2427
|
+
readonly name: "tokenCreator";
|
|
2428
|
+
readonly inputs: readonly [{
|
|
2429
|
+
readonly name: "token";
|
|
2430
|
+
readonly type: "address";
|
|
2431
|
+
readonly internalType: "address";
|
|
2432
|
+
}];
|
|
2433
|
+
readonly outputs: readonly [{
|
|
2434
|
+
readonly name: "creator";
|
|
2435
|
+
readonly type: "address";
|
|
2436
|
+
readonly internalType: "address";
|
|
2437
|
+
}];
|
|
2438
|
+
readonly stateMutability: "view";
|
|
2439
|
+
}, {
|
|
2440
|
+
readonly type: "function";
|
|
2441
|
+
readonly name: "tokenCreatorRoot";
|
|
2442
|
+
readonly inputs: readonly [];
|
|
2443
|
+
readonly outputs: readonly [{
|
|
2444
|
+
readonly name: "";
|
|
2445
|
+
readonly type: "bytes32";
|
|
2446
|
+
readonly internalType: "bytes32";
|
|
2447
|
+
}];
|
|
2448
|
+
readonly stateMutability: "view";
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly type: "function";
|
|
2451
|
+
readonly name: "tokenCreatorTransfer";
|
|
2452
|
+
readonly inputs: readonly [{
|
|
2453
|
+
readonly name: "safe";
|
|
2454
|
+
readonly type: "address";
|
|
2455
|
+
readonly internalType: "address";
|
|
2456
|
+
}, {
|
|
2457
|
+
readonly name: "token";
|
|
2458
|
+
readonly type: "address";
|
|
2459
|
+
readonly internalType: "address";
|
|
2460
|
+
}, {
|
|
2461
|
+
readonly name: "recipient";
|
|
2462
|
+
readonly type: "address";
|
|
2463
|
+
readonly internalType: "address";
|
|
2464
|
+
}];
|
|
2465
|
+
readonly outputs: readonly [];
|
|
2466
|
+
readonly stateMutability: "nonpayable";
|
|
2467
|
+
}, {
|
|
2468
|
+
readonly type: "function";
|
|
2469
|
+
readonly name: "transferOwnership";
|
|
2470
|
+
readonly inputs: readonly [{
|
|
2471
|
+
readonly name: "newOwner";
|
|
2472
|
+
readonly type: "address";
|
|
2473
|
+
readonly internalType: "address";
|
|
2474
|
+
}];
|
|
2475
|
+
readonly outputs: readonly [];
|
|
2476
|
+
readonly stateMutability: "nonpayable";
|
|
2477
|
+
}, {
|
|
2478
|
+
readonly type: "function";
|
|
2479
|
+
readonly name: "updateTokenCreator";
|
|
2480
|
+
readonly inputs: readonly [{
|
|
2481
|
+
readonly name: "token";
|
|
2482
|
+
readonly type: "address";
|
|
2483
|
+
readonly internalType: "address";
|
|
2484
|
+
}, {
|
|
2485
|
+
readonly name: "newCreator";
|
|
2486
|
+
readonly type: "address";
|
|
2487
|
+
readonly internalType: "address";
|
|
2488
|
+
}];
|
|
2489
|
+
readonly outputs: readonly [];
|
|
2490
|
+
readonly stateMutability: "nonpayable";
|
|
2491
|
+
}, {
|
|
2492
|
+
readonly type: "event";
|
|
2493
|
+
readonly name: "InitializeTokenCreator";
|
|
2494
|
+
readonly inputs: readonly [{
|
|
2495
|
+
readonly name: "token";
|
|
2496
|
+
readonly type: "address";
|
|
2497
|
+
readonly indexed: false;
|
|
2498
|
+
readonly internalType: "address";
|
|
2499
|
+
}, {
|
|
2500
|
+
readonly name: "initializer";
|
|
2501
|
+
readonly type: "address";
|
|
2502
|
+
readonly indexed: false;
|
|
2503
|
+
readonly internalType: "address";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly name: "creator";
|
|
2506
|
+
readonly type: "address";
|
|
2507
|
+
readonly indexed: false;
|
|
2508
|
+
readonly internalType: "address";
|
|
2509
|
+
}];
|
|
2510
|
+
readonly anonymous: false;
|
|
2511
|
+
}, {
|
|
2512
|
+
readonly type: "event";
|
|
2513
|
+
readonly name: "OwnershipTransferred";
|
|
2514
|
+
readonly inputs: readonly [{
|
|
2515
|
+
readonly name: "previousOwner";
|
|
2516
|
+
readonly type: "address";
|
|
2517
|
+
readonly indexed: true;
|
|
2518
|
+
readonly internalType: "address";
|
|
2519
|
+
}, {
|
|
2520
|
+
readonly name: "newOwner";
|
|
2521
|
+
readonly type: "address";
|
|
2522
|
+
readonly indexed: true;
|
|
2523
|
+
readonly internalType: "address";
|
|
2524
|
+
}];
|
|
2525
|
+
readonly anonymous: false;
|
|
2526
|
+
}, {
|
|
2527
|
+
readonly type: "event";
|
|
2528
|
+
readonly name: "SetTeamSpender";
|
|
2529
|
+
readonly inputs: readonly [{
|
|
2530
|
+
readonly name: "previousTeamSpender";
|
|
2531
|
+
readonly type: "address";
|
|
2532
|
+
readonly indexed: true;
|
|
2533
|
+
readonly internalType: "address";
|
|
2534
|
+
}, {
|
|
2535
|
+
readonly name: "newTeamSpender";
|
|
2536
|
+
readonly type: "address";
|
|
2537
|
+
readonly indexed: true;
|
|
2538
|
+
readonly internalType: "address";
|
|
2539
|
+
}];
|
|
2540
|
+
readonly anonymous: false;
|
|
2541
|
+
}, {
|
|
2542
|
+
readonly type: "event";
|
|
2543
|
+
readonly name: "SetTokenCreatorRoot";
|
|
2544
|
+
readonly inputs: readonly [{
|
|
2545
|
+
readonly name: "tokenCreatorRoot";
|
|
2546
|
+
readonly type: "bytes32";
|
|
2547
|
+
readonly indexed: false;
|
|
2548
|
+
readonly internalType: "bytes32";
|
|
2549
|
+
}];
|
|
2550
|
+
readonly anonymous: false;
|
|
2551
|
+
}, {
|
|
2552
|
+
readonly type: "event";
|
|
2553
|
+
readonly name: "Transfer";
|
|
2554
|
+
readonly inputs: readonly [{
|
|
2555
|
+
readonly name: "safe";
|
|
2556
|
+
readonly type: "address";
|
|
2557
|
+
readonly indexed: true;
|
|
2558
|
+
readonly internalType: "address";
|
|
2559
|
+
}, {
|
|
2560
|
+
readonly name: "token";
|
|
2561
|
+
readonly type: "address";
|
|
2562
|
+
readonly indexed: true;
|
|
2563
|
+
readonly internalType: "address";
|
|
2564
|
+
}, {
|
|
2565
|
+
readonly name: "amount";
|
|
2566
|
+
readonly type: "uint256";
|
|
2567
|
+
readonly indexed: false;
|
|
2568
|
+
readonly internalType: "uint256";
|
|
2569
|
+
}, {
|
|
2570
|
+
readonly name: "spender";
|
|
2571
|
+
readonly type: "address";
|
|
2572
|
+
readonly indexed: false;
|
|
2573
|
+
readonly internalType: "address";
|
|
2574
|
+
}, {
|
|
2575
|
+
readonly name: "recipient";
|
|
2576
|
+
readonly type: "address";
|
|
2577
|
+
readonly indexed: true;
|
|
2578
|
+
readonly internalType: "address";
|
|
2579
|
+
}];
|
|
2580
|
+
readonly anonymous: false;
|
|
2581
|
+
}, {
|
|
2582
|
+
readonly type: "event";
|
|
2583
|
+
readonly name: "UpdateTokenCreator";
|
|
2584
|
+
readonly inputs: readonly [{
|
|
2585
|
+
readonly name: "token";
|
|
2586
|
+
readonly type: "address";
|
|
2587
|
+
readonly indexed: false;
|
|
2588
|
+
readonly internalType: "address";
|
|
2589
|
+
}, {
|
|
2590
|
+
readonly name: "previousCreator";
|
|
2591
|
+
readonly type: "address";
|
|
2592
|
+
readonly indexed: false;
|
|
2593
|
+
readonly internalType: "address";
|
|
2594
|
+
}, {
|
|
2595
|
+
readonly name: "newCreator";
|
|
2596
|
+
readonly type: "address";
|
|
2597
|
+
readonly indexed: false;
|
|
2598
|
+
readonly internalType: "address";
|
|
2599
|
+
}];
|
|
2600
|
+
readonly anonymous: false;
|
|
2601
|
+
}, {
|
|
2602
|
+
readonly type: "error";
|
|
2603
|
+
readonly name: "InsufficientBalance";
|
|
2604
|
+
readonly inputs: readonly [{
|
|
2605
|
+
readonly name: "safe";
|
|
2606
|
+
readonly type: "address";
|
|
2607
|
+
readonly internalType: "address";
|
|
2608
|
+
}, {
|
|
2609
|
+
readonly name: "token";
|
|
2610
|
+
readonly type: "address";
|
|
2611
|
+
readonly internalType: "address";
|
|
2612
|
+
}, {
|
|
2613
|
+
readonly name: "balance";
|
|
2614
|
+
readonly type: "uint256";
|
|
2615
|
+
readonly internalType: "uint256";
|
|
2616
|
+
}];
|
|
2617
|
+
}, {
|
|
2618
|
+
readonly type: "error";
|
|
2619
|
+
readonly name: "InvalidProof";
|
|
2620
|
+
readonly inputs: readonly [];
|
|
2621
|
+
}, {
|
|
2622
|
+
readonly type: "error";
|
|
2623
|
+
readonly name: "NotAuthorizedToSpend";
|
|
2624
|
+
readonly inputs: readonly [{
|
|
2625
|
+
readonly name: "sender";
|
|
2626
|
+
readonly type: "address";
|
|
2627
|
+
readonly internalType: "address";
|
|
2628
|
+
}, {
|
|
2629
|
+
readonly name: "token";
|
|
2630
|
+
readonly type: "address";
|
|
2631
|
+
readonly internalType: "address";
|
|
2632
|
+
}];
|
|
2633
|
+
}, {
|
|
2634
|
+
readonly type: "error";
|
|
2635
|
+
readonly name: "OwnableInvalidOwner";
|
|
2636
|
+
readonly inputs: readonly [{
|
|
2637
|
+
readonly name: "owner";
|
|
2638
|
+
readonly type: "address";
|
|
2639
|
+
readonly internalType: "address";
|
|
2640
|
+
}];
|
|
2641
|
+
}, {
|
|
2642
|
+
readonly type: "error";
|
|
2643
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2644
|
+
readonly inputs: readonly [{
|
|
2645
|
+
readonly name: "account";
|
|
2646
|
+
readonly type: "address";
|
|
2647
|
+
readonly internalType: "address";
|
|
2648
|
+
}];
|
|
2649
|
+
}, {
|
|
2650
|
+
readonly type: "error";
|
|
2651
|
+
readonly name: "TokenCreatorAlreadyInitialized";
|
|
2652
|
+
readonly inputs: readonly [{
|
|
2653
|
+
readonly name: "token";
|
|
2654
|
+
readonly type: "address";
|
|
2655
|
+
readonly internalType: "address";
|
|
2656
|
+
}, {
|
|
2657
|
+
readonly name: "delegate";
|
|
2658
|
+
readonly type: "address";
|
|
2659
|
+
readonly internalType: "address";
|
|
2660
|
+
}];
|
|
2661
|
+
}, {
|
|
2662
|
+
readonly type: "error";
|
|
2663
|
+
readonly name: "TokenCreatorRootAlreadySet";
|
|
2664
|
+
readonly inputs: readonly [{
|
|
2665
|
+
readonly name: "tokenCreatorRoot";
|
|
2666
|
+
readonly type: "bytes32";
|
|
2667
|
+
readonly internalType: "bytes32";
|
|
2668
|
+
}];
|
|
2669
|
+
}, {
|
|
2670
|
+
readonly type: "error";
|
|
2671
|
+
readonly name: "TokenCreatorRootNotSet";
|
|
2672
|
+
readonly inputs: readonly [];
|
|
2673
|
+
}, {
|
|
2674
|
+
readonly type: "error";
|
|
2675
|
+
readonly name: "Unauthorized";
|
|
2676
|
+
readonly inputs: readonly [{
|
|
2677
|
+
readonly name: "unauthorized";
|
|
2678
|
+
readonly type: "address";
|
|
2679
|
+
readonly internalType: "address";
|
|
2680
|
+
}];
|
|
2681
|
+
}];
|
|
2682
|
+
functionName: "tokenCreatorTransfer";
|
|
2683
|
+
args: readonly [`0x${string}`, `0x${string}`, `0x${string}`];
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
export { EXPECTED_MERKLE_ROOT, LEGACY_FEE_CLAIMS_ADDRESS, LegacyFeeClaims, type MerkleProofResult, type TokenCreatorEntry, getInitializeTokenCreatorTransaction, getTokenCreatorMerkleProof, getTokenCreatorTransferTransaction, getUpdateTokenCreatorTransaction, parseTokenCreatorCSV };
|