tempo.ts 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/viem/abis.js CHANGED
@@ -1,1599 +1,861 @@
1
1
  // Generated with `bun run gen:abis`. Do not modify manually.
2
- import * as Abi from 'ox/Abi';
3
- export const feeAmmAbi = Abi.from([
4
- { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
2
+ export const tip20Abi = [
5
3
  {
4
+ name: 'name',
6
5
  type: 'function',
7
- name: 'M',
8
- inputs: [],
9
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
10
6
  stateMutability: 'view',
11
- },
12
- {
13
- type: 'function',
14
- name: 'MIN_LIQUIDITY',
15
7
  inputs: [],
16
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
17
- stateMutability: 'view',
8
+ outputs: [{ type: 'string' }],
18
9
  },
19
10
  {
11
+ name: 'symbol',
20
12
  type: 'function',
21
- name: 'N',
22
- inputs: [],
23
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
24
13
  stateMutability: 'view',
25
- },
26
- {
27
- type: 'function',
28
- name: 'SCALE',
29
14
  inputs: [],
30
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
31
- stateMutability: 'view',
32
- },
33
- {
34
- type: 'function',
35
- name: 'burn',
36
- inputs: [
37
- { name: 'userToken', type: 'address', internalType: 'address' },
38
- { name: 'validatorToken', type: 'address', internalType: 'address' },
39
- { name: 'liquidity', type: 'uint256', internalType: 'uint256' },
40
- { name: 'to', type: 'address', internalType: 'address' },
41
- ],
42
- outputs: [
43
- { name: 'amountUserToken', type: 'uint256', internalType: 'uint256' },
44
- {
45
- name: 'amountValidatorToken',
46
- type: 'uint256',
47
- internalType: 'uint256',
48
- },
49
- ],
50
- stateMutability: 'nonpayable',
15
+ outputs: [{ type: 'string' }],
51
16
  },
52
17
  {
18
+ name: 'decimals',
53
19
  type: 'function',
54
- name: 'getPool',
55
- inputs: [
56
- { name: 'userToken', type: 'address', internalType: 'address' },
57
- { name: 'validatorToken', type: 'address', internalType: 'address' },
58
- ],
59
- outputs: [
60
- {
61
- name: '',
62
- type: 'tuple',
63
- internalType: 'struct FeeAMM.Pool',
64
- components: [
65
- {
66
- name: 'reserveUserToken',
67
- type: 'uint128',
68
- internalType: 'uint128',
69
- },
70
- {
71
- name: 'reserveValidatorToken',
72
- type: 'uint128',
73
- internalType: 'uint128',
74
- },
75
- ],
76
- },
77
- ],
78
20
  stateMutability: 'view',
21
+ inputs: [],
22
+ outputs: [{ type: 'uint8' }],
79
23
  },
80
24
  {
25
+ name: 'totalSupply',
81
26
  type: 'function',
82
- name: 'getPoolId',
83
- inputs: [
84
- { name: 'userToken', type: 'address', internalType: 'address' },
85
- { name: 'validatorToken', type: 'address', internalType: 'address' },
86
- ],
87
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
88
- stateMutability: 'pure',
27
+ stateMutability: 'view',
28
+ inputs: [],
29
+ outputs: [{ type: 'uint256' }],
89
30
  },
90
31
  {
32
+ name: 'balanceOf',
91
33
  type: 'function',
92
- name: 'liquidityBalances',
93
- inputs: [
94
- { name: '', type: 'bytes32', internalType: 'bytes32' },
95
- { name: '', type: 'address', internalType: 'address' },
96
- ],
97
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
98
34
  stateMutability: 'view',
35
+ inputs: [{ type: 'address', name: 'account' }],
36
+ outputs: [{ type: 'uint256' }],
99
37
  },
100
38
  {
39
+ name: 'transfer',
101
40
  type: 'function',
102
- name: 'mint',
103
- inputs: [
104
- { name: 'userToken', type: 'address', internalType: 'address' },
105
- { name: 'validatorToken', type: 'address', internalType: 'address' },
106
- { name: 'amountUserToken', type: 'uint256', internalType: 'uint256' },
107
- {
108
- name: 'amountValidatorToken',
109
- type: 'uint256',
110
- internalType: 'uint256',
111
- },
112
- { name: 'to', type: 'address', internalType: 'address' },
113
- ],
114
- outputs: [{ name: 'liquidity', type: 'uint256', internalType: 'uint256' }],
115
41
  stateMutability: 'nonpayable',
116
- },
117
- {
118
- type: 'function',
119
- name: 'pools',
120
- inputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
121
- outputs: [
122
- { name: 'reserveUserToken', type: 'uint128', internalType: 'uint128' },
123
- {
124
- name: 'reserveValidatorToken',
125
- type: 'uint128',
126
- internalType: 'uint128',
127
- },
42
+ inputs: [
43
+ { type: 'address', name: 'to' },
44
+ { type: 'uint256', name: 'amount' },
128
45
  ],
129
- stateMutability: 'view',
46
+ outputs: [{ type: 'bool' }],
130
47
  },
131
48
  {
49
+ name: 'approve',
132
50
  type: 'function',
133
- name: 'rebalanceSwap',
51
+ stateMutability: 'nonpayable',
134
52
  inputs: [
135
- { name: 'userToken', type: 'address', internalType: 'address' },
136
- { name: 'validatorToken', type: 'address', internalType: 'address' },
137
- { name: 'amountOut', type: 'uint256', internalType: 'uint256' },
138
- { name: 'to', type: 'address', internalType: 'address' },
53
+ { type: 'address', name: 'spender' },
54
+ { type: 'uint256', name: 'amount' },
139
55
  ],
140
- outputs: [{ name: 'amountIn', type: 'uint256', internalType: 'uint256' }],
141
- stateMutability: 'nonpayable',
56
+ outputs: [{ type: 'bool' }],
142
57
  },
143
58
  {
59
+ name: 'allowance',
144
60
  type: 'function',
145
- name: 'totalSupply',
146
- inputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
147
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
148
61
  stateMutability: 'view',
149
- },
150
- {
151
- type: 'event',
152
- name: 'Burn',
153
- inputs: [
154
- {
155
- name: 'sender',
156
- type: 'address',
157
- indexed: true,
158
- internalType: 'address',
159
- },
160
- {
161
- name: 'userToken',
162
- type: 'address',
163
- indexed: true,
164
- internalType: 'address',
165
- },
166
- {
167
- name: 'validatorToken',
168
- type: 'address',
169
- indexed: true,
170
- internalType: 'address',
171
- },
172
- {
173
- name: 'amountUserToken',
174
- type: 'uint256',
175
- indexed: false,
176
- internalType: 'uint256',
177
- },
178
- {
179
- name: 'amountValidatorToken',
180
- type: 'uint256',
181
- indexed: false,
182
- internalType: 'uint256',
183
- },
184
- {
185
- name: 'liquidity',
186
- type: 'uint256',
187
- indexed: false,
188
- internalType: 'uint256',
189
- },
190
- { name: 'to', type: 'address', indexed: false, internalType: 'address' },
191
- ],
192
- anonymous: false,
193
- },
194
- {
195
- type: 'event',
196
- name: 'FeeSwap',
197
- inputs: [
198
- {
199
- name: 'userToken',
200
- type: 'address',
201
- indexed: true,
202
- internalType: 'address',
203
- },
204
- {
205
- name: 'validatorToken',
206
- type: 'address',
207
- indexed: true,
208
- internalType: 'address',
209
- },
210
- {
211
- name: 'amountIn',
212
- type: 'uint256',
213
- indexed: false,
214
- internalType: 'uint256',
215
- },
216
- {
217
- name: 'amountOut',
218
- type: 'uint256',
219
- indexed: false,
220
- internalType: 'uint256',
221
- },
222
- ],
223
- anonymous: false,
224
- },
225
- {
226
- type: 'event',
227
- name: 'Mint',
228
62
  inputs: [
229
- {
230
- name: 'sender',
231
- type: 'address',
232
- indexed: true,
233
- internalType: 'address',
234
- },
235
- {
236
- name: 'userToken',
237
- type: 'address',
238
- indexed: true,
239
- internalType: 'address',
240
- },
241
- {
242
- name: 'validatorToken',
243
- type: 'address',
244
- indexed: true,
245
- internalType: 'address',
246
- },
247
- {
248
- name: 'amountUserToken',
249
- type: 'uint256',
250
- indexed: false,
251
- internalType: 'uint256',
252
- },
253
- {
254
- name: 'amountValidatorToken',
255
- type: 'uint256',
256
- indexed: false,
257
- internalType: 'uint256',
258
- },
259
- {
260
- name: 'liquidity',
261
- type: 'uint256',
262
- indexed: false,
263
- internalType: 'uint256',
264
- },
63
+ { type: 'address', name: 'owner' },
64
+ { type: 'address', name: 'spender' },
265
65
  ],
266
- anonymous: false,
66
+ outputs: [{ type: 'uint256' }],
267
67
  },
268
68
  {
269
- type: 'event',
270
- name: 'RebalanceSwap',
271
- inputs: [
272
- {
273
- name: 'userToken',
274
- type: 'address',
275
- indexed: true,
276
- internalType: 'address',
277
- },
278
- {
279
- name: 'validatorToken',
280
- type: 'address',
281
- indexed: true,
282
- internalType: 'address',
283
- },
284
- {
285
- name: 'swapper',
286
- type: 'address',
287
- indexed: true,
288
- internalType: 'address',
289
- },
290
- {
291
- name: 'amountIn',
292
- type: 'uint256',
293
- indexed: false,
294
- internalType: 'uint256',
295
- },
296
- {
297
- name: 'amountOut',
298
- type: 'uint256',
299
- indexed: false,
300
- internalType: 'uint256',
301
- },
302
- ],
303
- anonymous: false,
304
- },
305
- ]);
306
- export const tip20RolesAuthAbi = Abi.from([
307
- {
69
+ name: 'transferFrom',
308
70
  type: 'function',
309
- name: 'grantRole',
71
+ stateMutability: 'nonpayable',
310
72
  inputs: [
311
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
312
- { name: 'account', type: 'address', internalType: 'address' },
73
+ { type: 'address', name: 'from' },
74
+ { type: 'address', name: 'to' },
75
+ { type: 'uint256', name: 'amount' },
313
76
  ],
314
- outputs: [],
315
- stateMutability: 'nonpayable',
77
+ outputs: [{ type: 'bool' }],
316
78
  },
317
79
  {
80
+ name: 'mint',
318
81
  type: 'function',
319
- name: 'renounceRole',
320
- inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
321
- outputs: [],
322
82
  stateMutability: 'nonpayable',
323
- },
324
- {
325
- type: 'function',
326
- name: 'revokeRole',
327
83
  inputs: [
328
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
329
- { name: 'account', type: 'address', internalType: 'address' },
84
+ { type: 'address', name: 'to' },
85
+ { type: 'uint256', name: 'amount' },
330
86
  ],
331
87
  outputs: [],
332
- stateMutability: 'nonpayable',
333
88
  },
334
89
  {
90
+ name: 'burn',
335
91
  type: 'function',
336
- name: 'setRoleAdmin',
337
- inputs: [
338
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
339
- { name: 'adminRole', type: 'bytes32', internalType: 'bytes32' },
340
- ],
341
- outputs: [],
342
92
  stateMutability: 'nonpayable',
93
+ inputs: [{ type: 'uint256', name: 'amount' }],
94
+ outputs: [],
343
95
  },
344
96
  {
345
- type: 'event',
346
- name: 'RoleAdminUpdated',
347
- inputs: [
348
- { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
349
- {
350
- name: 'newAdminRole',
351
- type: 'bytes32',
352
- indexed: true,
353
- internalType: 'bytes32',
354
- },
355
- {
356
- name: 'sender',
357
- type: 'address',
358
- indexed: true,
359
- internalType: 'address',
360
- },
361
- ],
362
- anonymous: false,
363
- },
364
- {
365
- type: 'event',
366
- name: 'RoleMembershipUpdated',
367
- inputs: [
368
- { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
369
- {
370
- name: 'account',
371
- type: 'address',
372
- indexed: true,
373
- internalType: 'address',
374
- },
375
- {
376
- name: 'sender',
377
- type: 'address',
378
- indexed: true,
379
- internalType: 'address',
380
- },
381
- { name: 'hasRole', type: 'bool', indexed: false, internalType: 'bool' },
382
- ],
383
- anonymous: false,
97
+ name: 'currency',
98
+ type: 'function',
99
+ stateMutability: 'view',
100
+ inputs: [],
101
+ outputs: [{ type: 'string' }],
384
102
  },
385
- { type: 'error', name: 'Unauthorized', inputs: [] },
386
- ]);
387
- export const feeManagerAbi = Abi.from([
388
- { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
389
103
  {
104
+ name: 'supplyCap',
390
105
  type: 'function',
391
- name: 'M',
392
- inputs: [],
393
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
394
106
  stateMutability: 'view',
107
+ inputs: [],
108
+ outputs: [{ type: 'uint256' }],
395
109
  },
396
110
  {
111
+ name: 'paused',
397
112
  type: 'function',
398
- name: 'MIN_LIQUIDITY',
399
- inputs: [],
400
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
401
113
  stateMutability: 'view',
114
+ inputs: [],
115
+ outputs: [{ type: 'bool' }],
402
116
  },
403
117
  {
118
+ name: 'transferPolicyId',
404
119
  type: 'function',
405
- name: 'N',
406
- inputs: [],
407
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
408
120
  stateMutability: 'view',
121
+ inputs: [],
122
+ outputs: [{ type: 'uint64' }],
409
123
  },
410
124
  {
125
+ name: 'nonces',
411
126
  type: 'function',
412
- name: 'SCALE',
413
- inputs: [],
414
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
415
127
  stateMutability: 'view',
128
+ inputs: [{ type: 'address', name: 'owner' }],
129
+ outputs: [{ type: 'uint256' }],
416
130
  },
417
131
  {
132
+ name: 'salts',
418
133
  type: 'function',
419
- name: 'burn',
134
+ stateMutability: 'view',
420
135
  inputs: [
421
- { name: 'userToken', type: 'address', internalType: 'address' },
422
- { name: 'validatorToken', type: 'address', internalType: 'address' },
423
- { name: 'liquidity', type: 'uint256', internalType: 'uint256' },
424
- { name: 'to', type: 'address', internalType: 'address' },
425
- ],
426
- outputs: [
427
- { name: 'amountUserToken', type: 'uint256', internalType: 'uint256' },
428
- {
429
- name: 'amountValidatorToken',
430
- type: 'uint256',
431
- internalType: 'uint256',
432
- },
136
+ { type: 'address', name: 'owner' },
137
+ { type: 'bytes4', name: 'salt' },
433
138
  ],
434
- stateMutability: 'nonpayable',
139
+ outputs: [{ type: 'bool' }],
435
140
  },
436
141
  {
142
+ name: 'burnBlocked',
437
143
  type: 'function',
438
- name: 'collectFeePostTx',
144
+ stateMutability: 'nonpayable',
439
145
  inputs: [
440
- { name: 'user', type: 'address', internalType: 'address' },
441
- { name: 'maxAmount', type: 'uint256', internalType: 'uint256' },
442
- { name: 'actualUsed', type: 'uint256', internalType: 'uint256' },
443
- { name: 'userToken', type: 'address', internalType: 'address' },
444
- { name: 'validatorToken', type: 'address', internalType: 'address' },
146
+ { type: 'address', name: 'from' },
147
+ { type: 'uint256', name: 'amount' },
445
148
  ],
446
149
  outputs: [],
447
- stateMutability: 'nonpayable',
448
150
  },
449
151
  {
152
+ name: 'mintWithMemo',
450
153
  type: 'function',
451
- name: 'collectFeePreTx',
154
+ stateMutability: 'nonpayable',
452
155
  inputs: [
453
- { name: 'user', type: 'address', internalType: 'address' },
454
- { name: 'txToAddress', type: 'address', internalType: 'address' },
455
- { name: 'maxAmount', type: 'uint256', internalType: 'uint256' },
156
+ { type: 'address', name: 'to' },
157
+ { type: 'uint256', name: 'amount' },
158
+ { type: 'bytes32', name: 'memo' },
456
159
  ],
457
- outputs: [{ name: 'userToken', type: 'address', internalType: 'address' }],
458
- stateMutability: 'nonpayable',
459
- },
460
- {
461
- type: 'function',
462
- name: 'executeBlock',
463
- inputs: [],
464
160
  outputs: [],
465
- stateMutability: 'nonpayable',
466
161
  },
467
162
  {
163
+ name: 'burnWithMemo',
468
164
  type: 'function',
469
- name: 'getPool',
165
+ stateMutability: 'nonpayable',
470
166
  inputs: [
471
- { name: 'userToken', type: 'address', internalType: 'address' },
472
- { name: 'validatorToken', type: 'address', internalType: 'address' },
473
- ],
474
- outputs: [
475
- {
476
- name: '',
477
- type: 'tuple',
478
- internalType: 'struct FeeAMM.Pool',
479
- components: [
480
- {
481
- name: 'reserveUserToken',
482
- type: 'uint128',
483
- internalType: 'uint128',
484
- },
485
- {
486
- name: 'reserveValidatorToken',
487
- type: 'uint128',
488
- internalType: 'uint128',
489
- },
490
- ],
491
- },
167
+ { type: 'uint256', name: 'amount' },
168
+ { type: 'bytes32', name: 'memo' },
492
169
  ],
493
- stateMutability: 'view',
170
+ outputs: [],
494
171
  },
495
172
  {
173
+ name: 'transferWithMemo',
496
174
  type: 'function',
497
- name: 'getPoolId',
175
+ stateMutability: 'nonpayable',
498
176
  inputs: [
499
- { name: 'userToken', type: 'address', internalType: 'address' },
500
- { name: 'validatorToken', type: 'address', internalType: 'address' },
177
+ { type: 'address', name: 'to' },
178
+ { type: 'uint256', name: 'amount' },
179
+ { type: 'bytes32', name: 'memo' },
501
180
  ],
502
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
503
- stateMutability: 'pure',
181
+ outputs: [],
504
182
  },
505
183
  {
184
+ name: 'transferFromWithMemo',
506
185
  type: 'function',
507
- name: 'liquidityBalances',
186
+ stateMutability: 'nonpayable',
508
187
  inputs: [
509
- { name: '', type: 'bytes32', internalType: 'bytes32' },
510
- { name: '', type: 'address', internalType: 'address' },
188
+ { type: 'address', name: 'from' },
189
+ { type: 'address', name: 'to' },
190
+ { type: 'uint256', name: 'amount' },
191
+ { type: 'bytes32', name: 'memo' },
511
192
  ],
512
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
513
- stateMutability: 'view',
193
+ outputs: [],
514
194
  },
515
195
  {
196
+ name: 'changeTransferPolicyId',
516
197
  type: 'function',
517
- name: 'mint',
518
- inputs: [
519
- { name: 'userToken', type: 'address', internalType: 'address' },
520
- { name: 'validatorToken', type: 'address', internalType: 'address' },
521
- { name: 'amountUserToken', type: 'uint256', internalType: 'uint256' },
522
- {
523
- name: 'amountValidatorToken',
524
- type: 'uint256',
525
- internalType: 'uint256',
526
- },
527
- { name: 'to', type: 'address', internalType: 'address' },
528
- ],
529
- outputs: [{ name: 'liquidity', type: 'uint256', internalType: 'uint256' }],
530
198
  stateMutability: 'nonpayable',
199
+ inputs: [{ type: 'uint64', name: 'newPolicyId' }],
200
+ outputs: [],
531
201
  },
532
202
  {
203
+ name: 'setSupplyCap',
533
204
  type: 'function',
534
- name: 'pools',
535
- inputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
536
- outputs: [
537
- { name: 'reserveUserToken', type: 'uint128', internalType: 'uint128' },
538
- {
539
- name: 'reserveValidatorToken',
540
- type: 'uint128',
541
- internalType: 'uint128',
542
- },
543
- ],
544
- stateMutability: 'view',
545
- },
546
- {
547
- type: 'function',
548
- name: 'rebalanceSwap',
549
- inputs: [
550
- { name: 'userToken', type: 'address', internalType: 'address' },
551
- { name: 'validatorToken', type: 'address', internalType: 'address' },
552
- { name: 'amountOut', type: 'uint256', internalType: 'uint256' },
553
- { name: 'to', type: 'address', internalType: 'address' },
554
- ],
555
- outputs: [{ name: 'amountIn', type: 'uint256', internalType: 'uint256' }],
556
205
  stateMutability: 'nonpayable',
557
- },
558
- {
559
- type: 'function',
560
- name: 'setUserToken',
561
- inputs: [{ name: 'token', type: 'address', internalType: 'address' }],
206
+ inputs: [{ type: 'uint256', name: 'newSupplyCap' }],
562
207
  outputs: [],
563
- stateMutability: 'nonpayable',
564
208
  },
565
209
  {
210
+ name: 'pause',
566
211
  type: 'function',
567
- name: 'setValidatorToken',
568
- inputs: [{ name: 'token', type: 'address', internalType: 'address' }],
569
- outputs: [],
570
212
  stateMutability: 'nonpayable',
213
+ inputs: [],
214
+ outputs: [],
571
215
  },
572
216
  {
217
+ name: 'unpause',
573
218
  type: 'function',
574
- name: 'totalSupply',
575
- inputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
576
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
577
- stateMutability: 'view',
219
+ stateMutability: 'nonpayable',
220
+ inputs: [],
221
+ outputs: [],
578
222
  },
579
223
  {
224
+ name: 'permit',
580
225
  type: 'function',
581
- name: 'userTokens',
582
- inputs: [{ name: '', type: 'address', internalType: 'address' }],
583
- outputs: [{ name: '', type: 'address', internalType: 'address' }],
584
- stateMutability: 'view',
226
+ stateMutability: 'nonpayable',
227
+ inputs: [
228
+ { type: 'address', name: 'owner' },
229
+ { type: 'address', name: 'spender' },
230
+ { type: 'uint256', name: 'value' },
231
+ { type: 'uint256', name: 'deadline' },
232
+ { type: 'uint8', name: 'v' },
233
+ { type: 'bytes32', name: 'r' },
234
+ { type: 'bytes32', name: 's' },
235
+ ],
236
+ outputs: [],
585
237
  },
586
238
  {
239
+ name: 'DOMAIN_SEPARATOR',
587
240
  type: 'function',
588
- name: 'validatorTokens',
589
- inputs: [{ name: '', type: 'address', internalType: 'address' }],
590
- outputs: [{ name: '', type: 'address', internalType: 'address' }],
591
241
  stateMutability: 'view',
242
+ inputs: [],
243
+ outputs: [{ type: 'bytes32' }],
592
244
  },
593
245
  {
246
+ name: 'Transfer',
594
247
  type: 'event',
595
- name: 'Burn',
596
248
  inputs: [
597
- {
598
- name: 'sender',
599
- type: 'address',
600
- indexed: true,
601
- internalType: 'address',
602
- },
603
- {
604
- name: 'userToken',
605
- type: 'address',
606
- indexed: true,
607
- internalType: 'address',
608
- },
609
- {
610
- name: 'validatorToken',
611
- type: 'address',
612
- indexed: true,
613
- internalType: 'address',
614
- },
615
- {
616
- name: 'amountUserToken',
617
- type: 'uint256',
618
- indexed: false,
619
- internalType: 'uint256',
620
- },
621
- {
622
- name: 'amountValidatorToken',
623
- type: 'uint256',
624
- indexed: false,
625
- internalType: 'uint256',
626
- },
627
- {
628
- name: 'liquidity',
629
- type: 'uint256',
630
- indexed: false,
631
- internalType: 'uint256',
632
- },
633
- { name: 'to', type: 'address', indexed: false, internalType: 'address' },
249
+ { type: 'address', name: 'from', indexed: true },
250
+ { type: 'address', name: 'to', indexed: true },
251
+ { type: 'uint256', name: 'amount' },
634
252
  ],
635
- anonymous: false,
636
253
  },
637
254
  {
255
+ name: 'Approval',
638
256
  type: 'event',
639
- name: 'FeeSwap',
640
257
  inputs: [
641
- {
642
- name: 'userToken',
643
- type: 'address',
644
- indexed: true,
645
- internalType: 'address',
646
- },
647
- {
648
- name: 'validatorToken',
649
- type: 'address',
650
- indexed: true,
651
- internalType: 'address',
652
- },
653
- {
654
- name: 'amountIn',
655
- type: 'uint256',
656
- indexed: false,
657
- internalType: 'uint256',
658
- },
659
- {
660
- name: 'amountOut',
661
- type: 'uint256',
662
- indexed: false,
663
- internalType: 'uint256',
664
- },
258
+ { type: 'address', name: 'owner', indexed: true },
259
+ { type: 'address', name: 'spender', indexed: true },
260
+ { type: 'uint256', name: 'amount' },
665
261
  ],
666
- anonymous: false,
667
262
  },
668
263
  {
669
- type: 'event',
670
264
  name: 'Mint',
265
+ type: 'event',
671
266
  inputs: [
672
- {
673
- name: 'sender',
674
- type: 'address',
675
- indexed: true,
676
- internalType: 'address',
677
- },
678
- {
679
- name: 'userToken',
680
- type: 'address',
681
- indexed: true,
682
- internalType: 'address',
683
- },
684
- {
685
- name: 'validatorToken',
686
- type: 'address',
687
- indexed: true,
688
- internalType: 'address',
689
- },
690
- {
691
- name: 'amountUserToken',
692
- type: 'uint256',
693
- indexed: false,
694
- internalType: 'uint256',
695
- },
696
- {
697
- name: 'amountValidatorToken',
698
- type: 'uint256',
699
- indexed: false,
700
- internalType: 'uint256',
701
- },
702
- {
703
- name: 'liquidity',
704
- type: 'uint256',
705
- indexed: false,
706
- internalType: 'uint256',
707
- },
267
+ { type: 'address', name: 'to', indexed: true },
268
+ { type: 'uint256', name: 'amount' },
708
269
  ],
709
- anonymous: false,
710
270
  },
711
271
  {
272
+ name: 'Burn',
712
273
  type: 'event',
713
- name: 'RebalanceSwap',
714
274
  inputs: [
715
- {
716
- name: 'userToken',
717
- type: 'address',
718
- indexed: true,
719
- internalType: 'address',
720
- },
721
- {
722
- name: 'validatorToken',
723
- type: 'address',
724
- indexed: true,
725
- internalType: 'address',
726
- },
727
- {
728
- name: 'swapper',
729
- type: 'address',
730
- indexed: true,
731
- internalType: 'address',
732
- },
733
- {
734
- name: 'amountIn',
735
- type: 'uint256',
736
- indexed: false,
737
- internalType: 'uint256',
738
- },
739
- {
740
- name: 'amountOut',
741
- type: 'uint256',
742
- indexed: false,
743
- internalType: 'uint256',
744
- },
275
+ { type: 'address', name: 'from', indexed: true },
276
+ { type: 'uint256', name: 'amount' },
745
277
  ],
746
- anonymous: false,
747
278
  },
748
279
  {
280
+ name: 'BurnBlocked',
749
281
  type: 'event',
750
- name: 'UserTokenSet',
751
282
  inputs: [
752
- { name: 'user', type: 'address', indexed: true, internalType: 'address' },
753
- {
754
- name: 'token',
755
- type: 'address',
756
- indexed: true,
757
- internalType: 'address',
758
- },
283
+ { type: 'address', name: 'from', indexed: true },
284
+ { type: 'uint256', name: 'amount' },
759
285
  ],
760
- anonymous: false,
761
286
  },
762
287
  {
288
+ name: 'TransferWithMemo',
763
289
  type: 'event',
764
- name: 'ValidatorTokenSet',
765
290
  inputs: [
766
- {
767
- name: 'validator',
768
- type: 'address',
769
- indexed: true,
770
- internalType: 'address',
771
- },
772
- {
773
- name: 'token',
774
- type: 'address',
775
- indexed: true,
776
- internalType: 'address',
777
- },
291
+ { type: 'address', name: 'from', indexed: true },
292
+ { type: 'address', name: 'to', indexed: true },
293
+ { type: 'uint256', name: 'amount' },
294
+ { type: 'bytes32', name: 'memo' },
778
295
  ],
779
- anonymous: false,
780
296
  },
781
- ]);
782
- export const tip20Abi = Abi.from([
783
297
  {
784
- type: 'constructor',
298
+ name: 'TransferPolicyUpdate',
299
+ type: 'event',
785
300
  inputs: [
786
- { name: '_name', type: 'string', internalType: 'string' },
787
- { name: '_symbol', type: 'string', internalType: 'string' },
788
- { name: '_currency', type: 'string', internalType: 'string' },
789
- { name: 'admin', type: 'address', internalType: 'address' },
301
+ { type: 'address', name: 'updater', indexed: true },
302
+ { type: 'uint64', name: 'newPolicyId', indexed: true },
790
303
  ],
791
- stateMutability: 'nonpayable',
792
- },
793
- {
794
- type: 'function',
795
- name: 'BURN_BLOCKED_ROLE',
796
- inputs: [],
797
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
798
- stateMutability: 'view',
799
- },
800
- {
801
- type: 'function',
802
- name: 'DOMAIN_SEPARATOR',
803
- inputs: [],
804
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
805
- stateMutability: 'view',
806
- },
807
- {
808
- type: 'function',
809
- name: 'ISSUER_ROLE',
810
- inputs: [],
811
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
812
- stateMutability: 'view',
813
- },
814
- {
815
- type: 'function',
816
- name: 'PAUSE_ROLE',
817
- inputs: [],
818
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
819
- stateMutability: 'view',
820
304
  },
821
305
  {
822
- type: 'function',
823
- name: 'UNPAUSE_ROLE',
824
- inputs: [],
825
- outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
826
- stateMutability: 'view',
827
- },
828
- {
829
- type: 'function',
830
- name: 'allowance',
306
+ name: 'SupplyCapUpdate',
307
+ type: 'event',
831
308
  inputs: [
832
- { name: '', type: 'address', internalType: 'address' },
833
- { name: '', type: 'address', internalType: 'address' },
309
+ { type: 'address', name: 'updater', indexed: true },
310
+ { type: 'uint256', name: 'newSupplyCap', indexed: true },
834
311
  ],
835
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
836
- stateMutability: 'view',
837
312
  },
838
313
  {
839
- type: 'function',
840
- name: 'approve',
314
+ name: 'PauseStateUpdate',
315
+ type: 'event',
841
316
  inputs: [
842
- { name: 'spender', type: 'address', internalType: 'address' },
843
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
317
+ { type: 'address', name: 'updater', indexed: true },
318
+ { type: 'bool', name: 'isPaused' },
844
319
  ],
845
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
846
- stateMutability: 'nonpayable',
847
- },
848
- {
849
- type: 'function',
850
- name: 'balanceOf',
851
- inputs: [{ name: '', type: 'address', internalType: 'address' }],
852
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
853
- stateMutability: 'view',
854
320
  },
321
+ { name: 'InsufficientBalance', type: 'error', inputs: [] },
322
+ { name: 'InsufficientAllowance', type: 'error', inputs: [] },
323
+ { name: 'SupplyCapExceeded', type: 'error', inputs: [] },
324
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
325
+ { name: 'InvalidPayload', type: 'error', inputs: [] },
326
+ { name: 'InvalidNonce', type: 'error', inputs: [] },
327
+ { name: 'StringTooLong', type: 'error', inputs: [] },
328
+ { name: 'PolicyForbids', type: 'error', inputs: [] },
329
+ { name: 'InvalidRecipient', type: 'error', inputs: [] },
330
+ { name: 'Expired', type: 'error', inputs: [] },
331
+ { name: 'SaltAlreadyUsed', type: 'error', inputs: [] },
332
+ { name: 'ContractPaused', type: 'error', inputs: [] },
333
+ { name: 'InvalidCurrency', type: 'error', inputs: [] },
855
334
  {
335
+ name: 'grantRole',
856
336
  type: 'function',
857
- name: 'burn',
858
- inputs: [{ name: 'amount', type: 'uint256', internalType: 'uint256' }],
859
- outputs: [],
860
337
  stateMutability: 'nonpayable',
861
- },
862
- {
863
- type: 'function',
864
- name: 'burnBlocked',
865
338
  inputs: [
866
- { name: 'from', type: 'address', internalType: 'address' },
867
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
339
+ { type: 'bytes32', name: 'role' },
340
+ { type: 'address', name: 'account' },
868
341
  ],
869
342
  outputs: [],
870
- stateMutability: 'nonpayable',
871
343
  },
872
344
  {
345
+ name: 'revokeRole',
873
346
  type: 'function',
874
- name: 'burnWithMemo',
347
+ stateMutability: 'nonpayable',
875
348
  inputs: [
876
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
877
- { name: 'memo', type: 'bytes32', internalType: 'bytes32' },
349
+ { type: 'bytes32', name: 'role' },
350
+ { type: 'address', name: 'account' },
878
351
  ],
879
352
  outputs: [],
880
- stateMutability: 'nonpayable',
881
353
  },
882
354
  {
355
+ name: 'renounceRole',
883
356
  type: 'function',
884
- name: 'changeTransferPolicyId',
885
- inputs: [{ name: 'newPolicyId', type: 'uint64', internalType: 'uint64' }],
886
- outputs: [],
887
357
  stateMutability: 'nonpayable',
888
- },
889
- {
890
- type: 'function',
891
- name: 'currency',
892
- inputs: [],
893
- outputs: [{ name: '', type: 'string', internalType: 'string' }],
894
- stateMutability: 'view',
895
- },
896
- {
897
- type: 'function',
898
- name: 'decimals',
899
- inputs: [],
900
- outputs: [{ name: '', type: 'uint8', internalType: 'uint8' }],
901
- stateMutability: 'view',
902
- },
903
- {
904
- type: 'function',
905
- name: 'grantRole',
906
- inputs: [
907
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
908
- { name: 'account', type: 'address', internalType: 'address' },
909
- ],
358
+ inputs: [{ type: 'bytes32', name: 'role' }],
910
359
  outputs: [],
911
- stateMutability: 'nonpayable',
912
360
  },
913
361
  {
362
+ name: 'setRoleAdmin',
914
363
  type: 'function',
915
- name: 'mint',
916
- inputs: [
917
- { name: 'to', type: 'address', internalType: 'address' },
918
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
919
- ],
920
- outputs: [],
921
364
  stateMutability: 'nonpayable',
922
- },
923
- {
924
- type: 'function',
925
- name: 'mintWithMemo',
926
365
  inputs: [
927
- { name: 'to', type: 'address', internalType: 'address' },
928
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
929
- { name: 'memo', type: 'bytes32', internalType: 'bytes32' },
366
+ { type: 'bytes32', name: 'role' },
367
+ { type: 'bytes32', name: 'adminRole' },
930
368
  ],
931
369
  outputs: [],
932
- stateMutability: 'nonpayable',
933
- },
934
- {
935
- type: 'function',
936
- name: 'name',
937
- inputs: [],
938
- outputs: [{ name: '', type: 'string', internalType: 'string' }],
939
- stateMutability: 'view',
940
- },
941
- {
942
- type: 'function',
943
- name: 'nonces',
944
- inputs: [{ name: '', type: 'address', internalType: 'address' }],
945
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
946
- stateMutability: 'view',
947
- },
948
- {
949
- type: 'function',
950
- name: 'pause',
951
- inputs: [],
952
- outputs: [],
953
- stateMutability: 'nonpayable',
954
370
  },
955
371
  {
372
+ name: 'hasRole',
956
373
  type: 'function',
957
- name: 'paused',
958
- inputs: [],
959
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
960
374
  stateMutability: 'view',
961
- },
962
- {
963
- type: 'function',
964
- name: 'permit',
965
375
  inputs: [
966
- { name: 'owner', type: 'address', internalType: 'address' },
967
- { name: 'spender', type: 'address', internalType: 'address' },
968
- { name: 'value', type: 'uint256', internalType: 'uint256' },
969
- { name: 'deadline', type: 'uint256', internalType: 'uint256' },
970
- { name: 'v', type: 'uint8', internalType: 'uint8' },
971
- { name: 'r', type: 'bytes32', internalType: 'bytes32' },
972
- { name: 's', type: 'bytes32', internalType: 'bytes32' },
376
+ { type: 'address', name: 'account' },
377
+ { type: 'bytes32', name: 'role' },
973
378
  ],
974
- outputs: [],
975
- stateMutability: 'nonpayable',
379
+ outputs: [{ type: 'bool' }],
976
380
  },
977
381
  {
382
+ name: 'getRoleAdmin',
978
383
  type: 'function',
979
- name: 'renounceRole',
980
- inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
981
- outputs: [],
982
- stateMutability: 'nonpayable',
384
+ stateMutability: 'view',
385
+ inputs: [{ type: 'bytes32', name: 'role' }],
386
+ outputs: [{ type: 'bytes32' }],
983
387
  },
984
388
  {
985
- type: 'function',
986
- name: 'revokeRole',
389
+ name: 'RoleMembershipUpdated',
390
+ type: 'event',
987
391
  inputs: [
988
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
989
- { name: 'account', type: 'address', internalType: 'address' },
392
+ { type: 'bytes32', name: 'role', indexed: true },
393
+ { type: 'address', name: 'account', indexed: true },
394
+ { type: 'address', name: 'sender', indexed: true },
395
+ { type: 'bool', name: 'hasRole' },
990
396
  ],
991
- outputs: [],
992
- stateMutability: 'nonpayable',
993
397
  },
994
398
  {
995
- type: 'function',
996
- name: 'setRoleAdmin',
399
+ name: 'RoleAdminUpdated',
400
+ type: 'event',
997
401
  inputs: [
998
- { name: 'role', type: 'bytes32', internalType: 'bytes32' },
999
- { name: 'adminRole', type: 'bytes32', internalType: 'bytes32' },
402
+ { type: 'bytes32', name: 'role', indexed: true },
403
+ { type: 'bytes32', name: 'newAdminRole', indexed: true },
404
+ { type: 'address', name: 'sender', indexed: true },
1000
405
  ],
1001
- outputs: [],
1002
- stateMutability: 'nonpayable',
1003
406
  },
407
+ { name: 'Unauthorized', type: 'error', inputs: [] },
408
+ ];
409
+ export const tip20FactoryAbi = [
1004
410
  {
411
+ name: 'createToken',
1005
412
  type: 'function',
1006
- name: 'setSupplyCap',
413
+ stateMutability: 'nonpayable',
1007
414
  inputs: [
1008
- { name: 'newSupplyCap', type: 'uint256', internalType: 'uint256' },
415
+ { type: 'string', name: 'name' },
416
+ { type: 'string', name: 'symbol' },
417
+ { type: 'string', name: 'currency' },
418
+ { type: 'address', name: 'admin' },
1009
419
  ],
1010
- outputs: [],
1011
- stateMutability: 'nonpayable',
420
+ outputs: [{ type: 'uint256' }],
1012
421
  },
1013
422
  {
423
+ name: 'tokenIdCounter',
1014
424
  type: 'function',
1015
- name: 'supplyCap',
1016
- inputs: [],
1017
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
1018
425
  stateMutability: 'view',
1019
- },
1020
- {
1021
- type: 'function',
1022
- name: 'symbol',
1023
426
  inputs: [],
1024
- outputs: [{ name: '', type: 'string', internalType: 'string' }],
1025
- stateMutability: 'view',
427
+ outputs: [{ type: 'uint256' }],
1026
428
  },
1027
429
  {
1028
- type: 'function',
1029
- name: 'systemTransferFrom',
430
+ name: 'TokenCreated',
431
+ type: 'event',
1030
432
  inputs: [
1031
- { name: 'from', type: 'address', internalType: 'address' },
1032
- { name: 'to', type: 'address', internalType: 'address' },
1033
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
433
+ { type: 'address', name: 'token', indexed: true },
434
+ { type: 'uint256', name: 'tokenId', indexed: true },
435
+ { type: 'string', name: 'name' },
436
+ { type: 'string', name: 'symbol' },
437
+ { type: 'string', name: 'currency' },
438
+ { type: 'address', name: 'admin' },
1034
439
  ],
1035
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
1036
- stateMutability: 'nonpayable',
1037
440
  },
441
+ ];
442
+ export const tip403RegistryAbi = [
1038
443
  {
444
+ name: 'policyIdCounter',
1039
445
  type: 'function',
1040
- name: 'totalSupply',
1041
- inputs: [],
1042
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
1043
446
  stateMutability: 'view',
447
+ inputs: [],
448
+ outputs: [{ type: 'uint64' }],
1044
449
  },
1045
450
  {
451
+ name: 'policyData',
1046
452
  type: 'function',
1047
- name: 'transfer',
1048
- inputs: [
1049
- { name: 'to', type: 'address', internalType: 'address' },
1050
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
453
+ stateMutability: 'view',
454
+ inputs: [{ type: 'uint64', name: 'policyId' }],
455
+ outputs: [
456
+ { type: 'uint8', name: 'policyType' },
457
+ { type: 'address', name: 'admin' },
1051
458
  ],
1052
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
1053
- stateMutability: 'nonpayable',
1054
459
  },
1055
460
  {
461
+ name: 'isAuthorized',
1056
462
  type: 'function',
1057
- name: 'transferFeePostTx',
463
+ stateMutability: 'view',
1058
464
  inputs: [
1059
- { name: 'to', type: 'address', internalType: 'address' },
1060
- { name: 'refund', type: 'uint256', internalType: 'uint256' },
1061
- { name: 'actualUsed', type: 'uint256', internalType: 'uint256' },
465
+ { type: 'uint64', name: 'policyId' },
466
+ { type: 'address', name: 'user' },
1062
467
  ],
1063
- outputs: [],
1064
- stateMutability: 'nonpayable',
468
+ outputs: [{ type: 'bool' }],
1065
469
  },
1066
470
  {
471
+ name: 'createPolicy',
1067
472
  type: 'function',
1068
- name: 'transferFeePreTx',
473
+ stateMutability: 'nonpayable',
1069
474
  inputs: [
1070
- { name: 'from', type: 'address', internalType: 'address' },
1071
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
475
+ { type: 'address', name: 'admin' },
476
+ { type: 'uint8', name: 'policyType' },
1072
477
  ],
1073
- outputs: [],
1074
- stateMutability: 'nonpayable',
478
+ outputs: [{ type: 'uint64' }],
1075
479
  },
1076
480
  {
481
+ name: 'createPolicyWithAccounts',
1077
482
  type: 'function',
1078
- name: 'transferFrom',
483
+ stateMutability: 'nonpayable',
1079
484
  inputs: [
1080
- { name: 'from', type: 'address', internalType: 'address' },
1081
- { name: 'to', type: 'address', internalType: 'address' },
1082
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
485
+ { type: 'address', name: 'admin' },
486
+ { type: 'uint8', name: 'policyType' },
487
+ { type: 'address[]', name: 'accounts' },
1083
488
  ],
1084
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
1085
- stateMutability: 'nonpayable',
489
+ outputs: [{ type: 'uint64' }],
1086
490
  },
1087
491
  {
492
+ name: 'setPolicyAdmin',
1088
493
  type: 'function',
1089
- name: 'transferFromWithMemo',
494
+ stateMutability: 'nonpayable',
1090
495
  inputs: [
1091
- { name: 'from', type: 'address', internalType: 'address' },
1092
- { name: 'to', type: 'address', internalType: 'address' },
1093
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
1094
- { name: 'memo', type: 'bytes32', internalType: 'bytes32' },
496
+ { type: 'uint64', name: 'policyId' },
497
+ { type: 'address', name: 'admin' },
1095
498
  ],
1096
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
1097
- stateMutability: 'nonpayable',
1098
- },
1099
- {
1100
- type: 'function',
1101
- name: 'transferPolicyId',
1102
- inputs: [],
1103
- outputs: [{ name: '', type: 'uint64', internalType: 'uint64' }],
1104
- stateMutability: 'view',
499
+ outputs: [],
1105
500
  },
1106
501
  {
502
+ name: 'modifyPolicyWhitelist',
1107
503
  type: 'function',
1108
- name: 'transferWithMemo',
504
+ stateMutability: 'nonpayable',
1109
505
  inputs: [
1110
- { name: 'to', type: 'address', internalType: 'address' },
1111
- { name: 'amount', type: 'uint256', internalType: 'uint256' },
1112
- { name: 'memo', type: 'bytes32', internalType: 'bytes32' },
506
+ { type: 'uint64', name: 'policyId' },
507
+ { type: 'address', name: 'account' },
508
+ { type: 'bool', name: 'allowed' },
1113
509
  ],
1114
510
  outputs: [],
1115
- stateMutability: 'nonpayable',
1116
511
  },
1117
512
  {
513
+ name: 'modifyPolicyBlacklist',
1118
514
  type: 'function',
1119
- name: 'unpause',
1120
- inputs: [],
1121
- outputs: [],
1122
515
  stateMutability: 'nonpayable',
1123
- },
1124
- {
1125
- type: 'event',
1126
- name: 'Approval',
1127
516
  inputs: [
1128
- {
1129
- name: 'owner',
1130
- type: 'address',
1131
- indexed: true,
1132
- internalType: 'address',
1133
- },
1134
- {
1135
- name: 'spender',
1136
- type: 'address',
1137
- indexed: true,
1138
- internalType: 'address',
1139
- },
1140
- {
1141
- name: 'amount',
1142
- type: 'uint256',
1143
- indexed: false,
1144
- internalType: 'uint256',
1145
- },
517
+ { type: 'uint64', name: 'policyId' },
518
+ { type: 'address', name: 'account' },
519
+ { type: 'bool', name: 'restricted' },
1146
520
  ],
1147
- anonymous: false,
521
+ outputs: [],
1148
522
  },
1149
523
  {
524
+ name: 'PolicyAdminUpdated',
1150
525
  type: 'event',
1151
- name: 'Burn',
1152
526
  inputs: [
1153
- { name: 'from', type: 'address', indexed: true, internalType: 'address' },
1154
- {
1155
- name: 'amount',
1156
- type: 'uint256',
1157
- indexed: false,
1158
- internalType: 'uint256',
1159
- },
527
+ { type: 'uint64', name: 'policyId', indexed: true },
528
+ { type: 'address', name: 'updater', indexed: true },
529
+ { type: 'address', name: 'admin', indexed: true },
1160
530
  ],
1161
- anonymous: false,
1162
531
  },
1163
532
  {
533
+ name: 'PolicyCreated',
1164
534
  type: 'event',
1165
- name: 'BurnBlocked',
1166
535
  inputs: [
1167
- { name: 'from', type: 'address', indexed: true, internalType: 'address' },
1168
- {
1169
- name: 'amount',
1170
- type: 'uint256',
1171
- indexed: false,
1172
- internalType: 'uint256',
1173
- },
536
+ { type: 'uint64', name: 'policyId', indexed: true },
537
+ { type: 'address', name: 'updater', indexed: true },
538
+ { type: 'uint8', name: 'policyType' },
1174
539
  ],
1175
- anonymous: false,
1176
540
  },
1177
541
  {
542
+ name: 'WhitelistUpdated',
1178
543
  type: 'event',
1179
- name: 'Mint',
1180
544
  inputs: [
1181
- { name: 'to', type: 'address', indexed: true, internalType: 'address' },
1182
- {
1183
- name: 'amount',
1184
- type: 'uint256',
1185
- indexed: false,
1186
- internalType: 'uint256',
1187
- },
545
+ { type: 'uint64', name: 'policyId', indexed: true },
546
+ { type: 'address', name: 'updater', indexed: true },
547
+ { type: 'address', name: 'account', indexed: true },
548
+ { type: 'bool', name: 'allowed' },
1188
549
  ],
1189
- anonymous: false,
1190
550
  },
1191
551
  {
552
+ name: 'BlacklistUpdated',
1192
553
  type: 'event',
1193
- name: 'PauseStateUpdate',
1194
554
  inputs: [
1195
- {
1196
- name: 'updater',
1197
- type: 'address',
1198
- indexed: true,
1199
- internalType: 'address',
1200
- },
1201
- { name: 'isPaused', type: 'bool', indexed: false, internalType: 'bool' },
555
+ { type: 'uint64', name: 'policyId', indexed: true },
556
+ { type: 'address', name: 'updater', indexed: true },
557
+ { type: 'address', name: 'account', indexed: true },
558
+ { type: 'bool', name: 'restricted' },
1202
559
  ],
1203
- anonymous: false,
1204
560
  },
561
+ { name: 'Unauthorized', type: 'error', inputs: [] },
562
+ { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
563
+ { name: 'SelfOwnedPolicyMustBeWhitelist', type: 'error', inputs: [] },
564
+ ];
565
+ export const tip4217RegistryAbi = [
1205
566
  {
1206
- type: 'event',
1207
- name: 'RoleAdminUpdated',
1208
- inputs: [
1209
- { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
1210
- {
1211
- name: 'newAdminRole',
1212
- type: 'bytes32',
1213
- indexed: true,
1214
- internalType: 'bytes32',
1215
- },
1216
- {
1217
- name: 'sender',
1218
- type: 'address',
1219
- indexed: true,
1220
- internalType: 'address',
1221
- },
1222
- ],
1223
- anonymous: false,
567
+ name: 'getCurrencyDecimals',
568
+ type: 'function',
569
+ stateMutability: 'view',
570
+ inputs: [{ type: 'string', name: 'currency' }],
571
+ outputs: [{ type: 'uint8' }],
1224
572
  },
573
+ ];
574
+ export const tipAccountRegistrarAbi = [
1225
575
  {
1226
- type: 'event',
1227
- name: 'RoleMembershipUpdated',
576
+ name: 'delegateToDefault',
577
+ type: 'function',
578
+ stateMutability: 'nonpayable',
1228
579
  inputs: [
1229
- { name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
1230
- {
1231
- name: 'account',
1232
- type: 'address',
1233
- indexed: true,
1234
- internalType: 'address',
1235
- },
1236
- {
1237
- name: 'sender',
1238
- type: 'address',
1239
- indexed: true,
1240
- internalType: 'address',
1241
- },
1242
- { name: 'hasRole', type: 'bool', indexed: false, internalType: 'bool' },
580
+ { type: 'bytes32', name: 'hash' },
581
+ { type: 'bytes', name: 'signature' },
1243
582
  ],
1244
- anonymous: false,
583
+ outputs: [{ type: 'address', name: 'authority' }],
1245
584
  },
1246
585
  {
1247
- type: 'event',
1248
- name: 'SupplyCapUpdate',
586
+ name: 'getDelegationMessage',
587
+ type: 'function',
588
+ stateMutability: 'pure',
589
+ inputs: [],
590
+ outputs: [{ type: 'string' }],
591
+ },
592
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
593
+ { name: 'CodeNotEmpty', type: 'error', inputs: [] },
594
+ { name: 'NonceNotZero', type: 'error', inputs: [] },
595
+ ];
596
+ export const feeAmmAbi = [
597
+ {
598
+ name: 'getPoolId',
599
+ type: 'function',
600
+ stateMutability: 'pure',
1249
601
  inputs: [
1250
- {
1251
- name: 'updater',
1252
- type: 'address',
1253
- indexed: true,
1254
- internalType: 'address',
1255
- },
1256
- {
1257
- name: 'newSupplyCap',
1258
- type: 'uint256',
1259
- indexed: true,
1260
- internalType: 'uint256',
1261
- },
602
+ { type: 'address', name: 'userToken' },
603
+ { type: 'address', name: 'validatorToken' },
1262
604
  ],
1263
- anonymous: false,
605
+ outputs: [{ type: 'bytes32' }],
1264
606
  },
1265
607
  {
1266
- type: 'event',
1267
- name: 'Transfer',
608
+ name: 'getPool',
609
+ type: 'function',
610
+ stateMutability: 'view',
1268
611
  inputs: [
1269
- { name: 'from', type: 'address', indexed: true, internalType: 'address' },
1270
- { name: 'to', type: 'address', indexed: true, internalType: 'address' },
612
+ { type: 'address', name: 'userToken' },
613
+ { type: 'address', name: 'validatorToken' },
614
+ ],
615
+ outputs: [
1271
616
  {
1272
- name: 'amount',
1273
- type: 'uint256',
1274
- indexed: false,
1275
- internalType: 'uint256',
617
+ type: 'tuple',
618
+ components: [
619
+ { type: 'uint128', name: 'reserveUserToken' },
620
+ { type: 'uint128', name: 'reserveValidatorToken' },
621
+ ],
1276
622
  },
1277
623
  ],
1278
- anonymous: false,
1279
624
  },
1280
625
  {
1281
- type: 'event',
1282
- name: 'TransferPolicyUpdate',
1283
- inputs: [
1284
- {
1285
- name: 'updater',
1286
- type: 'address',
1287
- indexed: true,
1288
- internalType: 'address',
1289
- },
626
+ name: 'pools',
627
+ type: 'function',
628
+ stateMutability: 'view',
629
+ inputs: [{ type: 'bytes32', name: 'poolId' }],
630
+ outputs: [
1290
631
  {
1291
- name: 'newPolicyId',
1292
- type: 'uint64',
1293
- indexed: true,
1294
- internalType: 'uint64',
632
+ type: 'tuple',
633
+ components: [
634
+ { type: 'uint128', name: 'reserveUserToken' },
635
+ { type: 'uint128', name: 'reserveValidatorToken' },
636
+ ],
1295
637
  },
1296
638
  ],
1297
- anonymous: false,
1298
639
  },
1299
640
  {
1300
- type: 'event',
1301
- name: 'TransferWithMemo',
641
+ name: 'mint',
642
+ type: 'function',
643
+ stateMutability: 'nonpayable',
1302
644
  inputs: [
1303
- { name: 'from', type: 'address', indexed: true, internalType: 'address' },
1304
- { name: 'to', type: 'address', indexed: true, internalType: 'address' },
1305
- {
1306
- name: 'amount',
1307
- type: 'uint256',
1308
- indexed: false,
1309
- internalType: 'uint256',
1310
- },
1311
- { name: 'memo', type: 'bytes32', indexed: true, internalType: 'bytes32' },
645
+ { type: 'address', name: 'userToken' },
646
+ { type: 'address', name: 'validatorToken' },
647
+ { type: 'uint256', name: 'amountUserToken' },
648
+ { type: 'uint256', name: 'amountValidatorToken' },
649
+ { type: 'address', name: 'to' },
1312
650
  ],
1313
- anonymous: false,
1314
- },
1315
- { type: 'error', name: 'ContractPaused', inputs: [] },
1316
- { type: 'error', name: 'Expired', inputs: [] },
1317
- { type: 'error', name: 'InsufficientAllowance', inputs: [] },
1318
- { type: 'error', name: 'InsufficientBalance', inputs: [] },
1319
- { type: 'error', name: 'InvalidCurrency', inputs: [] },
1320
- { type: 'error', name: 'InvalidRecipient', inputs: [] },
1321
- { type: 'error', name: 'InvalidSignature', inputs: [] },
1322
- { type: 'error', name: 'PolicyForbids', inputs: [] },
1323
- { type: 'error', name: 'SupplyCapExceeded', inputs: [] },
1324
- { type: 'error', name: 'Unauthorized', inputs: [] },
1325
- ]);
1326
- export const tip20FactoryAbi = Abi.from([
651
+ outputs: [{ type: 'uint256', name: 'liquidity' }],
652
+ },
1327
653
  {
654
+ name: 'burn',
1328
655
  type: 'function',
1329
- name: 'createToken',
656
+ stateMutability: 'nonpayable',
1330
657
  inputs: [
1331
- { name: 'name', type: 'string', internalType: 'string' },
1332
- { name: 'symbol', type: 'string', internalType: 'string' },
1333
- { name: 'currency', type: 'string', internalType: 'string' },
1334
- { name: 'admin', type: 'address', internalType: 'address' },
658
+ { type: 'address', name: 'userToken' },
659
+ { type: 'address', name: 'validatorToken' },
660
+ { type: 'uint256', name: 'liquidity' },
661
+ { type: 'address', name: 'to' },
662
+ ],
663
+ outputs: [
664
+ { type: 'uint256', name: 'amountUserToken' },
665
+ { type: 'uint256', name: 'amountValidatorToken' },
1335
666
  ],
1336
- outputs: [{ name: '', type: 'address', internalType: 'address' }],
1337
- stateMutability: 'nonpayable',
1338
667
  },
1339
668
  {
669
+ name: 'totalSupply',
1340
670
  type: 'function',
1341
- name: 'tokenIdCounter',
1342
- inputs: [],
1343
- outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
1344
671
  stateMutability: 'view',
672
+ inputs: [{ type: 'bytes32', name: 'poolId' }],
673
+ outputs: [{ type: 'uint256' }],
1345
674
  },
1346
675
  {
1347
- type: 'event',
1348
- name: 'TokenCreated',
676
+ name: 'liquidityBalances',
677
+ type: 'function',
678
+ stateMutability: 'view',
1349
679
  inputs: [
1350
- {
1351
- name: 'token',
1352
- type: 'address',
1353
- indexed: true,
1354
- internalType: 'address',
1355
- },
1356
- {
1357
- name: 'tokenId',
1358
- type: 'uint256',
1359
- indexed: true,
1360
- internalType: 'uint256',
1361
- },
1362
- { name: 'name', type: 'string', indexed: false, internalType: 'string' },
1363
- {
1364
- name: 'symbol',
1365
- type: 'string',
1366
- indexed: false,
1367
- internalType: 'string',
1368
- },
1369
- {
1370
- name: 'currency',
1371
- type: 'string',
1372
- indexed: false,
1373
- internalType: 'string',
1374
- },
1375
- {
1376
- name: 'admin',
1377
- type: 'address',
1378
- indexed: false,
1379
- internalType: 'address',
1380
- },
680
+ { type: 'bytes32', name: 'poolId' },
681
+ { type: 'address', name: 'user' },
1381
682
  ],
1382
- anonymous: false,
683
+ outputs: [{ type: 'uint256' }],
1383
684
  },
1384
- ]);
1385
- export const tip4217RegistryAbi = Abi.from([
1386
685
  {
686
+ name: 'rebalanceSwap',
1387
687
  type: 'function',
1388
- name: 'getCurrencyDecimals',
1389
- inputs: [{ name: 'currency', type: 'string', internalType: 'string' }],
1390
- outputs: [{ name: '', type: 'uint8', internalType: 'uint8' }],
1391
- stateMutability: 'view',
688
+ stateMutability: 'nonpayable',
689
+ inputs: [
690
+ { type: 'address', name: 'userToken' },
691
+ { type: 'address', name: 'validatorToken' },
692
+ { type: 'uint256', name: 'amountOut' },
693
+ { type: 'address', name: 'to' },
694
+ ],
695
+ outputs: [{ type: 'uint256', name: 'amountIn' }],
1392
696
  },
1393
- ]);
1394
- export const tip403RegistryAbi = Abi.from([
1395
697
  {
698
+ name: 'calculateLiquidity',
1396
699
  type: 'function',
1397
- name: 'createPolicy',
700
+ stateMutability: 'pure',
1398
701
  inputs: [
1399
- { name: 'admin', type: 'address', internalType: 'address' },
1400
- {
1401
- name: 'policyType',
1402
- type: 'uint8',
1403
- internalType: 'enum TIP403Registry.PolicyType',
1404
- },
1405
- { name: 'accounts', type: 'address[]', internalType: 'address[]' },
702
+ { type: 'uint256', name: 'x' },
703
+ { type: 'uint256', name: 'y' },
1406
704
  ],
1407
- outputs: [{ name: 'newPolicyId', type: 'uint64', internalType: 'uint64' }],
1408
- stateMutability: 'nonpayable',
705
+ outputs: [{ type: 'uint256' }],
1409
706
  },
1410
707
  {
1411
- type: 'function',
1412
- name: 'createPolicy',
708
+ name: 'Mint',
709
+ type: 'event',
1413
710
  inputs: [
1414
- { name: 'admin', type: 'address', internalType: 'address' },
1415
- {
1416
- name: 'policyType',
1417
- type: 'uint8',
1418
- internalType: 'enum TIP403Registry.PolicyType',
1419
- },
711
+ { type: 'address', name: 'sender', indexed: true },
712
+ { type: 'address', name: 'userToken', indexed: true },
713
+ { type: 'address', name: 'validatorToken', indexed: true },
714
+ { type: 'uint256', name: 'amountUserToken' },
715
+ { type: 'uint256', name: 'amountValidatorToken' },
716
+ { type: 'uint256', name: 'liquidity' },
1420
717
  ],
1421
- outputs: [{ name: 'newPolicyId', type: 'uint64', internalType: 'uint64' }],
1422
- stateMutability: 'nonpayable',
1423
718
  },
1424
719
  {
1425
- type: 'function',
1426
- name: 'isAuthorized',
720
+ name: 'Burn',
721
+ type: 'event',
1427
722
  inputs: [
1428
- { name: 'policyId', type: 'uint64', internalType: 'uint64' },
1429
- { name: 'user', type: 'address', internalType: 'address' },
723
+ { type: 'address', name: 'sender', indexed: true },
724
+ { type: 'address', name: 'userToken', indexed: true },
725
+ { type: 'address', name: 'validatorToken', indexed: true },
726
+ { type: 'uint256', name: 'amountUserToken' },
727
+ { type: 'uint256', name: 'amountValidatorToken' },
728
+ { type: 'uint256', name: 'liquidity' },
729
+ { type: 'address', name: 'to' },
1430
730
  ],
1431
- outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
1432
- stateMutability: 'view',
1433
731
  },
1434
732
  {
1435
- type: 'function',
1436
- name: 'modifyPolicyBlacklist',
733
+ name: 'RebalanceSwap',
734
+ type: 'event',
1437
735
  inputs: [
1438
- { name: 'policyId', type: 'uint64', internalType: 'uint64' },
1439
- { name: 'account', type: 'address', internalType: 'address' },
1440
- { name: 'restricted', type: 'bool', internalType: 'bool' },
736
+ { type: 'address', name: 'userToken', indexed: true },
737
+ { type: 'address', name: 'validatorToken', indexed: true },
738
+ { type: 'address', name: 'swapper', indexed: true },
739
+ { type: 'uint256', name: 'amountIn' },
740
+ { type: 'uint256', name: 'amountOut' },
1441
741
  ],
1442
- outputs: [],
1443
- stateMutability: 'nonpayable',
1444
742
  },
1445
743
  {
1446
- type: 'function',
1447
- name: 'modifyPolicyWhitelist',
744
+ name: 'FeeSwap',
745
+ type: 'event',
1448
746
  inputs: [
1449
- { name: 'policyId', type: 'uint64', internalType: 'uint64' },
1450
- { name: 'account', type: 'address', internalType: 'address' },
1451
- { name: 'allowed', type: 'bool', internalType: 'bool' },
1452
- ],
1453
- outputs: [],
1454
- stateMutability: 'nonpayable',
747
+ { type: 'address', name: 'userToken', indexed: true },
748
+ { type: 'address', name: 'validatorToken', indexed: true },
749
+ { type: 'uint256', name: 'amountIn' },
750
+ { type: 'uint256', name: 'amountOut' },
751
+ ],
752
+ },
753
+ { name: 'IdenticalAddresses', type: 'error', inputs: [] },
754
+ { name: 'ZeroAddress', type: 'error', inputs: [] },
755
+ { name: 'PoolExists', type: 'error', inputs: [] },
756
+ { name: 'PoolDoesNotExist', type: 'error', inputs: [] },
757
+ { name: 'InvalidToken', type: 'error', inputs: [] },
758
+ { name: 'InsufficientLiquidity', type: 'error', inputs: [] },
759
+ { name: 'OnlyProtocol', type: 'error', inputs: [] },
760
+ { name: 'InsufficientPoolBalance', type: 'error', inputs: [] },
761
+ { name: 'InsufficientReserves', type: 'error', inputs: [] },
762
+ { name: 'InsufficientLiquidityBalance', type: 'error', inputs: [] },
763
+ { name: 'MustDepositLowerBalanceToken', type: 'error', inputs: [] },
764
+ { name: 'InvalidAmount', type: 'error', inputs: [] },
765
+ { name: 'InvalidRebalanceState', type: 'error', inputs: [] },
766
+ { name: 'InvalidRebalanceDirection', type: 'error', inputs: [] },
767
+ { name: 'InvalidNewReserves', type: 'error', inputs: [] },
768
+ { name: 'CannotSupportPendingSwaps', type: 'error', inputs: [] },
769
+ { name: 'DivisionByZero', type: 'error', inputs: [] },
770
+ { name: 'InvalidSwapCalculation', type: 'error', inputs: [] },
771
+ { name: 'InsufficientLiquidityForPending', type: 'error', inputs: [] },
772
+ { name: 'TokenTransferFailed', type: 'error', inputs: [] },
773
+ { name: 'InternalError', type: 'error', inputs: [] },
774
+ ];
775
+ export const feeManagerAbi = [
776
+ {
777
+ name: 'BASIS_POINTS',
778
+ type: 'function',
779
+ stateMutability: 'pure',
780
+ inputs: [],
781
+ outputs: [{ type: 'uint256' }],
1455
782
  },
1456
783
  {
784
+ name: 'FEE_BPS',
785
+ type: 'function',
786
+ stateMutability: 'pure',
787
+ inputs: [],
788
+ outputs: [{ type: 'uint256' }],
789
+ },
790
+ {
791
+ name: 'userTokens',
1457
792
  type: 'function',
1458
- name: 'policyData',
1459
- inputs: [{ name: '', type: 'uint64', internalType: 'uint64' }],
1460
- outputs: [
1461
- {
1462
- name: 'policyType',
1463
- type: 'uint8',
1464
- internalType: 'enum TIP403Registry.PolicyType',
1465
- },
1466
- { name: 'admin', type: 'address', internalType: 'address' },
1467
- ],
1468
793
  stateMutability: 'view',
794
+ inputs: [{ type: 'address', name: 'user' }],
795
+ outputs: [{ type: 'address' }],
1469
796
  },
1470
797
  {
798
+ name: 'validatorTokens',
1471
799
  type: 'function',
1472
- name: 'policyIdCounter',
1473
- inputs: [],
1474
- outputs: [{ name: '', type: 'uint64', internalType: 'uint64' }],
1475
800
  stateMutability: 'view',
801
+ inputs: [{ type: 'address', name: 'validator' }],
802
+ outputs: [{ type: 'address' }],
1476
803
  },
1477
804
  {
805
+ name: 'setUserToken',
1478
806
  type: 'function',
1479
- name: 'setPolicyAdmin',
1480
- inputs: [
1481
- { name: 'policyId', type: 'uint64', internalType: 'uint64' },
1482
- { name: 'admin', type: 'address', internalType: 'address' },
1483
- ],
807
+ stateMutability: 'nonpayable',
808
+ inputs: [{ type: 'address', name: 'token' }],
1484
809
  outputs: [],
810
+ },
811
+ {
812
+ name: 'setValidatorToken',
813
+ type: 'function',
1485
814
  stateMutability: 'nonpayable',
815
+ inputs: [{ type: 'address', name: 'token' }],
816
+ outputs: [],
1486
817
  },
1487
818
  {
1488
- type: 'event',
1489
- name: 'BlacklistUpdated',
819
+ name: 'getFeeTokenBalance',
820
+ type: 'function',
821
+ stateMutability: 'view',
1490
822
  inputs: [
1491
- {
1492
- name: 'policyId',
1493
- type: 'uint64',
1494
- indexed: true,
1495
- internalType: 'uint64',
1496
- },
1497
- {
1498
- name: 'updater',
1499
- type: 'address',
1500
- indexed: true,
1501
- internalType: 'address',
1502
- },
1503
- {
1504
- name: 'account',
1505
- type: 'address',
1506
- indexed: true,
1507
- internalType: 'address',
1508
- },
1509
- {
1510
- name: 'restricted',
1511
- type: 'bool',
1512
- indexed: false,
1513
- internalType: 'bool',
1514
- },
823
+ { type: 'address', name: 'sender' },
824
+ { type: 'address', name: 'validator' },
1515
825
  ],
1516
- anonymous: false,
826
+ outputs: [{ type: 'address' }, { type: 'uint256' }],
1517
827
  },
1518
828
  {
1519
- type: 'event',
1520
- name: 'PolicyAdminUpdated',
1521
- inputs: [
1522
- {
1523
- name: 'policyId',
1524
- type: 'uint64',
1525
- indexed: true,
1526
- internalType: 'uint64',
1527
- },
1528
- {
1529
- name: 'updater',
1530
- type: 'address',
1531
- indexed: true,
1532
- internalType: 'address',
1533
- },
1534
- {
1535
- name: 'admin',
1536
- type: 'address',
1537
- indexed: true,
1538
- internalType: 'address',
1539
- },
1540
- ],
1541
- anonymous: false,
829
+ name: 'executeBlock',
830
+ type: 'function',
831
+ stateMutability: 'nonpayable',
832
+ inputs: [],
833
+ outputs: [],
1542
834
  },
1543
835
  {
836
+ name: 'UserTokenSet',
1544
837
  type: 'event',
1545
- name: 'PolicyCreated',
1546
838
  inputs: [
1547
- {
1548
- name: 'policyId',
1549
- type: 'uint64',
1550
- indexed: true,
1551
- internalType: 'uint64',
1552
- },
1553
- {
1554
- name: 'updater',
1555
- type: 'address',
1556
- indexed: true,
1557
- internalType: 'address',
1558
- },
1559
- {
1560
- name: 'policyType',
1561
- type: 'uint8',
1562
- indexed: false,
1563
- internalType: 'enum TIP403Registry.PolicyType',
1564
- },
839
+ { type: 'address', name: 'user', indexed: true },
840
+ { type: 'address', name: 'token', indexed: true },
1565
841
  ],
1566
- anonymous: false,
1567
842
  },
1568
843
  {
844
+ name: 'ValidatorTokenSet',
1569
845
  type: 'event',
1570
- name: 'WhitelistUpdated',
1571
846
  inputs: [
1572
- {
1573
- name: 'policyId',
1574
- type: 'uint64',
1575
- indexed: true,
1576
- internalType: 'uint64',
1577
- },
1578
- {
1579
- name: 'updater',
1580
- type: 'address',
1581
- indexed: true,
1582
- internalType: 'address',
1583
- },
1584
- {
1585
- name: 'account',
1586
- type: 'address',
1587
- indexed: true,
1588
- internalType: 'address',
1589
- },
1590
- { name: 'allowed', type: 'bool', indexed: false, internalType: 'bool' },
847
+ { type: 'address', name: 'validator', indexed: true },
848
+ { type: 'address', name: 'token', indexed: true },
1591
849
  ],
1592
- anonymous: false,
1593
850
  },
1594
- { type: 'error', name: 'ArrayLengthMismatch', inputs: [] },
1595
- { type: 'error', name: 'IncompatiblePolicyType', inputs: [] },
1596
- { type: 'error', name: 'PolicyDoesNotExist', inputs: [] },
1597
- { type: 'error', name: 'Unauthorized', inputs: [] },
1598
- ]);
851
+ { name: 'OnlyValidator', type: 'error', inputs: [] },
852
+ { name: 'OnlySystemContract', type: 'error', inputs: [] },
853
+ { name: 'InvalidToken', type: 'error', inputs: [] },
854
+ { name: 'PoolDoesNotExist', type: 'error', inputs: [] },
855
+ { name: 'InsufficientLiquidity', type: 'error', inputs: [] },
856
+ { name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
857
+ { name: 'InternalError', type: 'error', inputs: [] },
858
+ { name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
859
+ { name: 'TokenPolicyForbids', type: 'error', inputs: [] },
860
+ ];
1599
861
  //# sourceMappingURL=abis.js.map