@1stdex/first-sdk 1.0.21 → 1.0.23

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