@1stdex/first-sdk 1.0.22 → 1.0.24

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.
Files changed (73) hide show
  1. package/dist/cjs/calls/market/cancel.js +0 -1
  2. package/dist/cjs/calls/market/cancel.js.map +1 -1
  3. package/dist/cjs/calls/market/claim.js +0 -1
  4. package/dist/cjs/calls/market/claim.js.map +1 -1
  5. package/dist/cjs/calls/market/limit.js +1 -4
  6. package/dist/cjs/calls/market/limit.js.map +1 -1
  7. package/dist/cjs/calls/market/make.js +0 -6
  8. package/dist/cjs/calls/market/make.js.map +1 -1
  9. package/dist/cjs/calls/market/market.js +5 -10
  10. package/dist/cjs/calls/market/market.js.map +1 -1
  11. package/dist/cjs/constants/abis/core/book-manager-abi.js +12 -7
  12. package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -1
  13. package/dist/cjs/constants/abis/core/book-viewer-abi.js +141 -199
  14. package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -1
  15. package/dist/cjs/constants/abis/core/claimable-dex-vault.js +46 -0
  16. package/dist/cjs/constants/abis/core/claimable-dex-vault.js.map +1 -1
  17. package/dist/cjs/constants/abis/core/controller-abi.js +94 -101
  18. package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -1
  19. package/dist/cjs/constants/abis/core/dex-vault-abi.js +1 -1
  20. package/dist/cjs/constants/abis/core/dex-vault-abi.js.map +1 -1
  21. package/dist/cjs/constants/abis/core/mirror-token-abi.js +901 -6
  22. package/dist/cjs/constants/abis/core/mirror-token-abi.js.map +1 -1
  23. package/dist/cjs/constants/abis/core/params-abi.js +11 -38
  24. package/dist/cjs/constants/abis/core/params-abi.js.map +1 -1
  25. package/dist/cjs/constants/chain-configs/addresses.js +3 -3
  26. package/dist/cjs/constants/chain-configs/currency.js +1 -1
  27. package/dist/esm/calls/market/cancel.js +0 -1
  28. package/dist/esm/calls/market/cancel.js.map +1 -1
  29. package/dist/esm/calls/market/claim.js +0 -1
  30. package/dist/esm/calls/market/claim.js.map +1 -1
  31. package/dist/esm/calls/market/limit.js +1 -5
  32. package/dist/esm/calls/market/limit.js.map +1 -1
  33. package/dist/esm/calls/market/make.js +0 -6
  34. package/dist/esm/calls/market/make.js.map +1 -1
  35. package/dist/esm/calls/market/market.js +6 -12
  36. package/dist/esm/calls/market/market.js.map +1 -1
  37. package/dist/esm/constants/abis/core/book-manager-abi.js +12 -7
  38. package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -1
  39. package/dist/esm/constants/abis/core/book-viewer-abi.js +141 -199
  40. package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -1
  41. package/dist/esm/constants/abis/core/claimable-dex-vault.js +46 -0
  42. package/dist/esm/constants/abis/core/claimable-dex-vault.js.map +1 -1
  43. package/dist/esm/constants/abis/core/controller-abi.js +94 -101
  44. package/dist/esm/constants/abis/core/controller-abi.js.map +1 -1
  45. package/dist/esm/constants/abis/core/dex-vault-abi.js +1 -1
  46. package/dist/esm/constants/abis/core/dex-vault-abi.js.map +1 -1
  47. package/dist/esm/constants/abis/core/mirror-token-abi.js +901 -6
  48. package/dist/esm/constants/abis/core/mirror-token-abi.js.map +1 -1
  49. package/dist/esm/constants/abis/core/params-abi.js +11 -38
  50. package/dist/esm/constants/abis/core/params-abi.js.map +1 -1
  51. package/dist/esm/constants/chain-configs/addresses.js +3 -3
  52. package/dist/esm/constants/chain-configs/currency.js +1 -1
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/dist/types/calls/market/cancel.d.ts.map +1 -1
  55. package/dist/types/calls/market/claim.d.ts.map +1 -1
  56. package/dist/types/calls/market/limit.d.ts +1 -3
  57. package/dist/types/calls/market/limit.d.ts.map +1 -1
  58. package/dist/types/calls/market/make.d.ts.map +1 -1
  59. package/dist/types/calls/market/market.d.ts +2 -4
  60. package/dist/types/calls/market/market.d.ts.map +1 -1
  61. package/dist/types/constants/abis/core/book-manager-abi.d.ts +32 -15
  62. package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -1
  63. package/dist/types/constants/abis/core/book-viewer-abi.d.ts +170 -68
  64. package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -1
  65. package/dist/types/constants/abis/core/claimable-dex-vault.d.ts +83 -0
  66. package/dist/types/constants/abis/core/claimable-dex-vault.d.ts.map +1 -1
  67. package/dist/types/constants/abis/core/controller-abi.d.ts +130 -164
  68. package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -1
  69. package/dist/types/constants/abis/core/dex-vault-abi.d.ts +1 -1
  70. package/dist/types/constants/abis/core/mirror-token-abi.d.ts +1252 -16
  71. package/dist/types/constants/abis/core/mirror-token-abi.d.ts.map +1 -1
  72. package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -2,13 +2,478 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MIRROR_TOKEN_ABI = void 0;
