@0xmonaco/contracts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +149 -0
- package/dist/abis/index.d.ts +8 -0
- package/dist/abis/index.d.ts.map +1 -0
- package/dist/abis/index.js +8 -0
- package/dist/abis/index.js.map +1 -0
- package/dist/abis/vault.d.ts +698 -0
- package/dist/abis/vault.d.ts.map +1 -0
- package/dist/abis/vault.js +899 -0
- package/dist/abis/vault.js.map +1 -0
- package/dist/index.d.ts +757 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract addresses for different networks.
|
|
3
|
+
* Each network is identified by its chain ID.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { CONTRACT_ADDRESSES } from '@0xmonaco/contracts';
|
|
8
|
+
*
|
|
9
|
+
* // Get vault address on Atlantic-2 testnet (chain ID 1328)
|
|
10
|
+
* const vaultAddress = CONTRACT_ADDRESSES[1328].vault;
|
|
11
|
+
*
|
|
12
|
+
* // Get vault address on Pacific-1 mainnet (chain ID 1329)
|
|
13
|
+
* const mainnetVaultAddress = CONTRACT_ADDRESSES[1329].vault;
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const CONTRACT_ADDRESSES: {
|
|
17
|
+
readonly 1328: {
|
|
18
|
+
/** Vault contract for managing user balances */
|
|
19
|
+
readonly vault: "0xe4fe155Dc29AbFccCa18949d04Ca6d6e6bc2Ec51";
|
|
20
|
+
};
|
|
21
|
+
readonly 1329: {
|
|
22
|
+
/** Vault contract for managing user balances */
|
|
23
|
+
readonly vault: "0xe4fe155Dc29AbFccCa18949d04Ca6d6e6bc2Ec51";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Contract ABIs for all protocol contracts.
|
|
28
|
+
* These ABIs are used to interact with the deployed contracts.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import { CONTRACT_ABIS, CONTRACT_ADDRESSES } from '@0xmonaco/contracts';
|
|
33
|
+
*
|
|
34
|
+
* // Create a contract instance using viem for testnet (chain ID 1328)
|
|
35
|
+
* const vaultContract = {
|
|
36
|
+
* address: CONTRACT_ADDRESSES[1328].vault,
|
|
37
|
+
* abi: CONTRACT_ABIS.vault,
|
|
38
|
+
* };
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare const CONTRACT_ABIS: {
|
|
42
|
+
/** Vault contract ABI */
|
|
43
|
+
readonly vault: readonly [{
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly stateMutability: "nonpayable";
|
|
46
|
+
readonly type: "constructor";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "AccessControlBadConfirmation";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "account";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "bytes32";
|
|
58
|
+
readonly name: "neededRole";
|
|
59
|
+
readonly type: "bytes32";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
62
|
+
readonly type: "error";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "target";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
readonly name: "AddressEmptyCode";
|
|
70
|
+
readonly type: "error";
|
|
71
|
+
}, {
|
|
72
|
+
readonly inputs: readonly [];
|
|
73
|
+
readonly name: "ECDSAInvalidSignature";
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "uint256";
|
|
78
|
+
readonly name: "length";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly internalType: "bytes32";
|
|
86
|
+
readonly name: "s";
|
|
87
|
+
readonly type: "bytes32";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "implementation";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly name: "ERC1967NonPayable";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly name: "EnforcedPause";
|
|
106
|
+
readonly type: "error";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly name: "ExpectedPause";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "FailedCall";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly name: "InsufficientBalance";
|
|
118
|
+
readonly type: "error";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly name: "InvalidAddress";
|
|
122
|
+
readonly type: "error";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly name: "InvalidInitialization";
|
|
126
|
+
readonly type: "error";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [];
|
|
129
|
+
readonly name: "InvalidSeed";
|
|
130
|
+
readonly type: "error";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "InvalidSignature";
|
|
134
|
+
readonly type: "error";
|
|
135
|
+
}, {
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
readonly name: "InvalidTimestamp";
|
|
138
|
+
readonly type: "error";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly name: "NonceAlreadyUsed";
|
|
142
|
+
readonly type: "error";
|
|
143
|
+
}, {
|
|
144
|
+
readonly inputs: readonly [];
|
|
145
|
+
readonly name: "NotInitializing";
|
|
146
|
+
readonly type: "error";
|
|
147
|
+
}, {
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
150
|
+
readonly type: "error";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly name: "TransferFailed";
|
|
154
|
+
readonly type: "error";
|
|
155
|
+
}, {
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
158
|
+
readonly type: "error";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly internalType: "bytes32";
|
|
162
|
+
readonly name: "slot";
|
|
163
|
+
readonly type: "bytes32";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
166
|
+
readonly type: "error";
|
|
167
|
+
}, {
|
|
168
|
+
readonly anonymous: false;
|
|
169
|
+
readonly inputs: readonly [{
|
|
170
|
+
readonly indexed: true;
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "user";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly indexed: true;
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
readonly name: "token";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
}, {
|
|
180
|
+
readonly indexed: false;
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
readonly name: "amount";
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
}];
|
|
185
|
+
readonly name: "Deposit";
|
|
186
|
+
readonly type: "event";
|
|
187
|
+
}, {
|
|
188
|
+
readonly anonymous: false;
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly indexed: true;
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
readonly name: "newFeeCollector";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
}];
|
|
195
|
+
readonly name: "FeeCollectorChanged";
|
|
196
|
+
readonly type: "event";
|
|
197
|
+
}, {
|
|
198
|
+
readonly anonymous: false;
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly indexed: false;
|
|
201
|
+
readonly internalType: "uint64";
|
|
202
|
+
readonly name: "version";
|
|
203
|
+
readonly type: "uint64";
|
|
204
|
+
}];
|
|
205
|
+
readonly name: "Initialized";
|
|
206
|
+
readonly type: "event";
|
|
207
|
+
}, {
|
|
208
|
+
readonly anonymous: false;
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly indexed: false;
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
readonly name: "account";
|
|
213
|
+
readonly type: "address";
|
|
214
|
+
}];
|
|
215
|
+
readonly name: "Paused";
|
|
216
|
+
readonly type: "event";
|
|
217
|
+
}, {
|
|
218
|
+
readonly anonymous: false;
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly indexed: true;
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
readonly name: "role";
|
|
223
|
+
readonly type: "bytes32";
|
|
224
|
+
}, {
|
|
225
|
+
readonly indexed: true;
|
|
226
|
+
readonly internalType: "bytes32";
|
|
227
|
+
readonly name: "previousAdminRole";
|
|
228
|
+
readonly type: "bytes32";
|
|
229
|
+
}, {
|
|
230
|
+
readonly indexed: true;
|
|
231
|
+
readonly internalType: "bytes32";
|
|
232
|
+
readonly name: "newAdminRole";
|
|
233
|
+
readonly type: "bytes32";
|
|
234
|
+
}];
|
|
235
|
+
readonly name: "RoleAdminChanged";
|
|
236
|
+
readonly type: "event";
|
|
237
|
+
}, {
|
|
238
|
+
readonly anonymous: false;
|
|
239
|
+
readonly inputs: readonly [{
|
|
240
|
+
readonly indexed: true;
|
|
241
|
+
readonly internalType: "bytes32";
|
|
242
|
+
readonly name: "role";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
}, {
|
|
245
|
+
readonly indexed: true;
|
|
246
|
+
readonly internalType: "address";
|
|
247
|
+
readonly name: "account";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
}, {
|
|
250
|
+
readonly indexed: true;
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly name: "sender";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}];
|
|
255
|
+
readonly name: "RoleGranted";
|
|
256
|
+
readonly type: "event";
|
|
257
|
+
}, {
|
|
258
|
+
readonly anonymous: false;
|
|
259
|
+
readonly inputs: readonly [{
|
|
260
|
+
readonly indexed: true;
|
|
261
|
+
readonly internalType: "bytes32";
|
|
262
|
+
readonly name: "role";
|
|
263
|
+
readonly type: "bytes32";
|
|
264
|
+
}, {
|
|
265
|
+
readonly indexed: true;
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
readonly name: "account";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
}, {
|
|
270
|
+
readonly indexed: true;
|
|
271
|
+
readonly internalType: "address";
|
|
272
|
+
readonly name: "sender";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}];
|
|
275
|
+
readonly name: "RoleRevoked";
|
|
276
|
+
readonly type: "event";
|
|
277
|
+
}, {
|
|
278
|
+
readonly anonymous: false;
|
|
279
|
+
readonly inputs: readonly [{
|
|
280
|
+
readonly indexed: true;
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
readonly name: "newSettlementContract";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "SettlementContractChanged";
|
|
286
|
+
readonly type: "event";
|
|
287
|
+
}, {
|
|
288
|
+
readonly anonymous: false;
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly indexed: true;
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
readonly name: "maker";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly indexed: true;
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "taker";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly indexed: true;
|
|
301
|
+
readonly internalType: "address";
|
|
302
|
+
readonly name: "token";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
}, {
|
|
305
|
+
readonly indexed: false;
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
readonly name: "amount";
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
}, {
|
|
310
|
+
readonly indexed: false;
|
|
311
|
+
readonly internalType: "uint256";
|
|
312
|
+
readonly name: "fee";
|
|
313
|
+
readonly type: "uint256";
|
|
314
|
+
}];
|
|
315
|
+
readonly name: "SettlementTransfer";
|
|
316
|
+
readonly type: "event";
|
|
317
|
+
}, {
|
|
318
|
+
readonly anonymous: false;
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly indexed: false;
|
|
321
|
+
readonly internalType: "address";
|
|
322
|
+
readonly name: "account";
|
|
323
|
+
readonly type: "address";
|
|
324
|
+
}];
|
|
325
|
+
readonly name: "Unpaused";
|
|
326
|
+
readonly type: "event";
|
|
327
|
+
}, {
|
|
328
|
+
readonly anonymous: false;
|
|
329
|
+
readonly inputs: readonly [{
|
|
330
|
+
readonly indexed: true;
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly name: "implementation";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}];
|
|
335
|
+
readonly name: "Upgraded";
|
|
336
|
+
readonly type: "event";
|
|
337
|
+
}, {
|
|
338
|
+
readonly anonymous: false;
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly indexed: true;
|
|
341
|
+
readonly internalType: "address";
|
|
342
|
+
readonly name: "user";
|
|
343
|
+
readonly type: "address";
|
|
344
|
+
}, {
|
|
345
|
+
readonly indexed: true;
|
|
346
|
+
readonly internalType: "address";
|
|
347
|
+
readonly name: "token";
|
|
348
|
+
readonly type: "address";
|
|
349
|
+
}, {
|
|
350
|
+
readonly indexed: false;
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
readonly name: "amount";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}];
|
|
355
|
+
readonly name: "Withdrawal";
|
|
356
|
+
readonly type: "event";
|
|
357
|
+
}, {
|
|
358
|
+
readonly inputs: readonly [];
|
|
359
|
+
readonly name: "DEBUGGER_ROLE";
|
|
360
|
+
readonly outputs: readonly [{
|
|
361
|
+
readonly internalType: "bytes32";
|
|
362
|
+
readonly name: "";
|
|
363
|
+
readonly type: "bytes32";
|
|
364
|
+
}];
|
|
365
|
+
readonly stateMutability: "view";
|
|
366
|
+
readonly type: "function";
|
|
367
|
+
}, {
|
|
368
|
+
readonly inputs: readonly [];
|
|
369
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
370
|
+
readonly outputs: readonly [{
|
|
371
|
+
readonly internalType: "bytes32";
|
|
372
|
+
readonly name: "";
|
|
373
|
+
readonly type: "bytes32";
|
|
374
|
+
}];
|
|
375
|
+
readonly stateMutability: "view";
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
}, {
|
|
378
|
+
readonly inputs: readonly [];
|
|
379
|
+
readonly name: "FEE_MANAGER_ROLE";
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly internalType: "bytes32";
|
|
382
|
+
readonly name: "";
|
|
383
|
+
readonly type: "bytes32";
|
|
384
|
+
}];
|
|
385
|
+
readonly stateMutability: "view";
|
|
386
|
+
readonly type: "function";
|
|
387
|
+
}, {
|
|
388
|
+
readonly inputs: readonly [];
|
|
389
|
+
readonly name: "PAUSER_ROLE";
|
|
390
|
+
readonly outputs: readonly [{
|
|
391
|
+
readonly internalType: "bytes32";
|
|
392
|
+
readonly name: "";
|
|
393
|
+
readonly type: "bytes32";
|
|
394
|
+
}];
|
|
395
|
+
readonly stateMutability: "view";
|
|
396
|
+
readonly type: "function";
|
|
397
|
+
}, {
|
|
398
|
+
readonly inputs: readonly [];
|
|
399
|
+
readonly name: "SETTLEMENT_MANAGER_ROLE";
|
|
400
|
+
readonly outputs: readonly [{
|
|
401
|
+
readonly internalType: "bytes32";
|
|
402
|
+
readonly name: "";
|
|
403
|
+
readonly type: "bytes32";
|
|
404
|
+
}];
|
|
405
|
+
readonly stateMutability: "view";
|
|
406
|
+
readonly type: "function";
|
|
407
|
+
}, {
|
|
408
|
+
readonly inputs: readonly [];
|
|
409
|
+
readonly name: "UPGRADER_ROLE";
|
|
410
|
+
readonly outputs: readonly [{
|
|
411
|
+
readonly internalType: "bytes32";
|
|
412
|
+
readonly name: "";
|
|
413
|
+
readonly type: "bytes32";
|
|
414
|
+
}];
|
|
415
|
+
readonly stateMutability: "view";
|
|
416
|
+
readonly type: "function";
|
|
417
|
+
}, {
|
|
418
|
+
readonly inputs: readonly [];
|
|
419
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
420
|
+
readonly outputs: readonly [{
|
|
421
|
+
readonly internalType: "string";
|
|
422
|
+
readonly name: "";
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
}];
|
|
425
|
+
readonly stateMutability: "view";
|
|
426
|
+
readonly type: "function";
|
|
427
|
+
}, {
|
|
428
|
+
readonly inputs: readonly [{
|
|
429
|
+
readonly internalType: "address";
|
|
430
|
+
readonly name: "user";
|
|
431
|
+
readonly type: "address";
|
|
432
|
+
}, {
|
|
433
|
+
readonly internalType: "address";
|
|
434
|
+
readonly name: "token";
|
|
435
|
+
readonly type: "address";
|
|
436
|
+
}];
|
|
437
|
+
readonly name: "balanceOf";
|
|
438
|
+
readonly outputs: readonly [{
|
|
439
|
+
readonly internalType: "uint256";
|
|
440
|
+
readonly name: "";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}];
|
|
443
|
+
readonly stateMutability: "view";
|
|
444
|
+
readonly type: "function";
|
|
445
|
+
}, {
|
|
446
|
+
readonly inputs: readonly [{
|
|
447
|
+
readonly internalType: "bytes";
|
|
448
|
+
readonly name: "seed";
|
|
449
|
+
readonly type: "bytes";
|
|
450
|
+
}];
|
|
451
|
+
readonly name: "decodeSeed";
|
|
452
|
+
readonly outputs: readonly [{
|
|
453
|
+
readonly internalType: "address";
|
|
454
|
+
readonly name: "";
|
|
455
|
+
readonly type: "address";
|
|
456
|
+
}, {
|
|
457
|
+
readonly internalType: "uint256";
|
|
458
|
+
readonly name: "";
|
|
459
|
+
readonly type: "uint256";
|
|
460
|
+
}, {
|
|
461
|
+
readonly internalType: "uint256";
|
|
462
|
+
readonly name: "";
|
|
463
|
+
readonly type: "uint256";
|
|
464
|
+
}, {
|
|
465
|
+
readonly internalType: "uint256";
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "uint256";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "uint256";
|
|
470
|
+
readonly name: "";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
}];
|
|
473
|
+
readonly stateMutability: "view";
|
|
474
|
+
readonly type: "function";
|
|
475
|
+
}, {
|
|
476
|
+
readonly inputs: readonly [{
|
|
477
|
+
readonly internalType: "address";
|
|
478
|
+
readonly name: "token";
|
|
479
|
+
readonly type: "address";
|
|
480
|
+
}, {
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
readonly name: "amount";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "bytes";
|
|
486
|
+
readonly name: "seed";
|
|
487
|
+
readonly type: "bytes";
|
|
488
|
+
}, {
|
|
489
|
+
readonly internalType: "bytes";
|
|
490
|
+
readonly name: "signature";
|
|
491
|
+
readonly type: "bytes";
|
|
492
|
+
}];
|
|
493
|
+
readonly name: "deposit";
|
|
494
|
+
readonly outputs: readonly [];
|
|
495
|
+
readonly stateMutability: "nonpayable";
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
}, {
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
readonly name: "feeCollector";
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly internalType: "address";
|
|
502
|
+
readonly name: "";
|
|
503
|
+
readonly type: "address";
|
|
504
|
+
}];
|
|
505
|
+
readonly stateMutability: "view";
|
|
506
|
+
readonly type: "function";
|
|
507
|
+
}, {
|
|
508
|
+
readonly inputs: readonly [];
|
|
509
|
+
readonly name: "getChainID";
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly internalType: "uint256";
|
|
512
|
+
readonly name: "";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
}];
|
|
515
|
+
readonly stateMutability: "view";
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
}, {
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly internalType: "bytes32";
|
|
520
|
+
readonly name: "role";
|
|
521
|
+
readonly type: "bytes32";
|
|
522
|
+
}];
|
|
523
|
+
readonly name: "getRoleAdmin";
|
|
524
|
+
readonly outputs: readonly [{
|
|
525
|
+
readonly internalType: "bytes32";
|
|
526
|
+
readonly name: "";
|
|
527
|
+
readonly type: "bytes32";
|
|
528
|
+
}];
|
|
529
|
+
readonly stateMutability: "view";
|
|
530
|
+
readonly type: "function";
|
|
531
|
+
}, {
|
|
532
|
+
readonly inputs: readonly [{
|
|
533
|
+
readonly internalType: "bytes32";
|
|
534
|
+
readonly name: "role";
|
|
535
|
+
readonly type: "bytes32";
|
|
536
|
+
}, {
|
|
537
|
+
readonly internalType: "address";
|
|
538
|
+
readonly name: "account";
|
|
539
|
+
readonly type: "address";
|
|
540
|
+
}];
|
|
541
|
+
readonly name: "grantRole";
|
|
542
|
+
readonly outputs: readonly [];
|
|
543
|
+
readonly stateMutability: "nonpayable";
|
|
544
|
+
readonly type: "function";
|
|
545
|
+
}, {
|
|
546
|
+
readonly inputs: readonly [{
|
|
547
|
+
readonly internalType: "bytes32";
|
|
548
|
+
readonly name: "role";
|
|
549
|
+
readonly type: "bytes32";
|
|
550
|
+
}, {
|
|
551
|
+
readonly internalType: "address";
|
|
552
|
+
readonly name: "account";
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}];
|
|
555
|
+
readonly name: "hasRole";
|
|
556
|
+
readonly outputs: readonly [{
|
|
557
|
+
readonly internalType: "bool";
|
|
558
|
+
readonly name: "";
|
|
559
|
+
readonly type: "bool";
|
|
560
|
+
}];
|
|
561
|
+
readonly stateMutability: "view";
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
}, {
|
|
564
|
+
readonly inputs: readonly [{
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
readonly name: "_admin";
|
|
567
|
+
readonly type: "address";
|
|
568
|
+
}];
|
|
569
|
+
readonly name: "initialize";
|
|
570
|
+
readonly outputs: readonly [];
|
|
571
|
+
readonly stateMutability: "nonpayable";
|
|
572
|
+
readonly type: "function";
|
|
573
|
+
}, {
|
|
574
|
+
readonly inputs: readonly [];
|
|
575
|
+
readonly name: "pause";
|
|
576
|
+
readonly outputs: readonly [];
|
|
577
|
+
readonly stateMutability: "nonpayable";
|
|
578
|
+
readonly type: "function";
|
|
579
|
+
}, {
|
|
580
|
+
readonly inputs: readonly [];
|
|
581
|
+
readonly name: "paused";
|
|
582
|
+
readonly outputs: readonly [{
|
|
583
|
+
readonly internalType: "bool";
|
|
584
|
+
readonly name: "";
|
|
585
|
+
readonly type: "bool";
|
|
586
|
+
}];
|
|
587
|
+
readonly stateMutability: "view";
|
|
588
|
+
readonly type: "function";
|
|
589
|
+
}, {
|
|
590
|
+
readonly inputs: readonly [];
|
|
591
|
+
readonly name: "proxiableUUID";
|
|
592
|
+
readonly outputs: readonly [{
|
|
593
|
+
readonly internalType: "bytes32";
|
|
594
|
+
readonly name: "";
|
|
595
|
+
readonly type: "bytes32";
|
|
596
|
+
}];
|
|
597
|
+
readonly stateMutability: "view";
|
|
598
|
+
readonly type: "function";
|
|
599
|
+
}, {
|
|
600
|
+
readonly inputs: readonly [{
|
|
601
|
+
readonly internalType: "bytes32";
|
|
602
|
+
readonly name: "role";
|
|
603
|
+
readonly type: "bytes32";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "address";
|
|
606
|
+
readonly name: "callerConfirmation";
|
|
607
|
+
readonly type: "address";
|
|
608
|
+
}];
|
|
609
|
+
readonly name: "renounceRole";
|
|
610
|
+
readonly outputs: readonly [];
|
|
611
|
+
readonly stateMutability: "nonpayable";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
}, {
|
|
614
|
+
readonly inputs: readonly [{
|
|
615
|
+
readonly internalType: "bytes32";
|
|
616
|
+
readonly name: "role";
|
|
617
|
+
readonly type: "bytes32";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "address";
|
|
620
|
+
readonly name: "account";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}];
|
|
623
|
+
readonly name: "revokeRole";
|
|
624
|
+
readonly outputs: readonly [];
|
|
625
|
+
readonly stateMutability: "nonpayable";
|
|
626
|
+
readonly type: "function";
|
|
627
|
+
}, {
|
|
628
|
+
readonly inputs: readonly [{
|
|
629
|
+
readonly internalType: "address";
|
|
630
|
+
readonly name: "_newFeeCollector";
|
|
631
|
+
readonly type: "address";
|
|
632
|
+
}];
|
|
633
|
+
readonly name: "setFeeCollector";
|
|
634
|
+
readonly outputs: readonly [];
|
|
635
|
+
readonly stateMutability: "nonpayable";
|
|
636
|
+
readonly type: "function";
|
|
637
|
+
}, {
|
|
638
|
+
readonly inputs: readonly [{
|
|
639
|
+
readonly internalType: "address";
|
|
640
|
+
readonly name: "_settlementContract";
|
|
641
|
+
readonly type: "address";
|
|
642
|
+
}];
|
|
643
|
+
readonly name: "setSettlementContract";
|
|
644
|
+
readonly outputs: readonly [];
|
|
645
|
+
readonly stateMutability: "nonpayable";
|
|
646
|
+
readonly type: "function";
|
|
647
|
+
}, {
|
|
648
|
+
readonly inputs: readonly [];
|
|
649
|
+
readonly name: "settlementContract";
|
|
650
|
+
readonly outputs: readonly [{
|
|
651
|
+
readonly internalType: "address";
|
|
652
|
+
readonly name: "";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
}];
|
|
655
|
+
readonly stateMutability: "view";
|
|
656
|
+
readonly type: "function";
|
|
657
|
+
}, {
|
|
658
|
+
readonly inputs: readonly [{
|
|
659
|
+
readonly internalType: "bytes4";
|
|
660
|
+
readonly name: "interfaceId";
|
|
661
|
+
readonly type: "bytes4";
|
|
662
|
+
}];
|
|
663
|
+
readonly name: "supportsInterface";
|
|
664
|
+
readonly outputs: readonly [{
|
|
665
|
+
readonly internalType: "bool";
|
|
666
|
+
readonly name: "";
|
|
667
|
+
readonly type: "bool";
|
|
668
|
+
}];
|
|
669
|
+
readonly stateMutability: "view";
|
|
670
|
+
readonly type: "function";
|
|
671
|
+
}, {
|
|
672
|
+
readonly inputs: readonly [{
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
readonly name: "maker";
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
}, {
|
|
677
|
+
readonly internalType: "address";
|
|
678
|
+
readonly name: "taker";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}, {
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
readonly name: "token";
|
|
683
|
+
readonly type: "address";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "uint256";
|
|
686
|
+
readonly name: "amount";
|
|
687
|
+
readonly type: "uint256";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly name: "fee";
|
|
691
|
+
readonly type: "uint256";
|
|
692
|
+
}];
|
|
693
|
+
readonly name: "transferOnSettlement";
|
|
694
|
+
readonly outputs: readonly [];
|
|
695
|
+
readonly stateMutability: "nonpayable";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
}, {
|
|
698
|
+
readonly inputs: readonly [];
|
|
699
|
+
readonly name: "unpause";
|
|
700
|
+
readonly outputs: readonly [];
|
|
701
|
+
readonly stateMutability: "nonpayable";
|
|
702
|
+
readonly type: "function";
|
|
703
|
+
}, {
|
|
704
|
+
readonly inputs: readonly [{
|
|
705
|
+
readonly internalType: "address";
|
|
706
|
+
readonly name: "newImplementation";
|
|
707
|
+
readonly type: "address";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "bytes";
|
|
710
|
+
readonly name: "data";
|
|
711
|
+
readonly type: "bytes";
|
|
712
|
+
}];
|
|
713
|
+
readonly name: "upgradeToAndCall";
|
|
714
|
+
readonly outputs: readonly [];
|
|
715
|
+
readonly stateMutability: "payable";
|
|
716
|
+
readonly type: "function";
|
|
717
|
+
}, {
|
|
718
|
+
readonly inputs: readonly [{
|
|
719
|
+
readonly internalType: "address";
|
|
720
|
+
readonly name: "token";
|
|
721
|
+
readonly type: "address";
|
|
722
|
+
}, {
|
|
723
|
+
readonly internalType: "uint256";
|
|
724
|
+
readonly name: "amount";
|
|
725
|
+
readonly type: "uint256";
|
|
726
|
+
}, {
|
|
727
|
+
readonly internalType: "bytes";
|
|
728
|
+
readonly name: "seed";
|
|
729
|
+
readonly type: "bytes";
|
|
730
|
+
}, {
|
|
731
|
+
readonly internalType: "bytes";
|
|
732
|
+
readonly name: "signature";
|
|
733
|
+
readonly type: "bytes";
|
|
734
|
+
}];
|
|
735
|
+
readonly name: "withdraw";
|
|
736
|
+
readonly outputs: readonly [];
|
|
737
|
+
readonly stateMutability: "nonpayable";
|
|
738
|
+
readonly type: "function";
|
|
739
|
+
}];
|
|
740
|
+
};
|
|
741
|
+
export declare const TESTNET_TOKENS: {
|
|
742
|
+
readonly MockUSDC: {
|
|
743
|
+
readonly address: "0x6A86dA986797D59A839D136dB490292Cd560C131";
|
|
744
|
+
readonly decimals: 6;
|
|
745
|
+
readonly symbol: "MockUSDC";
|
|
746
|
+
readonly name: "Mock USDC";
|
|
747
|
+
};
|
|
748
|
+
readonly MockMTK: {
|
|
749
|
+
readonly address: "0x428F82f1ECa4AA6f6c75D77cBd2a9ceB94cde343";
|
|
750
|
+
readonly decimals: 18;
|
|
751
|
+
readonly symbol: "MockMTK";
|
|
752
|
+
readonly name: "Mock MTK";
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
export type TokenSymbol = keyof typeof TESTNET_TOKENS;
|
|
756
|
+
export type TokenConfig = typeof TESTNET_TOKENS[TokenSymbol];
|
|
757
|
+
//# sourceMappingURL=index.d.ts.map
|