@logswap/sdk 0.5.79 → 0.5.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -14
- package/dist/admin.d.ts +697 -75
- package/dist/admin.js +54 -65
- package/dist/client.d.ts +2 -2
- package/dist/client.js +13 -2
- package/dist/fpool.d.ts +309 -339
- package/dist/fpool.js +225 -210
- package/dist/generated.d.ts +1542 -1182
- package/dist/generated.js +938 -847
- package/dist/history.d.ts +1 -2
- package/dist/history.js +3 -5
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.js +4 -2
- package/dist/keys.d.ts +23 -1
- package/dist/keys.js +18 -0
- package/dist/liquidity.d.ts +0 -5
- package/dist/liquidity.js +1 -2
- package/dist/pools.d.ts +8 -11
- package/dist/pools.js +9 -8
- package/dist/positions.d.ts +4 -5
- package/dist/positions.js +6 -7
- package/dist/views.d.ts +6 -10
- package/dist/views.js +6 -6
- package/package.json +1 -1
- package/src/admin.ts +62 -74
- package/src/client.ts +13 -2
- package/src/fpool.ts +315 -289
- package/src/generated.ts +938 -847
- package/src/history.ts +3 -4
- package/src/indexer.ts +5 -3
- package/src/keys.ts +34 -1
- package/src/liquidity.ts +1 -7
- package/src/pools.ts +14 -15
- package/src/positions.ts +6 -7
- package/src/views.ts +12 -16
package/src/generated.ts
CHANGED
|
@@ -8,7 +8,6 @@ export const cPoolManagerAbi = [
|
|
|
8
8
|
inputs: [
|
|
9
9
|
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
10
10
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
11
|
-
{ name: 'gate_', internalType: 'address', type: 'address' },
|
|
12
11
|
],
|
|
13
12
|
stateMutability: 'nonpayable',
|
|
14
13
|
},
|
|
@@ -63,13 +62,15 @@ export const cPoolManagerAbi = [
|
|
|
63
62
|
inputs: [
|
|
64
63
|
{
|
|
65
64
|
name: 'key',
|
|
66
|
-
internalType: 'struct
|
|
65
|
+
internalType: 'struct CPoolKey',
|
|
67
66
|
type: 'tuple',
|
|
68
67
|
components: [
|
|
69
68
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
70
69
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
71
70
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
71
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
72
72
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
73
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
73
74
|
],
|
|
74
75
|
},
|
|
75
76
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -99,13 +100,15 @@ export const cPoolManagerAbi = [
|
|
|
99
100
|
inputs: [
|
|
100
101
|
{
|
|
101
102
|
name: 'key',
|
|
102
|
-
internalType: 'struct
|
|
103
|
+
internalType: 'struct CPoolKey',
|
|
103
104
|
type: 'tuple',
|
|
104
105
|
components: [
|
|
105
106
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
106
107
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
107
108
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
109
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
108
110
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
111
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
109
112
|
],
|
|
110
113
|
},
|
|
111
114
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -127,13 +130,15 @@ export const cPoolManagerAbi = [
|
|
|
127
130
|
inputs: [
|
|
128
131
|
{
|
|
129
132
|
name: 'key',
|
|
130
|
-
internalType: 'struct
|
|
133
|
+
internalType: 'struct CPoolKey',
|
|
131
134
|
type: 'tuple',
|
|
132
135
|
components: [
|
|
133
136
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
134
137
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
135
138
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
139
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
136
140
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
141
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
137
142
|
],
|
|
138
143
|
},
|
|
139
144
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -156,13 +161,15 @@ export const cPoolManagerAbi = [
|
|
|
156
161
|
inputs: [
|
|
157
162
|
{
|
|
158
163
|
name: 'key',
|
|
159
|
-
internalType: 'struct
|
|
164
|
+
internalType: 'struct CPoolKey',
|
|
160
165
|
type: 'tuple',
|
|
161
166
|
components: [
|
|
162
167
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
163
168
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
164
169
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
170
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
165
171
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
172
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
166
173
|
],
|
|
167
174
|
},
|
|
168
175
|
],
|
|
@@ -211,25 +218,20 @@ export const cPoolManagerAbi = [
|
|
|
211
218
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
212
219
|
stateMutability: 'view',
|
|
213
220
|
},
|
|
214
|
-
{
|
|
215
|
-
type: 'function',
|
|
216
|
-
inputs: [],
|
|
217
|
-
name: 'gate',
|
|
218
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
219
|
-
stateMutability: 'view',
|
|
220
|
-
},
|
|
221
221
|
{
|
|
222
222
|
type: 'function',
|
|
223
223
|
inputs: [
|
|
224
224
|
{
|
|
225
225
|
name: 'key',
|
|
226
|
-
internalType: 'struct
|
|
226
|
+
internalType: 'struct CPoolKey',
|
|
227
227
|
type: 'tuple',
|
|
228
228
|
components: [
|
|
229
229
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
230
230
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
231
231
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
232
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
232
233
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
234
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
233
235
|
],
|
|
234
236
|
},
|
|
235
237
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -243,13 +245,15 @@ export const cPoolManagerAbi = [
|
|
|
243
245
|
inputs: [
|
|
244
246
|
{
|
|
245
247
|
name: 'key',
|
|
246
|
-
internalType: 'struct
|
|
248
|
+
internalType: 'struct CPoolKey',
|
|
247
249
|
type: 'tuple',
|
|
248
250
|
components: [
|
|
249
251
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
250
252
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
251
253
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
254
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
252
255
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
256
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
253
257
|
],
|
|
254
258
|
},
|
|
255
259
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -264,17 +268,18 @@ export const cPoolManagerAbi = [
|
|
|
264
268
|
inputs: [
|
|
265
269
|
{
|
|
266
270
|
name: 'key',
|
|
267
|
-
internalType: 'struct
|
|
271
|
+
internalType: 'struct CPoolKey',
|
|
268
272
|
type: 'tuple',
|
|
269
273
|
components: [
|
|
270
274
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
271
275
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
272
276
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
277
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
273
278
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
279
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
274
280
|
],
|
|
275
281
|
},
|
|
276
282
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
277
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
278
283
|
],
|
|
279
284
|
name: 'initialize',
|
|
280
285
|
outputs: [{ name: 'pid', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -302,13 +307,15 @@ export const cPoolManagerAbi = [
|
|
|
302
307
|
inputs: [
|
|
303
308
|
{
|
|
304
309
|
name: 'key',
|
|
305
|
-
internalType: 'struct
|
|
310
|
+
internalType: 'struct CPoolKey',
|
|
306
311
|
type: 'tuple',
|
|
307
312
|
components: [
|
|
308
313
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
309
314
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
310
315
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
316
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
311
317
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
318
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
312
319
|
],
|
|
313
320
|
},
|
|
314
321
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -364,13 +371,15 @@ export const cPoolManagerAbi = [
|
|
|
364
371
|
inputs: [
|
|
365
372
|
{
|
|
366
373
|
name: 'key',
|
|
367
|
-
internalType: 'struct
|
|
374
|
+
internalType: 'struct CPoolKey',
|
|
368
375
|
type: 'tuple',
|
|
369
376
|
components: [
|
|
370
377
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
371
378
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
372
379
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
380
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
373
381
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
382
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
374
383
|
],
|
|
375
384
|
},
|
|
376
385
|
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
@@ -398,6 +407,17 @@ export const cPoolManagerAbi = [
|
|
|
398
407
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
399
408
|
stateMutability: 'payable',
|
|
400
409
|
},
|
|
410
|
+
{
|
|
411
|
+
type: 'function',
|
|
412
|
+
inputs: [
|
|
413
|
+
{ name: 'id', internalType: 'bytes32', type: 'bytes32' },
|
|
414
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
415
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
416
|
+
],
|
|
417
|
+
name: 'setPermissions',
|
|
418
|
+
outputs: [],
|
|
419
|
+
stateMutability: 'nonpayable',
|
|
420
|
+
},
|
|
401
421
|
{
|
|
402
422
|
type: 'function',
|
|
403
423
|
inputs: [],
|
|
@@ -405,6 +425,13 @@ export const cPoolManagerAbi = [
|
|
|
405
425
|
outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
|
|
406
426
|
stateMutability: 'nonpayable',
|
|
407
427
|
},
|
|
428
|
+
{
|
|
429
|
+
type: 'function',
|
|
430
|
+
inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
|
|
431
|
+
name: 'stamp',
|
|
432
|
+
outputs: [],
|
|
433
|
+
stateMutability: 'nonpayable',
|
|
434
|
+
},
|
|
408
435
|
{
|
|
409
436
|
type: 'function',
|
|
410
437
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -417,13 +444,15 @@ export const cPoolManagerAbi = [
|
|
|
417
444
|
inputs: [
|
|
418
445
|
{
|
|
419
446
|
name: 'key',
|
|
420
|
-
internalType: 'struct
|
|
447
|
+
internalType: 'struct CPoolKey',
|
|
421
448
|
type: 'tuple',
|
|
422
449
|
components: [
|
|
423
450
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
424
451
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
425
452
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
453
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
426
454
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
455
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
427
456
|
],
|
|
428
457
|
},
|
|
429
458
|
{
|
|
@@ -519,13 +548,15 @@ export const cPoolManagerAbi = [
|
|
|
519
548
|
inputs: [
|
|
520
549
|
{
|
|
521
550
|
name: 'key',
|
|
522
|
-
internalType: 'struct
|
|
551
|
+
internalType: 'struct CPoolKey',
|
|
523
552
|
type: 'tuple',
|
|
524
553
|
components: [
|
|
525
554
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
526
555
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
527
556
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
557
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
528
558
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
559
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
529
560
|
],
|
|
530
561
|
},
|
|
531
562
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -677,14 +708,6 @@ export const cPoolManagerAbi = [
|
|
|
677
708
|
],
|
|
678
709
|
name: 'FeesClaimed',
|
|
679
710
|
},
|
|
680
|
-
{
|
|
681
|
-
type: 'event',
|
|
682
|
-
anonymous: false,
|
|
683
|
-
inputs: [
|
|
684
|
-
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
685
|
-
],
|
|
686
|
-
name: 'GateSet',
|
|
687
|
-
},
|
|
688
711
|
{
|
|
689
712
|
type: 'event',
|
|
690
713
|
anonymous: false,
|
|
@@ -733,6 +756,12 @@ export const cPoolManagerAbi = [
|
|
|
733
756
|
type: 'uint256',
|
|
734
757
|
indexed: false,
|
|
735
758
|
},
|
|
759
|
+
{
|
|
760
|
+
name: 'policy',
|
|
761
|
+
internalType: 'address',
|
|
762
|
+
type: 'address',
|
|
763
|
+
indexed: false,
|
|
764
|
+
},
|
|
736
765
|
],
|
|
737
766
|
name: 'MarketCreated',
|
|
738
767
|
},
|
|
@@ -756,6 +785,26 @@ export const cPoolManagerAbi = [
|
|
|
756
785
|
],
|
|
757
786
|
name: 'OperatorSet',
|
|
758
787
|
},
|
|
788
|
+
{
|
|
789
|
+
type: 'event',
|
|
790
|
+
anonymous: false,
|
|
791
|
+
inputs: [
|
|
792
|
+
{
|
|
793
|
+
name: 'poolId',
|
|
794
|
+
internalType: 'bytes32',
|
|
795
|
+
type: 'bytes32',
|
|
796
|
+
indexed: true,
|
|
797
|
+
},
|
|
798
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
799
|
+
{
|
|
800
|
+
name: 'executor',
|
|
801
|
+
internalType: 'address',
|
|
802
|
+
type: 'address',
|
|
803
|
+
indexed: true,
|
|
804
|
+
},
|
|
805
|
+
],
|
|
806
|
+
name: 'PermissionsSet',
|
|
807
|
+
},
|
|
759
808
|
{
|
|
760
809
|
type: 'event',
|
|
761
810
|
anonymous: false,
|
|
@@ -1055,6 +1104,7 @@ export const cPoolManagerAbi = [
|
|
|
1055
1104
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1056
1105
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1057
1106
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1107
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1058
1108
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1059
1109
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1060
1110
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -1067,6 +1117,7 @@ export const cPoolManagerAbi = [
|
|
|
1067
1117
|
name: 'QuoteResult',
|
|
1068
1118
|
},
|
|
1069
1119
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1120
|
+
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1070
1121
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1071
1122
|
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1072
1123
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
@@ -1094,7 +1145,7 @@ export const fPoolManagerAbi = [
|
|
|
1094
1145
|
{
|
|
1095
1146
|
type: 'function',
|
|
1096
1147
|
inputs: [],
|
|
1097
|
-
name: '
|
|
1148
|
+
name: 'INCOME_TAX_MAX',
|
|
1098
1149
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1099
1150
|
stateMutability: 'view',
|
|
1100
1151
|
},
|
|
@@ -1105,13 +1156,6 @@ export const fPoolManagerAbi = [
|
|
|
1105
1156
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1106
1157
|
stateMutability: 'view',
|
|
1107
1158
|
},
|
|
1108
|
-
{
|
|
1109
|
-
type: 'function',
|
|
1110
|
-
inputs: [],
|
|
1111
|
-
name: 'POT_CUT_MAX',
|
|
1112
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1113
|
-
stateMutability: 'view',
|
|
1114
|
-
},
|
|
1115
1159
|
{
|
|
1116
1160
|
type: 'function',
|
|
1117
1161
|
inputs: [],
|
|
@@ -1198,6 +1242,16 @@ export const fPoolManagerAbi = [
|
|
|
1198
1242
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1199
1243
|
stateMutability: 'view',
|
|
1200
1244
|
},
|
|
1245
|
+
{
|
|
1246
|
+
type: 'function',
|
|
1247
|
+
inputs: [
|
|
1248
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1249
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1250
|
+
],
|
|
1251
|
+
name: 'close',
|
|
1252
|
+
outputs: [],
|
|
1253
|
+
stateMutability: 'nonpayable',
|
|
1254
|
+
},
|
|
1201
1255
|
{
|
|
1202
1256
|
type: 'function',
|
|
1203
1257
|
inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1215,6 +1269,28 @@ export const fPoolManagerAbi = [
|
|
|
1215
1269
|
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1216
1270
|
stateMutability: 'view',
|
|
1217
1271
|
},
|
|
1272
|
+
{
|
|
1273
|
+
type: 'function',
|
|
1274
|
+
inputs: [
|
|
1275
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1276
|
+
{
|
|
1277
|
+
name: 'baseAssets',
|
|
1278
|
+
internalType: 'struct BaseAsset[]',
|
|
1279
|
+
type: 'tuple[]',
|
|
1280
|
+
components: [
|
|
1281
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1282
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1283
|
+
{ name: 'priceX36', internalType: 'uint256', type: 'uint256' },
|
|
1284
|
+
],
|
|
1285
|
+
},
|
|
1286
|
+
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
1287
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
1288
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1289
|
+
],
|
|
1290
|
+
name: 'deployLiquidity',
|
|
1291
|
+
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1292
|
+
stateMutability: 'nonpayable',
|
|
1293
|
+
},
|
|
1218
1294
|
{
|
|
1219
1295
|
type: 'function',
|
|
1220
1296
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1246,6 +1322,16 @@ export const fPoolManagerAbi = [
|
|
|
1246
1322
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1247
1323
|
stateMutability: 'view',
|
|
1248
1324
|
},
|
|
1325
|
+
{
|
|
1326
|
+
type: 'function',
|
|
1327
|
+
inputs: [
|
|
1328
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1329
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1330
|
+
],
|
|
1331
|
+
name: 'harvest',
|
|
1332
|
+
outputs: [],
|
|
1333
|
+
stateMutability: 'nonpayable',
|
|
1334
|
+
},
|
|
1249
1335
|
{
|
|
1250
1336
|
type: 'function',
|
|
1251
1337
|
inputs: [
|
|
@@ -1257,6 +1343,13 @@ export const fPoolManagerAbi = [
|
|
|
1257
1343
|
outputs: [],
|
|
1258
1344
|
stateMutability: 'nonpayable',
|
|
1259
1345
|
},
|
|
1346
|
+
{
|
|
1347
|
+
type: 'function',
|
|
1348
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1349
|
+
name: 'incomeHeld',
|
|
1350
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1351
|
+
stateMutability: 'view',
|
|
1352
|
+
},
|
|
1260
1353
|
{
|
|
1261
1354
|
type: 'function',
|
|
1262
1355
|
inputs: [
|
|
@@ -1267,15 +1360,13 @@ export const fPoolManagerAbi = [
|
|
|
1267
1360
|
components: [
|
|
1268
1361
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1269
1362
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1270
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1271
1363
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
1272
1364
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1273
1365
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1274
1366
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1275
|
-
{ name: '
|
|
1367
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
1276
1368
|
],
|
|
1277
1369
|
},
|
|
1278
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
1279
1370
|
],
|
|
1280
1371
|
name: 'initialize',
|
|
1281
1372
|
outputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1305,7 +1396,19 @@ export const fPoolManagerAbi = [
|
|
|
1305
1396
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1306
1397
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1307
1398
|
],
|
|
1308
|
-
name: '
|
|
1399
|
+
name: 'lienLock',
|
|
1400
|
+
outputs: [],
|
|
1401
|
+
stateMutability: 'nonpayable',
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
type: 'function',
|
|
1405
|
+
inputs: [
|
|
1406
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1407
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1408
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1409
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1410
|
+
],
|
|
1411
|
+
name: 'lienUnlock',
|
|
1309
1412
|
outputs: [],
|
|
1310
1413
|
stateMutability: 'nonpayable',
|
|
1311
1414
|
},
|
|
@@ -1360,13 +1463,6 @@ export const fPoolManagerAbi = [
|
|
|
1360
1463
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1361
1464
|
stateMutability: 'view',
|
|
1362
1465
|
},
|
|
1363
|
-
{
|
|
1364
|
-
type: 'function',
|
|
1365
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1366
|
-
name: 'pot',
|
|
1367
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1368
|
-
stateMutability: 'view',
|
|
1369
|
-
},
|
|
1370
1466
|
{
|
|
1371
1467
|
type: 'function',
|
|
1372
1468
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
@@ -1403,56 +1499,27 @@ export const fPoolManagerAbi = [
|
|
|
1403
1499
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1404
1500
|
stateMutability: 'view',
|
|
1405
1501
|
},
|
|
1406
|
-
{
|
|
1407
|
-
type: 'function',
|
|
1408
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1409
|
-
name: 'retire',
|
|
1410
|
-
outputs: [],
|
|
1411
|
-
stateMutability: 'nonpayable',
|
|
1412
|
-
},
|
|
1413
1502
|
{
|
|
1414
1503
|
type: 'function',
|
|
1415
1504
|
inputs: [
|
|
1416
|
-
{ name: '
|
|
1417
|
-
{ name: '
|
|
1418
|
-
{ name: 'r0', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1419
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256' },
|
|
1505
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1506
|
+
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1420
1507
|
],
|
|
1421
|
-
name: '
|
|
1422
|
-
outputs: [{ name: '
|
|
1423
|
-
stateMutability: '
|
|
1508
|
+
name: 'setOperator',
|
|
1509
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1510
|
+
stateMutability: 'payable',
|
|
1424
1511
|
},
|
|
1425
1512
|
{
|
|
1426
1513
|
type: 'function',
|
|
1427
1514
|
inputs: [
|
|
1428
1515
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1429
1516
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1517
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
1430
1518
|
],
|
|
1431
|
-
name: '
|
|
1432
|
-
outputs: [],
|
|
1433
|
-
stateMutability: 'nonpayable',
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
type: 'function',
|
|
1437
|
-
inputs: [
|
|
1438
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1439
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1440
|
-
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
1441
|
-
],
|
|
1442
|
-
name: 'setLegs',
|
|
1519
|
+
name: 'setPermissions',
|
|
1443
1520
|
outputs: [],
|
|
1444
1521
|
stateMutability: 'nonpayable',
|
|
1445
1522
|
},
|
|
1446
|
-
{
|
|
1447
|
-
type: 'function',
|
|
1448
|
-
inputs: [
|
|
1449
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1450
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1451
|
-
],
|
|
1452
|
-
name: 'setOperator',
|
|
1453
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1454
|
-
stateMutability: 'payable',
|
|
1455
|
-
},
|
|
1456
1523
|
{
|
|
1457
1524
|
type: 'function',
|
|
1458
1525
|
inputs: [
|
|
@@ -1611,18 +1678,6 @@ export const fPoolManagerAbi = [
|
|
|
1611
1678
|
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1612
1679
|
stateMutability: 'nonpayable',
|
|
1613
1680
|
},
|
|
1614
|
-
{
|
|
1615
|
-
type: 'function',
|
|
1616
|
-
inputs: [
|
|
1617
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1618
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1619
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1620
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1621
|
-
],
|
|
1622
|
-
name: 'unlock',
|
|
1623
|
-
outputs: [],
|
|
1624
|
-
stateMutability: 'nonpayable',
|
|
1625
|
-
},
|
|
1626
1681
|
{
|
|
1627
1682
|
type: 'function',
|
|
1628
1683
|
inputs: [],
|
|
@@ -1773,28 +1828,6 @@ export const fPoolManagerAbi = [
|
|
|
1773
1828
|
],
|
|
1774
1829
|
name: 'GenerationRetired',
|
|
1775
1830
|
},
|
|
1776
|
-
{
|
|
1777
|
-
type: 'event',
|
|
1778
|
-
anonymous: false,
|
|
1779
|
-
inputs: [
|
|
1780
|
-
{
|
|
1781
|
-
name: 'poolId',
|
|
1782
|
-
internalType: 'bytes32',
|
|
1783
|
-
type: 'bytes32',
|
|
1784
|
-
indexed: true,
|
|
1785
|
-
},
|
|
1786
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1787
|
-
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1788
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1789
|
-
{
|
|
1790
|
-
name: 'r0',
|
|
1791
|
-
internalType: 'uint256[]',
|
|
1792
|
-
type: 'uint256[]',
|
|
1793
|
-
indexed: false,
|
|
1794
|
-
},
|
|
1795
|
-
],
|
|
1796
|
-
name: 'GenerationSeeded',
|
|
1797
|
-
},
|
|
1798
1831
|
{
|
|
1799
1832
|
type: 'event',
|
|
1800
1833
|
anonymous: false,
|
|
@@ -1813,7 +1846,7 @@ export const fPoolManagerAbi = [
|
|
|
1813
1846
|
type: 'uint256',
|
|
1814
1847
|
indexed: false,
|
|
1815
1848
|
},
|
|
1816
|
-
{ name: '
|
|
1849
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1817
1850
|
{
|
|
1818
1851
|
name: 'toOperator',
|
|
1819
1852
|
internalType: 'uint256',
|
|
@@ -1834,21 +1867,32 @@ export const fPoolManagerAbi = [
|
|
|
1834
1867
|
type: 'bytes32',
|
|
1835
1868
|
indexed: true,
|
|
1836
1869
|
},
|
|
1837
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1838
1870
|
{
|
|
1839
|
-
name: '
|
|
1840
|
-
internalType: '
|
|
1841
|
-
type: '
|
|
1871
|
+
name: 'income',
|
|
1872
|
+
internalType: 'uint256',
|
|
1873
|
+
type: 'uint256',
|
|
1874
|
+
indexed: false,
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
name: 'payee',
|
|
1878
|
+
internalType: 'address',
|
|
1879
|
+
type: 'address',
|
|
1880
|
+
indexed: false,
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
name: 'toPayee',
|
|
1884
|
+
internalType: 'uint256',
|
|
1885
|
+
type: 'uint256',
|
|
1842
1886
|
indexed: false,
|
|
1843
1887
|
},
|
|
1844
1888
|
{
|
|
1845
|
-
name: '
|
|
1846
|
-
internalType: 'uint256
|
|
1847
|
-
type: 'uint256
|
|
1889
|
+
name: 'deepened',
|
|
1890
|
+
internalType: 'uint256',
|
|
1891
|
+
type: 'uint256',
|
|
1848
1892
|
indexed: false,
|
|
1849
1893
|
},
|
|
1850
1894
|
],
|
|
1851
|
-
name: '
|
|
1895
|
+
name: 'IncomeReleased',
|
|
1852
1896
|
},
|
|
1853
1897
|
{
|
|
1854
1898
|
type: 'event',
|
|
@@ -1915,6 +1959,43 @@ export const fPoolManagerAbi = [
|
|
|
1915
1959
|
],
|
|
1916
1960
|
name: 'LienUnlocked',
|
|
1917
1961
|
},
|
|
1962
|
+
{
|
|
1963
|
+
type: 'event',
|
|
1964
|
+
anonymous: false,
|
|
1965
|
+
inputs: [
|
|
1966
|
+
{
|
|
1967
|
+
name: 'poolId',
|
|
1968
|
+
internalType: 'bytes32',
|
|
1969
|
+
type: 'bytes32',
|
|
1970
|
+
indexed: true,
|
|
1971
|
+
},
|
|
1972
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1973
|
+
{
|
|
1974
|
+
name: 'quoteAmount',
|
|
1975
|
+
internalType: 'uint256',
|
|
1976
|
+
type: 'uint256',
|
|
1977
|
+
indexed: false,
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
name: 'baseAssets',
|
|
1981
|
+
internalType: 'struct BaseAsset[]',
|
|
1982
|
+
type: 'tuple[]',
|
|
1983
|
+
components: [
|
|
1984
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1985
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1986
|
+
{ name: 'priceX36', internalType: 'uint256', type: 'uint256' },
|
|
1987
|
+
],
|
|
1988
|
+
indexed: false,
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: 'lnCapOverSeed',
|
|
1992
|
+
internalType: 'uint24',
|
|
1993
|
+
type: 'uint24',
|
|
1994
|
+
indexed: false,
|
|
1995
|
+
},
|
|
1996
|
+
],
|
|
1997
|
+
name: 'LiquidityDeployed',
|
|
1998
|
+
},
|
|
1918
1999
|
{
|
|
1919
2000
|
type: 'event',
|
|
1920
2001
|
anonymous: false,
|
|
@@ -1945,11 +2026,31 @@ export const fPoolManagerAbi = [
|
|
|
1945
2026
|
type: 'bytes32',
|
|
1946
2027
|
indexed: true,
|
|
1947
2028
|
},
|
|
1948
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1949
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1950
2029
|
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1951
|
-
|
|
1952
|
-
|
|
2030
|
+
{
|
|
2031
|
+
name: 'executor',
|
|
2032
|
+
internalType: 'address',
|
|
2033
|
+
type: 'address',
|
|
2034
|
+
indexed: true,
|
|
2035
|
+
},
|
|
2036
|
+
],
|
|
2037
|
+
name: 'PermissionsSet',
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
type: 'event',
|
|
2041
|
+
anonymous: false,
|
|
2042
|
+
inputs: [
|
|
2043
|
+
{
|
|
2044
|
+
name: 'poolId',
|
|
2045
|
+
internalType: 'bytes32',
|
|
2046
|
+
type: 'bytes32',
|
|
2047
|
+
indexed: true,
|
|
2048
|
+
},
|
|
2049
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2050
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2051
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
2052
|
+
],
|
|
2053
|
+
name: 'PolicyMigrated',
|
|
1953
2054
|
},
|
|
1954
2055
|
{
|
|
1955
2056
|
type: 'event',
|
|
@@ -1979,12 +2080,6 @@ export const fPoolManagerAbi = [
|
|
|
1979
2080
|
type: 'address[]',
|
|
1980
2081
|
indexed: false,
|
|
1981
2082
|
},
|
|
1982
|
-
{
|
|
1983
|
-
name: 'weights',
|
|
1984
|
-
internalType: 'uint256[]',
|
|
1985
|
-
type: 'uint256[]',
|
|
1986
|
-
indexed: false,
|
|
1987
|
-
},
|
|
1988
2083
|
{
|
|
1989
2084
|
name: 'swapFee',
|
|
1990
2085
|
internalType: 'uint256',
|
|
@@ -1997,12 +2092,6 @@ export const fPoolManagerAbi = [
|
|
|
1997
2092
|
type: 'address',
|
|
1998
2093
|
indexed: false,
|
|
1999
2094
|
},
|
|
2000
|
-
{
|
|
2001
|
-
name: 'lnCapOverFloor',
|
|
2002
|
-
internalType: 'uint24',
|
|
2003
|
-
type: 'uint24',
|
|
2004
|
-
indexed: false,
|
|
2005
|
-
},
|
|
2006
2095
|
{
|
|
2007
2096
|
name: 'mintFee',
|
|
2008
2097
|
internalType: 'uint256',
|
|
@@ -2012,39 +2101,6 @@ export const fPoolManagerAbi = [
|
|
|
2012
2101
|
],
|
|
2013
2102
|
name: 'PoolCreated',
|
|
2014
2103
|
},
|
|
2015
|
-
{
|
|
2016
|
-
type: 'event',
|
|
2017
|
-
anonymous: false,
|
|
2018
|
-
inputs: [
|
|
2019
|
-
{
|
|
2020
|
-
name: 'poolId',
|
|
2021
|
-
internalType: 'bytes32',
|
|
2022
|
-
type: 'bytes32',
|
|
2023
|
-
indexed: true,
|
|
2024
|
-
},
|
|
2025
|
-
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2026
|
-
{
|
|
2027
|
-
name: 'payee',
|
|
2028
|
-
internalType: 'address',
|
|
2029
|
-
type: 'address',
|
|
2030
|
-
indexed: false,
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
name: 'toPayee',
|
|
2034
|
-
internalType: 'uint256',
|
|
2035
|
-
type: 'uint256',
|
|
2036
|
-
indexed: false,
|
|
2037
|
-
},
|
|
2038
|
-
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2039
|
-
{
|
|
2040
|
-
name: 'deepened',
|
|
2041
|
-
internalType: 'uint256',
|
|
2042
|
-
type: 'uint256',
|
|
2043
|
-
indexed: false,
|
|
2044
|
-
},
|
|
2045
|
-
],
|
|
2046
|
-
name: 'PotReleased',
|
|
2047
|
-
},
|
|
2048
2104
|
{
|
|
2049
2105
|
type: 'event',
|
|
2050
2106
|
anonymous: false,
|
|
@@ -2296,7 +2352,6 @@ export const fPoolManagerAbi = [
|
|
|
2296
2352
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2297
2353
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2298
2354
|
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
2299
|
-
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2300
2355
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2301
2356
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2302
2357
|
{ type: 'error', inputs: [], name: 'CapReached' },
|
|
@@ -2305,7 +2360,6 @@ export const fPoolManagerAbi = [
|
|
|
2305
2360
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2306
2361
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2307
2362
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2308
|
-
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2309
2363
|
{ type: 'error', inputs: [], name: 'Locked' },
|
|
2310
2364
|
{
|
|
2311
2365
|
type: 'error',
|
|
@@ -2319,6 +2373,7 @@ export const fPoolManagerAbi = [
|
|
|
2319
2373
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2320
2374
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2321
2375
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
2376
|
+
{ type: 'error', inputs: [], name: 'PadForwardOnly' },
|
|
2322
2377
|
{ type: 'error', inputs: [], name: 'PadNeverRetires' },
|
|
2323
2378
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2324
2379
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -2337,7 +2392,6 @@ export const fPoolManagerAbi = [
|
|
|
2337
2392
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
2338
2393
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
2339
2394
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
2340
|
-
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
2341
2395
|
{ type: 'error', inputs: [], name: 'TransferShortfall' },
|
|
2342
2396
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2343
2397
|
] as const
|
|
@@ -2398,13 +2452,15 @@ export const logswapLensAbi = [
|
|
|
2398
2452
|
inputs: [
|
|
2399
2453
|
{
|
|
2400
2454
|
name: 'key',
|
|
2401
|
-
internalType: 'struct
|
|
2455
|
+
internalType: 'struct CPoolKey',
|
|
2402
2456
|
type: 'tuple',
|
|
2403
2457
|
components: [
|
|
2404
2458
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2405
2459
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2406
2460
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2461
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2407
2462
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2463
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2408
2464
|
],
|
|
2409
2465
|
},
|
|
2410
2466
|
],
|
|
@@ -2417,13 +2473,15 @@ export const logswapLensAbi = [
|
|
|
2417
2473
|
inputs: [
|
|
2418
2474
|
{
|
|
2419
2475
|
name: 'key',
|
|
2420
|
-
internalType: 'struct
|
|
2476
|
+
internalType: 'struct CPoolKey',
|
|
2421
2477
|
type: 'tuple',
|
|
2422
2478
|
components: [
|
|
2423
2479
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2424
2480
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2425
2481
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2482
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2426
2483
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2484
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2427
2485
|
],
|
|
2428
2486
|
},
|
|
2429
2487
|
],
|
|
@@ -2543,16 +2601,17 @@ export const logswapLensAbi = [
|
|
|
2543
2601
|
type: 'uint32',
|
|
2544
2602
|
},
|
|
2545
2603
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2604
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2605
|
+
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2546
2606
|
{
|
|
2547
|
-
name: '
|
|
2548
|
-
internalType: '
|
|
2549
|
-
type: '
|
|
2607
|
+
name: 'realizedVariance',
|
|
2608
|
+
internalType: 'uint128',
|
|
2609
|
+
type: 'uint128',
|
|
2550
2610
|
},
|
|
2551
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2552
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2553
2611
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2554
2612
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2555
2613
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2614
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2556
2615
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2557
2616
|
],
|
|
2558
2617
|
},
|
|
@@ -2560,7 +2619,7 @@ export const logswapLensAbi = [
|
|
|
2560
2619
|
{ name: 'compositeX', internalType: 'int256', type: 'int256' },
|
|
2561
2620
|
{ name: 'unharvested', internalType: 'uint256', type: 'uint256' },
|
|
2562
2621
|
{
|
|
2563
|
-
name: '
|
|
2622
|
+
name: 'baseLegs',
|
|
2564
2623
|
internalType: 'struct LogswapLens.FLeg[]',
|
|
2565
2624
|
type: 'tuple[]',
|
|
2566
2625
|
components: [
|
|
@@ -2586,13 +2645,15 @@ export const logswapLensAbi = [
|
|
|
2586
2645
|
inputs: [
|
|
2587
2646
|
{
|
|
2588
2647
|
name: 'key',
|
|
2589
|
-
internalType: 'struct
|
|
2648
|
+
internalType: 'struct CPoolKey',
|
|
2590
2649
|
type: 'tuple',
|
|
2591
2650
|
components: [
|
|
2592
2651
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2593
2652
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2594
2653
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2654
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2595
2655
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2656
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2596
2657
|
],
|
|
2597
2658
|
},
|
|
2598
2659
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2639,12 +2700,17 @@ export const logswapLensAbi = [
|
|
|
2639
2700
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2640
2701
|
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2641
2702
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2642
|
-
{ name: '
|
|
2703
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2643
2704
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2644
|
-
{
|
|
2705
|
+
{
|
|
2706
|
+
name: 'realizedVariance',
|
|
2707
|
+
internalType: 'uint128',
|
|
2708
|
+
type: 'uint128',
|
|
2709
|
+
},
|
|
2645
2710
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2646
2711
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2647
2712
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2713
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2648
2714
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2649
2715
|
],
|
|
2650
2716
|
},
|
|
@@ -2668,12 +2734,19 @@ export const logswapLensAbi = [
|
|
|
2668
2734
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
2669
2735
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2670
2736
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2671
|
-
{
|
|
2737
|
+
{
|
|
2738
|
+
name: 'realizedVariance',
|
|
2739
|
+
internalType: 'uint256',
|
|
2740
|
+
type: 'uint256',
|
|
2741
|
+
},
|
|
2672
2742
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2673
2743
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2674
2744
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2675
2745
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2676
|
-
{ name: '
|
|
2746
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2747
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2748
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2749
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2677
2750
|
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2678
2751
|
],
|
|
2679
2752
|
},
|
|
@@ -2685,13 +2758,15 @@ export const logswapLensAbi = [
|
|
|
2685
2758
|
inputs: [
|
|
2686
2759
|
{
|
|
2687
2760
|
name: 'key',
|
|
2688
|
-
internalType: 'struct
|
|
2761
|
+
internalType: 'struct CPoolKey',
|
|
2689
2762
|
type: 'tuple',
|
|
2690
2763
|
components: [
|
|
2691
2764
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2692
2765
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2693
2766
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2767
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2694
2768
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2769
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2695
2770
|
],
|
|
2696
2771
|
},
|
|
2697
2772
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2721,13 +2796,15 @@ export const logswapLensAbi = [
|
|
|
2721
2796
|
inputs: [
|
|
2722
2797
|
{
|
|
2723
2798
|
name: 'key',
|
|
2724
|
-
internalType: 'struct
|
|
2799
|
+
internalType: 'struct CPoolKey',
|
|
2725
2800
|
type: 'tuple',
|
|
2726
2801
|
components: [
|
|
2727
2802
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2728
2803
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2729
2804
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2805
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2730
2806
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2807
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2731
2808
|
],
|
|
2732
2809
|
},
|
|
2733
2810
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2741,13 +2818,15 @@ export const logswapLensAbi = [
|
|
|
2741
2818
|
inputs: [
|
|
2742
2819
|
{
|
|
2743
2820
|
name: 'key',
|
|
2744
|
-
internalType: 'struct
|
|
2821
|
+
internalType: 'struct CPoolKey',
|
|
2745
2822
|
type: 'tuple',
|
|
2746
2823
|
components: [
|
|
2747
2824
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2748
2825
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2749
2826
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2827
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2750
2828
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2829
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2751
2830
|
],
|
|
2752
2831
|
},
|
|
2753
2832
|
],
|
|
@@ -2760,13 +2839,15 @@ export const logswapLensAbi = [
|
|
|
2760
2839
|
inputs: [
|
|
2761
2840
|
{
|
|
2762
2841
|
name: 'key',
|
|
2763
|
-
internalType: 'struct
|
|
2842
|
+
internalType: 'struct CPoolKey',
|
|
2764
2843
|
type: 'tuple',
|
|
2765
2844
|
components: [
|
|
2766
2845
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2767
2846
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2768
2847
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2848
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2769
2849
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2850
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2770
2851
|
],
|
|
2771
2852
|
},
|
|
2772
2853
|
],
|
|
@@ -2779,13 +2860,15 @@ export const logswapLensAbi = [
|
|
|
2779
2860
|
inputs: [
|
|
2780
2861
|
{
|
|
2781
2862
|
name: 'key',
|
|
2782
|
-
internalType: 'struct
|
|
2863
|
+
internalType: 'struct CPoolKey',
|
|
2783
2864
|
type: 'tuple',
|
|
2784
2865
|
components: [
|
|
2785
2866
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2786
2867
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2787
2868
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2869
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2788
2870
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2871
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2789
2872
|
],
|
|
2790
2873
|
},
|
|
2791
2874
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2805,13 +2888,15 @@ export const logswapLensAbi = [
|
|
|
2805
2888
|
inputs: [
|
|
2806
2889
|
{
|
|
2807
2890
|
name: 'key',
|
|
2808
|
-
internalType: 'struct
|
|
2891
|
+
internalType: 'struct CPoolKey',
|
|
2809
2892
|
type: 'tuple',
|
|
2810
2893
|
components: [
|
|
2811
2894
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2812
2895
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2813
2896
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2897
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2814
2898
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2899
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2815
2900
|
],
|
|
2816
2901
|
},
|
|
2817
2902
|
],
|
|
@@ -2833,13 +2918,15 @@ export const logswapLensAbi = [
|
|
|
2833
2918
|
inputs: [
|
|
2834
2919
|
{
|
|
2835
2920
|
name: 'key',
|
|
2836
|
-
internalType: 'struct
|
|
2921
|
+
internalType: 'struct CPoolKey',
|
|
2837
2922
|
type: 'tuple',
|
|
2838
2923
|
components: [
|
|
2839
2924
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2840
2925
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2841
2926
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2927
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2842
2928
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2929
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2843
2930
|
],
|
|
2844
2931
|
},
|
|
2845
2932
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2871,13 +2958,15 @@ export const logswapLensAbi = [
|
|
|
2871
2958
|
inputs: [
|
|
2872
2959
|
{
|
|
2873
2960
|
name: 'key',
|
|
2874
|
-
internalType: 'struct
|
|
2961
|
+
internalType: 'struct CPoolKey',
|
|
2875
2962
|
type: 'tuple',
|
|
2876
2963
|
components: [
|
|
2877
2964
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2878
2965
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2879
2966
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2967
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2880
2968
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2969
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2881
2970
|
],
|
|
2882
2971
|
},
|
|
2883
2972
|
],
|
|
@@ -2890,13 +2979,15 @@ export const logswapLensAbi = [
|
|
|
2890
2979
|
inputs: [
|
|
2891
2980
|
{
|
|
2892
2981
|
name: 'key',
|
|
2893
|
-
internalType: 'struct
|
|
2982
|
+
internalType: 'struct CPoolKey',
|
|
2894
2983
|
type: 'tuple',
|
|
2895
2984
|
components: [
|
|
2896
2985
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2897
2986
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2898
2987
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2988
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2899
2989
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2990
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2900
2991
|
],
|
|
2901
2992
|
},
|
|
2902
2993
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2923,13 +3014,15 @@ export const logswapLensAbi = [
|
|
|
2923
3014
|
inputs: [
|
|
2924
3015
|
{
|
|
2925
3016
|
name: 'key',
|
|
2926
|
-
internalType: 'struct
|
|
3017
|
+
internalType: 'struct CPoolKey',
|
|
2927
3018
|
type: 'tuple',
|
|
2928
3019
|
components: [
|
|
2929
3020
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2930
3021
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2931
3022
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3023
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2932
3024
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3025
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2933
3026
|
],
|
|
2934
3027
|
},
|
|
2935
3028
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -2965,13 +3058,15 @@ export const logswapLensAbi = [
|
|
|
2965
3058
|
inputs: [
|
|
2966
3059
|
{
|
|
2967
3060
|
name: 'key',
|
|
2968
|
-
internalType: 'struct
|
|
3061
|
+
internalType: 'struct CPoolKey',
|
|
2969
3062
|
type: 'tuple',
|
|
2970
3063
|
components: [
|
|
2971
3064
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2972
3065
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2973
3066
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3067
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2974
3068
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3069
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2975
3070
|
],
|
|
2976
3071
|
},
|
|
2977
3072
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2986,13 +3081,15 @@ export const logswapLensAbi = [
|
|
|
2986
3081
|
inputs: [
|
|
2987
3082
|
{
|
|
2988
3083
|
name: 'key',
|
|
2989
|
-
internalType: 'struct
|
|
3084
|
+
internalType: 'struct CPoolKey',
|
|
2990
3085
|
type: 'tuple',
|
|
2991
3086
|
components: [
|
|
2992
3087
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2993
3088
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2994
3089
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3090
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2995
3091
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3092
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2996
3093
|
],
|
|
2997
3094
|
},
|
|
2998
3095
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3007,13 +3104,15 @@ export const logswapLensAbi = [
|
|
|
3007
3104
|
inputs: [
|
|
3008
3105
|
{
|
|
3009
3106
|
name: 'key',
|
|
3010
|
-
internalType: 'struct
|
|
3107
|
+
internalType: 'struct CPoolKey',
|
|
3011
3108
|
type: 'tuple',
|
|
3012
3109
|
components: [
|
|
3013
3110
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3014
3111
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3015
3112
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3113
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3016
3114
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3115
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3017
3116
|
],
|
|
3018
3117
|
},
|
|
3019
3118
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3028,13 +3127,15 @@ export const logswapLensAbi = [
|
|
|
3028
3127
|
inputs: [
|
|
3029
3128
|
{
|
|
3030
3129
|
name: 'key',
|
|
3031
|
-
internalType: 'struct
|
|
3130
|
+
internalType: 'struct CPoolKey',
|
|
3032
3131
|
type: 'tuple',
|
|
3033
3132
|
components: [
|
|
3034
3133
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3035
3134
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3036
3135
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3136
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3037
3137
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3138
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3038
3139
|
],
|
|
3039
3140
|
},
|
|
3040
3141
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3085,13 +3186,15 @@ export const logswapLensAbi = [
|
|
|
3085
3186
|
inputs: [
|
|
3086
3187
|
{
|
|
3087
3188
|
name: 'key',
|
|
3088
|
-
internalType: 'struct
|
|
3189
|
+
internalType: 'struct CPoolKey',
|
|
3089
3190
|
type: 'tuple',
|
|
3090
3191
|
components: [
|
|
3091
3192
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3092
3193
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3093
3194
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3195
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3094
3196
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3197
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3095
3198
|
],
|
|
3096
3199
|
},
|
|
3097
3200
|
],
|
|
@@ -3176,13 +3279,15 @@ export const logswapRouterAbi = [
|
|
|
3176
3279
|
inputs: [
|
|
3177
3280
|
{
|
|
3178
3281
|
name: 'key',
|
|
3179
|
-
internalType: 'struct
|
|
3282
|
+
internalType: 'struct CPoolKey',
|
|
3180
3283
|
type: 'tuple',
|
|
3181
3284
|
components: [
|
|
3182
3285
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3183
3286
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3184
3287
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3288
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3185
3289
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3290
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3186
3291
|
],
|
|
3187
3292
|
},
|
|
3188
3293
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3204,13 +3309,15 @@ export const logswapRouterAbi = [
|
|
|
3204
3309
|
inputs: [
|
|
3205
3310
|
{
|
|
3206
3311
|
name: 'key',
|
|
3207
|
-
internalType: 'struct
|
|
3312
|
+
internalType: 'struct CPoolKey',
|
|
3208
3313
|
type: 'tuple',
|
|
3209
3314
|
components: [
|
|
3210
3315
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3211
3316
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3212
3317
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3318
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3213
3319
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3320
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3214
3321
|
],
|
|
3215
3322
|
},
|
|
3216
3323
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3226,17 +3333,18 @@ export const logswapRouterAbi = [
|
|
|
3226
3333
|
inputs: [
|
|
3227
3334
|
{
|
|
3228
3335
|
name: 'key',
|
|
3229
|
-
internalType: 'struct
|
|
3336
|
+
internalType: 'struct CPoolKey',
|
|
3230
3337
|
type: 'tuple',
|
|
3231
3338
|
components: [
|
|
3232
3339
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3233
3340
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3234
3341
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3342
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3235
3343
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3344
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3236
3345
|
],
|
|
3237
3346
|
},
|
|
3238
3347
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
3239
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3240
3348
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3241
3349
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3242
3350
|
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3262,13 +3370,15 @@ export const logswapRouterAbi = [
|
|
|
3262
3370
|
components: [
|
|
3263
3371
|
{
|
|
3264
3372
|
name: 'key',
|
|
3265
|
-
internalType: 'struct
|
|
3373
|
+
internalType: 'struct CPoolKey',
|
|
3266
3374
|
type: 'tuple',
|
|
3267
3375
|
components: [
|
|
3268
3376
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3269
3377
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3270
3378
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3379
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3271
3380
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3381
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3272
3382
|
],
|
|
3273
3383
|
},
|
|
3274
3384
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3290,13 +3400,15 @@ export const logswapRouterAbi = [
|
|
|
3290
3400
|
components: [
|
|
3291
3401
|
{
|
|
3292
3402
|
name: 'key',
|
|
3293
|
-
internalType: 'struct
|
|
3403
|
+
internalType: 'struct CPoolKey',
|
|
3294
3404
|
type: 'tuple',
|
|
3295
3405
|
components: [
|
|
3296
3406
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3297
3407
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3298
3408
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3409
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3299
3410
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3411
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3300
3412
|
],
|
|
3301
3413
|
},
|
|
3302
3414
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3317,13 +3429,15 @@ export const logswapRouterAbi = [
|
|
|
3317
3429
|
components: [
|
|
3318
3430
|
{
|
|
3319
3431
|
name: 'key',
|
|
3320
|
-
internalType: 'struct
|
|
3432
|
+
internalType: 'struct CPoolKey',
|
|
3321
3433
|
type: 'tuple',
|
|
3322
3434
|
components: [
|
|
3323
3435
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3324
3436
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3325
3437
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3438
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3326
3439
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3440
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3327
3441
|
],
|
|
3328
3442
|
},
|
|
3329
3443
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3351,7 +3465,7 @@ export const logswapRouterAbi = [
|
|
|
3351
3465
|
components: [
|
|
3352
3466
|
{
|
|
3353
3467
|
name: 'key',
|
|
3354
|
-
internalType: 'struct
|
|
3468
|
+
internalType: 'struct CPoolKey',
|
|
3355
3469
|
type: 'tuple',
|
|
3356
3470
|
components: [
|
|
3357
3471
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
@@ -3361,7 +3475,9 @@ export const logswapRouterAbi = [
|
|
|
3361
3475
|
internalType: 'int256',
|
|
3362
3476
|
type: 'int256',
|
|
3363
3477
|
},
|
|
3478
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3364
3479
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3480
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3365
3481
|
],
|
|
3366
3482
|
},
|
|
3367
3483
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3386,13 +3502,15 @@ export const logswapRouterAbi = [
|
|
|
3386
3502
|
components: [
|
|
3387
3503
|
{
|
|
3388
3504
|
name: 'key',
|
|
3389
|
-
internalType: 'struct
|
|
3505
|
+
internalType: 'struct CPoolKey',
|
|
3390
3506
|
type: 'tuple',
|
|
3391
3507
|
components: [
|
|
3392
3508
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3393
3509
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3394
3510
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3511
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3395
3512
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3513
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3396
3514
|
],
|
|
3397
3515
|
},
|
|
3398
3516
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -3415,13 +3533,15 @@ export const logswapRouterAbi = [
|
|
|
3415
3533
|
components: [
|
|
3416
3534
|
{
|
|
3417
3535
|
name: 'key',
|
|
3418
|
-
internalType: 'struct
|
|
3536
|
+
internalType: 'struct CPoolKey',
|
|
3419
3537
|
type: 'tuple',
|
|
3420
3538
|
components: [
|
|
3421
3539
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3422
3540
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3423
3541
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3542
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3424
3543
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3544
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3425
3545
|
],
|
|
3426
3546
|
},
|
|
3427
3547
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3500,13 +3620,15 @@ export const logswapRouterAbi = [
|
|
|
3500
3620
|
inputs: [
|
|
3501
3621
|
{
|
|
3502
3622
|
name: 'key',
|
|
3503
|
-
internalType: 'struct
|
|
3623
|
+
internalType: 'struct CPoolKey',
|
|
3504
3624
|
type: 'tuple',
|
|
3505
3625
|
components: [
|
|
3506
3626
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3507
3627
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3508
3628
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3629
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3509
3630
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3631
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3510
3632
|
],
|
|
3511
3633
|
},
|
|
3512
3634
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3529,13 +3651,15 @@ export const logswapRouterAbi = [
|
|
|
3529
3651
|
inputs: [
|
|
3530
3652
|
{
|
|
3531
3653
|
name: 'key',
|
|
3532
|
-
internalType: 'struct
|
|
3654
|
+
internalType: 'struct CPoolKey',
|
|
3533
3655
|
type: 'tuple',
|
|
3534
3656
|
components: [
|
|
3535
3657
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3536
3658
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3537
3659
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3660
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3538
3661
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3662
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3539
3663
|
],
|
|
3540
3664
|
},
|
|
3541
3665
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3620,13 +3744,15 @@ export const logswapRouterAbi = [
|
|
|
3620
3744
|
inputs: [
|
|
3621
3745
|
{
|
|
3622
3746
|
name: 'key',
|
|
3623
|
-
internalType: 'struct
|
|
3747
|
+
internalType: 'struct CPoolKey',
|
|
3624
3748
|
type: 'tuple',
|
|
3625
3749
|
components: [
|
|
3626
3750
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3627
3751
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3628
3752
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3753
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3629
3754
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3755
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3630
3756
|
],
|
|
3631
3757
|
},
|
|
3632
3758
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3649,13 +3775,15 @@ export const logswapRouterAbi = [
|
|
|
3649
3775
|
components: [
|
|
3650
3776
|
{
|
|
3651
3777
|
name: 'key',
|
|
3652
|
-
internalType: 'struct
|
|
3778
|
+
internalType: 'struct CPoolKey',
|
|
3653
3779
|
type: 'tuple',
|
|
3654
3780
|
components: [
|
|
3655
3781
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3656
3782
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3657
3783
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3784
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3658
3785
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3786
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3659
3787
|
],
|
|
3660
3788
|
},
|
|
3661
3789
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3675,13 +3803,15 @@ export const logswapRouterAbi = [
|
|
|
3675
3803
|
inputs: [
|
|
3676
3804
|
{
|
|
3677
3805
|
name: 'key',
|
|
3678
|
-
internalType: 'struct
|
|
3806
|
+
internalType: 'struct CPoolKey',
|
|
3679
3807
|
type: 'tuple',
|
|
3680
3808
|
components: [
|
|
3681
3809
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3682
3810
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3683
3811
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3812
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3684
3813
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3814
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3685
3815
|
],
|
|
3686
3816
|
},
|
|
3687
3817
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3706,13 +3836,15 @@ export const logswapRouterAbi = [
|
|
|
3706
3836
|
inputs: [
|
|
3707
3837
|
{
|
|
3708
3838
|
name: 'key',
|
|
3709
|
-
internalType: 'struct
|
|
3839
|
+
internalType: 'struct CPoolKey',
|
|
3710
3840
|
type: 'tuple',
|
|
3711
3841
|
components: [
|
|
3712
3842
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3713
3843
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3714
3844
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3845
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3715
3846
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3847
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3716
3848
|
],
|
|
3717
3849
|
},
|
|
3718
3850
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3745,13 +3877,15 @@ export const logswapRouterAbi = [
|
|
|
3745
3877
|
inputs: [
|
|
3746
3878
|
{
|
|
3747
3879
|
name: 'key',
|
|
3748
|
-
internalType: 'struct
|
|
3880
|
+
internalType: 'struct CPoolKey',
|
|
3749
3881
|
type: 'tuple',
|
|
3750
3882
|
components: [
|
|
3751
3883
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3752
3884
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3753
3885
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3886
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3754
3887
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3888
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3755
3889
|
],
|
|
3756
3890
|
},
|
|
3757
3891
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
@@ -3857,25 +3991,18 @@ export const padPolicyAbi = [
|
|
|
3857
3991
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3858
3992
|
stateMutability: 'view',
|
|
3859
3993
|
},
|
|
3860
|
-
{
|
|
3861
|
-
type: 'function',
|
|
3862
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3863
|
-
name: 'creator',
|
|
3864
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3865
|
-
stateMutability: 'view',
|
|
3866
|
-
},
|
|
3867
3994
|
{
|
|
3868
3995
|
type: 'function',
|
|
3869
3996
|
inputs: [],
|
|
3870
|
-
name: '
|
|
3871
|
-
outputs: [{ name: '', internalType: '
|
|
3997
|
+
name: 'cManager',
|
|
3998
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3872
3999
|
stateMutability: 'view',
|
|
3873
4000
|
},
|
|
3874
4001
|
{
|
|
3875
4002
|
type: 'function',
|
|
3876
|
-
inputs: [{ name: '', internalType: '
|
|
3877
|
-
name: '
|
|
3878
|
-
outputs: [{ name: '', internalType: '
|
|
4003
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4004
|
+
name: 'creator',
|
|
4005
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3879
4006
|
stateMutability: 'view',
|
|
3880
4007
|
},
|
|
3881
4008
|
{
|
|
@@ -3892,6 +4019,13 @@ export const padPolicyAbi = [
|
|
|
3892
4019
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3893
4020
|
stateMutability: 'view',
|
|
3894
4021
|
},
|
|
4022
|
+
{
|
|
4023
|
+
type: 'function',
|
|
4024
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4025
|
+
name: 'creatorShareOf',
|
|
4026
|
+
outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
|
|
4027
|
+
stateMutability: 'view',
|
|
4028
|
+
},
|
|
3895
4029
|
{
|
|
3896
4030
|
type: 'function',
|
|
3897
4031
|
inputs: [],
|
|
@@ -3906,6 +4040,23 @@ export const padPolicyAbi = [
|
|
|
3906
4040
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3907
4041
|
stateMutability: 'view',
|
|
3908
4042
|
},
|
|
4043
|
+
{
|
|
4044
|
+
type: 'function',
|
|
4045
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4046
|
+
name: 'incomeTax',
|
|
4047
|
+
outputs: [
|
|
4048
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4049
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4050
|
+
],
|
|
4051
|
+
stateMutability: 'view',
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
type: 'function',
|
|
4055
|
+
inputs: [],
|
|
4056
|
+
name: 'incomeTaxRate',
|
|
4057
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4058
|
+
stateMutability: 'view',
|
|
4059
|
+
},
|
|
3909
4060
|
{
|
|
3910
4061
|
type: 'function',
|
|
3911
4062
|
inputs: [],
|
|
@@ -3922,6 +4073,13 @@ export const padPolicyAbi = [
|
|
|
3922
4073
|
],
|
|
3923
4074
|
stateMutability: 'view',
|
|
3924
4075
|
},
|
|
4076
|
+
{
|
|
4077
|
+
type: 'function',
|
|
4078
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4079
|
+
name: 'managerOf',
|
|
4080
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4081
|
+
stateMutability: 'view',
|
|
4082
|
+
},
|
|
3925
4083
|
{
|
|
3926
4084
|
type: 'function',
|
|
3927
4085
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3957,20 +4115,6 @@ export const padPolicyAbi = [
|
|
|
3957
4115
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3958
4116
|
stateMutability: 'view',
|
|
3959
4117
|
},
|
|
3960
|
-
{
|
|
3961
|
-
type: 'function',
|
|
3962
|
-
inputs: [],
|
|
3963
|
-
name: 'mintFeeCurated',
|
|
3964
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3965
|
-
stateMutability: 'view',
|
|
3966
|
-
},
|
|
3967
|
-
{
|
|
3968
|
-
type: 'function',
|
|
3969
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3970
|
-
name: 'mintFeeListed',
|
|
3971
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3972
|
-
stateMutability: 'view',
|
|
3973
|
-
},
|
|
3974
4118
|
{
|
|
3975
4119
|
type: 'function',
|
|
3976
4120
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3978,6 +4122,31 @@ export const padPolicyAbi = [
|
|
|
3978
4122
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3979
4123
|
stateMutability: 'view',
|
|
3980
4124
|
},
|
|
4125
|
+
{
|
|
4126
|
+
type: 'function',
|
|
4127
|
+
inputs: [
|
|
4128
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4129
|
+
{
|
|
4130
|
+
name: '',
|
|
4131
|
+
internalType: 'struct CPoolKey',
|
|
4132
|
+
type: 'tuple',
|
|
4133
|
+
components: [
|
|
4134
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4135
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4136
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4137
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4138
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4139
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4140
|
+
],
|
|
4141
|
+
},
|
|
4142
|
+
],
|
|
4143
|
+
name: 'onCInitialize',
|
|
4144
|
+
outputs: [
|
|
4145
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4146
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4147
|
+
],
|
|
4148
|
+
stateMutability: 'pure',
|
|
4149
|
+
},
|
|
3981
4150
|
{
|
|
3982
4151
|
type: 'function',
|
|
3983
4152
|
inputs: [
|
|
@@ -3989,21 +4158,16 @@ export const padPolicyAbi = [
|
|
|
3989
4158
|
components: [
|
|
3990
4159
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3991
4160
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3992
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3993
4161
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3994
4162
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3995
4163
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3996
4164
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3997
|
-
{ name: '
|
|
4165
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3998
4166
|
],
|
|
3999
4167
|
},
|
|
4000
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4001
4168
|
],
|
|
4002
4169
|
name: 'onInitialize',
|
|
4003
|
-
outputs: [
|
|
4004
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4005
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4006
|
-
],
|
|
4170
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4007
4171
|
stateMutability: 'nonpayable',
|
|
4008
4172
|
},
|
|
4009
4173
|
{
|
|
@@ -4052,7 +4216,7 @@ export const padPolicyAbi = [
|
|
|
4052
4216
|
components: [
|
|
4053
4217
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4054
4218
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4055
|
-
{ name: '
|
|
4219
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4056
4220
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4057
4221
|
],
|
|
4058
4222
|
},
|
|
@@ -4093,13 +4257,6 @@ export const padPolicyAbi = [
|
|
|
4093
4257
|
outputs: [],
|
|
4094
4258
|
stateMutability: 'nonpayable',
|
|
4095
4259
|
},
|
|
4096
|
-
{
|
|
4097
|
-
type: 'function',
|
|
4098
|
-
inputs: [],
|
|
4099
|
-
name: 'protocolShare',
|
|
4100
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4101
|
-
stateMutability: 'view',
|
|
4102
|
-
},
|
|
4103
4260
|
{
|
|
4104
4261
|
type: 'function',
|
|
4105
4262
|
inputs: [],
|
|
@@ -4116,18 +4273,8 @@ export const padPolicyAbi = [
|
|
|
4116
4273
|
},
|
|
4117
4274
|
{
|
|
4118
4275
|
type: 'function',
|
|
4119
|
-
inputs: [{ name: '
|
|
4120
|
-
name: '
|
|
4121
|
-
outputs: [],
|
|
4122
|
-
stateMutability: 'nonpayable',
|
|
4123
|
-
},
|
|
4124
|
-
{
|
|
4125
|
-
type: 'function',
|
|
4126
|
-
inputs: [
|
|
4127
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4128
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4129
|
-
],
|
|
4130
|
-
name: 'setCreatorListed',
|
|
4276
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4277
|
+
name: 'setCManager',
|
|
4131
4278
|
outputs: [],
|
|
4132
4279
|
stateMutability: 'nonpayable',
|
|
4133
4280
|
},
|
|
@@ -4150,18 +4297,8 @@ export const padPolicyAbi = [
|
|
|
4150
4297
|
},
|
|
4151
4298
|
{
|
|
4152
4299
|
type: 'function',
|
|
4153
|
-
inputs: [{ name: '
|
|
4154
|
-
name: '
|
|
4155
|
-
outputs: [],
|
|
4156
|
-
stateMutability: 'nonpayable',
|
|
4157
|
-
},
|
|
4158
|
-
{
|
|
4159
|
-
type: 'function',
|
|
4160
|
-
inputs: [
|
|
4161
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4162
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4163
|
-
],
|
|
4164
|
-
name: 'setMintFeeListed',
|
|
4300
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4301
|
+
name: 'setIncomeTaxRate',
|
|
4165
4302
|
outputs: [],
|
|
4166
4303
|
stateMutability: 'nonpayable',
|
|
4167
4304
|
},
|
|
@@ -4195,10 +4332,9 @@ export const padPolicyAbi = [
|
|
|
4195
4332
|
{
|
|
4196
4333
|
type: 'function',
|
|
4197
4334
|
inputs: [
|
|
4198
|
-
{ name: '
|
|
4199
|
-
{ name: '
|
|
4200
|
-
{ name: '
|
|
4201
|
-
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4335
|
+
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
4336
|
+
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4337
|
+
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4202
4338
|
],
|
|
4203
4339
|
name: 'setSchedule',
|
|
4204
4340
|
outputs: [],
|
|
@@ -4216,12 +4352,9 @@ export const padPolicyAbi = [
|
|
|
4216
4352
|
},
|
|
4217
4353
|
{
|
|
4218
4354
|
type: 'function',
|
|
4219
|
-
inputs: [
|
|
4220
|
-
name: '
|
|
4221
|
-
outputs: [
|
|
4222
|
-
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4223
|
-
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4224
|
-
],
|
|
4355
|
+
inputs: [],
|
|
4356
|
+
name: 'sponsor',
|
|
4357
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4225
4358
|
stateMutability: 'view',
|
|
4226
4359
|
},
|
|
4227
4360
|
{
|
|
@@ -4309,23 +4442,14 @@ export const padPolicyAbi = [
|
|
|
4309
4442
|
type: 'event',
|
|
4310
4443
|
anonymous: false,
|
|
4311
4444
|
inputs: [
|
|
4312
|
-
{
|
|
4445
|
+
{
|
|
4446
|
+
name: 'manager',
|
|
4447
|
+
internalType: 'address',
|
|
4448
|
+
type: 'address',
|
|
4449
|
+
indexed: true,
|
|
4450
|
+
},
|
|
4313
4451
|
],
|
|
4314
|
-
name: '
|
|
4315
|
-
},
|
|
4316
|
-
{
|
|
4317
|
-
type: 'event',
|
|
4318
|
-
anonymous: false,
|
|
4319
|
-
inputs: [
|
|
4320
|
-
{
|
|
4321
|
-
name: 'creator',
|
|
4322
|
-
internalType: 'address',
|
|
4323
|
-
type: 'address',
|
|
4324
|
-
indexed: true,
|
|
4325
|
-
},
|
|
4326
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4327
|
-
],
|
|
4328
|
-
name: 'CreatorListed',
|
|
4452
|
+
name: 'CManagerSet',
|
|
4329
4453
|
},
|
|
4330
4454
|
{
|
|
4331
4455
|
type: 'event',
|
|
@@ -4355,31 +4479,27 @@ export const padPolicyAbi = [
|
|
|
4355
4479
|
indexed: true,
|
|
4356
4480
|
},
|
|
4357
4481
|
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4358
|
-
{
|
|
4482
|
+
{
|
|
4483
|
+
name: 'income',
|
|
4484
|
+
internalType: 'uint256',
|
|
4485
|
+
type: 'uint256',
|
|
4486
|
+
indexed: false,
|
|
4487
|
+
},
|
|
4359
4488
|
],
|
|
4360
4489
|
name: 'Graduated',
|
|
4361
4490
|
},
|
|
4362
|
-
{
|
|
4363
|
-
type: 'event',
|
|
4364
|
-
anonymous: false,
|
|
4365
|
-
inputs: [
|
|
4366
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4367
|
-
],
|
|
4368
|
-
name: 'MintFeeCuratedSet',
|
|
4369
|
-
},
|
|
4370
4491
|
{
|
|
4371
4492
|
type: 'event',
|
|
4372
4493
|
anonymous: false,
|
|
4373
4494
|
inputs: [
|
|
4374
4495
|
{
|
|
4375
|
-
name: '
|
|
4496
|
+
name: 'rate',
|
|
4376
4497
|
internalType: 'uint256',
|
|
4377
4498
|
type: 'uint256',
|
|
4378
|
-
indexed:
|
|
4499
|
+
indexed: false,
|
|
4379
4500
|
},
|
|
4380
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4381
4501
|
],
|
|
4382
|
-
name: '
|
|
4502
|
+
name: 'IncomeTaxRateSet',
|
|
4383
4503
|
},
|
|
4384
4504
|
{
|
|
4385
4505
|
type: 'event',
|
|
@@ -4432,12 +4552,6 @@ export const padPolicyAbi = [
|
|
|
4432
4552
|
type: 'uint256',
|
|
4433
4553
|
indexed: false,
|
|
4434
4554
|
},
|
|
4435
|
-
{
|
|
4436
|
-
name: 'protocolShare',
|
|
4437
|
-
internalType: 'uint256',
|
|
4438
|
-
type: 'uint256',
|
|
4439
|
-
indexed: false,
|
|
4440
|
-
},
|
|
4441
4555
|
{
|
|
4442
4556
|
name: 'creatorShareMin',
|
|
4443
4557
|
internalType: 'uint256',
|
|
@@ -4469,12 +4583,6 @@ export const padPolicyAbi = [
|
|
|
4469
4583
|
type: 'uint256',
|
|
4470
4584
|
indexed: false,
|
|
4471
4585
|
},
|
|
4472
|
-
{
|
|
4473
|
-
name: 'protocolShare',
|
|
4474
|
-
internalType: 'uint256',
|
|
4475
|
-
type: 'uint256',
|
|
4476
|
-
indexed: false,
|
|
4477
|
-
},
|
|
4478
4586
|
],
|
|
4479
4587
|
name: 'SplitSet',
|
|
4480
4588
|
},
|
|
@@ -4499,21 +4607,11 @@ export const padPolicyAbi = [
|
|
|
4499
4607
|
},
|
|
4500
4608
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4501
4609
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4502
|
-
{
|
|
4503
|
-
type: 'error',
|
|
4504
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4505
|
-
name: 'CreatorNotListed',
|
|
4506
|
-
},
|
|
4507
4610
|
{
|
|
4508
4611
|
type: 'error',
|
|
4509
4612
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4510
4613
|
name: 'FeeNotListed',
|
|
4511
4614
|
},
|
|
4512
|
-
{
|
|
4513
|
-
type: 'error',
|
|
4514
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
4515
|
-
name: 'MintFeeNotListed',
|
|
4516
|
-
},
|
|
4517
4615
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4518
4616
|
{
|
|
4519
4617
|
type: 'error',
|
|
@@ -4525,6 +4623,7 @@ export const padPolicyAbi = [
|
|
|
4525
4623
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4526
4624
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4527
4625
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4626
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4528
4627
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4529
4628
|
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4530
4629
|
{
|
|
@@ -4535,6 +4634,7 @@ export const padPolicyAbi = [
|
|
|
4535
4634
|
],
|
|
4536
4635
|
name: 'PadExists',
|
|
4537
4636
|
},
|
|
4637
|
+
{ type: 'error', inputs: [], name: 'PadUncapped' },
|
|
4538
4638
|
{
|
|
4539
4639
|
type: 'error',
|
|
4540
4640
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
@@ -4552,7 +4652,7 @@ export const polPolicyAbi = [
|
|
|
4552
4652
|
type: 'constructor',
|
|
4553
4653
|
inputs: [
|
|
4554
4654
|
{
|
|
4555
|
-
name: '
|
|
4655
|
+
name: 'manager_',
|
|
4556
4656
|
internalType: 'contract FPoolManager',
|
|
4557
4657
|
type: 'address',
|
|
4558
4658
|
},
|
|
@@ -4573,25 +4673,18 @@ export const polPolicyAbi = [
|
|
|
4573
4673
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4574
4674
|
stateMutability: 'view',
|
|
4575
4675
|
},
|
|
4576
|
-
{
|
|
4577
|
-
type: 'function',
|
|
4578
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4579
|
-
name: 'creator',
|
|
4580
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4581
|
-
stateMutability: 'view',
|
|
4582
|
-
},
|
|
4583
4676
|
{
|
|
4584
4677
|
type: 'function',
|
|
4585
4678
|
inputs: [],
|
|
4586
|
-
name: '
|
|
4587
|
-
outputs: [{ name: '', internalType: '
|
|
4679
|
+
name: 'cManager',
|
|
4680
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4588
4681
|
stateMutability: 'view',
|
|
4589
4682
|
},
|
|
4590
4683
|
{
|
|
4591
4684
|
type: 'function',
|
|
4592
|
-
inputs: [{ name: '', internalType: '
|
|
4593
|
-
name: '
|
|
4594
|
-
outputs: [{ name: '', internalType: '
|
|
4685
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4686
|
+
name: 'creator',
|
|
4687
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4595
4688
|
stateMutability: 'view',
|
|
4596
4689
|
},
|
|
4597
4690
|
{
|
|
@@ -4608,10 +4701,20 @@ export const polPolicyAbi = [
|
|
|
4608
4701
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4609
4702
|
stateMutability: 'view',
|
|
4610
4703
|
},
|
|
4704
|
+
{
|
|
4705
|
+
type: 'function',
|
|
4706
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4707
|
+
name: 'incomeTax',
|
|
4708
|
+
outputs: [
|
|
4709
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4710
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4711
|
+
],
|
|
4712
|
+
stateMutability: 'view',
|
|
4713
|
+
},
|
|
4611
4714
|
{
|
|
4612
4715
|
type: 'function',
|
|
4613
4716
|
inputs: [],
|
|
4614
|
-
name: '
|
|
4717
|
+
name: 'incomeTaxRate',
|
|
4615
4718
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4616
4719
|
stateMutability: 'view',
|
|
4617
4720
|
},
|
|
@@ -4631,6 +4734,13 @@ export const polPolicyAbi = [
|
|
|
4631
4734
|
],
|
|
4632
4735
|
stateMutability: 'view',
|
|
4633
4736
|
},
|
|
4737
|
+
{
|
|
4738
|
+
type: 'function',
|
|
4739
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4740
|
+
name: 'managerOf',
|
|
4741
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4742
|
+
stateMutability: 'view',
|
|
4743
|
+
},
|
|
4634
4744
|
{
|
|
4635
4745
|
type: 'function',
|
|
4636
4746
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4669,24 +4779,10 @@ export const polPolicyAbi = [
|
|
|
4669
4779
|
{
|
|
4670
4780
|
type: 'function',
|
|
4671
4781
|
inputs: [],
|
|
4672
|
-
name: '
|
|
4782
|
+
name: 'minQuoteRatio',
|
|
4673
4783
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4674
4784
|
stateMutability: 'view',
|
|
4675
4785
|
},
|
|
4676
|
-
{
|
|
4677
|
-
type: 'function',
|
|
4678
|
-
inputs: [],
|
|
4679
|
-
name: 'mintFeeCurated',
|
|
4680
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4681
|
-
stateMutability: 'view',
|
|
4682
|
-
},
|
|
4683
|
-
{
|
|
4684
|
-
type: 'function',
|
|
4685
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4686
|
-
name: 'mintFeeListed',
|
|
4687
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4688
|
-
stateMutability: 'view',
|
|
4689
|
-
},
|
|
4690
4786
|
{
|
|
4691
4787
|
type: 'function',
|
|
4692
4788
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4694,6 +4790,31 @@ export const polPolicyAbi = [
|
|
|
4694
4790
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4695
4791
|
stateMutability: 'view',
|
|
4696
4792
|
},
|
|
4793
|
+
{
|
|
4794
|
+
type: 'function',
|
|
4795
|
+
inputs: [
|
|
4796
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4797
|
+
{
|
|
4798
|
+
name: '',
|
|
4799
|
+
internalType: 'struct CPoolKey',
|
|
4800
|
+
type: 'tuple',
|
|
4801
|
+
components: [
|
|
4802
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4803
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4804
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4805
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4806
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4807
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4808
|
+
],
|
|
4809
|
+
},
|
|
4810
|
+
],
|
|
4811
|
+
name: 'onCInitialize',
|
|
4812
|
+
outputs: [
|
|
4813
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4814
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4815
|
+
],
|
|
4816
|
+
stateMutability: 'pure',
|
|
4817
|
+
},
|
|
4697
4818
|
{
|
|
4698
4819
|
type: 'function',
|
|
4699
4820
|
inputs: [
|
|
@@ -4705,21 +4826,16 @@ export const polPolicyAbi = [
|
|
|
4705
4826
|
components: [
|
|
4706
4827
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4707
4828
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4708
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4709
4829
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4710
4830
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4711
4831
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4712
4832
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4713
|
-
{ name: '
|
|
4833
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4714
4834
|
],
|
|
4715
4835
|
},
|
|
4716
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4717
4836
|
],
|
|
4718
4837
|
name: 'onInitialize',
|
|
4719
|
-
outputs: [
|
|
4720
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4721
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4722
|
-
],
|
|
4838
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4723
4839
|
stateMutability: 'nonpayable',
|
|
4724
4840
|
},
|
|
4725
4841
|
{
|
|
@@ -4768,7 +4884,7 @@ export const polPolicyAbi = [
|
|
|
4768
4884
|
components: [
|
|
4769
4885
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4770
4886
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4771
|
-
{ name: '
|
|
4887
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4772
4888
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4773
4889
|
],
|
|
4774
4890
|
},
|
|
@@ -4808,18 +4924,8 @@ export const polPolicyAbi = [
|
|
|
4808
4924
|
},
|
|
4809
4925
|
{
|
|
4810
4926
|
type: 'function',
|
|
4811
|
-
inputs: [{ name: '
|
|
4812
|
-
name: '
|
|
4813
|
-
outputs: [],
|
|
4814
|
-
stateMutability: 'nonpayable',
|
|
4815
|
-
},
|
|
4816
|
-
{
|
|
4817
|
-
type: 'function',
|
|
4818
|
-
inputs: [
|
|
4819
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4820
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4821
|
-
],
|
|
4822
|
-
name: 'setCreatorListed',
|
|
4927
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4928
|
+
name: 'setCManager',
|
|
4823
4929
|
outputs: [],
|
|
4824
4930
|
stateMutability: 'nonpayable',
|
|
4825
4931
|
},
|
|
@@ -4842,18 +4948,15 @@ export const polPolicyAbi = [
|
|
|
4842
4948
|
},
|
|
4843
4949
|
{
|
|
4844
4950
|
type: 'function',
|
|
4845
|
-
inputs: [{ name: '
|
|
4846
|
-
name: '
|
|
4951
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4952
|
+
name: 'setIncomeTaxRate',
|
|
4847
4953
|
outputs: [],
|
|
4848
4954
|
stateMutability: 'nonpayable',
|
|
4849
4955
|
},
|
|
4850
4956
|
{
|
|
4851
4957
|
type: 'function',
|
|
4852
|
-
inputs: [
|
|
4853
|
-
|
|
4854
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4855
|
-
],
|
|
4856
|
-
name: 'setMintFeeListed',
|
|
4958
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
4959
|
+
name: 'setMinQuoteRatio',
|
|
4857
4960
|
outputs: [],
|
|
4858
4961
|
stateMutability: 'nonpayable',
|
|
4859
4962
|
},
|
|
@@ -4886,13 +4989,10 @@ export const polPolicyAbi = [
|
|
|
4886
4989
|
},
|
|
4887
4990
|
{
|
|
4888
4991
|
type: 'function',
|
|
4889
|
-
inputs: [
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
name: 'setRules',
|
|
4894
|
-
outputs: [],
|
|
4895
|
-
stateMutability: 'nonpayable',
|
|
4992
|
+
inputs: [],
|
|
4993
|
+
name: 'sponsor',
|
|
4994
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4995
|
+
stateMutability: 'view',
|
|
4896
4996
|
},
|
|
4897
4997
|
{
|
|
4898
4998
|
type: 'event',
|
|
@@ -4934,27 +5034,18 @@ export const polPolicyAbi = [
|
|
|
4934
5034
|
],
|
|
4935
5035
|
name: 'AuthoritySet',
|
|
4936
5036
|
},
|
|
4937
|
-
{
|
|
4938
|
-
type: 'event',
|
|
4939
|
-
anonymous: false,
|
|
4940
|
-
inputs: [
|
|
4941
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4942
|
-
],
|
|
4943
|
-
name: 'CreatorCuratedSet',
|
|
4944
|
-
},
|
|
4945
5037
|
{
|
|
4946
5038
|
type: 'event',
|
|
4947
5039
|
anonymous: false,
|
|
4948
5040
|
inputs: [
|
|
4949
5041
|
{
|
|
4950
|
-
name: '
|
|
5042
|
+
name: 'manager',
|
|
4951
5043
|
internalType: 'address',
|
|
4952
5044
|
type: 'address',
|
|
4953
5045
|
indexed: true,
|
|
4954
5046
|
},
|
|
4955
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4956
5047
|
],
|
|
4957
|
-
name: '
|
|
5048
|
+
name: 'CManagerSet',
|
|
4958
5049
|
},
|
|
4959
5050
|
{
|
|
4960
5051
|
type: 'event',
|
|
@@ -4977,23 +5068,27 @@ export const polPolicyAbi = [
|
|
|
4977
5068
|
type: 'event',
|
|
4978
5069
|
anonymous: false,
|
|
4979
5070
|
inputs: [
|
|
4980
|
-
{
|
|
5071
|
+
{
|
|
5072
|
+
name: 'rate',
|
|
5073
|
+
internalType: 'uint256',
|
|
5074
|
+
type: 'uint256',
|
|
5075
|
+
indexed: false,
|
|
5076
|
+
},
|
|
4981
5077
|
],
|
|
4982
|
-
name: '
|
|
5078
|
+
name: 'IncomeTaxRateSet',
|
|
4983
5079
|
},
|
|
4984
5080
|
{
|
|
4985
5081
|
type: 'event',
|
|
4986
5082
|
anonymous: false,
|
|
4987
5083
|
inputs: [
|
|
4988
5084
|
{
|
|
4989
|
-
name: '
|
|
5085
|
+
name: 'ratio',
|
|
4990
5086
|
internalType: 'uint256',
|
|
4991
5087
|
type: 'uint256',
|
|
4992
|
-
indexed:
|
|
5088
|
+
indexed: false,
|
|
4993
5089
|
},
|
|
4994
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4995
5090
|
],
|
|
4996
|
-
name: '
|
|
5091
|
+
name: 'MinQuoteRatioSet',
|
|
4997
5092
|
},
|
|
4998
5093
|
{
|
|
4999
5094
|
type: 'event',
|
|
@@ -5036,47 +5131,19 @@ export const polPolicyAbi = [
|
|
|
5036
5131
|
],
|
|
5037
5132
|
name: 'QuoteListed',
|
|
5038
5133
|
},
|
|
5039
|
-
{
|
|
5040
|
-
type: 'event',
|
|
5041
|
-
anonymous: false,
|
|
5042
|
-
inputs: [
|
|
5043
|
-
{
|
|
5044
|
-
name: 'keepQuote',
|
|
5045
|
-
internalType: 'uint256',
|
|
5046
|
-
type: 'uint256',
|
|
5047
|
-
indexed: false,
|
|
5048
|
-
},
|
|
5049
|
-
{
|
|
5050
|
-
name: 'minQuoteAtSeed',
|
|
5051
|
-
internalType: 'uint256',
|
|
5052
|
-
type: 'uint256',
|
|
5053
|
-
indexed: false,
|
|
5054
|
-
},
|
|
5055
|
-
],
|
|
5056
|
-
name: 'RulesSet',
|
|
5057
|
-
},
|
|
5058
5134
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5059
5135
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5060
|
-
{
|
|
5061
|
-
type: 'error',
|
|
5062
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
5063
|
-
name: 'CreatorNotListed',
|
|
5064
|
-
},
|
|
5065
5136
|
{
|
|
5066
5137
|
type: 'error',
|
|
5067
5138
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5068
5139
|
name: 'FeeNotListed',
|
|
5069
5140
|
},
|
|
5070
|
-
{
|
|
5071
|
-
type: 'error',
|
|
5072
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
5073
|
-
name: 'MintFeeNotListed',
|
|
5074
|
-
},
|
|
5075
5141
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5076
5142
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5077
5143
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5078
5144
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5079
5145
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5146
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5080
5147
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5081
5148
|
{
|
|
5082
5149
|
type: 'error',
|
|
@@ -5106,6 +5173,17 @@ export const policyRegistryAbi = [
|
|
|
5106
5173
|
outputs: [],
|
|
5107
5174
|
stateMutability: 'nonpayable',
|
|
5108
5175
|
},
|
|
5176
|
+
{
|
|
5177
|
+
type: 'function',
|
|
5178
|
+
inputs: [
|
|
5179
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5180
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
5181
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5182
|
+
],
|
|
5183
|
+
name: 'admit',
|
|
5184
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
5185
|
+
stateMutability: 'view',
|
|
5186
|
+
},
|
|
5109
5187
|
{
|
|
5110
5188
|
type: 'function',
|
|
5111
5189
|
inputs: [
|
|
@@ -5116,6 +5194,29 @@ export const policyRegistryAbi = [
|
|
|
5116
5194
|
outputs: [],
|
|
5117
5195
|
stateMutability: 'nonpayable',
|
|
5118
5196
|
},
|
|
5197
|
+
{
|
|
5198
|
+
type: 'function',
|
|
5199
|
+
inputs: [
|
|
5200
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5201
|
+
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
5202
|
+
],
|
|
5203
|
+
name: 'bindSponsor',
|
|
5204
|
+
outputs: [],
|
|
5205
|
+
stateMutability: 'nonpayable',
|
|
5206
|
+
},
|
|
5207
|
+
{
|
|
5208
|
+
type: 'function',
|
|
5209
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5210
|
+
name: 'creationMode',
|
|
5211
|
+
outputs: [
|
|
5212
|
+
{
|
|
5213
|
+
name: '',
|
|
5214
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5215
|
+
type: 'uint8',
|
|
5216
|
+
},
|
|
5217
|
+
],
|
|
5218
|
+
stateMutability: 'view',
|
|
5219
|
+
},
|
|
5119
5220
|
{
|
|
5120
5221
|
type: 'function',
|
|
5121
5222
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5128,6 +5229,23 @@ export const policyRegistryAbi = [
|
|
|
5128
5229
|
],
|
|
5129
5230
|
stateMutability: 'view',
|
|
5130
5231
|
},
|
|
5232
|
+
{
|
|
5233
|
+
type: 'function',
|
|
5234
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5235
|
+
name: 'forwarderTrusted',
|
|
5236
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5237
|
+
stateMutability: 'view',
|
|
5238
|
+
},
|
|
5239
|
+
{
|
|
5240
|
+
type: 'function',
|
|
5241
|
+
inputs: [
|
|
5242
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5243
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5244
|
+
],
|
|
5245
|
+
name: 'initializerListed',
|
|
5246
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5247
|
+
stateMutability: 'view',
|
|
5248
|
+
},
|
|
5131
5249
|
{
|
|
5132
5250
|
type: 'function',
|
|
5133
5251
|
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
@@ -5160,12 +5278,11 @@ export const policyRegistryAbi = [
|
|
|
5160
5278
|
components: [
|
|
5161
5279
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5162
5280
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5163
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5164
5281
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5165
5282
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5166
5283
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5167
5284
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5168
|
-
{ name: '
|
|
5285
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5169
5286
|
],
|
|
5170
5287
|
},
|
|
5171
5288
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -5174,6 +5291,42 @@ export const policyRegistryAbi = [
|
|
|
5174
5291
|
outputs: [],
|
|
5175
5292
|
stateMutability: 'nonpayable',
|
|
5176
5293
|
},
|
|
5294
|
+
{
|
|
5295
|
+
type: 'function',
|
|
5296
|
+
inputs: [
|
|
5297
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
5298
|
+
{
|
|
5299
|
+
name: 'key',
|
|
5300
|
+
internalType: 'struct FPoolKey',
|
|
5301
|
+
type: 'tuple',
|
|
5302
|
+
components: [
|
|
5303
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5304
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5305
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5306
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5307
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5308
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5309
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5310
|
+
],
|
|
5311
|
+
},
|
|
5312
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
5313
|
+
{
|
|
5314
|
+
name: 'permissions',
|
|
5315
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5316
|
+
type: 'tuple',
|
|
5317
|
+
components: [
|
|
5318
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5319
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5320
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5321
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5322
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5323
|
+
],
|
|
5324
|
+
},
|
|
5325
|
+
],
|
|
5326
|
+
name: 'migratePrivate',
|
|
5327
|
+
outputs: [],
|
|
5328
|
+
stateMutability: 'nonpayable',
|
|
5329
|
+
},
|
|
5177
5330
|
{
|
|
5178
5331
|
type: 'function',
|
|
5179
5332
|
inputs: [],
|
|
@@ -5205,20 +5358,62 @@ export const policyRegistryAbi = [
|
|
|
5205
5358
|
{
|
|
5206
5359
|
type: 'function',
|
|
5207
5360
|
inputs: [
|
|
5208
|
-
{ name: '
|
|
5209
|
-
{
|
|
5361
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5362
|
+
{
|
|
5363
|
+
name: 'mode',
|
|
5364
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5365
|
+
type: 'uint8',
|
|
5366
|
+
},
|
|
5210
5367
|
],
|
|
5211
|
-
name: '
|
|
5368
|
+
name: 'setCreationMode',
|
|
5212
5369
|
outputs: [],
|
|
5213
5370
|
stateMutability: 'nonpayable',
|
|
5214
5371
|
},
|
|
5215
5372
|
{
|
|
5216
5373
|
type: 'function',
|
|
5217
|
-
inputs: [
|
|
5218
|
-
|
|
5374
|
+
inputs: [
|
|
5375
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
5376
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
5377
|
+
],
|
|
5378
|
+
name: 'setForwarderTrusted',
|
|
5379
|
+
outputs: [],
|
|
5380
|
+
stateMutability: 'nonpayable',
|
|
5381
|
+
},
|
|
5382
|
+
{
|
|
5383
|
+
type: 'function',
|
|
5384
|
+
inputs: [
|
|
5385
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5386
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5387
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool' },
|
|
5388
|
+
],
|
|
5389
|
+
name: 'setInitializerListed',
|
|
5390
|
+
outputs: [],
|
|
5391
|
+
stateMutability: 'nonpayable',
|
|
5392
|
+
},
|
|
5393
|
+
{
|
|
5394
|
+
type: 'function',
|
|
5395
|
+
inputs: [
|
|
5396
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5397
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
5398
|
+
],
|
|
5399
|
+
name: 'setSponsorName',
|
|
5400
|
+
outputs: [],
|
|
5401
|
+
stateMutability: 'nonpayable',
|
|
5402
|
+
},
|
|
5403
|
+
{
|
|
5404
|
+
type: 'function',
|
|
5405
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5406
|
+
name: 'sponsorName',
|
|
5219
5407
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5220
5408
|
stateMutability: 'view',
|
|
5221
5409
|
},
|
|
5410
|
+
{
|
|
5411
|
+
type: 'function',
|
|
5412
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5413
|
+
name: 'sponsorOf',
|
|
5414
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5415
|
+
stateMutability: 'view',
|
|
5416
|
+
},
|
|
5222
5417
|
{
|
|
5223
5418
|
type: 'function',
|
|
5224
5419
|
inputs: [
|
|
@@ -5248,6 +5443,54 @@ export const policyRegistryAbi = [
|
|
|
5248
5443
|
],
|
|
5249
5444
|
name: 'Approved',
|
|
5250
5445
|
},
|
|
5446
|
+
{
|
|
5447
|
+
type: 'event',
|
|
5448
|
+
anonymous: false,
|
|
5449
|
+
inputs: [
|
|
5450
|
+
{
|
|
5451
|
+
name: 'policy',
|
|
5452
|
+
internalType: 'address',
|
|
5453
|
+
type: 'address',
|
|
5454
|
+
indexed: true,
|
|
5455
|
+
},
|
|
5456
|
+
{
|
|
5457
|
+
name: 'mode',
|
|
5458
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5459
|
+
type: 'uint8',
|
|
5460
|
+
indexed: false,
|
|
5461
|
+
},
|
|
5462
|
+
],
|
|
5463
|
+
name: 'CreationModeSet',
|
|
5464
|
+
},
|
|
5465
|
+
{
|
|
5466
|
+
type: 'event',
|
|
5467
|
+
anonymous: false,
|
|
5468
|
+
inputs: [
|
|
5469
|
+
{
|
|
5470
|
+
name: 'forwarder',
|
|
5471
|
+
internalType: 'address',
|
|
5472
|
+
type: 'address',
|
|
5473
|
+
indexed: true,
|
|
5474
|
+
},
|
|
5475
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
5476
|
+
],
|
|
5477
|
+
name: 'ForwarderTrusted',
|
|
5478
|
+
},
|
|
5479
|
+
{
|
|
5480
|
+
type: 'event',
|
|
5481
|
+
anonymous: false,
|
|
5482
|
+
inputs: [
|
|
5483
|
+
{
|
|
5484
|
+
name: 'policy',
|
|
5485
|
+
internalType: 'address',
|
|
5486
|
+
type: 'address',
|
|
5487
|
+
indexed: true,
|
|
5488
|
+
},
|
|
5489
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5490
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5491
|
+
],
|
|
5492
|
+
name: 'InitializerListed',
|
|
5493
|
+
},
|
|
5251
5494
|
{
|
|
5252
5495
|
type: 'event',
|
|
5253
5496
|
anonymous: false,
|
|
@@ -5321,6 +5564,25 @@ export const policyRegistryAbi = [
|
|
|
5321
5564
|
],
|
|
5322
5565
|
name: 'Revoked',
|
|
5323
5566
|
},
|
|
5567
|
+
{
|
|
5568
|
+
type: 'event',
|
|
5569
|
+
anonymous: false,
|
|
5570
|
+
inputs: [
|
|
5571
|
+
{
|
|
5572
|
+
name: 'policy',
|
|
5573
|
+
internalType: 'address',
|
|
5574
|
+
type: 'address',
|
|
5575
|
+
indexed: true,
|
|
5576
|
+
},
|
|
5577
|
+
{
|
|
5578
|
+
name: 'sponsor',
|
|
5579
|
+
internalType: 'address',
|
|
5580
|
+
type: 'address',
|
|
5581
|
+
indexed: true,
|
|
5582
|
+
},
|
|
5583
|
+
],
|
|
5584
|
+
name: 'SponsorBound',
|
|
5585
|
+
},
|
|
5324
5586
|
{
|
|
5325
5587
|
type: 'event',
|
|
5326
5588
|
anonymous: false,
|
|
@@ -5355,12 +5617,16 @@ export const policyRegistryAbi = [
|
|
|
5355
5617
|
name: 'SunsetSet',
|
|
5356
5618
|
},
|
|
5357
5619
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
5620
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
5621
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
5358
5622
|
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
5359
5623
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5360
5624
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5361
5625
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5362
5626
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5627
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
5363
5628
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5629
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
5364
5630
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5365
5631
|
] as const
|
|
5366
5632
|
|
|
@@ -5401,23 +5667,6 @@ export const privatePolicyAbi = [
|
|
|
5401
5667
|
outputs: [],
|
|
5402
5668
|
stateMutability: 'nonpayable',
|
|
5403
5669
|
},
|
|
5404
|
-
{
|
|
5405
|
-
type: 'function',
|
|
5406
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5407
|
-
name: 'acceptOperator',
|
|
5408
|
-
outputs: [],
|
|
5409
|
-
stateMutability: 'nonpayable',
|
|
5410
|
-
},
|
|
5411
|
-
{
|
|
5412
|
-
type: 'function',
|
|
5413
|
-
inputs: [
|
|
5414
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5415
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5416
|
-
],
|
|
5417
|
-
name: 'appointOperator',
|
|
5418
|
-
outputs: [],
|
|
5419
|
-
stateMutability: 'nonpayable',
|
|
5420
|
-
},
|
|
5421
5670
|
{
|
|
5422
5671
|
type: 'function',
|
|
5423
5672
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5427,23 +5676,37 @@ export const privatePolicyAbi = [
|
|
|
5427
5676
|
},
|
|
5428
5677
|
{
|
|
5429
5678
|
type: 'function',
|
|
5430
|
-
inputs: [
|
|
5431
|
-
name: '
|
|
5679
|
+
inputs: [],
|
|
5680
|
+
name: 'cManager',
|
|
5432
5681
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5433
5682
|
stateMutability: 'view',
|
|
5434
5683
|
},
|
|
5435
5684
|
{
|
|
5436
5685
|
type: 'function',
|
|
5437
|
-
inputs: [
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5686
|
+
inputs: [
|
|
5687
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5688
|
+
{
|
|
5689
|
+
name: 'permissions',
|
|
5690
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5691
|
+
type: 'tuple',
|
|
5692
|
+
components: [
|
|
5693
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5694
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5695
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5696
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5697
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5698
|
+
],
|
|
5699
|
+
},
|
|
5700
|
+
],
|
|
5701
|
+
name: 'configureMigration',
|
|
5702
|
+
outputs: [],
|
|
5703
|
+
stateMutability: 'nonpayable',
|
|
5441
5704
|
},
|
|
5442
5705
|
{
|
|
5443
5706
|
type: 'function',
|
|
5444
|
-
inputs: [{ name: '', internalType: '
|
|
5445
|
-
name: '
|
|
5446
|
-
outputs: [{ name: '', internalType: '
|
|
5707
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5708
|
+
name: 'creator',
|
|
5709
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5447
5710
|
stateMutability: 'view',
|
|
5448
5711
|
},
|
|
5449
5712
|
{
|
|
@@ -5470,8 +5733,11 @@ export const privatePolicyAbi = [
|
|
|
5470
5733
|
{
|
|
5471
5734
|
type: 'function',
|
|
5472
5735
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5473
|
-
name: '
|
|
5474
|
-
outputs: [
|
|
5736
|
+
name: 'incomeTax',
|
|
5737
|
+
outputs: [
|
|
5738
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5739
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5740
|
+
],
|
|
5475
5741
|
stateMutability: 'view',
|
|
5476
5742
|
},
|
|
5477
5743
|
{
|
|
@@ -5527,6 +5793,13 @@ export const privatePolicyAbi = [
|
|
|
5527
5793
|
],
|
|
5528
5794
|
stateMutability: 'view',
|
|
5529
5795
|
},
|
|
5796
|
+
{
|
|
5797
|
+
type: 'function',
|
|
5798
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5799
|
+
name: 'managerOf',
|
|
5800
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5801
|
+
stateMutability: 'view',
|
|
5802
|
+
},
|
|
5530
5803
|
{
|
|
5531
5804
|
type: 'function',
|
|
5532
5805
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5562,20 +5835,6 @@ export const privatePolicyAbi = [
|
|
|
5562
5835
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
5563
5836
|
stateMutability: 'view',
|
|
5564
5837
|
},
|
|
5565
|
-
{
|
|
5566
|
-
type: 'function',
|
|
5567
|
-
inputs: [],
|
|
5568
|
-
name: 'mintFeeCurated',
|
|
5569
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5570
|
-
stateMutability: 'view',
|
|
5571
|
-
},
|
|
5572
|
-
{
|
|
5573
|
-
type: 'function',
|
|
5574
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5575
|
-
name: 'mintFeeListed',
|
|
5576
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5577
|
-
stateMutability: 'view',
|
|
5578
|
-
},
|
|
5579
5838
|
{
|
|
5580
5839
|
type: 'function',
|
|
5581
5840
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5583,6 +5842,31 @@ export const privatePolicyAbi = [
|
|
|
5583
5842
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5584
5843
|
stateMutability: 'view',
|
|
5585
5844
|
},
|
|
5845
|
+
{
|
|
5846
|
+
type: 'function',
|
|
5847
|
+
inputs: [
|
|
5848
|
+
{ name: 'initializer', internalType: 'address', type: 'address' },
|
|
5849
|
+
{
|
|
5850
|
+
name: 'key',
|
|
5851
|
+
internalType: 'struct CPoolKey',
|
|
5852
|
+
type: 'tuple',
|
|
5853
|
+
components: [
|
|
5854
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5855
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5856
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
5857
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5858
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5859
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5860
|
+
],
|
|
5861
|
+
},
|
|
5862
|
+
],
|
|
5863
|
+
name: 'onCInitialize',
|
|
5864
|
+
outputs: [
|
|
5865
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5866
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5867
|
+
],
|
|
5868
|
+
stateMutability: 'nonpayable',
|
|
5869
|
+
},
|
|
5586
5870
|
{
|
|
5587
5871
|
type: 'function',
|
|
5588
5872
|
inputs: [
|
|
@@ -5594,21 +5878,16 @@ export const privatePolicyAbi = [
|
|
|
5594
5878
|
components: [
|
|
5595
5879
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5596
5880
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5597
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5598
5881
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5599
5882
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5600
5883
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5601
5884
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5602
|
-
{ name: '
|
|
5885
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5603
5886
|
],
|
|
5604
5887
|
},
|
|
5605
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5606
5888
|
],
|
|
5607
5889
|
name: 'onInitialize',
|
|
5608
|
-
outputs: [
|
|
5609
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5610
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5611
|
-
],
|
|
5890
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
5612
5891
|
stateMutability: 'nonpayable',
|
|
5613
5892
|
},
|
|
5614
5893
|
{
|
|
@@ -5657,7 +5936,7 @@ export const privatePolicyAbi = [
|
|
|
5657
5936
|
components: [
|
|
5658
5937
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5659
5938
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5660
|
-
{ name: '
|
|
5939
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5661
5940
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5662
5941
|
],
|
|
5663
5942
|
},
|
|
@@ -5667,28 +5946,31 @@ export const privatePolicyAbi = [
|
|
|
5667
5946
|
{
|
|
5668
5947
|
type: 'function',
|
|
5669
5948
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5670
|
-
name: '
|
|
5949
|
+
name: 'pendingAuthority',
|
|
5671
5950
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5672
5951
|
stateMutability: 'view',
|
|
5673
5952
|
},
|
|
5674
5953
|
{
|
|
5675
5954
|
type: 'function',
|
|
5676
5955
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5677
|
-
name: '
|
|
5678
|
-
outputs: [
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5956
|
+
name: 'permissionsOf',
|
|
5957
|
+
outputs: [
|
|
5958
|
+
{
|
|
5959
|
+
name: 'mode',
|
|
5960
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5961
|
+
type: 'uint8',
|
|
5962
|
+
},
|
|
5963
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5964
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5965
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
5966
|
+
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
5967
|
+
],
|
|
5686
5968
|
stateMutability: 'view',
|
|
5687
5969
|
},
|
|
5688
5970
|
{
|
|
5689
5971
|
type: 'function',
|
|
5690
5972
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5691
|
-
name: '
|
|
5973
|
+
name: 'poolOperator',
|
|
5692
5974
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5693
5975
|
stateMutability: 'view',
|
|
5694
5976
|
},
|
|
@@ -5718,18 +6000,8 @@ export const privatePolicyAbi = [
|
|
|
5718
6000
|
},
|
|
5719
6001
|
{
|
|
5720
6002
|
type: 'function',
|
|
5721
|
-
inputs: [{ name: '
|
|
5722
|
-
name: '
|
|
5723
|
-
outputs: [],
|
|
5724
|
-
stateMutability: 'nonpayable',
|
|
5725
|
-
},
|
|
5726
|
-
{
|
|
5727
|
-
type: 'function',
|
|
5728
|
-
inputs: [
|
|
5729
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5730
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5731
|
-
],
|
|
5732
|
-
name: 'setCreatorListed',
|
|
6003
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6004
|
+
name: 'setCManager',
|
|
5733
6005
|
outputs: [],
|
|
5734
6006
|
stateMutability: 'nonpayable',
|
|
5735
6007
|
},
|
|
@@ -5754,27 +6026,20 @@ export const privatePolicyAbi = [
|
|
|
5754
6026
|
type: 'function',
|
|
5755
6027
|
inputs: [
|
|
5756
6028
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5757
|
-
{ name: '
|
|
5758
|
-
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
6029
|
+
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
5759
6030
|
],
|
|
5760
|
-
name: '
|
|
5761
|
-
outputs: [],
|
|
5762
|
-
stateMutability: 'nonpayable',
|
|
5763
|
-
},
|
|
5764
|
-
{
|
|
5765
|
-
type: 'function',
|
|
5766
|
-
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5767
|
-
name: 'setMintFeeCurated',
|
|
6031
|
+
name: 'setMintGate',
|
|
5768
6032
|
outputs: [],
|
|
5769
6033
|
stateMutability: 'nonpayable',
|
|
5770
6034
|
},
|
|
5771
6035
|
{
|
|
5772
6036
|
type: 'function',
|
|
5773
6037
|
inputs: [
|
|
5774
|
-
{ name: '
|
|
5775
|
-
{ name: '
|
|
6038
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6039
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
6040
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
5776
6041
|
],
|
|
5777
|
-
name: '
|
|
6042
|
+
name: 'setMinters',
|
|
5778
6043
|
outputs: [],
|
|
5779
6044
|
stateMutability: 'nonpayable',
|
|
5780
6045
|
},
|
|
@@ -5782,10 +6047,9 @@ export const privatePolicyAbi = [
|
|
|
5782
6047
|
type: 'function',
|
|
5783
6048
|
inputs: [
|
|
5784
6049
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5785
|
-
{ name: '
|
|
5786
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
6050
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5787
6051
|
],
|
|
5788
|
-
name: '
|
|
6052
|
+
name: 'setName',
|
|
5789
6053
|
outputs: [],
|
|
5790
6054
|
stateMutability: 'nonpayable',
|
|
5791
6055
|
},
|
|
@@ -5793,9 +6057,9 @@ export const privatePolicyAbi = [
|
|
|
5793
6057
|
type: 'function',
|
|
5794
6058
|
inputs: [
|
|
5795
6059
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5796
|
-
{ name: '
|
|
6060
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5797
6061
|
],
|
|
5798
|
-
name: '
|
|
6062
|
+
name: 'setPoolOperator',
|
|
5799
6063
|
outputs: [],
|
|
5800
6064
|
stateMutability: 'nonpayable',
|
|
5801
6065
|
},
|
|
@@ -5816,6 +6080,21 @@ export const privatePolicyAbi = [
|
|
|
5816
6080
|
outputs: [],
|
|
5817
6081
|
stateMutability: 'nonpayable',
|
|
5818
6082
|
},
|
|
6083
|
+
{
|
|
6084
|
+
type: 'function',
|
|
6085
|
+
inputs: [
|
|
6086
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6087
|
+
{
|
|
6088
|
+
name: 'mode',
|
|
6089
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6090
|
+
type: 'uint8',
|
|
6091
|
+
},
|
|
6092
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6093
|
+
],
|
|
6094
|
+
name: 'setSwapMode',
|
|
6095
|
+
outputs: [],
|
|
6096
|
+
stateMutability: 'nonpayable',
|
|
6097
|
+
},
|
|
5819
6098
|
{
|
|
5820
6099
|
type: 'function',
|
|
5821
6100
|
inputs: [
|
|
@@ -5827,6 +6106,27 @@ export const privatePolicyAbi = [
|
|
|
5827
6106
|
outputs: [],
|
|
5828
6107
|
stateMutability: 'nonpayable',
|
|
5829
6108
|
},
|
|
6109
|
+
{
|
|
6110
|
+
type: 'function',
|
|
6111
|
+
inputs: [],
|
|
6112
|
+
name: 'sponsor',
|
|
6113
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6114
|
+
stateMutability: 'view',
|
|
6115
|
+
},
|
|
6116
|
+
{
|
|
6117
|
+
type: 'function',
|
|
6118
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6119
|
+
name: 'swapPermission',
|
|
6120
|
+
outputs: [
|
|
6121
|
+
{
|
|
6122
|
+
name: 'mode',
|
|
6123
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6124
|
+
type: 'uint8',
|
|
6125
|
+
},
|
|
6126
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6127
|
+
],
|
|
6128
|
+
stateMutability: 'view',
|
|
6129
|
+
},
|
|
5830
6130
|
{
|
|
5831
6131
|
type: 'event',
|
|
5832
6132
|
anonymous: false,
|
|
@@ -5867,27 +6167,18 @@ export const privatePolicyAbi = [
|
|
|
5867
6167
|
],
|
|
5868
6168
|
name: 'AuthoritySet',
|
|
5869
6169
|
},
|
|
5870
|
-
{
|
|
5871
|
-
type: 'event',
|
|
5872
|
-
anonymous: false,
|
|
5873
|
-
inputs: [
|
|
5874
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5875
|
-
],
|
|
5876
|
-
name: 'CreatorCuratedSet',
|
|
5877
|
-
},
|
|
5878
6170
|
{
|
|
5879
6171
|
type: 'event',
|
|
5880
6172
|
anonymous: false,
|
|
5881
6173
|
inputs: [
|
|
5882
6174
|
{
|
|
5883
|
-
name: '
|
|
6175
|
+
name: 'manager',
|
|
5884
6176
|
internalType: 'address',
|
|
5885
6177
|
type: 'address',
|
|
5886
6178
|
indexed: true,
|
|
5887
6179
|
},
|
|
5888
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5889
6180
|
],
|
|
5890
|
-
name: '
|
|
6181
|
+
name: 'CManagerSet',
|
|
5891
6182
|
},
|
|
5892
6183
|
{
|
|
5893
6184
|
type: 'event',
|
|
@@ -5911,59 +6202,22 @@ export const privatePolicyAbi = [
|
|
|
5911
6202
|
anonymous: false,
|
|
5912
6203
|
inputs: [
|
|
5913
6204
|
{
|
|
5914
|
-
name: 'poolId',
|
|
5915
|
-
internalType: 'bytes32',
|
|
5916
|
-
type: 'bytes32',
|
|
5917
|
-
indexed: true,
|
|
5918
|
-
},
|
|
5919
|
-
{
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
},
|
|
5924
|
-
{
|
|
5925
|
-
type: 'event',
|
|
5926
|
-
anonymous: false,
|
|
5927
|
-
inputs: [
|
|
5928
|
-
{
|
|
5929
|
-
name: 'poolId',
|
|
5930
|
-
internalType: 'bytes32',
|
|
5931
|
-
type: 'bytes32',
|
|
5932
|
-
indexed: true,
|
|
5933
|
-
},
|
|
5934
|
-
{
|
|
5935
|
-
name: 'authority',
|
|
5936
|
-
internalType: 'address',
|
|
5937
|
-
type: 'address',
|
|
5938
|
-
indexed: true,
|
|
5939
|
-
},
|
|
5940
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5941
|
-
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5942
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5943
|
-
],
|
|
5944
|
-
name: 'Listed',
|
|
5945
|
-
},
|
|
5946
|
-
{
|
|
5947
|
-
type: 'event',
|
|
5948
|
-
anonymous: false,
|
|
5949
|
-
inputs: [
|
|
5950
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5951
|
-
],
|
|
5952
|
-
name: 'MintFeeCuratedSet',
|
|
5953
|
-
},
|
|
5954
|
-
{
|
|
5955
|
-
type: 'event',
|
|
5956
|
-
anonymous: false,
|
|
5957
|
-
inputs: [
|
|
5958
|
-
{
|
|
5959
|
-
name: 'mintFee',
|
|
5960
|
-
internalType: 'uint256',
|
|
5961
|
-
type: 'uint256',
|
|
6205
|
+
name: 'poolId',
|
|
6206
|
+
internalType: 'bytes32',
|
|
6207
|
+
type: 'bytes32',
|
|
6208
|
+
indexed: true,
|
|
6209
|
+
},
|
|
6210
|
+
{
|
|
6211
|
+
name: 'authority',
|
|
6212
|
+
internalType: 'address',
|
|
6213
|
+
type: 'address',
|
|
5962
6214
|
indexed: true,
|
|
5963
6215
|
},
|
|
6216
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
6217
|
+
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5964
6218
|
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5965
6219
|
],
|
|
5966
|
-
name: '
|
|
6220
|
+
name: 'Listed',
|
|
5967
6221
|
},
|
|
5968
6222
|
{
|
|
5969
6223
|
type: 'event',
|
|
@@ -5975,14 +6229,9 @@ export const privatePolicyAbi = [
|
|
|
5975
6229
|
type: 'bytes32',
|
|
5976
6230
|
indexed: true,
|
|
5977
6231
|
},
|
|
5978
|
-
{
|
|
5979
|
-
name: 'name',
|
|
5980
|
-
internalType: 'bytes32',
|
|
5981
|
-
type: 'bytes32',
|
|
5982
|
-
indexed: false,
|
|
5983
|
-
},
|
|
6232
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5984
6233
|
],
|
|
5985
|
-
name: '
|
|
6234
|
+
name: 'MintGateSet',
|
|
5986
6235
|
},
|
|
5987
6236
|
{
|
|
5988
6237
|
type: 'event',
|
|
@@ -5995,19 +6244,13 @@ export const privatePolicyAbi = [
|
|
|
5995
6244
|
indexed: true,
|
|
5996
6245
|
},
|
|
5997
6246
|
{
|
|
5998
|
-
name: '
|
|
5999
|
-
internalType: '
|
|
6000
|
-
type: '
|
|
6001
|
-
indexed:
|
|
6002
|
-
},
|
|
6003
|
-
{
|
|
6004
|
-
name: 'proposed',
|
|
6005
|
-
internalType: 'address',
|
|
6006
|
-
type: 'address',
|
|
6007
|
-
indexed: true,
|
|
6247
|
+
name: 'name',
|
|
6248
|
+
internalType: 'bytes32',
|
|
6249
|
+
type: 'bytes32',
|
|
6250
|
+
indexed: false,
|
|
6008
6251
|
},
|
|
6009
6252
|
],
|
|
6010
|
-
name: '
|
|
6253
|
+
name: 'NameSet',
|
|
6011
6254
|
},
|
|
6012
6255
|
{
|
|
6013
6256
|
type: 'event',
|
|
@@ -6022,7 +6265,7 @@ export const privatePolicyAbi = [
|
|
|
6022
6265
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
6023
6266
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
6024
6267
|
],
|
|
6025
|
-
name: '
|
|
6268
|
+
name: 'PoolOperatorSet',
|
|
6026
6269
|
},
|
|
6027
6270
|
{
|
|
6028
6271
|
type: 'event',
|
|
@@ -6046,29 +6289,46 @@ export const privatePolicyAbi = [
|
|
|
6046
6289
|
],
|
|
6047
6290
|
name: 'QuoteListed',
|
|
6048
6291
|
},
|
|
6049
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6050
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6051
6292
|
{
|
|
6052
|
-
type: '
|
|
6053
|
-
|
|
6054
|
-
|
|
6293
|
+
type: 'event',
|
|
6294
|
+
anonymous: false,
|
|
6295
|
+
inputs: [
|
|
6296
|
+
{
|
|
6297
|
+
name: 'poolId',
|
|
6298
|
+
internalType: 'bytes32',
|
|
6299
|
+
type: 'bytes32',
|
|
6300
|
+
indexed: true,
|
|
6301
|
+
},
|
|
6302
|
+
{
|
|
6303
|
+
name: 'mode',
|
|
6304
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6305
|
+
type: 'uint8',
|
|
6306
|
+
indexed: false,
|
|
6307
|
+
},
|
|
6308
|
+
{
|
|
6309
|
+
name: 'executor',
|
|
6310
|
+
internalType: 'address',
|
|
6311
|
+
type: 'address',
|
|
6312
|
+
indexed: true,
|
|
6313
|
+
},
|
|
6314
|
+
],
|
|
6315
|
+
name: 'SwapModeSet',
|
|
6055
6316
|
},
|
|
6317
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6318
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6319
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
6056
6320
|
{
|
|
6057
6321
|
type: 'error',
|
|
6058
6322
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
6059
6323
|
name: 'FeeNotListed',
|
|
6060
6324
|
},
|
|
6061
|
-
{
|
|
6062
|
-
type: 'error',
|
|
6063
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
6064
|
-
name: 'MintFeeNotListed',
|
|
6065
|
-
},
|
|
6325
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
6066
6326
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6067
6327
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6068
6328
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6069
6329
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6070
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
6071
6330
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6331
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6072
6332
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6073
6333
|
{
|
|
6074
6334
|
type: 'error',
|
|
@@ -6141,27 +6401,6 @@ export const publicPolicyAbi = [
|
|
|
6141
6401
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6142
6402
|
stateMutability: 'view',
|
|
6143
6403
|
},
|
|
6144
|
-
{
|
|
6145
|
-
type: 'function',
|
|
6146
|
-
inputs: [],
|
|
6147
|
-
name: 'creatorCurated',
|
|
6148
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6149
|
-
stateMutability: 'view',
|
|
6150
|
-
},
|
|
6151
|
-
{
|
|
6152
|
-
type: 'function',
|
|
6153
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6154
|
-
name: 'creatorListed',
|
|
6155
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6156
|
-
stateMutability: 'view',
|
|
6157
|
-
},
|
|
6158
|
-
{
|
|
6159
|
-
type: 'function',
|
|
6160
|
-
inputs: [],
|
|
6161
|
-
name: 'curated',
|
|
6162
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6163
|
-
stateMutability: 'view',
|
|
6164
|
-
},
|
|
6165
6404
|
{
|
|
6166
6405
|
type: 'function',
|
|
6167
6406
|
inputs: [],
|
|
@@ -6178,9 +6417,12 @@ export const publicPolicyAbi = [
|
|
|
6178
6417
|
},
|
|
6179
6418
|
{
|
|
6180
6419
|
type: 'function',
|
|
6181
|
-
inputs: [{ name: '', internalType: '
|
|
6182
|
-
name: '
|
|
6183
|
-
outputs: [
|
|
6420
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6421
|
+
name: 'incomeTax',
|
|
6422
|
+
outputs: [
|
|
6423
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
6424
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6425
|
+
],
|
|
6184
6426
|
stateMutability: 'view',
|
|
6185
6427
|
},
|
|
6186
6428
|
{
|
|
@@ -6190,13 +6432,6 @@ export const publicPolicyAbi = [
|
|
|
6190
6432
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6191
6433
|
stateMutability: 'pure',
|
|
6192
6434
|
},
|
|
6193
|
-
{
|
|
6194
|
-
type: 'function',
|
|
6195
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6196
|
-
name: 'listed',
|
|
6197
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6198
|
-
stateMutability: 'view',
|
|
6199
|
-
},
|
|
6200
6435
|
{
|
|
6201
6436
|
type: 'function',
|
|
6202
6437
|
inputs: [],
|
|
@@ -6206,6 +6441,13 @@ export const publicPolicyAbi = [
|
|
|
6206
6441
|
],
|
|
6207
6442
|
stateMutability: 'view',
|
|
6208
6443
|
},
|
|
6444
|
+
{
|
|
6445
|
+
type: 'function',
|
|
6446
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6447
|
+
name: 'managerOf',
|
|
6448
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6449
|
+
stateMutability: 'view',
|
|
6450
|
+
},
|
|
6209
6451
|
{
|
|
6210
6452
|
type: 'function',
|
|
6211
6453
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6241,20 +6483,6 @@ export const publicPolicyAbi = [
|
|
|
6241
6483
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
6242
6484
|
stateMutability: 'view',
|
|
6243
6485
|
},
|
|
6244
|
-
{
|
|
6245
|
-
type: 'function',
|
|
6246
|
-
inputs: [],
|
|
6247
|
-
name: 'mintFeeCurated',
|
|
6248
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6249
|
-
stateMutability: 'view',
|
|
6250
|
-
},
|
|
6251
|
-
{
|
|
6252
|
-
type: 'function',
|
|
6253
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6254
|
-
name: 'mintFeeListed',
|
|
6255
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6256
|
-
stateMutability: 'view',
|
|
6257
|
-
},
|
|
6258
6486
|
{
|
|
6259
6487
|
type: 'function',
|
|
6260
6488
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6268,20 +6496,21 @@ export const publicPolicyAbi = [
|
|
|
6268
6496
|
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
6269
6497
|
{
|
|
6270
6498
|
name: 'key',
|
|
6271
|
-
internalType: 'struct
|
|
6499
|
+
internalType: 'struct CPoolKey',
|
|
6272
6500
|
type: 'tuple',
|
|
6273
6501
|
components: [
|
|
6274
6502
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6275
6503
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6276
6504
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6505
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6277
6506
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6507
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6278
6508
|
],
|
|
6279
6509
|
},
|
|
6280
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6281
6510
|
],
|
|
6282
6511
|
name: 'onCInitialize',
|
|
6283
6512
|
outputs: [
|
|
6284
|
-
{ name: '', internalType: '
|
|
6513
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6285
6514
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6286
6515
|
],
|
|
6287
6516
|
stateMutability: 'nonpayable',
|
|
@@ -6297,21 +6526,16 @@ export const publicPolicyAbi = [
|
|
|
6297
6526
|
components: [
|
|
6298
6527
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6299
6528
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
6300
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6301
6529
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6302
6530
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6303
6531
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
6304
6532
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
6305
|
-
{ name: '
|
|
6533
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6306
6534
|
],
|
|
6307
6535
|
},
|
|
6308
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6309
6536
|
],
|
|
6310
6537
|
name: 'onInitialize',
|
|
6311
|
-
outputs: [
|
|
6312
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6313
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6314
|
-
],
|
|
6538
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
6315
6539
|
stateMutability: 'nonpayable',
|
|
6316
6540
|
},
|
|
6317
6541
|
{
|
|
@@ -6360,7 +6584,7 @@ export const publicPolicyAbi = [
|
|
|
6360
6584
|
components: [
|
|
6361
6585
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6362
6586
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6363
|
-
{ name: '
|
|
6587
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
6364
6588
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6365
6589
|
],
|
|
6366
6590
|
},
|
|
@@ -6417,25 +6641,8 @@ export const publicPolicyAbi = [
|
|
|
6417
6641
|
},
|
|
6418
6642
|
{
|
|
6419
6643
|
type: 'function',
|
|
6420
|
-
inputs: [{ name: '
|
|
6421
|
-
name: '
|
|
6422
|
-
outputs: [],
|
|
6423
|
-
stateMutability: 'nonpayable',
|
|
6424
|
-
},
|
|
6425
|
-
{
|
|
6426
|
-
type: 'function',
|
|
6427
|
-
inputs: [
|
|
6428
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6429
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6430
|
-
],
|
|
6431
|
-
name: 'setCreatorListed',
|
|
6432
|
-
outputs: [],
|
|
6433
|
-
stateMutability: 'nonpayable',
|
|
6434
|
-
},
|
|
6435
|
-
{
|
|
6436
|
-
type: 'function',
|
|
6437
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6438
|
-
name: 'setCurated',
|
|
6644
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6645
|
+
name: 'setCManager',
|
|
6439
6646
|
outputs: [],
|
|
6440
6647
|
stateMutability: 'nonpayable',
|
|
6441
6648
|
},
|
|
@@ -6456,43 +6663,6 @@ export const publicPolicyAbi = [
|
|
|
6456
6663
|
outputs: [],
|
|
6457
6664
|
stateMutability: 'nonpayable',
|
|
6458
6665
|
},
|
|
6459
|
-
{
|
|
6460
|
-
type: 'function',
|
|
6461
|
-
inputs: [
|
|
6462
|
-
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
6463
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
6464
|
-
],
|
|
6465
|
-
name: 'setForwarderTrusted',
|
|
6466
|
-
outputs: [],
|
|
6467
|
-
stateMutability: 'nonpayable',
|
|
6468
|
-
},
|
|
6469
|
-
{
|
|
6470
|
-
type: 'function',
|
|
6471
|
-
inputs: [
|
|
6472
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
6473
|
-
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
6474
|
-
],
|
|
6475
|
-
name: 'setListed',
|
|
6476
|
-
outputs: [],
|
|
6477
|
-
stateMutability: 'nonpayable',
|
|
6478
|
-
},
|
|
6479
|
-
{
|
|
6480
|
-
type: 'function',
|
|
6481
|
-
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
6482
|
-
name: 'setMintFeeCurated',
|
|
6483
|
-
outputs: [],
|
|
6484
|
-
stateMutability: 'nonpayable',
|
|
6485
|
-
},
|
|
6486
|
-
{
|
|
6487
|
-
type: 'function',
|
|
6488
|
-
inputs: [
|
|
6489
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6490
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6491
|
-
],
|
|
6492
|
-
name: 'setMintFeeListed',
|
|
6493
|
-
outputs: [],
|
|
6494
|
-
stateMutability: 'nonpayable',
|
|
6495
|
-
},
|
|
6496
6666
|
{
|
|
6497
6667
|
type: 'function',
|
|
6498
6668
|
inputs: [
|
|
@@ -6562,6 +6732,13 @@ export const publicPolicyAbi = [
|
|
|
6562
6732
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6563
6733
|
stateMutability: 'view',
|
|
6564
6734
|
},
|
|
6735
|
+
{
|
|
6736
|
+
type: 'function',
|
|
6737
|
+
inputs: [],
|
|
6738
|
+
name: 'sponsor',
|
|
6739
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6740
|
+
stateMutability: 'view',
|
|
6741
|
+
},
|
|
6565
6742
|
{
|
|
6566
6743
|
type: 'function',
|
|
6567
6744
|
inputs: [],
|
|
@@ -6609,35 +6786,18 @@ export const publicPolicyAbi = [
|
|
|
6609
6786
|
],
|
|
6610
6787
|
name: 'AuthoritySet',
|
|
6611
6788
|
},
|
|
6612
|
-
{
|
|
6613
|
-
type: 'event',
|
|
6614
|
-
anonymous: false,
|
|
6615
|
-
inputs: [
|
|
6616
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6617
|
-
],
|
|
6618
|
-
name: 'CreatorCuratedSet',
|
|
6619
|
-
},
|
|
6620
6789
|
{
|
|
6621
6790
|
type: 'event',
|
|
6622
6791
|
anonymous: false,
|
|
6623
6792
|
inputs: [
|
|
6624
6793
|
{
|
|
6625
|
-
name: '
|
|
6794
|
+
name: 'manager',
|
|
6626
6795
|
internalType: 'address',
|
|
6627
6796
|
type: 'address',
|
|
6628
6797
|
indexed: true,
|
|
6629
6798
|
},
|
|
6630
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6631
|
-
],
|
|
6632
|
-
name: 'CreatorListed',
|
|
6633
|
-
},
|
|
6634
|
-
{
|
|
6635
|
-
type: 'event',
|
|
6636
|
-
anonymous: false,
|
|
6637
|
-
inputs: [
|
|
6638
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6639
6799
|
],
|
|
6640
|
-
name: '
|
|
6800
|
+
name: 'CManagerSet',
|
|
6641
6801
|
},
|
|
6642
6802
|
{
|
|
6643
6803
|
type: 'event',
|
|
@@ -6656,56 +6816,6 @@ export const publicPolicyAbi = [
|
|
|
6656
6816
|
],
|
|
6657
6817
|
name: 'FeeListed',
|
|
6658
6818
|
},
|
|
6659
|
-
{
|
|
6660
|
-
type: 'event',
|
|
6661
|
-
anonymous: false,
|
|
6662
|
-
inputs: [
|
|
6663
|
-
{
|
|
6664
|
-
name: 'forwarder',
|
|
6665
|
-
internalType: 'address',
|
|
6666
|
-
type: 'address',
|
|
6667
|
-
indexed: true,
|
|
6668
|
-
},
|
|
6669
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
6670
|
-
],
|
|
6671
|
-
name: 'ForwarderTrusted',
|
|
6672
|
-
},
|
|
6673
|
-
{
|
|
6674
|
-
type: 'event',
|
|
6675
|
-
anonymous: false,
|
|
6676
|
-
inputs: [
|
|
6677
|
-
{
|
|
6678
|
-
name: 'token',
|
|
6679
|
-
internalType: 'address',
|
|
6680
|
-
type: 'address',
|
|
6681
|
-
indexed: true,
|
|
6682
|
-
},
|
|
6683
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6684
|
-
],
|
|
6685
|
-
name: 'Listed',
|
|
6686
|
-
},
|
|
6687
|
-
{
|
|
6688
|
-
type: 'event',
|
|
6689
|
-
anonymous: false,
|
|
6690
|
-
inputs: [
|
|
6691
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6692
|
-
],
|
|
6693
|
-
name: 'MintFeeCuratedSet',
|
|
6694
|
-
},
|
|
6695
|
-
{
|
|
6696
|
-
type: 'event',
|
|
6697
|
-
anonymous: false,
|
|
6698
|
-
inputs: [
|
|
6699
|
-
{
|
|
6700
|
-
name: 'mintFee',
|
|
6701
|
-
internalType: 'uint256',
|
|
6702
|
-
type: 'uint256',
|
|
6703
|
-
indexed: true,
|
|
6704
|
-
},
|
|
6705
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6706
|
-
],
|
|
6707
|
-
name: 'MintFeeListed',
|
|
6708
|
-
},
|
|
6709
6819
|
{
|
|
6710
6820
|
type: 'event',
|
|
6711
6821
|
anonymous: false,
|
|
@@ -6794,11 +6904,6 @@ export const publicPolicyAbi = [
|
|
|
6794
6904
|
},
|
|
6795
6905
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6796
6906
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6797
|
-
{
|
|
6798
|
-
type: 'error',
|
|
6799
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
6800
|
-
name: 'CreatorNotListed',
|
|
6801
|
-
},
|
|
6802
6907
|
{
|
|
6803
6908
|
type: 'error',
|
|
6804
6909
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6813,27 +6918,13 @@ export const publicPolicyAbi = [
|
|
|
6813
6918
|
],
|
|
6814
6919
|
name: 'MarketExists',
|
|
6815
6920
|
},
|
|
6816
|
-
{
|
|
6817
|
-
type: 'error',
|
|
6818
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
6819
|
-
name: 'MintFeeNotListed',
|
|
6820
|
-
},
|
|
6821
6921
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6822
|
-
{
|
|
6823
|
-
type: 'error',
|
|
6824
|
-
inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
|
|
6825
|
-
name: 'NoForwardedUser',
|
|
6826
|
-
},
|
|
6827
6922
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6828
6923
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6829
|
-
{
|
|
6830
|
-
type: 'error',
|
|
6831
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6832
|
-
name: 'NotListed',
|
|
6833
|
-
},
|
|
6834
6924
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6835
6925
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6836
6926
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6927
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6837
6928
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6838
6929
|
{
|
|
6839
6930
|
type: 'error',
|