4
4
  exports.MIRROR_TOKEN_ABI = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'string', name: 'name', type: 'string' },
8
+ { internalType: 'string', name: 'symbol', type: 'string' },
9
+ { internalType: 'address', name: '_realToken', type: 'address' },
10
+ { internalType: 'address[]', name: 'recipients', type: 'address[]' },
11
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
12
+ ],
13
+ stateMutability: 'nonpayable',
14
+ type: 'constructor',
15
+ },
16
+ { inputs: [], name: 'CannotWithdrawDistributedTokens', type: 'error' },
17
+ { inputs: [], name: 'DistributionExceedsTotalAmount', type: 'error' },
18
+ { inputs: [], name: 'ECDSAInvalidSignature', type: 'error' },
19
+ {
20
+ inputs: [{ internalType: 'uint256', name: 'length', type: 'uint256' }],
21
+ name: 'ECDSAInvalidSignatureLength',
22
+ type: 'error',
23
+ },
24
+ {
25
+ inputs: [{ internalType: 'bytes32', name: 's', type: 'bytes32' }],
26
+ name: 'ECDSAInvalidSignatureS',
27
+ type: 'error',
28
+ },
29
+ {
30
+ inputs: [
31
+ { internalType: 'address', name: 'spender', type: 'address' },
32
+ { internalType: 'uint256', name: 'allowance', type: 'uint256' },
33
+ { internalType: 'uint256', name: 'needed', type: 'uint256' },
34
+ ],
35
+ name: 'ERC20InsufficientAllowance',
36
+ type: 'error',
37
+ },
38
+ {
39
+ inputs: [
40
+ { internalType: 'address', name: 'sender', type: 'address' },
41
+ { internalType: 'uint256', name: 'balance', type: 'uint256' },
42
+ { internalType: 'uint256', name: 'needed', type: 'uint256' },
43
+ ],
44
+ name: 'ERC20InsufficientBalance',
45
+ type: 'error',
46
+ },
47
+ {
48
+ inputs: [{ internalType: 'address', name: 'approver', type: 'address' }],
49
+ name: 'ERC20InvalidApprover',
50
+ type: 'error',
51
+ },
52
+ {
53
+ inputs: [{ internalType: 'address', name: 'receiver', type: 'address' }],
54
+ name: 'ERC20InvalidReceiver',
55
+ type: 'error',
56
+ },
57
+ {
58
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
59
+ name: 'ERC20InvalidSender',
60
+ type: 'error',
61
+ },
62
+ {
63
+ inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
64
+ name: 'ERC20InvalidSpender',
65
+ type: 'error',
66
+ },
67
+ {
68
+ inputs: [{ internalType: 'uint256', name: 'deadline', type: 'uint256' }],
69
+ name: 'ERC2612ExpiredSignature',
70
+ type: 'error',
71
+ },
72
+ {
73
+ inputs: [
74
+ { internalType: 'address', name: 'signer', type: 'address' },
75
+ { internalType: 'address', name: 'owner', type: 'address' },
76
+ ],
77
+ name: 'ERC2612InvalidSigner',
78
+ type: 'error',
79
+ },
80
+ {
81
+ inputs: [
82
+ { internalType: 'address', name: 'account', type: 'address' },
83
+ { internalType: 'uint256', name: 'currentNonce', type: 'uint256' },
84
+ ],
85
+ name: 'InvalidAccountNonce',
86
+ type: 'error',
87
+ },
88
+ { inputs: [], name: 'InvalidAmount', type: 'error' },
89
+ { inputs: [], name: 'InvalidDistributorAddress', type: 'error' },
90
+ { inputs: [], name: 'InvalidRealTokenAddress', type: 'error' },
91
+ { inputs: [], name: 'InvalidRecipientAddress', type: 'error' },
92
+ { inputs: [], name: 'InvalidShortString', type: 'error' },
93
+ { inputs: [], name: 'InvalidTokenAddress', type: 'error' },
94
+ { inputs: [], name: 'MetadataAlreadyFrozen', type: 'error' },
95
+ { inputs: [], name: 'MetadataAlreadyFrozenForFreeze', type: 'error' },
96
+ { inputs: [], name: 'NestedDeflationaryTokenAlreadySet', type: 'error' },
97
+ { inputs: [], name: 'NotAuthorized', type: 'error' },
98
+ { inputs: [], name: 'NotAuthorizedDistributor', type: 'error' },
99
+ { inputs: [], name: 'NotEnoughClaimable', type: 'error' },
100
+ { inputs: [], name: 'NothingToClaim', type: 'error' },
101
+ {
102
+ inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
103
+ name: 'OwnableInvalidOwner',
104
+ type: 'error',
105
+ },
106
+ {
107
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
108
+ name: 'OwnableUnauthorizedAccount',
109
+ type: 'error',
110
+ },
111
+ { inputs: [], name: 'RealTokenCannotBeMirrorToken', type: 'error' },
112
+ { inputs: [], name: 'RecipientsAmountsMismatch', type: 'error' },
113
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
114
+ {
115
+ inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
116
+ name: 'SafeERC20FailedOperation',
117
+ type: 'error',
118
+ },
119
+ {
120
+ inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
121
+ name: 'StringTooLong',
122
+ type: 'error',
123
+ },
124
+ {
125
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
126
+ name: 'UnauthorizedDeflator',
127
+ type: 'error',
128
+ },
129
+ {
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ indexed: true,
134
+ internalType: 'address',
135
+ name: 'owner',
136
+ type: 'address',
137
+ },
138
+ {
139
+ indexed: true,
140
+ internalType: 'address',
141
+ name: 'spender',
142
+ type: 'address',
143
+ },
144
+ {
145
+ indexed: false,
146
+ internalType: 'uint256',
147
+ name: 'value',
148
+ type: 'uint256',
149
+ },
150
+ ],
151
+ name: 'Approval',
152
+ type: 'event',
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ {
158
+ indexed: true,
159
+ internalType: 'address',
160
+ name: 'account',
161
+ type: 'address',
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: 'bool',
166
+ name: 'whitelisted',
167
+ type: 'bool',
168
+ },
169
+ ],
170
+ name: 'CheckpointWhitelistUpdated',
171
+ type: 'event',
172
+ },
173
+ {
174
+ anonymous: false,
175
+ inputs: [
176
+ {
177
+ indexed: false,
178
+ internalType: 'string',
179
+ name: 'newURI',
180
+ type: 'string',
181
+ },
182
+ ],
183
+ name: 'ContractURIUpdated',
184
+ type: 'event',
185
+ },
186
+ {
187
+ anonymous: false,
188
+ inputs: [
189
+ {
190
+ indexed: false,
191
+ internalType: 'uint256',
192
+ name: 'checkpoint',
193
+ type: 'uint256',
194
+ },
195
+ {
196
+ indexed: false,
197
+ internalType: 'uint256',
198
+ name: 'supplyBeforeDeflate',
199
+ type: 'uint256',
200
+ },
201
+ {
202
+ indexed: false,
203
+ internalType: 'uint256',
204
+ name: 'deflatedAmount',
205
+ type: 'uint256',
206
+ },
207
+ ],
208
+ name: 'Deflate',
209
+ type: 'event',
210
+ },
211
+ {
212
+ anonymous: false,
213
+ inputs: [
214
+ {
215
+ indexed: true,
216
+ internalType: 'address',
217
+ name: 'account',
218
+ type: 'address',
219
+ },
220
+ {
221
+ indexed: false,
222
+ internalType: 'uint256',
223
+ name: 'newVested',
224
+ type: 'uint256',
225
+ },
226
+ ],
227
+ name: 'DeflationSynced',
228
+ type: 'event',
229
+ },
230
+ {
231
+ anonymous: false,
232
+ inputs: [
233
+ {
234
+ indexed: false,
235
+ internalType: 'uint256',
236
+ name: 'amount',
237
+ type: 'uint256',
238
+ },
239
+ {
240
+ indexed: false,
241
+ internalType: 'uint256',
242
+ name: 'eligibleTokens',
243
+ type: 'uint256',
244
+ },
245
+ {
246
+ indexed: false,
247
+ internalType: 'uint256',
248
+ name: 'checkpoint',
249
+ type: 'uint256',
250
+ },
251
+ ],
252
+ name: 'DistributionAdded',
253
+ type: 'event',
254
+ },
255
+ {
256
+ anonymous: false,
257
+ inputs: [
258
+ {
259
+ indexed: true,
260
+ internalType: 'address',
261
+ name: 'distributor',
262
+ type: 'address',
263
+ },
264
+ { indexed: false, internalType: 'bool', name: 'allowed', type: 'bool' },
265
+ ],
266
+ name: 'DistributorAuthorizationUpdated',
267
+ type: 'event',
268
+ },
269
+ {
270
+ anonymous: false,
271
+ inputs: [
272
+ {
273
+ indexed: true,
274
+ internalType: 'uint256',
275
+ name: 'index',
276
+ type: 'uint256',
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: 'uint64',
281
+ name: 'unlockTime',
282
+ type: 'uint64',
283
+ },
284
+ {
285
+ indexed: false,
286
+ internalType: 'uint128',
287
+ name: 'amount',
288
+ type: 'uint128',
289
+ },
290
+ ],
291
+ name: 'DropAdded',
292
+ type: 'event',
293
+ },
294
+ {
295
+ anonymous: false,
296
+ inputs: [
297
+ {
298
+ indexed: false,
299
+ internalType: 'uint256',
300
+ name: 'count',
301
+ type: 'uint256',
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: 'uint256',
306
+ name: 'plannedTotal',
307
+ type: 'uint256',
308
+ },
309
+ ],
310
+ name: 'DropScheduleSet',
311
+ type: 'event',
312
+ },
313
+ { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
314
+ { anonymous: false, inputs: [], name: 'MetadataFrozen', type: 'event' },
315
+ {
316
+ anonymous: false,
317
+ inputs: [
318
+ {
319
+ indexed: true,
320
+ internalType: 'contract DeflationaryToken',
321
+ name: 'nestedDeflationaryToken',
322
+ type: 'address',
323
+ },
324
+ ],
325
+ name: 'NestedDeflationaryTokenSet',
326
+ type: 'event',
327
+ },
328
+ {
329
+ anonymous: false,
330
+ inputs: [
331
+ {
332
+ indexed: true,
333
+ internalType: 'address',
334
+ name: 'previousOwner',
335
+ type: 'address',
336
+ },
337
+ {
338
+ indexed: true,
339
+ internalType: 'address',
340
+ name: 'newOwner',
341
+ type: 'address',
342
+ },
343
+ ],
344
+ name: 'OwnershipTransferStarted',
345
+ type: 'event',
346
+ },
347
+ {
348
+ anonymous: false,
349
+ inputs: [
350
+ {
351
+ indexed: true,
352
+ internalType: 'address',
353
+ name: 'previousOwner',
354
+ type: 'address',
355
+ },
356
+ {
357
+ indexed: true,
358
+ internalType: 'address',
359
+ name: 'newOwner',
360
+ type: 'address',
361
+ },
362
+ ],
363
+ name: 'OwnershipTransferred',
364
+ type: 'event',
365
+ },
366
+ {
367
+ anonymous: false,
368
+ inputs: [
369
+ { indexed: false, internalType: 'string', name: 'uri', type: 'string' },
370
+ {
371
+ indexed: false,
372
+ internalType: 'bytes32',
373
+ name: 'documentHash',
374
+ type: 'bytes32',
375
+ },
376
+ ],
377
+ name: 'ScheduleMetadataUpdated',
378
+ type: 'event',
379
+ },
380
+ {
381
+ anonymous: false,
382
+ inputs: [
383
+ { indexed: false, internalType: 'string', name: 'uri', type: 'string' },
384
+ {
385
+ indexed: false,
386
+ internalType: 'bytes32',
387
+ name: 'documentHash',
388
+ type: 'bytes32',
389
+ },
390
+ ],
391
+ name: 'TdcMetadataUpdated',
392
+ type: 'event',
393
+ },
394
+ {
395
+ anonymous: false,
396
+ inputs: [
397
+ {
398
+ indexed: true,
399
+ internalType: 'address',
400
+ name: 'token',
401
+ type: 'address',
402
+ },
403
+ {
404
+ indexed: false,
405
+ internalType: 'uint256',
406
+ name: 'amount',
407
+ type: 'uint256',
408
+ },
409
+ ],
410
+ name: 'TokenRecovered',
411
+ type: 'event',
412
+ },
413
+ {
414
+ anonymous: false,
415
+ inputs: [
416
+ {
417
+ indexed: true,
418
+ internalType: 'address',
419
+ name: 'account',
420
+ type: 'address',
421
+ },
422
+ {
423
+ indexed: true,
424
+ internalType: 'address',
425
+ name: 'recipient',
426
+ type: 'address',
427
+ },
428
+ {
429
+ indexed: false,
430
+ internalType: 'uint256',
431
+ name: 'amount',
432
+ type: 'uint256',
433
+ },
434
+ ],
435
+ name: 'TokensClaimed',
436
+ type: 'event',
437
+ },
438
+ {
439
+ anonymous: false,
440
+ inputs: [
441
+ { indexed: true, internalType: 'address', name: 'from', type: 'address' },
442
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
443
+ {
444
+ indexed: false,
445
+ internalType: 'uint256',
446
+ name: 'value',
447
+ type: 'uint256',
448
+ },
449
+ ],
450
+ name: 'Transfer',
451
+ type: 'event',
452
+ },
5
453
  {
6
454
  inputs: [],
7
- name: 'realToken',
8
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
455
+ name: 'DOMAIN_SEPARATOR',
456
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
9
457
  stateMutability: 'view',
10
458
  type: 'function',
11
459
  },
460
+ {
461
+ inputs: [],
462
+ name: 'acceptOwnership',
463
+ outputs: [],
464
+ stateMutability: 'nonpayable',
465
+ type: 'function',
466
+ },
467
+ {
468
+ inputs: [
469
+ { internalType: 'address', name: 'recipient', type: 'address' },
470
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
471
+ ],
472
+ name: 'addAllocation',
473
+ outputs: [],
474
+ stateMutability: 'nonpayable',
475
+ type: 'function',
476
+ },
12
477
  {
13
478
  inputs: [
14
479
  { internalType: 'address[]', name: 'recipients', type: 'address[]' },
@@ -19,6 +484,191 @@ exports.MIRROR_TOKEN_ABI = [
19
484
  stateMutability: 'nonpayable',
20
485
  type: 'function',
21
486
  },
487
+ {
488
+ inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }],
489
+ name: 'addDistribution',
490
+ outputs: [],
491
+ stateMutability: 'nonpayable',
492
+ type: 'function',
493
+ },
494
+ {
495
+ inputs: [
496
+ { internalType: 'address', name: 'owner', type: 'address' },
497
+ { internalType: 'address', name: 'spender', type: 'address' },
498
+ ],
499
+ name: 'allowance',
500
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
501
+ stateMutability: 'view',
502
+ type: 'function',
503
+ },
504
+ {
505
+ inputs: [
506
+ { internalType: 'address', name: 'spender', type: 'address' },
507
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
508
+ ],
509
+ name: 'approve',
510
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
511
+ stateMutability: 'nonpayable',
512
+ type: 'function',
513
+ },
514
+ {
515
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
516
+ name: 'authorizedDistributors',
517
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
518
+ stateMutability: 'view',
519
+ type: 'function',
520
+ },
521
+ {
522
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
523
+ name: 'balanceOf',
524
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
525
+ stateMutability: 'view',
526
+ type: 'function',
527
+ },
528
+ {
529
+ inputs: [
530
+ { internalType: 'address', name: 'recipient', type: 'address' },
531
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
532
+ ],
533
+ name: 'claim',
534
+ outputs: [],
535
+ stateMutability: 'nonpayable',
536
+ type: 'function',
537
+ },
538
+ {
539
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
540
+ name: 'claimedAmounts',
541
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
542
+ stateMutability: 'view',
543
+ type: 'function',
544
+ },
545
+ {
546
+ inputs: [],
547
+ name: 'contractURI',
548
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
549
+ stateMutability: 'view',
550
+ type: 'function',
551
+ },
552
+ {
553
+ inputs: [],
554
+ name: 'currentCheckpoint',
555
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
556
+ stateMutability: 'view',
557
+ type: 'function',
558
+ },
559
+ {
560
+ inputs: [],
561
+ name: 'decimals',
562
+ outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
563
+ stateMutability: 'view',
564
+ type: 'function',
565
+ },
566
+ {
567
+ inputs: [
568
+ { internalType: 'uint256', name: 'amountToDeflate', type: 'uint256' },
569
+ ],
570
+ name: 'deflate',
571
+ outputs: [],
572
+ stateMutability: 'nonpayable',
573
+ type: 'function',
574
+ },
575
+ {
576
+ inputs: [],
577
+ name: 'eip712Domain',
578
+ outputs: [
579
+ { internalType: 'bytes1', name: 'fields', type: 'bytes1' },
580
+ { internalType: 'string', name: 'name', type: 'string' },
581
+ { internalType: 'string', name: 'version', type: 'string' },
582
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
583
+ { internalType: 'address', name: 'verifyingContract', type: 'address' },
584
+ { internalType: 'bytes32', name: 'salt', type: 'bytes32' },
585
+ { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
586
+ ],
587
+ stateMutability: 'view',
588
+ type: 'function',
589
+ },
590
+ {
591
+ inputs: [
592
+ { internalType: 'address', name: 'token', type: 'address' },
593
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
594
+ ],
595
+ name: 'emergencyRecoverToken',
596
+ outputs: [],
597
+ stateMutability: 'nonpayable',
598
+ type: 'function',
599
+ },
600
+ {
601
+ inputs: [],
602
+ name: 'freezeMetadata',
603
+ outputs: [],
604
+ stateMutability: 'nonpayable',
605
+ type: 'function',
606
+ },
607
+ {
608
+ inputs: [
609
+ { internalType: 'uint256', name: 'checkpoint', type: 'uint256' },
610
+ { internalType: 'address', name: 'account', type: 'address' },
611
+ ],
612
+ name: 'getBalanceBeforeCheckpoint',
613
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
614
+ stateMutability: 'view',
615
+ type: 'function',
616
+ },
617
+ {
618
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
619
+ name: 'getClaimableAmount',
620
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
621
+ stateMutability: 'view',
622
+ type: 'function',
623
+ },
624
+ {
625
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
626
+ name: 'getDeflatedAmount',
627
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
628
+ stateMutability: 'view',
629
+ type: 'function',
630
+ },
631
+ {
632
+ inputs: [
633
+ { internalType: 'uint256', name: 'checkpoint', type: 'uint256' },
634
+ { internalType: 'address', name: 'account', type: 'address' },
635
+ ],
636
+ name: 'getDeflatedAmountAtCheckpoint',
637
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
638
+ stateMutability: 'view',
639
+ type: 'function',
640
+ },
641
+ {
642
+ inputs: [{ internalType: 'uint256', name: 'index', type: 'uint256' }],
643
+ name: 'getDrop',
644
+ outputs: [
645
+ { internalType: 'uint64', name: 'unlockTime', type: 'uint64' },
646
+ { internalType: 'uint128', name: 'amount', type: 'uint128' },
647
+ ],
648
+ stateMutability: 'view',
649
+ type: 'function',
650
+ },
651
+ {
652
+ inputs: [],
653
+ name: 'getDropCount',
654
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
655
+ stateMutability: 'view',
656
+ type: 'function',
657
+ },
658
+ {
659
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
660
+ name: 'getUnsyncedDeflatedAmount',
661
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
662
+ stateMutability: 'view',
663
+ type: 'function',
664
+ },
665
+ {
666
+ inputs: [],
667
+ name: 'metadataFrozen',
668
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
669
+ stateMutability: 'view',
670
+ type: 'function',
671
+ },
22
672
  {
23
673
  inputs: [],
24
674
  name: 'name',
@@ -26,6 +676,167 @@ exports.MIRROR_TOKEN_ABI = [
26
676
  stateMutability: 'view',
27
677
  type: 'function',
28
678
  },
679
+ {
680
+ inputs: [],
681
+ name: 'nestedDeflationaryToken',
682
+ outputs: [
683
+ { internalType: 'contract DeflationaryToken', name: '', type: 'address' },
684
+ ],
685
+ stateMutability: 'view',
686
+ type: 'function',
687
+ },
688
+ {
689
+ inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
690
+ name: 'nonces',
691
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
692
+ stateMutability: 'view',
693
+ type: 'function',
694
+ },
695
+ {
696
+ inputs: [],
697
+ name: 'owner',
698
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
699
+ stateMutability: 'view',
700
+ type: 'function',
701
+ },
702
+ {
703
+ inputs: [],
704
+ name: 'parentDeflator',
705
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
706
+ stateMutability: 'view',
707
+ type: 'function',
708
+ },
709
+ {
710
+ inputs: [],
711
+ name: 'pendingOwner',
712
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
713
+ stateMutability: 'view',
714
+ type: 'function',
715
+ },
716
+ {
717
+ inputs: [
718
+ { internalType: 'address', name: 'owner', type: 'address' },
719
+ { internalType: 'address', name: 'spender', type: 'address' },
720
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
721
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
722
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
723
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
724
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
725
+ ],
726
+ name: 'permit',
727
+ outputs: [],
728
+ stateMutability: 'nonpayable',
729
+ type: 'function',
730
+ },
731
+ {
732
+ inputs: [],
733
+ name: 'realToken',
734
+ outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }],
735
+ stateMutability: 'view',
736
+ type: 'function',
737
+ },
738
+ {
739
+ inputs: [],
740
+ name: 'renounceOwnership',
741
+ outputs: [],
742
+ stateMutability: 'nonpayable',
743
+ type: 'function',
744
+ },
745
+ {
746
+ inputs: [],
747
+ name: 'scheduleDocumentHash',
748
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
749
+ stateMutability: 'view',
750
+ type: 'function',
751
+ },
752
+ {
753
+ inputs: [],
754
+ name: 'scheduleURI',
755
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
756
+ stateMutability: 'view',
757
+ type: 'function',
758
+ },
759
+ {
760
+ inputs: [
761
+ { internalType: 'address', name: 'distributor', type: 'address' },
762
+ { internalType: 'bool', name: 'allowed', type: 'bool' },
763
+ ],
764
+ name: 'setAuthorizedDistributor',
765
+ outputs: [],
766
+ stateMutability: 'nonpayable',
767
+ type: 'function',
768
+ },
769
+ {
770
+ inputs: [{ internalType: 'string', name: 'newURI', type: 'string' }],
771
+ name: 'setContractURI',
772
+ outputs: [],
773
+ stateMutability: 'nonpayable',
774
+ type: 'function',
775
+ },
776
+ {
777
+ inputs: [
778
+ {
779
+ components: [
780
+ { internalType: 'uint64', name: 'unlockTime', type: 'uint64' },
781
+ { internalType: 'uint128', name: 'amount', type: 'uint128' },
782
+ ],
783
+ internalType: 'struct IMirrorTokenSchedule.Drop[]',
784
+ name: 'drops',
785
+ type: 'tuple[]',
786
+ },
787
+ ],
788
+ name: 'setDropSchedule',
789
+ outputs: [],
790
+ stateMutability: 'nonpayable',
791
+ type: 'function',
792
+ },
793
+ {
794
+ inputs: [
795
+ {
796
+ internalType: 'contract DeflationaryToken',
797
+ name: '_nestedDeflationaryToken',
798
+ type: 'address',
799
+ },
800
+ ],
801
+ name: 'setNestedDeflationaryToken',
802
+ outputs: [],
803
+ stateMutability: 'nonpayable',
804
+ type: 'function',
805
+ },
806
+ {
807
+ inputs: [{ internalType: 'address', name: 'parent', type: 'address' }],
808
+ name: 'setParentDeflator',
809
+ outputs: [],
810
+ stateMutability: 'nonpayable',
811
+ type: 'function',
812
+ },
813
+ {
814
+ inputs: [
815
+ { internalType: 'string', name: 'newURI', type: 'string' },
816
+ { internalType: 'bytes32', name: 'newDocumentHash', type: 'bytes32' },
817
+ ],
818
+ name: 'setScheduleMetadata',
819
+ outputs: [],
820
+ stateMutability: 'nonpayable',
821
+ type: 'function',
822
+ },
823
+ {
824
+ inputs: [
825
+ { internalType: 'string', name: 'newURI', type: 'string' },
826
+ { internalType: 'bytes32', name: 'newDocumentHash', type: 'bytes32' },
827
+ ],
828
+ name: 'setTdcMetadata',
829
+ outputs: [],
830
+ stateMutability: 'nonpayable',
831
+ type: 'function',
832
+ },
833
+ {
834
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
835
+ name: 'supportsInterface',
836
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
837
+ stateMutability: 'view',
838
+ type: 'function',
839
+ },
29
840
  {
30
841
  inputs: [],
31
842
  name: 'symbol',
@@ -35,8 +846,64 @@ exports.MIRROR_TOKEN_ABI = [
35
846
  },
36
847
  {
37
848
  inputs: [],
38
- name: 'decimals',
39
- outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
849
+ name: 'syncMyDeflation',
850
+ outputs: [],
851
+ stateMutability: 'nonpayable',
852
+ type: 'function',
853
+ },
854
+ {
855
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
856
+ name: 'syncedCheckpoints',
857
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
858
+ stateMutability: 'view',
859
+ type: 'function',
860
+ },
861
+ {
862
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
863
+ name: 'syncedDeflatedAmounts',
864
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
865
+ stateMutability: 'view',
866
+ type: 'function',
867
+ },
868
+ {
869
+ inputs: [],
870
+ name: 'tdcDocumentHash',
871
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
872
+ stateMutability: 'view',
873
+ type: 'function',
874
+ },
875
+ {
876
+ inputs: [],
877
+ name: 'tdcURI',
878
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
879
+ stateMutability: 'view',
880
+ type: 'function',
881
+ },
882
+ {
883
+ inputs: [],
884
+ name: 'totalAmount',
885
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
886
+ stateMutability: 'view',
887
+ type: 'function',
888
+ },
889
+ {
890
+ inputs: [],
891
+ name: 'totalDeflatedAmount',
892
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
893
+ stateMutability: 'view',
894
+ type: 'function',
895
+ },
896
+ {
897
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
898
+ name: 'totalDeflatedAmountsAtCheckpoint',
899
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
900
+ stateMutability: 'view',
901
+ type: 'function',
902
+ },
903
+ {
904
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
905
+ name: 'totalSuppliesBeforeCheckpoint',
906
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
40
907
  stateMutability: 'view',
41
908
  type: 'function',
42
909
  },
@@ -48,11 +915,39 @@ exports.MIRROR_TOKEN_ABI = [
48
915
  type: 'function',
49
916
  },
50
917
  {
51
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
52
- name: 'balanceOf',
918
+ inputs: [],
919
+ name: 'totalSyncedDeflatedAmount',
53
920
  outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
54
921
  stateMutability: 'view',
55
922
  type: 'function',
56
923
  },
924
+ {
925
+ inputs: [
926
+ { internalType: 'address', name: 'to', type: 'address' },
927
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
928
+ ],
929
+ name: 'transfer',
930
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
931
+ stateMutability: 'nonpayable',
932
+ type: 'function',
933
+ },
934
+ {
935
+ inputs: [
936
+ { internalType: 'address', name: 'from', type: 'address' },
937
+ { internalType: 'address', name: 'to', type: 'address' },
938
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
939
+ ],
940
+ name: 'transferFrom',
941
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
942
+ stateMutability: 'nonpayable',
943
+ type: 'function',
944
+ },
945
+ {
946
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
947
+ name: 'transferOwnership',
948
+ outputs: [],
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
+ },
57
952
  ];
58
953
  //# sourceMappingURL=mirror-token-abi.js.map