@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/dist/generated.js
CHANGED
|
@@ -7,7 +7,6 @@ export const cPoolManagerAbi = [
|
|
|
7
7
|
inputs: [
|
|
8
8
|
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
9
9
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
10
|
-
{ name: 'gate_', internalType: 'address', type: 'address' },
|
|
11
10
|
],
|
|
12
11
|
stateMutability: 'nonpayable',
|
|
13
12
|
},
|
|
@@ -62,13 +61,15 @@ export const cPoolManagerAbi = [
|
|
|
62
61
|
inputs: [
|
|
63
62
|
{
|
|
64
63
|
name: 'key',
|
|
65
|
-
internalType: 'struct
|
|
64
|
+
internalType: 'struct CPoolKey',
|
|
66
65
|
type: 'tuple',
|
|
67
66
|
components: [
|
|
68
67
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
69
68
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
70
69
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
70
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
71
71
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
72
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
72
73
|
],
|
|
73
74
|
},
|
|
74
75
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -98,13 +99,15 @@ export const cPoolManagerAbi = [
|
|
|
98
99
|
inputs: [
|
|
99
100
|
{
|
|
100
101
|
name: 'key',
|
|
101
|
-
internalType: 'struct
|
|
102
|
+
internalType: 'struct CPoolKey',
|
|
102
103
|
type: 'tuple',
|
|
103
104
|
components: [
|
|
104
105
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
105
106
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
106
107
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
108
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
107
109
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
110
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
108
111
|
],
|
|
109
112
|
},
|
|
110
113
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -126,13 +129,15 @@ export const cPoolManagerAbi = [
|
|
|
126
129
|
inputs: [
|
|
127
130
|
{
|
|
128
131
|
name: 'key',
|
|
129
|
-
internalType: 'struct
|
|
132
|
+
internalType: 'struct CPoolKey',
|
|
130
133
|
type: 'tuple',
|
|
131
134
|
components: [
|
|
132
135
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
133
136
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
134
137
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
138
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
135
139
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
140
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
136
141
|
],
|
|
137
142
|
},
|
|
138
143
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -155,13 +160,15 @@ export const cPoolManagerAbi = [
|
|
|
155
160
|
inputs: [
|
|
156
161
|
{
|
|
157
162
|
name: 'key',
|
|
158
|
-
internalType: 'struct
|
|
163
|
+
internalType: 'struct CPoolKey',
|
|
159
164
|
type: 'tuple',
|
|
160
165
|
components: [
|
|
161
166
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
162
167
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
163
168
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
169
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
164
170
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
171
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
165
172
|
],
|
|
166
173
|
},
|
|
167
174
|
],
|
|
@@ -210,25 +217,20 @@ export const cPoolManagerAbi = [
|
|
|
210
217
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
211
218
|
stateMutability: 'view',
|
|
212
219
|
},
|
|
213
|
-
{
|
|
214
|
-
type: 'function',
|
|
215
|
-
inputs: [],
|
|
216
|
-
name: 'gate',
|
|
217
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
218
|
-
stateMutability: 'view',
|
|
219
|
-
},
|
|
220
220
|
{
|
|
221
221
|
type: 'function',
|
|
222
222
|
inputs: [
|
|
223
223
|
{
|
|
224
224
|
name: 'key',
|
|
225
|
-
internalType: 'struct
|
|
225
|
+
internalType: 'struct CPoolKey',
|
|
226
226
|
type: 'tuple',
|
|
227
227
|
components: [
|
|
228
228
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
229
229
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
230
230
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
231
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
231
232
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
233
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
232
234
|
],
|
|
233
235
|
},
|
|
234
236
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -242,13 +244,15 @@ export const cPoolManagerAbi = [
|
|
|
242
244
|
inputs: [
|
|
243
245
|
{
|
|
244
246
|
name: 'key',
|
|
245
|
-
internalType: 'struct
|
|
247
|
+
internalType: 'struct CPoolKey',
|
|
246
248
|
type: 'tuple',
|
|
247
249
|
components: [
|
|
248
250
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
249
251
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
250
252
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
253
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
251
254
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
255
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
252
256
|
],
|
|
253
257
|
},
|
|
254
258
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -263,17 +267,18 @@ export const cPoolManagerAbi = [
|
|
|
263
267
|
inputs: [
|
|
264
268
|
{
|
|
265
269
|
name: 'key',
|
|
266
|
-
internalType: 'struct
|
|
270
|
+
internalType: 'struct CPoolKey',
|
|
267
271
|
type: 'tuple',
|
|
268
272
|
components: [
|
|
269
273
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
270
274
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
271
275
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
276
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
272
277
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
278
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
273
279
|
],
|
|
274
280
|
},
|
|
275
281
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
276
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
277
282
|
],
|
|
278
283
|
name: 'initialize',
|
|
279
284
|
outputs: [{ name: 'pid', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -301,13 +306,15 @@ export const cPoolManagerAbi = [
|
|
|
301
306
|
inputs: [
|
|
302
307
|
{
|
|
303
308
|
name: 'key',
|
|
304
|
-
internalType: 'struct
|
|
309
|
+
internalType: 'struct CPoolKey',
|
|
305
310
|
type: 'tuple',
|
|
306
311
|
components: [
|
|
307
312
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
308
313
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
309
314
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
315
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
310
316
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
317
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
311
318
|
],
|
|
312
319
|
},
|
|
313
320
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -363,13 +370,15 @@ export const cPoolManagerAbi = [
|
|
|
363
370
|
inputs: [
|
|
364
371
|
{
|
|
365
372
|
name: 'key',
|
|
366
|
-
internalType: 'struct
|
|
373
|
+
internalType: 'struct CPoolKey',
|
|
367
374
|
type: 'tuple',
|
|
368
375
|
components: [
|
|
369
376
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
370
377
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
371
378
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
379
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
372
380
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
381
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
373
382
|
],
|
|
374
383
|
},
|
|
375
384
|
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
@@ -397,6 +406,17 @@ export const cPoolManagerAbi = [
|
|
|
397
406
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
398
407
|
stateMutability: 'payable',
|
|
399
408
|
},
|
|
409
|
+
{
|
|
410
|
+
type: 'function',
|
|
411
|
+
inputs: [
|
|
412
|
+
{ name: 'id', internalType: 'bytes32', type: 'bytes32' },
|
|
413
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
414
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
415
|
+
],
|
|
416
|
+
name: 'setPermissions',
|
|
417
|
+
outputs: [],
|
|
418
|
+
stateMutability: 'nonpayable',
|
|
419
|
+
},
|
|
400
420
|
{
|
|
401
421
|
type: 'function',
|
|
402
422
|
inputs: [],
|
|
@@ -404,6 +424,13 @@ export const cPoolManagerAbi = [
|
|
|
404
424
|
outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
|
|
405
425
|
stateMutability: 'nonpayable',
|
|
406
426
|
},
|
|
427
|
+
{
|
|
428
|
+
type: 'function',
|
|
429
|
+
inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
|
|
430
|
+
name: 'stamp',
|
|
431
|
+
outputs: [],
|
|
432
|
+
stateMutability: 'nonpayable',
|
|
433
|
+
},
|
|
407
434
|
{
|
|
408
435
|
type: 'function',
|
|
409
436
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -416,13 +443,15 @@ export const cPoolManagerAbi = [
|
|
|
416
443
|
inputs: [
|
|
417
444
|
{
|
|
418
445
|
name: 'key',
|
|
419
|
-
internalType: 'struct
|
|
446
|
+
internalType: 'struct CPoolKey',
|
|
420
447
|
type: 'tuple',
|
|
421
448
|
components: [
|
|
422
449
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
423
450
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
424
451
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
452
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
425
453
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
454
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
426
455
|
],
|
|
427
456
|
},
|
|
428
457
|
{
|
|
@@ -518,13 +547,15 @@ export const cPoolManagerAbi = [
|
|
|
518
547
|
inputs: [
|
|
519
548
|
{
|
|
520
549
|
name: 'key',
|
|
521
|
-
internalType: 'struct
|
|
550
|
+
internalType: 'struct CPoolKey',
|
|
522
551
|
type: 'tuple',
|
|
523
552
|
components: [
|
|
524
553
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
525
554
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
526
555
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
556
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
527
557
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
558
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
528
559
|
],
|
|
529
560
|
},
|
|
530
561
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -676,14 +707,6 @@ export const cPoolManagerAbi = [
|
|
|
676
707
|
],
|
|
677
708
|
name: 'FeesClaimed',
|
|
678
709
|
},
|
|
679
|
-
{
|
|
680
|
-
type: 'event',
|
|
681
|
-
anonymous: false,
|
|
682
|
-
inputs: [
|
|
683
|
-
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
684
|
-
],
|
|
685
|
-
name: 'GateSet',
|
|
686
|
-
},
|
|
687
710
|
{
|
|
688
711
|
type: 'event',
|
|
689
712
|
anonymous: false,
|
|
@@ -732,6 +755,12 @@ export const cPoolManagerAbi = [
|
|
|
732
755
|
type: 'uint256',
|
|
733
756
|
indexed: false,
|
|
734
757
|
},
|
|
758
|
+
{
|
|
759
|
+
name: 'policy',
|
|
760
|
+
internalType: 'address',
|
|
761
|
+
type: 'address',
|
|
762
|
+
indexed: false,
|
|
763
|
+
},
|
|
735
764
|
],
|
|
736
765
|
name: 'MarketCreated',
|
|
737
766
|
},
|
|
@@ -755,6 +784,26 @@ export const cPoolManagerAbi = [
|
|
|
755
784
|
],
|
|
756
785
|
name: 'OperatorSet',
|
|
757
786
|
},
|
|
787
|
+
{
|
|
788
|
+
type: 'event',
|
|
789
|
+
anonymous: false,
|
|
790
|
+
inputs: [
|
|
791
|
+
{
|
|
792
|
+
name: 'poolId',
|
|
793
|
+
internalType: 'bytes32',
|
|
794
|
+
type: 'bytes32',
|
|
795
|
+
indexed: true,
|
|
796
|
+
},
|
|
797
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
798
|
+
{
|
|
799
|
+
name: 'executor',
|
|
800
|
+
internalType: 'address',
|
|
801
|
+
type: 'address',
|
|
802
|
+
indexed: true,
|
|
803
|
+
},
|
|
804
|
+
],
|
|
805
|
+
name: 'PermissionsSet',
|
|
806
|
+
},
|
|
758
807
|
{
|
|
759
808
|
type: 'event',
|
|
760
809
|
anonymous: false,
|
|
@@ -1054,6 +1103,7 @@ export const cPoolManagerAbi = [
|
|
|
1054
1103
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1055
1104
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1056
1105
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1106
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1057
1107
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1058
1108
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1059
1109
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -1066,6 +1116,7 @@ export const cPoolManagerAbi = [
|
|
|
1066
1116
|
name: 'QuoteResult',
|
|
1067
1117
|
},
|
|
1068
1118
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1119
|
+
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1069
1120
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1070
1121
|
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1071
1122
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
@@ -1091,7 +1142,7 @@ export const fPoolManagerAbi = [
|
|
|
1091
1142
|
{
|
|
1092
1143
|
type: 'function',
|
|
1093
1144
|
inputs: [],
|
|
1094
|
-
name: '
|
|
1145
|
+
name: 'INCOME_TAX_MAX',
|
|
1095
1146
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1096
1147
|
stateMutability: 'view',
|
|
1097
1148
|
},
|
|
@@ -1102,13 +1153,6 @@ export const fPoolManagerAbi = [
|
|
|
1102
1153
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1103
1154
|
stateMutability: 'view',
|
|
1104
1155
|
},
|
|
1105
|
-
{
|
|
1106
|
-
type: 'function',
|
|
1107
|
-
inputs: [],
|
|
1108
|
-
name: 'POT_CUT_MAX',
|
|
1109
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1110
|
-
stateMutability: 'view',
|
|
1111
|
-
},
|
|
1112
1156
|
{
|
|
1113
1157
|
type: 'function',
|
|
1114
1158
|
inputs: [],
|
|
@@ -1195,6 +1239,16 @@ export const fPoolManagerAbi = [
|
|
|
1195
1239
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1196
1240
|
stateMutability: 'view',
|
|
1197
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
type: 'function',
|
|
1244
|
+
inputs: [
|
|
1245
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1246
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1247
|
+
],
|
|
1248
|
+
name: 'close',
|
|
1249
|
+
outputs: [],
|
|
1250
|
+
stateMutability: 'nonpayable',
|
|
1251
|
+
},
|
|
1198
1252
|
{
|
|
1199
1253
|
type: 'function',
|
|
1200
1254
|
inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1212,6 +1266,28 @@ export const fPoolManagerAbi = [
|
|
|
1212
1266
|
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1213
1267
|
stateMutability: 'view',
|
|
1214
1268
|
},
|
|
1269
|
+
{
|
|
1270
|
+
type: 'function',
|
|
1271
|
+
inputs: [
|
|
1272
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1273
|
+
{
|
|
1274
|
+
name: 'baseAssets',
|
|
1275
|
+
internalType: 'struct BaseAsset[]',
|
|
1276
|
+
type: 'tuple[]',
|
|
1277
|
+
components: [
|
|
1278
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1279
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1280
|
+
{ name: 'priceX36', internalType: 'uint256', type: 'uint256' },
|
|
1281
|
+
],
|
|
1282
|
+
},
|
|
1283
|
+
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
1284
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
1285
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1286
|
+
],
|
|
1287
|
+
name: 'deployLiquidity',
|
|
1288
|
+
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1289
|
+
stateMutability: 'nonpayable',
|
|
1290
|
+
},
|
|
1215
1291
|
{
|
|
1216
1292
|
type: 'function',
|
|
1217
1293
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1243,6 +1319,16 @@ export const fPoolManagerAbi = [
|
|
|
1243
1319
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1244
1320
|
stateMutability: 'view',
|
|
1245
1321
|
},
|
|
1322
|
+
{
|
|
1323
|
+
type: 'function',
|
|
1324
|
+
inputs: [
|
|
1325
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1326
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1327
|
+
],
|
|
1328
|
+
name: 'harvest',
|
|
1329
|
+
outputs: [],
|
|
1330
|
+
stateMutability: 'nonpayable',
|
|
1331
|
+
},
|
|
1246
1332
|
{
|
|
1247
1333
|
type: 'function',
|
|
1248
1334
|
inputs: [
|
|
@@ -1254,6 +1340,13 @@ export const fPoolManagerAbi = [
|
|
|
1254
1340
|
outputs: [],
|
|
1255
1341
|
stateMutability: 'nonpayable',
|
|
1256
1342
|
},
|
|
1343
|
+
{
|
|
1344
|
+
type: 'function',
|
|
1345
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1346
|
+
name: 'incomeHeld',
|
|
1347
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1348
|
+
stateMutability: 'view',
|
|
1349
|
+
},
|
|
1257
1350
|
{
|
|
1258
1351
|
type: 'function',
|
|
1259
1352
|
inputs: [
|
|
@@ -1264,15 +1357,13 @@ export const fPoolManagerAbi = [
|
|
|
1264
1357
|
components: [
|
|
1265
1358
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1266
1359
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1267
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1268
1360
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
1269
1361
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1270
1362
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1271
1363
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1272
|
-
{ name: '
|
|
1364
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
1273
1365
|
],
|
|
1274
1366
|
},
|
|
1275
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
1276
1367
|
],
|
|
1277
1368
|
name: 'initialize',
|
|
1278
1369
|
outputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1302,7 +1393,19 @@ export const fPoolManagerAbi = [
|
|
|
1302
1393
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1303
1394
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1304
1395
|
],
|
|
1305
|
-
name: '
|
|
1396
|
+
name: 'lienLock',
|
|
1397
|
+
outputs: [],
|
|
1398
|
+
stateMutability: 'nonpayable',
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
type: 'function',
|
|
1402
|
+
inputs: [
|
|
1403
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1404
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1405
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1406
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1407
|
+
],
|
|
1408
|
+
name: 'lienUnlock',
|
|
1306
1409
|
outputs: [],
|
|
1307
1410
|
stateMutability: 'nonpayable',
|
|
1308
1411
|
},
|
|
@@ -1357,13 +1460,6 @@ export const fPoolManagerAbi = [
|
|
|
1357
1460
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1358
1461
|
stateMutability: 'view',
|
|
1359
1462
|
},
|
|
1360
|
-
{
|
|
1361
|
-
type: 'function',
|
|
1362
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1363
|
-
name: 'pot',
|
|
1364
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1365
|
-
stateMutability: 'view',
|
|
1366
|
-
},
|
|
1367
1463
|
{
|
|
1368
1464
|
type: 'function',
|
|
1369
1465
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
@@ -1400,56 +1496,27 @@ export const fPoolManagerAbi = [
|
|
|
1400
1496
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1401
1497
|
stateMutability: 'view',
|
|
1402
1498
|
},
|
|
1403
|
-
{
|
|
1404
|
-
type: 'function',
|
|
1405
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1406
|
-
name: 'retire',
|
|
1407
|
-
outputs: [],
|
|
1408
|
-
stateMutability: 'nonpayable',
|
|
1409
|
-
},
|
|
1410
1499
|
{
|
|
1411
1500
|
type: 'function',
|
|
1412
1501
|
inputs: [
|
|
1413
|
-
{ name: '
|
|
1414
|
-
{ name: '
|
|
1415
|
-
{ name: 'r0', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1416
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256' },
|
|
1502
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1503
|
+
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1417
1504
|
],
|
|
1418
|
-
name: '
|
|
1419
|
-
outputs: [{ name: '
|
|
1420
|
-
stateMutability: '
|
|
1505
|
+
name: 'setOperator',
|
|
1506
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1507
|
+
stateMutability: 'payable',
|
|
1421
1508
|
},
|
|
1422
1509
|
{
|
|
1423
1510
|
type: 'function',
|
|
1424
1511
|
inputs: [
|
|
1425
1512
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1426
1513
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1514
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
1427
1515
|
],
|
|
1428
|
-
name: '
|
|
1429
|
-
outputs: [],
|
|
1430
|
-
stateMutability: 'nonpayable',
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
type: 'function',
|
|
1434
|
-
inputs: [
|
|
1435
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1436
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1437
|
-
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
1438
|
-
],
|
|
1439
|
-
name: 'setLegs',
|
|
1516
|
+
name: 'setPermissions',
|
|
1440
1517
|
outputs: [],
|
|
1441
1518
|
stateMutability: 'nonpayable',
|
|
1442
1519
|
},
|
|
1443
|
-
{
|
|
1444
|
-
type: 'function',
|
|
1445
|
-
inputs: [
|
|
1446
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1447
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1448
|
-
],
|
|
1449
|
-
name: 'setOperator',
|
|
1450
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1451
|
-
stateMutability: 'payable',
|
|
1452
|
-
},
|
|
1453
1520
|
{
|
|
1454
1521
|
type: 'function',
|
|
1455
1522
|
inputs: [
|
|
@@ -1608,18 +1675,6 @@ export const fPoolManagerAbi = [
|
|
|
1608
1675
|
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1609
1676
|
stateMutability: 'nonpayable',
|
|
1610
1677
|
},
|
|
1611
|
-
{
|
|
1612
|
-
type: 'function',
|
|
1613
|
-
inputs: [
|
|
1614
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1615
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1616
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1617
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1618
|
-
],
|
|
1619
|
-
name: 'unlock',
|
|
1620
|
-
outputs: [],
|
|
1621
|
-
stateMutability: 'nonpayable',
|
|
1622
|
-
},
|
|
1623
1678
|
{
|
|
1624
1679
|
type: 'function',
|
|
1625
1680
|
inputs: [],
|
|
@@ -1770,28 +1825,6 @@ export const fPoolManagerAbi = [
|
|
|
1770
1825
|
],
|
|
1771
1826
|
name: 'GenerationRetired',
|
|
1772
1827
|
},
|
|
1773
|
-
{
|
|
1774
|
-
type: 'event',
|
|
1775
|
-
anonymous: false,
|
|
1776
|
-
inputs: [
|
|
1777
|
-
{
|
|
1778
|
-
name: 'poolId',
|
|
1779
|
-
internalType: 'bytes32',
|
|
1780
|
-
type: 'bytes32',
|
|
1781
|
-
indexed: true,
|
|
1782
|
-
},
|
|
1783
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1784
|
-
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1785
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1786
|
-
{
|
|
1787
|
-
name: 'r0',
|
|
1788
|
-
internalType: 'uint256[]',
|
|
1789
|
-
type: 'uint256[]',
|
|
1790
|
-
indexed: false,
|
|
1791
|
-
},
|
|
1792
|
-
],
|
|
1793
|
-
name: 'GenerationSeeded',
|
|
1794
|
-
},
|
|
1795
1828
|
{
|
|
1796
1829
|
type: 'event',
|
|
1797
1830
|
anonymous: false,
|
|
@@ -1810,7 +1843,7 @@ export const fPoolManagerAbi = [
|
|
|
1810
1843
|
type: 'uint256',
|
|
1811
1844
|
indexed: false,
|
|
1812
1845
|
},
|
|
1813
|
-
{ name: '
|
|
1846
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1814
1847
|
{
|
|
1815
1848
|
name: 'toOperator',
|
|
1816
1849
|
internalType: 'uint256',
|
|
@@ -1831,21 +1864,32 @@ export const fPoolManagerAbi = [
|
|
|
1831
1864
|
type: 'bytes32',
|
|
1832
1865
|
indexed: true,
|
|
1833
1866
|
},
|
|
1834
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1835
1867
|
{
|
|
1836
|
-
name: '
|
|
1837
|
-
internalType: '
|
|
1838
|
-
type: '
|
|
1868
|
+
name: 'income',
|
|
1869
|
+
internalType: 'uint256',
|
|
1870
|
+
type: 'uint256',
|
|
1871
|
+
indexed: false,
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
name: 'payee',
|
|
1875
|
+
internalType: 'address',
|
|
1876
|
+
type: 'address',
|
|
1877
|
+
indexed: false,
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
name: 'toPayee',
|
|
1881
|
+
internalType: 'uint256',
|
|
1882
|
+
type: 'uint256',
|
|
1839
1883
|
indexed: false,
|
|
1840
1884
|
},
|
|
1841
1885
|
{
|
|
1842
|
-
name: '
|
|
1843
|
-
internalType: 'uint256
|
|
1844
|
-
type: 'uint256
|
|
1886
|
+
name: 'deepened',
|
|
1887
|
+
internalType: 'uint256',
|
|
1888
|
+
type: 'uint256',
|
|
1845
1889
|
indexed: false,
|
|
1846
1890
|
},
|
|
1847
1891
|
],
|
|
1848
|
-
name: '
|
|
1892
|
+
name: 'IncomeReleased',
|
|
1849
1893
|
},
|
|
1850
1894
|
{
|
|
1851
1895
|
type: 'event',
|
|
@@ -1912,6 +1956,43 @@ export const fPoolManagerAbi = [
|
|
|
1912
1956
|
],
|
|
1913
1957
|
name: 'LienUnlocked',
|
|
1914
1958
|
},
|
|
1959
|
+
{
|
|
1960
|
+
type: 'event',
|
|
1961
|
+
anonymous: false,
|
|
1962
|
+
inputs: [
|
|
1963
|
+
{
|
|
1964
|
+
name: 'poolId',
|
|
1965
|
+
internalType: 'bytes32',
|
|
1966
|
+
type: 'bytes32',
|
|
1967
|
+
indexed: true,
|
|
1968
|
+
},
|
|
1969
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1970
|
+
{
|
|
1971
|
+
name: 'quoteAmount',
|
|
1972
|
+
internalType: 'uint256',
|
|
1973
|
+
type: 'uint256',
|
|
1974
|
+
indexed: false,
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
name: 'baseAssets',
|
|
1978
|
+
internalType: 'struct BaseAsset[]',
|
|
1979
|
+
type: 'tuple[]',
|
|
1980
|
+
components: [
|
|
1981
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1982
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1983
|
+
{ name: 'priceX36', internalType: 'uint256', type: 'uint256' },
|
|
1984
|
+
],
|
|
1985
|
+
indexed: false,
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
name: 'lnCapOverSeed',
|
|
1989
|
+
internalType: 'uint24',
|
|
1990
|
+
type: 'uint24',
|
|
1991
|
+
indexed: false,
|
|
1992
|
+
},
|
|
1993
|
+
],
|
|
1994
|
+
name: 'LiquidityDeployed',
|
|
1995
|
+
},
|
|
1915
1996
|
{
|
|
1916
1997
|
type: 'event',
|
|
1917
1998
|
anonymous: false,
|
|
@@ -1942,11 +2023,31 @@ export const fPoolManagerAbi = [
|
|
|
1942
2023
|
type: 'bytes32',
|
|
1943
2024
|
indexed: true,
|
|
1944
2025
|
},
|
|
1945
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1946
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1947
2026
|
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1948
|
-
|
|
1949
|
-
|
|
2027
|
+
{
|
|
2028
|
+
name: 'executor',
|
|
2029
|
+
internalType: 'address',
|
|
2030
|
+
type: 'address',
|
|
2031
|
+
indexed: true,
|
|
2032
|
+
},
|
|
2033
|
+
],
|
|
2034
|
+
name: 'PermissionsSet',
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
type: 'event',
|
|
2038
|
+
anonymous: false,
|
|
2039
|
+
inputs: [
|
|
2040
|
+
{
|
|
2041
|
+
name: 'poolId',
|
|
2042
|
+
internalType: 'bytes32',
|
|
2043
|
+
type: 'bytes32',
|
|
2044
|
+
indexed: true,
|
|
2045
|
+
},
|
|
2046
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2047
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2048
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
2049
|
+
],
|
|
2050
|
+
name: 'PolicyMigrated',
|
|
1950
2051
|
},
|
|
1951
2052
|
{
|
|
1952
2053
|
type: 'event',
|
|
@@ -1976,12 +2077,6 @@ export const fPoolManagerAbi = [
|
|
|
1976
2077
|
type: 'address[]',
|
|
1977
2078
|
indexed: false,
|
|
1978
2079
|
},
|
|
1979
|
-
{
|
|
1980
|
-
name: 'weights',
|
|
1981
|
-
internalType: 'uint256[]',
|
|
1982
|
-
type: 'uint256[]',
|
|
1983
|
-
indexed: false,
|
|
1984
|
-
},
|
|
1985
2080
|
{
|
|
1986
2081
|
name: 'swapFee',
|
|
1987
2082
|
internalType: 'uint256',
|
|
@@ -1994,12 +2089,6 @@ export const fPoolManagerAbi = [
|
|
|
1994
2089
|
type: 'address',
|
|
1995
2090
|
indexed: false,
|
|
1996
2091
|
},
|
|
1997
|
-
{
|
|
1998
|
-
name: 'lnCapOverFloor',
|
|
1999
|
-
internalType: 'uint24',
|
|
2000
|
-
type: 'uint24',
|
|
2001
|
-
indexed: false,
|
|
2002
|
-
},
|
|
2003
2092
|
{
|
|
2004
2093
|
name: 'mintFee',
|
|
2005
2094
|
internalType: 'uint256',
|
|
@@ -2009,39 +2098,6 @@ export const fPoolManagerAbi = [
|
|
|
2009
2098
|
],
|
|
2010
2099
|
name: 'PoolCreated',
|
|
2011
2100
|
},
|
|
2012
|
-
{
|
|
2013
|
-
type: 'event',
|
|
2014
|
-
anonymous: false,
|
|
2015
|
-
inputs: [
|
|
2016
|
-
{
|
|
2017
|
-
name: 'poolId',
|
|
2018
|
-
internalType: 'bytes32',
|
|
2019
|
-
type: 'bytes32',
|
|
2020
|
-
indexed: true,
|
|
2021
|
-
},
|
|
2022
|
-
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2023
|
-
{
|
|
2024
|
-
name: 'payee',
|
|
2025
|
-
internalType: 'address',
|
|
2026
|
-
type: 'address',
|
|
2027
|
-
indexed: false,
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
name: 'toPayee',
|
|
2031
|
-
internalType: 'uint256',
|
|
2032
|
-
type: 'uint256',
|
|
2033
|
-
indexed: false,
|
|
2034
|
-
},
|
|
2035
|
-
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2036
|
-
{
|
|
2037
|
-
name: 'deepened',
|
|
2038
|
-
internalType: 'uint256',
|
|
2039
|
-
type: 'uint256',
|
|
2040
|
-
indexed: false,
|
|
2041
|
-
},
|
|
2042
|
-
],
|
|
2043
|
-
name: 'PotReleased',
|
|
2044
|
-
},
|
|
2045
2101
|
{
|
|
2046
2102
|
type: 'event',
|
|
2047
2103
|
anonymous: false,
|
|
@@ -2293,7 +2349,6 @@ export const fPoolManagerAbi = [
|
|
|
2293
2349
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2294
2350
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2295
2351
|
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
2296
|
-
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2297
2352
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2298
2353
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2299
2354
|
{ type: 'error', inputs: [], name: 'CapReached' },
|
|
@@ -2302,7 +2357,6 @@ export const fPoolManagerAbi = [
|
|
|
2302
2357
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2303
2358
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2304
2359
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2305
|
-
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2306
2360
|
{ type: 'error', inputs: [], name: 'Locked' },
|
|
2307
2361
|
{
|
|
2308
2362
|
type: 'error',
|
|
@@ -2316,6 +2370,7 @@ export const fPoolManagerAbi = [
|
|
|
2316
2370
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2317
2371
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2318
2372
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
2373
|
+
{ type: 'error', inputs: [], name: 'PadForwardOnly' },
|
|
2319
2374
|
{ type: 'error', inputs: [], name: 'PadNeverRetires' },
|
|
2320
2375
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2321
2376
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -2334,7 +2389,6 @@ export const fPoolManagerAbi = [
|
|
|
2334
2389
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
2335
2390
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
2336
2391
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
2337
|
-
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
2338
2392
|
{ type: 'error', inputs: [], name: 'TransferShortfall' },
|
|
2339
2393
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2340
2394
|
];
|
|
@@ -2391,13 +2445,15 @@ export const logswapLensAbi = [
|
|
|
2391
2445
|
inputs: [
|
|
2392
2446
|
{
|
|
2393
2447
|
name: 'key',
|
|
2394
|
-
internalType: 'struct
|
|
2448
|
+
internalType: 'struct CPoolKey',
|
|
2395
2449
|
type: 'tuple',
|
|
2396
2450
|
components: [
|
|
2397
2451
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2398
2452
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2399
2453
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2454
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2400
2455
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2456
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2401
2457
|
],
|
|
2402
2458
|
},
|
|
2403
2459
|
],
|
|
@@ -2410,13 +2466,15 @@ export const logswapLensAbi = [
|
|
|
2410
2466
|
inputs: [
|
|
2411
2467
|
{
|
|
2412
2468
|
name: 'key',
|
|
2413
|
-
internalType: 'struct
|
|
2469
|
+
internalType: 'struct CPoolKey',
|
|
2414
2470
|
type: 'tuple',
|
|
2415
2471
|
components: [
|
|
2416
2472
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2417
2473
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2418
2474
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2475
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2419
2476
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2477
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2420
2478
|
],
|
|
2421
2479
|
},
|
|
2422
2480
|
],
|
|
@@ -2536,16 +2594,17 @@ export const logswapLensAbi = [
|
|
|
2536
2594
|
type: 'uint32',
|
|
2537
2595
|
},
|
|
2538
2596
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2597
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2598
|
+
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2539
2599
|
{
|
|
2540
|
-
name: '
|
|
2541
|
-
internalType: '
|
|
2542
|
-
type: '
|
|
2600
|
+
name: 'realizedVariance',
|
|
2601
|
+
internalType: 'uint128',
|
|
2602
|
+
type: 'uint128',
|
|
2543
2603
|
},
|
|
2544
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2545
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2546
2604
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2547
2605
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2548
2606
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2607
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2549
2608
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2550
2609
|
],
|
|
2551
2610
|
},
|
|
@@ -2553,7 +2612,7 @@ export const logswapLensAbi = [
|
|
|
2553
2612
|
{ name: 'compositeX', internalType: 'int256', type: 'int256' },
|
|
2554
2613
|
{ name: 'unharvested', internalType: 'uint256', type: 'uint256' },
|
|
2555
2614
|
{
|
|
2556
|
-
name: '
|
|
2615
|
+
name: 'baseLegs',
|
|
2557
2616
|
internalType: 'struct LogswapLens.FLeg[]',
|
|
2558
2617
|
type: 'tuple[]',
|
|
2559
2618
|
components: [
|
|
@@ -2579,13 +2638,15 @@ export const logswapLensAbi = [
|
|
|
2579
2638
|
inputs: [
|
|
2580
2639
|
{
|
|
2581
2640
|
name: 'key',
|
|
2582
|
-
internalType: 'struct
|
|
2641
|
+
internalType: 'struct CPoolKey',
|
|
2583
2642
|
type: 'tuple',
|
|
2584
2643
|
components: [
|
|
2585
2644
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2586
2645
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2587
2646
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2647
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2588
2648
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2649
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2589
2650
|
],
|
|
2590
2651
|
},
|
|
2591
2652
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2632,12 +2693,17 @@ export const logswapLensAbi = [
|
|
|
2632
2693
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2633
2694
|
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2634
2695
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2635
|
-
{ name: '
|
|
2696
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2636
2697
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2637
|
-
{
|
|
2698
|
+
{
|
|
2699
|
+
name: 'realizedVariance',
|
|
2700
|
+
internalType: 'uint128',
|
|
2701
|
+
type: 'uint128',
|
|
2702
|
+
},
|
|
2638
2703
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2639
2704
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2640
2705
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2706
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2641
2707
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2642
2708
|
],
|
|
2643
2709
|
},
|
|
@@ -2661,12 +2727,19 @@ export const logswapLensAbi = [
|
|
|
2661
2727
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
2662
2728
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2663
2729
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2664
|
-
{
|
|
2730
|
+
{
|
|
2731
|
+
name: 'realizedVariance',
|
|
2732
|
+
internalType: 'uint256',
|
|
2733
|
+
type: 'uint256',
|
|
2734
|
+
},
|
|
2665
2735
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2666
2736
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2667
2737
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2668
2738
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2669
|
-
{ name: '
|
|
2739
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2740
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2741
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2742
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2670
2743
|
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2671
2744
|
],
|
|
2672
2745
|
},
|
|
@@ -2678,13 +2751,15 @@ export const logswapLensAbi = [
|
|
|
2678
2751
|
inputs: [
|
|
2679
2752
|
{
|
|
2680
2753
|
name: 'key',
|
|
2681
|
-
internalType: 'struct
|
|
2754
|
+
internalType: 'struct CPoolKey',
|
|
2682
2755
|
type: 'tuple',
|
|
2683
2756
|
components: [
|
|
2684
2757
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2685
2758
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2686
2759
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2760
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2687
2761
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2762
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2688
2763
|
],
|
|
2689
2764
|
},
|
|
2690
2765
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2714,13 +2789,15 @@ export const logswapLensAbi = [
|
|
|
2714
2789
|
inputs: [
|
|
2715
2790
|
{
|
|
2716
2791
|
name: 'key',
|
|
2717
|
-
internalType: 'struct
|
|
2792
|
+
internalType: 'struct CPoolKey',
|
|
2718
2793
|
type: 'tuple',
|
|
2719
2794
|
components: [
|
|
2720
2795
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2721
2796
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2722
2797
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2798
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2723
2799
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2800
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2724
2801
|
],
|
|
2725
2802
|
},
|
|
2726
2803
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2734,13 +2811,15 @@ export const logswapLensAbi = [
|
|
|
2734
2811
|
inputs: [
|
|
2735
2812
|
{
|
|
2736
2813
|
name: 'key',
|
|
2737
|
-
internalType: 'struct
|
|
2814
|
+
internalType: 'struct CPoolKey',
|
|
2738
2815
|
type: 'tuple',
|
|
2739
2816
|
components: [
|
|
2740
2817
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2741
2818
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2742
2819
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2820
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2743
2821
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2822
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2744
2823
|
],
|
|
2745
2824
|
},
|
|
2746
2825
|
],
|
|
@@ -2753,13 +2832,15 @@ export const logswapLensAbi = [
|
|
|
2753
2832
|
inputs: [
|
|
2754
2833
|
{
|
|
2755
2834
|
name: 'key',
|
|
2756
|
-
internalType: 'struct
|
|
2835
|
+
internalType: 'struct CPoolKey',
|
|
2757
2836
|
type: 'tuple',
|
|
2758
2837
|
components: [
|
|
2759
2838
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2760
2839
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2761
2840
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2841
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2762
2842
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2843
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2763
2844
|
],
|
|
2764
2845
|
},
|
|
2765
2846
|
],
|
|
@@ -2772,13 +2853,15 @@ export const logswapLensAbi = [
|
|
|
2772
2853
|
inputs: [
|
|
2773
2854
|
{
|
|
2774
2855
|
name: 'key',
|
|
2775
|
-
internalType: 'struct
|
|
2856
|
+
internalType: 'struct CPoolKey',
|
|
2776
2857
|
type: 'tuple',
|
|
2777
2858
|
components: [
|
|
2778
2859
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2779
2860
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2780
2861
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2862
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2781
2863
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2864
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2782
2865
|
],
|
|
2783
2866
|
},
|
|
2784
2867
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2798,13 +2881,15 @@ export const logswapLensAbi = [
|
|
|
2798
2881
|
inputs: [
|
|
2799
2882
|
{
|
|
2800
2883
|
name: 'key',
|
|
2801
|
-
internalType: 'struct
|
|
2884
|
+
internalType: 'struct CPoolKey',
|
|
2802
2885
|
type: 'tuple',
|
|
2803
2886
|
components: [
|
|
2804
2887
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2805
2888
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2806
2889
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2890
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2807
2891
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2892
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2808
2893
|
],
|
|
2809
2894
|
},
|
|
2810
2895
|
],
|
|
@@ -2826,13 +2911,15 @@ export const logswapLensAbi = [
|
|
|
2826
2911
|
inputs: [
|
|
2827
2912
|
{
|
|
2828
2913
|
name: 'key',
|
|
2829
|
-
internalType: 'struct
|
|
2914
|
+
internalType: 'struct CPoolKey',
|
|
2830
2915
|
type: 'tuple',
|
|
2831
2916
|
components: [
|
|
2832
2917
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2833
2918
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2834
2919
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2920
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2835
2921
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2922
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2836
2923
|
],
|
|
2837
2924
|
},
|
|
2838
2925
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2864,13 +2951,15 @@ export const logswapLensAbi = [
|
|
|
2864
2951
|
inputs: [
|
|
2865
2952
|
{
|
|
2866
2953
|
name: 'key',
|
|
2867
|
-
internalType: 'struct
|
|
2954
|
+
internalType: 'struct CPoolKey',
|
|
2868
2955
|
type: 'tuple',
|
|
2869
2956
|
components: [
|
|
2870
2957
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2871
2958
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2872
2959
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2960
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2873
2961
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2962
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2874
2963
|
],
|
|
2875
2964
|
},
|
|
2876
2965
|
],
|
|
@@ -2883,13 +2972,15 @@ export const logswapLensAbi = [
|
|
|
2883
2972
|
inputs: [
|
|
2884
2973
|
{
|
|
2885
2974
|
name: 'key',
|
|
2886
|
-
internalType: 'struct
|
|
2975
|
+
internalType: 'struct CPoolKey',
|
|
2887
2976
|
type: 'tuple',
|
|
2888
2977
|
components: [
|
|
2889
2978
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2890
2979
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2891
2980
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2981
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2892
2982
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2983
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2893
2984
|
],
|
|
2894
2985
|
},
|
|
2895
2986
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2916,13 +3007,15 @@ export const logswapLensAbi = [
|
|
|
2916
3007
|
inputs: [
|
|
2917
3008
|
{
|
|
2918
3009
|
name: 'key',
|
|
2919
|
-
internalType: 'struct
|
|
3010
|
+
internalType: 'struct CPoolKey',
|
|
2920
3011
|
type: 'tuple',
|
|
2921
3012
|
components: [
|
|
2922
3013
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2923
3014
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2924
3015
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3016
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2925
3017
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3018
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2926
3019
|
],
|
|
2927
3020
|
},
|
|
2928
3021
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -2958,13 +3051,15 @@ export const logswapLensAbi = [
|
|
|
2958
3051
|
inputs: [
|
|
2959
3052
|
{
|
|
2960
3053
|
name: 'key',
|
|
2961
|
-
internalType: 'struct
|
|
3054
|
+
internalType: 'struct CPoolKey',
|
|
2962
3055
|
type: 'tuple',
|
|
2963
3056
|
components: [
|
|
2964
3057
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2965
3058
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2966
3059
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3060
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2967
3061
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3062
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2968
3063
|
],
|
|
2969
3064
|
},
|
|
2970
3065
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2979,13 +3074,15 @@ export const logswapLensAbi = [
|
|
|
2979
3074
|
inputs: [
|
|
2980
3075
|
{
|
|
2981
3076
|
name: 'key',
|
|
2982
|
-
internalType: 'struct
|
|
3077
|
+
internalType: 'struct CPoolKey',
|
|
2983
3078
|
type: 'tuple',
|
|
2984
3079
|
components: [
|
|
2985
3080
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2986
3081
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2987
3082
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3083
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2988
3084
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3085
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2989
3086
|
],
|
|
2990
3087
|
},
|
|
2991
3088
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3000,13 +3097,15 @@ export const logswapLensAbi = [
|
|
|
3000
3097
|
inputs: [
|
|
3001
3098
|
{
|
|
3002
3099
|
name: 'key',
|
|
3003
|
-
internalType: 'struct
|
|
3100
|
+
internalType: 'struct CPoolKey',
|
|
3004
3101
|
type: 'tuple',
|
|
3005
3102
|
components: [
|
|
3006
3103
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3007
3104
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3008
3105
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3106
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3009
3107
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3108
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3010
3109
|
],
|
|
3011
3110
|
},
|
|
3012
3111
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3021,13 +3120,15 @@ export const logswapLensAbi = [
|
|
|
3021
3120
|
inputs: [
|
|
3022
3121
|
{
|
|
3023
3122
|
name: 'key',
|
|
3024
|
-
internalType: 'struct
|
|
3123
|
+
internalType: 'struct CPoolKey',
|
|
3025
3124
|
type: 'tuple',
|
|
3026
3125
|
components: [
|
|
3027
3126
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3028
3127
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3029
3128
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3129
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3030
3130
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3131
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3031
3132
|
],
|
|
3032
3133
|
},
|
|
3033
3134
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3078,13 +3179,15 @@ export const logswapLensAbi = [
|
|
|
3078
3179
|
inputs: [
|
|
3079
3180
|
{
|
|
3080
3181
|
name: 'key',
|
|
3081
|
-
internalType: 'struct
|
|
3182
|
+
internalType: 'struct CPoolKey',
|
|
3082
3183
|
type: 'tuple',
|
|
3083
3184
|
components: [
|
|
3084
3185
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3085
3186
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3086
3187
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3188
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3087
3189
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3190
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3088
3191
|
],
|
|
3089
3192
|
},
|
|
3090
3193
|
],
|
|
@@ -3167,13 +3270,15 @@ export const logswapRouterAbi = [
|
|
|
3167
3270
|
inputs: [
|
|
3168
3271
|
{
|
|
3169
3272
|
name: 'key',
|
|
3170
|
-
internalType: 'struct
|
|
3273
|
+
internalType: 'struct CPoolKey',
|
|
3171
3274
|
type: 'tuple',
|
|
3172
3275
|
components: [
|
|
3173
3276
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3174
3277
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3175
3278
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3279
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3176
3280
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3281
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3177
3282
|
],
|
|
3178
3283
|
},
|
|
3179
3284
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3195,13 +3300,15 @@ export const logswapRouterAbi = [
|
|
|
3195
3300
|
inputs: [
|
|
3196
3301
|
{
|
|
3197
3302
|
name: 'key',
|
|
3198
|
-
internalType: 'struct
|
|
3303
|
+
internalType: 'struct CPoolKey',
|
|
3199
3304
|
type: 'tuple',
|
|
3200
3305
|
components: [
|
|
3201
3306
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3202
3307
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3203
3308
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3309
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3204
3310
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3311
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3205
3312
|
],
|
|
3206
3313
|
},
|
|
3207
3314
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3217,17 +3324,18 @@ export const logswapRouterAbi = [
|
|
|
3217
3324
|
inputs: [
|
|
3218
3325
|
{
|
|
3219
3326
|
name: 'key',
|
|
3220
|
-
internalType: 'struct
|
|
3327
|
+
internalType: 'struct CPoolKey',
|
|
3221
3328
|
type: 'tuple',
|
|
3222
3329
|
components: [
|
|
3223
3330
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3224
3331
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3225
3332
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3333
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3226
3334
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3335
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3227
3336
|
],
|
|
3228
3337
|
},
|
|
3229
3338
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
3230
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3231
3339
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3232
3340
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3233
3341
|
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3253,13 +3361,15 @@ export const logswapRouterAbi = [
|
|
|
3253
3361
|
components: [
|
|
3254
3362
|
{
|
|
3255
3363
|
name: 'key',
|
|
3256
|
-
internalType: 'struct
|
|
3364
|
+
internalType: 'struct CPoolKey',
|
|
3257
3365
|
type: 'tuple',
|
|
3258
3366
|
components: [
|
|
3259
3367
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3260
3368
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3261
3369
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3370
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3262
3371
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3372
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3263
3373
|
],
|
|
3264
3374
|
},
|
|
3265
3375
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3281,13 +3391,15 @@ export const logswapRouterAbi = [
|
|
|
3281
3391
|
components: [
|
|
3282
3392
|
{
|
|
3283
3393
|
name: 'key',
|
|
3284
|
-
internalType: 'struct
|
|
3394
|
+
internalType: 'struct CPoolKey',
|
|
3285
3395
|
type: 'tuple',
|
|
3286
3396
|
components: [
|
|
3287
3397
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3288
3398
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3289
3399
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3400
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3290
3401
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3402
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3291
3403
|
],
|
|
3292
3404
|
},
|
|
3293
3405
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3308,13 +3420,15 @@ export const logswapRouterAbi = [
|
|
|
3308
3420
|
components: [
|
|
3309
3421
|
{
|
|
3310
3422
|
name: 'key',
|
|
3311
|
-
internalType: 'struct
|
|
3423
|
+
internalType: 'struct CPoolKey',
|
|
3312
3424
|
type: 'tuple',
|
|
3313
3425
|
components: [
|
|
3314
3426
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3315
3427
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3316
3428
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3429
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3317
3430
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3431
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3318
3432
|
],
|
|
3319
3433
|
},
|
|
3320
3434
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3342,7 +3456,7 @@ export const logswapRouterAbi = [
|
|
|
3342
3456
|
components: [
|
|
3343
3457
|
{
|
|
3344
3458
|
name: 'key',
|
|
3345
|
-
internalType: 'struct
|
|
3459
|
+
internalType: 'struct CPoolKey',
|
|
3346
3460
|
type: 'tuple',
|
|
3347
3461
|
components: [
|
|
3348
3462
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
@@ -3352,7 +3466,9 @@ export const logswapRouterAbi = [
|
|
|
3352
3466
|
internalType: 'int256',
|
|
3353
3467
|
type: 'int256',
|
|
3354
3468
|
},
|
|
3469
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3355
3470
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3471
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3356
3472
|
],
|
|
3357
3473
|
},
|
|
3358
3474
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3377,13 +3493,15 @@ export const logswapRouterAbi = [
|
|
|
3377
3493
|
components: [
|
|
3378
3494
|
{
|
|
3379
3495
|
name: 'key',
|
|
3380
|
-
internalType: 'struct
|
|
3496
|
+
internalType: 'struct CPoolKey',
|
|
3381
3497
|
type: 'tuple',
|
|
3382
3498
|
components: [
|
|
3383
3499
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3384
3500
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3385
3501
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3502
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3386
3503
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3504
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3387
3505
|
],
|
|
3388
3506
|
},
|
|
3389
3507
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -3406,13 +3524,15 @@ export const logswapRouterAbi = [
|
|
|
3406
3524
|
components: [
|
|
3407
3525
|
{
|
|
3408
3526
|
name: 'key',
|
|
3409
|
-
internalType: 'struct
|
|
3527
|
+
internalType: 'struct CPoolKey',
|
|
3410
3528
|
type: 'tuple',
|
|
3411
3529
|
components: [
|
|
3412
3530
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3413
3531
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3414
3532
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3533
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3415
3534
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3535
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3416
3536
|
],
|
|
3417
3537
|
},
|
|
3418
3538
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3491,13 +3611,15 @@ export const logswapRouterAbi = [
|
|
|
3491
3611
|
inputs: [
|
|
3492
3612
|
{
|
|
3493
3613
|
name: 'key',
|
|
3494
|
-
internalType: 'struct
|
|
3614
|
+
internalType: 'struct CPoolKey',
|
|
3495
3615
|
type: 'tuple',
|
|
3496
3616
|
components: [
|
|
3497
3617
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3498
3618
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3499
3619
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3620
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3500
3621
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3622
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3501
3623
|
],
|
|
3502
3624
|
},
|
|
3503
3625
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3520,13 +3642,15 @@ export const logswapRouterAbi = [
|
|
|
3520
3642
|
inputs: [
|
|
3521
3643
|
{
|
|
3522
3644
|
name: 'key',
|
|
3523
|
-
internalType: 'struct
|
|
3645
|
+
internalType: 'struct CPoolKey',
|
|
3524
3646
|
type: 'tuple',
|
|
3525
3647
|
components: [
|
|
3526
3648
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3527
3649
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3528
3650
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3651
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3529
3652
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3653
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3530
3654
|
],
|
|
3531
3655
|
},
|
|
3532
3656
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3611,13 +3735,15 @@ export const logswapRouterAbi = [
|
|
|
3611
3735
|
inputs: [
|
|
3612
3736
|
{
|
|
3613
3737
|
name: 'key',
|
|
3614
|
-
internalType: 'struct
|
|
3738
|
+
internalType: 'struct CPoolKey',
|
|
3615
3739
|
type: 'tuple',
|
|
3616
3740
|
components: [
|
|
3617
3741
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3618
3742
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3619
3743
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3744
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3620
3745
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3746
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3621
3747
|
],
|
|
3622
3748
|
},
|
|
3623
3749
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3640,13 +3766,15 @@ export const logswapRouterAbi = [
|
|
|
3640
3766
|
components: [
|
|
3641
3767
|
{
|
|
3642
3768
|
name: 'key',
|
|
3643
|
-
internalType: 'struct
|
|
3769
|
+
internalType: 'struct CPoolKey',
|
|
3644
3770
|
type: 'tuple',
|
|
3645
3771
|
components: [
|
|
3646
3772
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3647
3773
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3648
3774
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3775
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3649
3776
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3777
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3650
3778
|
],
|
|
3651
3779
|
},
|
|
3652
3780
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3666,13 +3794,15 @@ export const logswapRouterAbi = [
|
|
|
3666
3794
|
inputs: [
|
|
3667
3795
|
{
|
|
3668
3796
|
name: 'key',
|
|
3669
|
-
internalType: 'struct
|
|
3797
|
+
internalType: 'struct CPoolKey',
|
|
3670
3798
|
type: 'tuple',
|
|
3671
3799
|
components: [
|
|
3672
3800
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3673
3801
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3674
3802
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3803
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3675
3804
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3805
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3676
3806
|
],
|
|
3677
3807
|
},
|
|
3678
3808
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3697,13 +3827,15 @@ export const logswapRouterAbi = [
|
|
|
3697
3827
|
inputs: [
|
|
3698
3828
|
{
|
|
3699
3829
|
name: 'key',
|
|
3700
|
-
internalType: 'struct
|
|
3830
|
+
internalType: 'struct CPoolKey',
|
|
3701
3831
|
type: 'tuple',
|
|
3702
3832
|
components: [
|
|
3703
3833
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3704
3834
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3705
3835
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3836
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3706
3837
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3838
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3707
3839
|
],
|
|
3708
3840
|
},
|
|
3709
3841
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3736,13 +3868,15 @@ export const logswapRouterAbi = [
|
|
|
3736
3868
|
inputs: [
|
|
3737
3869
|
{
|
|
3738
3870
|
name: 'key',
|
|
3739
|
-
internalType: 'struct
|
|
3871
|
+
internalType: 'struct CPoolKey',
|
|
3740
3872
|
type: 'tuple',
|
|
3741
3873
|
components: [
|
|
3742
3874
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3743
3875
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3744
3876
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3877
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3745
3878
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3879
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3746
3880
|
],
|
|
3747
3881
|
},
|
|
3748
3882
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
@@ -3846,25 +3980,18 @@ export const padPolicyAbi = [
|
|
|
3846
3980
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3847
3981
|
stateMutability: 'view',
|
|
3848
3982
|
},
|
|
3849
|
-
{
|
|
3850
|
-
type: 'function',
|
|
3851
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3852
|
-
name: 'creator',
|
|
3853
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3854
|
-
stateMutability: 'view',
|
|
3855
|
-
},
|
|
3856
3983
|
{
|
|
3857
3984
|
type: 'function',
|
|
3858
3985
|
inputs: [],
|
|
3859
|
-
name: '
|
|
3860
|
-
outputs: [{ name: '', internalType: '
|
|
3986
|
+
name: 'cManager',
|
|
3987
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3861
3988
|
stateMutability: 'view',
|
|
3862
3989
|
},
|
|
3863
3990
|
{
|
|
3864
3991
|
type: 'function',
|
|
3865
|
-
inputs: [{ name: '', internalType: '
|
|
3866
|
-
name: '
|
|
3867
|
-
outputs: [{ name: '', internalType: '
|
|
3992
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3993
|
+
name: 'creator',
|
|
3994
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3868
3995
|
stateMutability: 'view',
|
|
3869
3996
|
},
|
|
3870
3997
|
{
|
|
@@ -3881,6 +4008,13 @@ export const padPolicyAbi = [
|
|
|
3881
4008
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3882
4009
|
stateMutability: 'view',
|
|
3883
4010
|
},
|
|
4011
|
+
{
|
|
4012
|
+
type: 'function',
|
|
4013
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4014
|
+
name: 'creatorShareOf',
|
|
4015
|
+
outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
|
|
4016
|
+
stateMutability: 'view',
|
|
4017
|
+
},
|
|
3884
4018
|
{
|
|
3885
4019
|
type: 'function',
|
|
3886
4020
|
inputs: [],
|
|
@@ -3895,6 +4029,23 @@ export const padPolicyAbi = [
|
|
|
3895
4029
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3896
4030
|
stateMutability: 'view',
|
|
3897
4031
|
},
|
|
4032
|
+
{
|
|
4033
|
+
type: 'function',
|
|
4034
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4035
|
+
name: 'incomeTax',
|
|
4036
|
+
outputs: [
|
|
4037
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4038
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4039
|
+
],
|
|
4040
|
+
stateMutability: 'view',
|
|
4041
|
+
},
|
|
4042
|
+
{
|
|
4043
|
+
type: 'function',
|
|
4044
|
+
inputs: [],
|
|
4045
|
+
name: 'incomeTaxRate',
|
|
4046
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4047
|
+
stateMutability: 'view',
|
|
4048
|
+
},
|
|
3898
4049
|
{
|
|
3899
4050
|
type: 'function',
|
|
3900
4051
|
inputs: [],
|
|
@@ -3911,6 +4062,13 @@ export const padPolicyAbi = [
|
|
|
3911
4062
|
],
|
|
3912
4063
|
stateMutability: 'view',
|
|
3913
4064
|
},
|
|
4065
|
+
{
|
|
4066
|
+
type: 'function',
|
|
4067
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4068
|
+
name: 'managerOf',
|
|
4069
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4070
|
+
stateMutability: 'view',
|
|
4071
|
+
},
|
|
3914
4072
|
{
|
|
3915
4073
|
type: 'function',
|
|
3916
4074
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3946,20 +4104,6 @@ export const padPolicyAbi = [
|
|
|
3946
4104
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3947
4105
|
stateMutability: 'view',
|
|
3948
4106
|
},
|
|
3949
|
-
{
|
|
3950
|
-
type: 'function',
|
|
3951
|
-
inputs: [],
|
|
3952
|
-
name: 'mintFeeCurated',
|
|
3953
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3954
|
-
stateMutability: 'view',
|
|
3955
|
-
},
|
|
3956
|
-
{
|
|
3957
|
-
type: 'function',
|
|
3958
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3959
|
-
name: 'mintFeeListed',
|
|
3960
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3961
|
-
stateMutability: 'view',
|
|
3962
|
-
},
|
|
3963
4107
|
{
|
|
3964
4108
|
type: 'function',
|
|
3965
4109
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3967,6 +4111,31 @@ export const padPolicyAbi = [
|
|
|
3967
4111
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3968
4112
|
stateMutability: 'view',
|
|
3969
4113
|
},
|
|
4114
|
+
{
|
|
4115
|
+
type: 'function',
|
|
4116
|
+
inputs: [
|
|
4117
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4118
|
+
{
|
|
4119
|
+
name: '',
|
|
4120
|
+
internalType: 'struct CPoolKey',
|
|
4121
|
+
type: 'tuple',
|
|
4122
|
+
components: [
|
|
4123
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4124
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4125
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4126
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4127
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4128
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4129
|
+
],
|
|
4130
|
+
},
|
|
4131
|
+
],
|
|
4132
|
+
name: 'onCInitialize',
|
|
4133
|
+
outputs: [
|
|
4134
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4135
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4136
|
+
],
|
|
4137
|
+
stateMutability: 'pure',
|
|
4138
|
+
},
|
|
3970
4139
|
{
|
|
3971
4140
|
type: 'function',
|
|
3972
4141
|
inputs: [
|
|
@@ -3978,21 +4147,16 @@ export const padPolicyAbi = [
|
|
|
3978
4147
|
components: [
|
|
3979
4148
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3980
4149
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3981
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3982
4150
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3983
4151
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3984
4152
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3985
4153
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3986
|
-
{ name: '
|
|
4154
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3987
4155
|
],
|
|
3988
4156
|
},
|
|
3989
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3990
4157
|
],
|
|
3991
4158
|
name: 'onInitialize',
|
|
3992
|
-
outputs: [
|
|
3993
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
3994
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3995
|
-
],
|
|
4159
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3996
4160
|
stateMutability: 'nonpayable',
|
|
3997
4161
|
},
|
|
3998
4162
|
{
|
|
@@ -4041,7 +4205,7 @@ export const padPolicyAbi = [
|
|
|
4041
4205
|
components: [
|
|
4042
4206
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4043
4207
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4044
|
-
{ name: '
|
|
4208
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4045
4209
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4046
4210
|
],
|
|
4047
4211
|
},
|
|
@@ -4082,13 +4246,6 @@ export const padPolicyAbi = [
|
|
|
4082
4246
|
outputs: [],
|
|
4083
4247
|
stateMutability: 'nonpayable',
|
|
4084
4248
|
},
|
|
4085
|
-
{
|
|
4086
|
-
type: 'function',
|
|
4087
|
-
inputs: [],
|
|
4088
|
-
name: 'protocolShare',
|
|
4089
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4090
|
-
stateMutability: 'view',
|
|
4091
|
-
},
|
|
4092
4249
|
{
|
|
4093
4250
|
type: 'function',
|
|
4094
4251
|
inputs: [],
|
|
@@ -4105,18 +4262,8 @@ export const padPolicyAbi = [
|
|
|
4105
4262
|
},
|
|
4106
4263
|
{
|
|
4107
4264
|
type: 'function',
|
|
4108
|
-
inputs: [{ name: '
|
|
4109
|
-
name: '
|
|
4110
|
-
outputs: [],
|
|
4111
|
-
stateMutability: 'nonpayable',
|
|
4112
|
-
},
|
|
4113
|
-
{
|
|
4114
|
-
type: 'function',
|
|
4115
|
-
inputs: [
|
|
4116
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4117
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4118
|
-
],
|
|
4119
|
-
name: 'setCreatorListed',
|
|
4265
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4266
|
+
name: 'setCManager',
|
|
4120
4267
|
outputs: [],
|
|
4121
4268
|
stateMutability: 'nonpayable',
|
|
4122
4269
|
},
|
|
@@ -4139,18 +4286,8 @@ export const padPolicyAbi = [
|
|
|
4139
4286
|
},
|
|
4140
4287
|
{
|
|
4141
4288
|
type: 'function',
|
|
4142
|
-
inputs: [{ name: '
|
|
4143
|
-
name: '
|
|
4144
|
-
outputs: [],
|
|
4145
|
-
stateMutability: 'nonpayable',
|
|
4146
|
-
},
|
|
4147
|
-
{
|
|
4148
|
-
type: 'function',
|
|
4149
|
-
inputs: [
|
|
4150
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4151
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4152
|
-
],
|
|
4153
|
-
name: 'setMintFeeListed',
|
|
4289
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4290
|
+
name: 'setIncomeTaxRate',
|
|
4154
4291
|
outputs: [],
|
|
4155
4292
|
stateMutability: 'nonpayable',
|
|
4156
4293
|
},
|
|
@@ -4184,10 +4321,9 @@ export const padPolicyAbi = [
|
|
|
4184
4321
|
{
|
|
4185
4322
|
type: 'function',
|
|
4186
4323
|
inputs: [
|
|
4187
|
-
{ name: '
|
|
4188
|
-
{ name: '
|
|
4189
|
-
{ name: '
|
|
4190
|
-
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4324
|
+
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
4325
|
+
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4326
|
+
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4191
4327
|
],
|
|
4192
4328
|
name: 'setSchedule',
|
|
4193
4329
|
outputs: [],
|
|
@@ -4205,12 +4341,9 @@ export const padPolicyAbi = [
|
|
|
4205
4341
|
},
|
|
4206
4342
|
{
|
|
4207
4343
|
type: 'function',
|
|
4208
|
-
inputs: [
|
|
4209
|
-
name: '
|
|
4210
|
-
outputs: [
|
|
4211
|
-
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4212
|
-
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4213
|
-
],
|
|
4344
|
+
inputs: [],
|
|
4345
|
+
name: 'sponsor',
|
|
4346
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4214
4347
|
stateMutability: 'view',
|
|
4215
4348
|
},
|
|
4216
4349
|
{
|
|
@@ -4298,23 +4431,14 @@ export const padPolicyAbi = [
|
|
|
4298
4431
|
type: 'event',
|
|
4299
4432
|
anonymous: false,
|
|
4300
4433
|
inputs: [
|
|
4301
|
-
{
|
|
4434
|
+
{
|
|
4435
|
+
name: 'manager',
|
|
4436
|
+
internalType: 'address',
|
|
4437
|
+
type: 'address',
|
|
4438
|
+
indexed: true,
|
|
4439
|
+
},
|
|
4302
4440
|
],
|
|
4303
|
-
name: '
|
|
4304
|
-
},
|
|
4305
|
-
{
|
|
4306
|
-
type: 'event',
|
|
4307
|
-
anonymous: false,
|
|
4308
|
-
inputs: [
|
|
4309
|
-
{
|
|
4310
|
-
name: 'creator',
|
|
4311
|
-
internalType: 'address',
|
|
4312
|
-
type: 'address',
|
|
4313
|
-
indexed: true,
|
|
4314
|
-
},
|
|
4315
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4316
|
-
],
|
|
4317
|
-
name: 'CreatorListed',
|
|
4441
|
+
name: 'CManagerSet',
|
|
4318
4442
|
},
|
|
4319
4443
|
{
|
|
4320
4444
|
type: 'event',
|
|
@@ -4344,31 +4468,27 @@ export const padPolicyAbi = [
|
|
|
4344
4468
|
indexed: true,
|
|
4345
4469
|
},
|
|
4346
4470
|
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4347
|
-
{
|
|
4471
|
+
{
|
|
4472
|
+
name: 'income',
|
|
4473
|
+
internalType: 'uint256',
|
|
4474
|
+
type: 'uint256',
|
|
4475
|
+
indexed: false,
|
|
4476
|
+
},
|
|
4348
4477
|
],
|
|
4349
4478
|
name: 'Graduated',
|
|
4350
4479
|
},
|
|
4351
|
-
{
|
|
4352
|
-
type: 'event',
|
|
4353
|
-
anonymous: false,
|
|
4354
|
-
inputs: [
|
|
4355
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4356
|
-
],
|
|
4357
|
-
name: 'MintFeeCuratedSet',
|
|
4358
|
-
},
|
|
4359
4480
|
{
|
|
4360
4481
|
type: 'event',
|
|
4361
4482
|
anonymous: false,
|
|
4362
4483
|
inputs: [
|
|
4363
4484
|
{
|
|
4364
|
-
name: '
|
|
4485
|
+
name: 'rate',
|
|
4365
4486
|
internalType: 'uint256',
|
|
4366
4487
|
type: 'uint256',
|
|
4367
|
-
indexed:
|
|
4488
|
+
indexed: false,
|
|
4368
4489
|
},
|
|
4369
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4370
4490
|
],
|
|
4371
|
-
name: '
|
|
4491
|
+
name: 'IncomeTaxRateSet',
|
|
4372
4492
|
},
|
|
4373
4493
|
{
|
|
4374
4494
|
type: 'event',
|
|
@@ -4421,12 +4541,6 @@ export const padPolicyAbi = [
|
|
|
4421
4541
|
type: 'uint256',
|
|
4422
4542
|
indexed: false,
|
|
4423
4543
|
},
|
|
4424
|
-
{
|
|
4425
|
-
name: 'protocolShare',
|
|
4426
|
-
internalType: 'uint256',
|
|
4427
|
-
type: 'uint256',
|
|
4428
|
-
indexed: false,
|
|
4429
|
-
},
|
|
4430
4544
|
{
|
|
4431
4545
|
name: 'creatorShareMin',
|
|
4432
4546
|
internalType: 'uint256',
|
|
@@ -4458,12 +4572,6 @@ export const padPolicyAbi = [
|
|
|
4458
4572
|
type: 'uint256',
|
|
4459
4573
|
indexed: false,
|
|
4460
4574
|
},
|
|
4461
|
-
{
|
|
4462
|
-
name: 'protocolShare',
|
|
4463
|
-
internalType: 'uint256',
|
|
4464
|
-
type: 'uint256',
|
|
4465
|
-
indexed: false,
|
|
4466
|
-
},
|
|
4467
4575
|
],
|
|
4468
4576
|
name: 'SplitSet',
|
|
4469
4577
|
},
|
|
@@ -4488,21 +4596,11 @@ export const padPolicyAbi = [
|
|
|
4488
4596
|
},
|
|
4489
4597
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4490
4598
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4491
|
-
{
|
|
4492
|
-
type: 'error',
|
|
4493
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4494
|
-
name: 'CreatorNotListed',
|
|
4495
|
-
},
|
|
4496
4599
|
{
|
|
4497
4600
|
type: 'error',
|
|
4498
4601
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4499
4602
|
name: 'FeeNotListed',
|
|
4500
4603
|
},
|
|
4501
|
-
{
|
|
4502
|
-
type: 'error',
|
|
4503
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
4504
|
-
name: 'MintFeeNotListed',
|
|
4505
|
-
},
|
|
4506
4604
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4507
4605
|
{
|
|
4508
4606
|
type: 'error',
|
|
@@ -4514,6 +4612,7 @@ export const padPolicyAbi = [
|
|
|
4514
4612
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4515
4613
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4516
4614
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4615
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4517
4616
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4518
4617
|
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4519
4618
|
{
|
|
@@ -4524,6 +4623,7 @@ export const padPolicyAbi = [
|
|
|
4524
4623
|
],
|
|
4525
4624
|
name: 'PadExists',
|
|
4526
4625
|
},
|
|
4626
|
+
{ type: 'error', inputs: [], name: 'PadUncapped' },
|
|
4527
4627
|
{
|
|
4528
4628
|
type: 'error',
|
|
4529
4629
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
@@ -4539,7 +4639,7 @@ export const polPolicyAbi = [
|
|
|
4539
4639
|
type: 'constructor',
|
|
4540
4640
|
inputs: [
|
|
4541
4641
|
{
|
|
4542
|
-
name: '
|
|
4642
|
+
name: 'manager_',
|
|
4543
4643
|
internalType: 'contract FPoolManager',
|
|
4544
4644
|
type: 'address',
|
|
4545
4645
|
},
|
|
@@ -4560,25 +4660,18 @@ export const polPolicyAbi = [
|
|
|
4560
4660
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4561
4661
|
stateMutability: 'view',
|
|
4562
4662
|
},
|
|
4563
|
-
{
|
|
4564
|
-
type: 'function',
|
|
4565
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4566
|
-
name: 'creator',
|
|
4567
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4568
|
-
stateMutability: 'view',
|
|
4569
|
-
},
|
|
4570
4663
|
{
|
|
4571
4664
|
type: 'function',
|
|
4572
4665
|
inputs: [],
|
|
4573
|
-
name: '
|
|
4574
|
-
outputs: [{ name: '', internalType: '
|
|
4666
|
+
name: 'cManager',
|
|
4667
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4575
4668
|
stateMutability: 'view',
|
|
4576
4669
|
},
|
|
4577
4670
|
{
|
|
4578
4671
|
type: 'function',
|
|
4579
|
-
inputs: [{ name: '', internalType: '
|
|
4580
|
-
name: '
|
|
4581
|
-
outputs: [{ name: '', internalType: '
|
|
4672
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4673
|
+
name: 'creator',
|
|
4674
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4582
4675
|
stateMutability: 'view',
|
|
4583
4676
|
},
|
|
4584
4677
|
{
|
|
@@ -4595,10 +4688,20 @@ export const polPolicyAbi = [
|
|
|
4595
4688
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4596
4689
|
stateMutability: 'view',
|
|
4597
4690
|
},
|
|
4691
|
+
{
|
|
4692
|
+
type: 'function',
|
|
4693
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4694
|
+
name: 'incomeTax',
|
|
4695
|
+
outputs: [
|
|
4696
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4697
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4698
|
+
],
|
|
4699
|
+
stateMutability: 'view',
|
|
4700
|
+
},
|
|
4598
4701
|
{
|
|
4599
4702
|
type: 'function',
|
|
4600
4703
|
inputs: [],
|
|
4601
|
-
name: '
|
|
4704
|
+
name: 'incomeTaxRate',
|
|
4602
4705
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4603
4706
|
stateMutability: 'view',
|
|
4604
4707
|
},
|
|
@@ -4618,6 +4721,13 @@ export const polPolicyAbi = [
|
|
|
4618
4721
|
],
|
|
4619
4722
|
stateMutability: 'view',
|
|
4620
4723
|
},
|
|
4724
|
+
{
|
|
4725
|
+
type: 'function',
|
|
4726
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4727
|
+
name: 'managerOf',
|
|
4728
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4729
|
+
stateMutability: 'view',
|
|
4730
|
+
},
|
|
4621
4731
|
{
|
|
4622
4732
|
type: 'function',
|
|
4623
4733
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4656,24 +4766,10 @@ export const polPolicyAbi = [
|
|
|
4656
4766
|
{
|
|
4657
4767
|
type: 'function',
|
|
4658
4768
|
inputs: [],
|
|
4659
|
-
name: '
|
|
4769
|
+
name: 'minQuoteRatio',
|
|
4660
4770
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4661
4771
|
stateMutability: 'view',
|
|
4662
4772
|
},
|
|
4663
|
-
{
|
|
4664
|
-
type: 'function',
|
|
4665
|
-
inputs: [],
|
|
4666
|
-
name: 'mintFeeCurated',
|
|
4667
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4668
|
-
stateMutability: 'view',
|
|
4669
|
-
},
|
|
4670
|
-
{
|
|
4671
|
-
type: 'function',
|
|
4672
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4673
|
-
name: 'mintFeeListed',
|
|
4674
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4675
|
-
stateMutability: 'view',
|
|
4676
|
-
},
|
|
4677
4773
|
{
|
|
4678
4774
|
type: 'function',
|
|
4679
4775
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4681,6 +4777,31 @@ export const polPolicyAbi = [
|
|
|
4681
4777
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4682
4778
|
stateMutability: 'view',
|
|
4683
4779
|
},
|
|
4780
|
+
{
|
|
4781
|
+
type: 'function',
|
|
4782
|
+
inputs: [
|
|
4783
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4784
|
+
{
|
|
4785
|
+
name: '',
|
|
4786
|
+
internalType: 'struct CPoolKey',
|
|
4787
|
+
type: 'tuple',
|
|
4788
|
+
components: [
|
|
4789
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4790
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4791
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4792
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4793
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4794
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4795
|
+
],
|
|
4796
|
+
},
|
|
4797
|
+
],
|
|
4798
|
+
name: 'onCInitialize',
|
|
4799
|
+
outputs: [
|
|
4800
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4801
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4802
|
+
],
|
|
4803
|
+
stateMutability: 'pure',
|
|
4804
|
+
},
|
|
4684
4805
|
{
|
|
4685
4806
|
type: 'function',
|
|
4686
4807
|
inputs: [
|
|
@@ -4692,21 +4813,16 @@ export const polPolicyAbi = [
|
|
|
4692
4813
|
components: [
|
|
4693
4814
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4694
4815
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4695
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4696
4816
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4697
4817
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4698
4818
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4699
4819
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4700
|
-
{ name: '
|
|
4820
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4701
4821
|
],
|
|
4702
4822
|
},
|
|
4703
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4704
4823
|
],
|
|
4705
4824
|
name: 'onInitialize',
|
|
4706
|
-
outputs: [
|
|
4707
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4708
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4709
|
-
],
|
|
4825
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4710
4826
|
stateMutability: 'nonpayable',
|
|
4711
4827
|
},
|
|
4712
4828
|
{
|
|
@@ -4755,7 +4871,7 @@ export const polPolicyAbi = [
|
|
|
4755
4871
|
components: [
|
|
4756
4872
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4757
4873
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4758
|
-
{ name: '
|
|
4874
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4759
4875
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4760
4876
|
],
|
|
4761
4877
|
},
|
|
@@ -4795,18 +4911,8 @@ export const polPolicyAbi = [
|
|
|
4795
4911
|
},
|
|
4796
4912
|
{
|
|
4797
4913
|
type: 'function',
|
|
4798
|
-
inputs: [{ name: '
|
|
4799
|
-
name: '
|
|
4800
|
-
outputs: [],
|
|
4801
|
-
stateMutability: 'nonpayable',
|
|
4802
|
-
},
|
|
4803
|
-
{
|
|
4804
|
-
type: 'function',
|
|
4805
|
-
inputs: [
|
|
4806
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4807
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4808
|
-
],
|
|
4809
|
-
name: 'setCreatorListed',
|
|
4914
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4915
|
+
name: 'setCManager',
|
|
4810
4916
|
outputs: [],
|
|
4811
4917
|
stateMutability: 'nonpayable',
|
|
4812
4918
|
},
|
|
@@ -4829,18 +4935,15 @@ export const polPolicyAbi = [
|
|
|
4829
4935
|
},
|
|
4830
4936
|
{
|
|
4831
4937
|
type: 'function',
|
|
4832
|
-
inputs: [{ name: '
|
|
4833
|
-
name: '
|
|
4938
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4939
|
+
name: 'setIncomeTaxRate',
|
|
4834
4940
|
outputs: [],
|
|
4835
4941
|
stateMutability: 'nonpayable',
|
|
4836
4942
|
},
|
|
4837
4943
|
{
|
|
4838
4944
|
type: 'function',
|
|
4839
|
-
inputs: [
|
|
4840
|
-
|
|
4841
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4842
|
-
],
|
|
4843
|
-
name: 'setMintFeeListed',
|
|
4945
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
4946
|
+
name: 'setMinQuoteRatio',
|
|
4844
4947
|
outputs: [],
|
|
4845
4948
|
stateMutability: 'nonpayable',
|
|
4846
4949
|
},
|
|
@@ -4873,13 +4976,10 @@ export const polPolicyAbi = [
|
|
|
4873
4976
|
},
|
|
4874
4977
|
{
|
|
4875
4978
|
type: 'function',
|
|
4876
|
-
inputs: [
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
name: 'setRules',
|
|
4881
|
-
outputs: [],
|
|
4882
|
-
stateMutability: 'nonpayable',
|
|
4979
|
+
inputs: [],
|
|
4980
|
+
name: 'sponsor',
|
|
4981
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4982
|
+
stateMutability: 'view',
|
|
4883
4983
|
},
|
|
4884
4984
|
{
|
|
4885
4985
|
type: 'event',
|
|
@@ -4921,27 +5021,18 @@ export const polPolicyAbi = [
|
|
|
4921
5021
|
],
|
|
4922
5022
|
name: 'AuthoritySet',
|
|
4923
5023
|
},
|
|
4924
|
-
{
|
|
4925
|
-
type: 'event',
|
|
4926
|
-
anonymous: false,
|
|
4927
|
-
inputs: [
|
|
4928
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4929
|
-
],
|
|
4930
|
-
name: 'CreatorCuratedSet',
|
|
4931
|
-
},
|
|
4932
5024
|
{
|
|
4933
5025
|
type: 'event',
|
|
4934
5026
|
anonymous: false,
|
|
4935
5027
|
inputs: [
|
|
4936
5028
|
{
|
|
4937
|
-
name: '
|
|
5029
|
+
name: 'manager',
|
|
4938
5030
|
internalType: 'address',
|
|
4939
5031
|
type: 'address',
|
|
4940
5032
|
indexed: true,
|
|
4941
5033
|
},
|
|
4942
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4943
5034
|
],
|
|
4944
|
-
name: '
|
|
5035
|
+
name: 'CManagerSet',
|
|
4945
5036
|
},
|
|
4946
5037
|
{
|
|
4947
5038
|
type: 'event',
|
|
@@ -4964,23 +5055,27 @@ export const polPolicyAbi = [
|
|
|
4964
5055
|
type: 'event',
|
|
4965
5056
|
anonymous: false,
|
|
4966
5057
|
inputs: [
|
|
4967
|
-
{
|
|
5058
|
+
{
|
|
5059
|
+
name: 'rate',
|
|
5060
|
+
internalType: 'uint256',
|
|
5061
|
+
type: 'uint256',
|
|
5062
|
+
indexed: false,
|
|
5063
|
+
},
|
|
4968
5064
|
],
|
|
4969
|
-
name: '
|
|
5065
|
+
name: 'IncomeTaxRateSet',
|
|
4970
5066
|
},
|
|
4971
5067
|
{
|
|
4972
5068
|
type: 'event',
|
|
4973
5069
|
anonymous: false,
|
|
4974
5070
|
inputs: [
|
|
4975
5071
|
{
|
|
4976
|
-
name: '
|
|
5072
|
+
name: 'ratio',
|
|
4977
5073
|
internalType: 'uint256',
|
|
4978
5074
|
type: 'uint256',
|
|
4979
|
-
indexed:
|
|
5075
|
+
indexed: false,
|
|
4980
5076
|
},
|
|
4981
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4982
5077
|
],
|
|
4983
|
-
name: '
|
|
5078
|
+
name: 'MinQuoteRatioSet',
|
|
4984
5079
|
},
|
|
4985
5080
|
{
|
|
4986
5081
|
type: 'event',
|
|
@@ -5023,47 +5118,19 @@ export const polPolicyAbi = [
|
|
|
5023
5118
|
],
|
|
5024
5119
|
name: 'QuoteListed',
|
|
5025
5120
|
},
|
|
5026
|
-
{
|
|
5027
|
-
type: 'event',
|
|
5028
|
-
anonymous: false,
|
|
5029
|
-
inputs: [
|
|
5030
|
-
{
|
|
5031
|
-
name: 'keepQuote',
|
|
5032
|
-
internalType: 'uint256',
|
|
5033
|
-
type: 'uint256',
|
|
5034
|
-
indexed: false,
|
|
5035
|
-
},
|
|
5036
|
-
{
|
|
5037
|
-
name: 'minQuoteAtSeed',
|
|
5038
|
-
internalType: 'uint256',
|
|
5039
|
-
type: 'uint256',
|
|
5040
|
-
indexed: false,
|
|
5041
|
-
},
|
|
5042
|
-
],
|
|
5043
|
-
name: 'RulesSet',
|
|
5044
|
-
},
|
|
5045
5121
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5046
5122
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5047
|
-
{
|
|
5048
|
-
type: 'error',
|
|
5049
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
5050
|
-
name: 'CreatorNotListed',
|
|
5051
|
-
},
|
|
5052
5123
|
{
|
|
5053
5124
|
type: 'error',
|
|
5054
5125
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5055
5126
|
name: 'FeeNotListed',
|
|
5056
5127
|
},
|
|
5057
|
-
{
|
|
5058
|
-
type: 'error',
|
|
5059
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
5060
|
-
name: 'MintFeeNotListed',
|
|
5061
|
-
},
|
|
5062
5128
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5063
5129
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5064
5130
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5065
5131
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5066
5132
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5133
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5067
5134
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5068
5135
|
{
|
|
5069
5136
|
type: 'error',
|
|
@@ -5091,6 +5158,17 @@ export const policyRegistryAbi = [
|
|
|
5091
5158
|
outputs: [],
|
|
5092
5159
|
stateMutability: 'nonpayable',
|
|
5093
5160
|
},
|
|
5161
|
+
{
|
|
5162
|
+
type: 'function',
|
|
5163
|
+
inputs: [
|
|
5164
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5165
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
5166
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5167
|
+
],
|
|
5168
|
+
name: 'admit',
|
|
5169
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
5170
|
+
stateMutability: 'view',
|
|
5171
|
+
},
|
|
5094
5172
|
{
|
|
5095
5173
|
type: 'function',
|
|
5096
5174
|
inputs: [
|
|
@@ -5101,6 +5179,29 @@ export const policyRegistryAbi = [
|
|
|
5101
5179
|
outputs: [],
|
|
5102
5180
|
stateMutability: 'nonpayable',
|
|
5103
5181
|
},
|
|
5182
|
+
{
|
|
5183
|
+
type: 'function',
|
|
5184
|
+
inputs: [
|
|
5185
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5186
|
+
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
5187
|
+
],
|
|
5188
|
+
name: 'bindSponsor',
|
|
5189
|
+
outputs: [],
|
|
5190
|
+
stateMutability: 'nonpayable',
|
|
5191
|
+
},
|
|
5192
|
+
{
|
|
5193
|
+
type: 'function',
|
|
5194
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5195
|
+
name: 'creationMode',
|
|
5196
|
+
outputs: [
|
|
5197
|
+
{
|
|
5198
|
+
name: '',
|
|
5199
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5200
|
+
type: 'uint8',
|
|
5201
|
+
},
|
|
5202
|
+
],
|
|
5203
|
+
stateMutability: 'view',
|
|
5204
|
+
},
|
|
5104
5205
|
{
|
|
5105
5206
|
type: 'function',
|
|
5106
5207
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5113,6 +5214,23 @@ export const policyRegistryAbi = [
|
|
|
5113
5214
|
],
|
|
5114
5215
|
stateMutability: 'view',
|
|
5115
5216
|
},
|
|
5217
|
+
{
|
|
5218
|
+
type: 'function',
|
|
5219
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5220
|
+
name: 'forwarderTrusted',
|
|
5221
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5222
|
+
stateMutability: 'view',
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
type: 'function',
|
|
5226
|
+
inputs: [
|
|
5227
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5228
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5229
|
+
],
|
|
5230
|
+
name: 'initializerListed',
|
|
5231
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5232
|
+
stateMutability: 'view',
|
|
5233
|
+
},
|
|
5116
5234
|
{
|
|
5117
5235
|
type: 'function',
|
|
5118
5236
|
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
@@ -5145,12 +5263,11 @@ export const policyRegistryAbi = [
|
|
|
5145
5263
|
components: [
|
|
5146
5264
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5147
5265
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5148
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5149
5266
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5150
5267
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5151
5268
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5152
5269
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5153
|
-
{ name: '
|
|
5270
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5154
5271
|
],
|
|
5155
5272
|
},
|
|
5156
5273
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -5159,6 +5276,42 @@ export const policyRegistryAbi = [
|
|
|
5159
5276
|
outputs: [],
|
|
5160
5277
|
stateMutability: 'nonpayable',
|
|
5161
5278
|
},
|
|
5279
|
+
{
|
|
5280
|
+
type: 'function',
|
|
5281
|
+
inputs: [
|
|
5282
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
5283
|
+
{
|
|
5284
|
+
name: 'key',
|
|
5285
|
+
internalType: 'struct FPoolKey',
|
|
5286
|
+
type: 'tuple',
|
|
5287
|
+
components: [
|
|
5288
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5289
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5290
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5291
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5292
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5293
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5294
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5295
|
+
],
|
|
5296
|
+
},
|
|
5297
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
5298
|
+
{
|
|
5299
|
+
name: 'permissions',
|
|
5300
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5301
|
+
type: 'tuple',
|
|
5302
|
+
components: [
|
|
5303
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5304
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5305
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5306
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5307
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5308
|
+
],
|
|
5309
|
+
},
|
|
5310
|
+
],
|
|
5311
|
+
name: 'migratePrivate',
|
|
5312
|
+
outputs: [],
|
|
5313
|
+
stateMutability: 'nonpayable',
|
|
5314
|
+
},
|
|
5162
5315
|
{
|
|
5163
5316
|
type: 'function',
|
|
5164
5317
|
inputs: [],
|
|
@@ -5190,20 +5343,62 @@ export const policyRegistryAbi = [
|
|
|
5190
5343
|
{
|
|
5191
5344
|
type: 'function',
|
|
5192
5345
|
inputs: [
|
|
5193
|
-
{ name: '
|
|
5194
|
-
{
|
|
5346
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5347
|
+
{
|
|
5348
|
+
name: 'mode',
|
|
5349
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5350
|
+
type: 'uint8',
|
|
5351
|
+
},
|
|
5195
5352
|
],
|
|
5196
|
-
name: '
|
|
5353
|
+
name: 'setCreationMode',
|
|
5197
5354
|
outputs: [],
|
|
5198
5355
|
stateMutability: 'nonpayable',
|
|
5199
5356
|
},
|
|
5200
5357
|
{
|
|
5201
5358
|
type: 'function',
|
|
5202
|
-
inputs: [
|
|
5203
|
-
|
|
5359
|
+
inputs: [
|
|
5360
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
5361
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
5362
|
+
],
|
|
5363
|
+
name: 'setForwarderTrusted',
|
|
5364
|
+
outputs: [],
|
|
5365
|
+
stateMutability: 'nonpayable',
|
|
5366
|
+
},
|
|
5367
|
+
{
|
|
5368
|
+
type: 'function',
|
|
5369
|
+
inputs: [
|
|
5370
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5371
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5372
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool' },
|
|
5373
|
+
],
|
|
5374
|
+
name: 'setInitializerListed',
|
|
5375
|
+
outputs: [],
|
|
5376
|
+
stateMutability: 'nonpayable',
|
|
5377
|
+
},
|
|
5378
|
+
{
|
|
5379
|
+
type: 'function',
|
|
5380
|
+
inputs: [
|
|
5381
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5382
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
5383
|
+
],
|
|
5384
|
+
name: 'setSponsorName',
|
|
5385
|
+
outputs: [],
|
|
5386
|
+
stateMutability: 'nonpayable',
|
|
5387
|
+
},
|
|
5388
|
+
{
|
|
5389
|
+
type: 'function',
|
|
5390
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5391
|
+
name: 'sponsorName',
|
|
5204
5392
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5205
5393
|
stateMutability: 'view',
|
|
5206
5394
|
},
|
|
5395
|
+
{
|
|
5396
|
+
type: 'function',
|
|
5397
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5398
|
+
name: 'sponsorOf',
|
|
5399
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5400
|
+
stateMutability: 'view',
|
|
5401
|
+
},
|
|
5207
5402
|
{
|
|
5208
5403
|
type: 'function',
|
|
5209
5404
|
inputs: [
|
|
@@ -5233,6 +5428,54 @@ export const policyRegistryAbi = [
|
|
|
5233
5428
|
],
|
|
5234
5429
|
name: 'Approved',
|
|
5235
5430
|
},
|
|
5431
|
+
{
|
|
5432
|
+
type: 'event',
|
|
5433
|
+
anonymous: false,
|
|
5434
|
+
inputs: [
|
|
5435
|
+
{
|
|
5436
|
+
name: 'policy',
|
|
5437
|
+
internalType: 'address',
|
|
5438
|
+
type: 'address',
|
|
5439
|
+
indexed: true,
|
|
5440
|
+
},
|
|
5441
|
+
{
|
|
5442
|
+
name: 'mode',
|
|
5443
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5444
|
+
type: 'uint8',
|
|
5445
|
+
indexed: false,
|
|
5446
|
+
},
|
|
5447
|
+
],
|
|
5448
|
+
name: 'CreationModeSet',
|
|
5449
|
+
},
|
|
5450
|
+
{
|
|
5451
|
+
type: 'event',
|
|
5452
|
+
anonymous: false,
|
|
5453
|
+
inputs: [
|
|
5454
|
+
{
|
|
5455
|
+
name: 'forwarder',
|
|
5456
|
+
internalType: 'address',
|
|
5457
|
+
type: 'address',
|
|
5458
|
+
indexed: true,
|
|
5459
|
+
},
|
|
5460
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
5461
|
+
],
|
|
5462
|
+
name: 'ForwarderTrusted',
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
type: 'event',
|
|
5466
|
+
anonymous: false,
|
|
5467
|
+
inputs: [
|
|
5468
|
+
{
|
|
5469
|
+
name: 'policy',
|
|
5470
|
+
internalType: 'address',
|
|
5471
|
+
type: 'address',
|
|
5472
|
+
indexed: true,
|
|
5473
|
+
},
|
|
5474
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5475
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5476
|
+
],
|
|
5477
|
+
name: 'InitializerListed',
|
|
5478
|
+
},
|
|
5236
5479
|
{
|
|
5237
5480
|
type: 'event',
|
|
5238
5481
|
anonymous: false,
|
|
@@ -5306,6 +5549,25 @@ export const policyRegistryAbi = [
|
|
|
5306
5549
|
],
|
|
5307
5550
|
name: 'Revoked',
|
|
5308
5551
|
},
|
|
5552
|
+
{
|
|
5553
|
+
type: 'event',
|
|
5554
|
+
anonymous: false,
|
|
5555
|
+
inputs: [
|
|
5556
|
+
{
|
|
5557
|
+
name: 'policy',
|
|
5558
|
+
internalType: 'address',
|
|
5559
|
+
type: 'address',
|
|
5560
|
+
indexed: true,
|
|
5561
|
+
},
|
|
5562
|
+
{
|
|
5563
|
+
name: 'sponsor',
|
|
5564
|
+
internalType: 'address',
|
|
5565
|
+
type: 'address',
|
|
5566
|
+
indexed: true,
|
|
5567
|
+
},
|
|
5568
|
+
],
|
|
5569
|
+
name: 'SponsorBound',
|
|
5570
|
+
},
|
|
5309
5571
|
{
|
|
5310
5572
|
type: 'event',
|
|
5311
5573
|
anonymous: false,
|
|
@@ -5340,12 +5602,16 @@ export const policyRegistryAbi = [
|
|
|
5340
5602
|
name: 'SunsetSet',
|
|
5341
5603
|
},
|
|
5342
5604
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
5605
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
5606
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
5343
5607
|
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
5344
5608
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5345
5609
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5346
5610
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5347
5611
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5612
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
5348
5613
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5614
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
5349
5615
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5350
5616
|
];
|
|
5351
5617
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -5384,23 +5650,6 @@ export const privatePolicyAbi = [
|
|
|
5384
5650
|
outputs: [],
|
|
5385
5651
|
stateMutability: 'nonpayable',
|
|
5386
5652
|
},
|
|
5387
|
-
{
|
|
5388
|
-
type: 'function',
|
|
5389
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5390
|
-
name: 'acceptOperator',
|
|
5391
|
-
outputs: [],
|
|
5392
|
-
stateMutability: 'nonpayable',
|
|
5393
|
-
},
|
|
5394
|
-
{
|
|
5395
|
-
type: 'function',
|
|
5396
|
-
inputs: [
|
|
5397
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5398
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5399
|
-
],
|
|
5400
|
-
name: 'appointOperator',
|
|
5401
|
-
outputs: [],
|
|
5402
|
-
stateMutability: 'nonpayable',
|
|
5403
|
-
},
|
|
5404
5653
|
{
|
|
5405
5654
|
type: 'function',
|
|
5406
5655
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5410,23 +5659,37 @@ export const privatePolicyAbi = [
|
|
|
5410
5659
|
},
|
|
5411
5660
|
{
|
|
5412
5661
|
type: 'function',
|
|
5413
|
-
inputs: [
|
|
5414
|
-
name: '
|
|
5662
|
+
inputs: [],
|
|
5663
|
+
name: 'cManager',
|
|
5415
5664
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5416
5665
|
stateMutability: 'view',
|
|
5417
5666
|
},
|
|
5418
5667
|
{
|
|
5419
5668
|
type: 'function',
|
|
5420
|
-
inputs: [
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5669
|
+
inputs: [
|
|
5670
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5671
|
+
{
|
|
5672
|
+
name: 'permissions',
|
|
5673
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5674
|
+
type: 'tuple',
|
|
5675
|
+
components: [
|
|
5676
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5677
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5678
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5679
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5680
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5681
|
+
],
|
|
5682
|
+
},
|
|
5683
|
+
],
|
|
5684
|
+
name: 'configureMigration',
|
|
5685
|
+
outputs: [],
|
|
5686
|
+
stateMutability: 'nonpayable',
|
|
5424
5687
|
},
|
|
5425
5688
|
{
|
|
5426
5689
|
type: 'function',
|
|
5427
|
-
inputs: [{ name: '', internalType: '
|
|
5428
|
-
name: '
|
|
5429
|
-
outputs: [{ name: '', internalType: '
|
|
5690
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5691
|
+
name: 'creator',
|
|
5692
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5430
5693
|
stateMutability: 'view',
|
|
5431
5694
|
},
|
|
5432
5695
|
{
|
|
@@ -5453,8 +5716,11 @@ export const privatePolicyAbi = [
|
|
|
5453
5716
|
{
|
|
5454
5717
|
type: 'function',
|
|
5455
5718
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5456
|
-
name: '
|
|
5457
|
-
outputs: [
|
|
5719
|
+
name: 'incomeTax',
|
|
5720
|
+
outputs: [
|
|
5721
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5722
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5723
|
+
],
|
|
5458
5724
|
stateMutability: 'view',
|
|
5459
5725
|
},
|
|
5460
5726
|
{
|
|
@@ -5510,6 +5776,13 @@ export const privatePolicyAbi = [
|
|
|
5510
5776
|
],
|
|
5511
5777
|
stateMutability: 'view',
|
|
5512
5778
|
},
|
|
5779
|
+
{
|
|
5780
|
+
type: 'function',
|
|
5781
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5782
|
+
name: 'managerOf',
|
|
5783
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5784
|
+
stateMutability: 'view',
|
|
5785
|
+
},
|
|
5513
5786
|
{
|
|
5514
5787
|
type: 'function',
|
|
5515
5788
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5545,20 +5818,6 @@ export const privatePolicyAbi = [
|
|
|
5545
5818
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
5546
5819
|
stateMutability: 'view',
|
|
5547
5820
|
},
|
|
5548
|
-
{
|
|
5549
|
-
type: 'function',
|
|
5550
|
-
inputs: [],
|
|
5551
|
-
name: 'mintFeeCurated',
|
|
5552
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5553
|
-
stateMutability: 'view',
|
|
5554
|
-
},
|
|
5555
|
-
{
|
|
5556
|
-
type: 'function',
|
|
5557
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5558
|
-
name: 'mintFeeListed',
|
|
5559
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5560
|
-
stateMutability: 'view',
|
|
5561
|
-
},
|
|
5562
5821
|
{
|
|
5563
5822
|
type: 'function',
|
|
5564
5823
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5566,6 +5825,31 @@ export const privatePolicyAbi = [
|
|
|
5566
5825
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5567
5826
|
stateMutability: 'view',
|
|
5568
5827
|
},
|
|
5828
|
+
{
|
|
5829
|
+
type: 'function',
|
|
5830
|
+
inputs: [
|
|
5831
|
+
{ name: 'initializer', internalType: 'address', type: 'address' },
|
|
5832
|
+
{
|
|
5833
|
+
name: 'key',
|
|
5834
|
+
internalType: 'struct CPoolKey',
|
|
5835
|
+
type: 'tuple',
|
|
5836
|
+
components: [
|
|
5837
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5838
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5839
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
5840
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5841
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5842
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5843
|
+
],
|
|
5844
|
+
},
|
|
5845
|
+
],
|
|
5846
|
+
name: 'onCInitialize',
|
|
5847
|
+
outputs: [
|
|
5848
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5849
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5850
|
+
],
|
|
5851
|
+
stateMutability: 'nonpayable',
|
|
5852
|
+
},
|
|
5569
5853
|
{
|
|
5570
5854
|
type: 'function',
|
|
5571
5855
|
inputs: [
|
|
@@ -5577,21 +5861,16 @@ export const privatePolicyAbi = [
|
|
|
5577
5861
|
components: [
|
|
5578
5862
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5579
5863
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5580
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5581
5864
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5582
5865
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5583
5866
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5584
5867
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5585
|
-
{ name: '
|
|
5868
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5586
5869
|
],
|
|
5587
5870
|
},
|
|
5588
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5589
5871
|
],
|
|
5590
5872
|
name: 'onInitialize',
|
|
5591
|
-
outputs: [
|
|
5592
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5593
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5594
|
-
],
|
|
5873
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
5595
5874
|
stateMutability: 'nonpayable',
|
|
5596
5875
|
},
|
|
5597
5876
|
{
|
|
@@ -5640,7 +5919,7 @@ export const privatePolicyAbi = [
|
|
|
5640
5919
|
components: [
|
|
5641
5920
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5642
5921
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5643
|
-
{ name: '
|
|
5922
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5644
5923
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5645
5924
|
],
|
|
5646
5925
|
},
|
|
@@ -5650,28 +5929,31 @@ export const privatePolicyAbi = [
|
|
|
5650
5929
|
{
|
|
5651
5930
|
type: 'function',
|
|
5652
5931
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5653
|
-
name: '
|
|
5932
|
+
name: 'pendingAuthority',
|
|
5654
5933
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5655
5934
|
stateMutability: 'view',
|
|
5656
5935
|
},
|
|
5657
5936
|
{
|
|
5658
5937
|
type: 'function',
|
|
5659
5938
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5660
|
-
name: '
|
|
5661
|
-
outputs: [
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5939
|
+
name: 'permissionsOf',
|
|
5940
|
+
outputs: [
|
|
5941
|
+
{
|
|
5942
|
+
name: 'mode',
|
|
5943
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5944
|
+
type: 'uint8',
|
|
5945
|
+
},
|
|
5946
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5947
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5948
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
5949
|
+
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
5950
|
+
],
|
|
5669
5951
|
stateMutability: 'view',
|
|
5670
5952
|
},
|
|
5671
5953
|
{
|
|
5672
5954
|
type: 'function',
|
|
5673
5955
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5674
|
-
name: '
|
|
5956
|
+
name: 'poolOperator',
|
|
5675
5957
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5676
5958
|
stateMutability: 'view',
|
|
5677
5959
|
},
|
|
@@ -5701,18 +5983,8 @@ export const privatePolicyAbi = [
|
|
|
5701
5983
|
},
|
|
5702
5984
|
{
|
|
5703
5985
|
type: 'function',
|
|
5704
|
-
inputs: [{ name: '
|
|
5705
|
-
name: '
|
|
5706
|
-
outputs: [],
|
|
5707
|
-
stateMutability: 'nonpayable',
|
|
5708
|
-
},
|
|
5709
|
-
{
|
|
5710
|
-
type: 'function',
|
|
5711
|
-
inputs: [
|
|
5712
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5713
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5714
|
-
],
|
|
5715
|
-
name: 'setCreatorListed',
|
|
5986
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
5987
|
+
name: 'setCManager',
|
|
5716
5988
|
outputs: [],
|
|
5717
5989
|
stateMutability: 'nonpayable',
|
|
5718
5990
|
},
|
|
@@ -5737,27 +6009,20 @@ export const privatePolicyAbi = [
|
|
|
5737
6009
|
type: 'function',
|
|
5738
6010
|
inputs: [
|
|
5739
6011
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5740
|
-
{ name: '
|
|
5741
|
-
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
6012
|
+
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
5742
6013
|
],
|
|
5743
|
-
name: '
|
|
5744
|
-
outputs: [],
|
|
5745
|
-
stateMutability: 'nonpayable',
|
|
5746
|
-
},
|
|
5747
|
-
{
|
|
5748
|
-
type: 'function',
|
|
5749
|
-
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5750
|
-
name: 'setMintFeeCurated',
|
|
6014
|
+
name: 'setMintGate',
|
|
5751
6015
|
outputs: [],
|
|
5752
6016
|
stateMutability: 'nonpayable',
|
|
5753
6017
|
},
|
|
5754
6018
|
{
|
|
5755
6019
|
type: 'function',
|
|
5756
6020
|
inputs: [
|
|
5757
|
-
{ name: '
|
|
5758
|
-
{ name: '
|
|
6021
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6022
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
6023
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
5759
6024
|
],
|
|
5760
|
-
name: '
|
|
6025
|
+
name: 'setMinters',
|
|
5761
6026
|
outputs: [],
|
|
5762
6027
|
stateMutability: 'nonpayable',
|
|
5763
6028
|
},
|
|
@@ -5765,10 +6030,9 @@ export const privatePolicyAbi = [
|
|
|
5765
6030
|
type: 'function',
|
|
5766
6031
|
inputs: [
|
|
5767
6032
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5768
|
-
{ name: '
|
|
5769
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
6033
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5770
6034
|
],
|
|
5771
|
-
name: '
|
|
6035
|
+
name: 'setName',
|
|
5772
6036
|
outputs: [],
|
|
5773
6037
|
stateMutability: 'nonpayable',
|
|
5774
6038
|
},
|
|
@@ -5776,9 +6040,9 @@ export const privatePolicyAbi = [
|
|
|
5776
6040
|
type: 'function',
|
|
5777
6041
|
inputs: [
|
|
5778
6042
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5779
|
-
{ name: '
|
|
6043
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5780
6044
|
],
|
|
5781
|
-
name: '
|
|
6045
|
+
name: 'setPoolOperator',
|
|
5782
6046
|
outputs: [],
|
|
5783
6047
|
stateMutability: 'nonpayable',
|
|
5784
6048
|
},
|
|
@@ -5799,6 +6063,21 @@ export const privatePolicyAbi = [
|
|
|
5799
6063
|
outputs: [],
|
|
5800
6064
|
stateMutability: 'nonpayable',
|
|
5801
6065
|
},
|
|
6066
|
+
{
|
|
6067
|
+
type: 'function',
|
|
6068
|
+
inputs: [
|
|
6069
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6070
|
+
{
|
|
6071
|
+
name: 'mode',
|
|
6072
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6073
|
+
type: 'uint8',
|
|
6074
|
+
},
|
|
6075
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6076
|
+
],
|
|
6077
|
+
name: 'setSwapMode',
|
|
6078
|
+
outputs: [],
|
|
6079
|
+
stateMutability: 'nonpayable',
|
|
6080
|
+
},
|
|
5802
6081
|
{
|
|
5803
6082
|
type: 'function',
|
|
5804
6083
|
inputs: [
|
|
@@ -5810,6 +6089,27 @@ export const privatePolicyAbi = [
|
|
|
5810
6089
|
outputs: [],
|
|
5811
6090
|
stateMutability: 'nonpayable',
|
|
5812
6091
|
},
|
|
6092
|
+
{
|
|
6093
|
+
type: 'function',
|
|
6094
|
+
inputs: [],
|
|
6095
|
+
name: 'sponsor',
|
|
6096
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6097
|
+
stateMutability: 'view',
|
|
6098
|
+
},
|
|
6099
|
+
{
|
|
6100
|
+
type: 'function',
|
|
6101
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6102
|
+
name: 'swapPermission',
|
|
6103
|
+
outputs: [
|
|
6104
|
+
{
|
|
6105
|
+
name: 'mode',
|
|
6106
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6107
|
+
type: 'uint8',
|
|
6108
|
+
},
|
|
6109
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6110
|
+
],
|
|
6111
|
+
stateMutability: 'view',
|
|
6112
|
+
},
|
|
5813
6113
|
{
|
|
5814
6114
|
type: 'event',
|
|
5815
6115
|
anonymous: false,
|
|
@@ -5850,27 +6150,18 @@ export const privatePolicyAbi = [
|
|
|
5850
6150
|
],
|
|
5851
6151
|
name: 'AuthoritySet',
|
|
5852
6152
|
},
|
|
5853
|
-
{
|
|
5854
|
-
type: 'event',
|
|
5855
|
-
anonymous: false,
|
|
5856
|
-
inputs: [
|
|
5857
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5858
|
-
],
|
|
5859
|
-
name: 'CreatorCuratedSet',
|
|
5860
|
-
},
|
|
5861
6153
|
{
|
|
5862
6154
|
type: 'event',
|
|
5863
6155
|
anonymous: false,
|
|
5864
6156
|
inputs: [
|
|
5865
6157
|
{
|
|
5866
|
-
name: '
|
|
6158
|
+
name: 'manager',
|
|
5867
6159
|
internalType: 'address',
|
|
5868
6160
|
type: 'address',
|
|
5869
6161
|
indexed: true,
|
|
5870
6162
|
},
|
|
5871
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5872
6163
|
],
|
|
5873
|
-
name: '
|
|
6164
|
+
name: 'CManagerSet',
|
|
5874
6165
|
},
|
|
5875
6166
|
{
|
|
5876
6167
|
type: 'event',
|
|
@@ -5894,59 +6185,22 @@ export const privatePolicyAbi = [
|
|
|
5894
6185
|
anonymous: false,
|
|
5895
6186
|
inputs: [
|
|
5896
6187
|
{
|
|
5897
|
-
name: 'poolId',
|
|
5898
|
-
internalType: 'bytes32',
|
|
5899
|
-
type: 'bytes32',
|
|
5900
|
-
indexed: true,
|
|
5901
|
-
},
|
|
5902
|
-
{
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
},
|
|
5907
|
-
{
|
|
5908
|
-
type: 'event',
|
|
5909
|
-
anonymous: false,
|
|
5910
|
-
inputs: [
|
|
5911
|
-
{
|
|
5912
|
-
name: 'poolId',
|
|
5913
|
-
internalType: 'bytes32',
|
|
5914
|
-
type: 'bytes32',
|
|
5915
|
-
indexed: true,
|
|
5916
|
-
},
|
|
5917
|
-
{
|
|
5918
|
-
name: 'authority',
|
|
5919
|
-
internalType: 'address',
|
|
5920
|
-
type: 'address',
|
|
5921
|
-
indexed: true,
|
|
5922
|
-
},
|
|
5923
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5924
|
-
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5925
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5926
|
-
],
|
|
5927
|
-
name: 'Listed',
|
|
5928
|
-
},
|
|
5929
|
-
{
|
|
5930
|
-
type: 'event',
|
|
5931
|
-
anonymous: false,
|
|
5932
|
-
inputs: [
|
|
5933
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5934
|
-
],
|
|
5935
|
-
name: 'MintFeeCuratedSet',
|
|
5936
|
-
},
|
|
5937
|
-
{
|
|
5938
|
-
type: 'event',
|
|
5939
|
-
anonymous: false,
|
|
5940
|
-
inputs: [
|
|
5941
|
-
{
|
|
5942
|
-
name: 'mintFee',
|
|
5943
|
-
internalType: 'uint256',
|
|
5944
|
-
type: 'uint256',
|
|
6188
|
+
name: 'poolId',
|
|
6189
|
+
internalType: 'bytes32',
|
|
6190
|
+
type: 'bytes32',
|
|
6191
|
+
indexed: true,
|
|
6192
|
+
},
|
|
6193
|
+
{
|
|
6194
|
+
name: 'authority',
|
|
6195
|
+
internalType: 'address',
|
|
6196
|
+
type: 'address',
|
|
5945
6197
|
indexed: true,
|
|
5946
6198
|
},
|
|
6199
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
6200
|
+
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5947
6201
|
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5948
6202
|
],
|
|
5949
|
-
name: '
|
|
6203
|
+
name: 'Listed',
|
|
5950
6204
|
},
|
|
5951
6205
|
{
|
|
5952
6206
|
type: 'event',
|
|
@@ -5958,14 +6212,9 @@ export const privatePolicyAbi = [
|
|
|
5958
6212
|
type: 'bytes32',
|
|
5959
6213
|
indexed: true,
|
|
5960
6214
|
},
|
|
5961
|
-
{
|
|
5962
|
-
name: 'name',
|
|
5963
|
-
internalType: 'bytes32',
|
|
5964
|
-
type: 'bytes32',
|
|
5965
|
-
indexed: false,
|
|
5966
|
-
},
|
|
6215
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5967
6216
|
],
|
|
5968
|
-
name: '
|
|
6217
|
+
name: 'MintGateSet',
|
|
5969
6218
|
},
|
|
5970
6219
|
{
|
|
5971
6220
|
type: 'event',
|
|
@@ -5978,19 +6227,13 @@ export const privatePolicyAbi = [
|
|
|
5978
6227
|
indexed: true,
|
|
5979
6228
|
},
|
|
5980
6229
|
{
|
|
5981
|
-
name: '
|
|
5982
|
-
internalType: '
|
|
5983
|
-
type: '
|
|
5984
|
-
indexed:
|
|
5985
|
-
},
|
|
5986
|
-
{
|
|
5987
|
-
name: 'proposed',
|
|
5988
|
-
internalType: 'address',
|
|
5989
|
-
type: 'address',
|
|
5990
|
-
indexed: true,
|
|
6230
|
+
name: 'name',
|
|
6231
|
+
internalType: 'bytes32',
|
|
6232
|
+
type: 'bytes32',
|
|
6233
|
+
indexed: false,
|
|
5991
6234
|
},
|
|
5992
6235
|
],
|
|
5993
|
-
name: '
|
|
6236
|
+
name: 'NameSet',
|
|
5994
6237
|
},
|
|
5995
6238
|
{
|
|
5996
6239
|
type: 'event',
|
|
@@ -6005,7 +6248,7 @@ export const privatePolicyAbi = [
|
|
|
6005
6248
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
6006
6249
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
6007
6250
|
],
|
|
6008
|
-
name: '
|
|
6251
|
+
name: 'PoolOperatorSet',
|
|
6009
6252
|
},
|
|
6010
6253
|
{
|
|
6011
6254
|
type: 'event',
|
|
@@ -6029,29 +6272,46 @@ export const privatePolicyAbi = [
|
|
|
6029
6272
|
],
|
|
6030
6273
|
name: 'QuoteListed',
|
|
6031
6274
|
},
|
|
6032
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6033
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6034
6275
|
{
|
|
6035
|
-
type: '
|
|
6036
|
-
|
|
6037
|
-
|
|
6276
|
+
type: 'event',
|
|
6277
|
+
anonymous: false,
|
|
6278
|
+
inputs: [
|
|
6279
|
+
{
|
|
6280
|
+
name: 'poolId',
|
|
6281
|
+
internalType: 'bytes32',
|
|
6282
|
+
type: 'bytes32',
|
|
6283
|
+
indexed: true,
|
|
6284
|
+
},
|
|
6285
|
+
{
|
|
6286
|
+
name: 'mode',
|
|
6287
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6288
|
+
type: 'uint8',
|
|
6289
|
+
indexed: false,
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
name: 'executor',
|
|
6293
|
+
internalType: 'address',
|
|
6294
|
+
type: 'address',
|
|
6295
|
+
indexed: true,
|
|
6296
|
+
},
|
|
6297
|
+
],
|
|
6298
|
+
name: 'SwapModeSet',
|
|
6038
6299
|
},
|
|
6300
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6301
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6302
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
6039
6303
|
{
|
|
6040
6304
|
type: 'error',
|
|
6041
6305
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
6042
6306
|
name: 'FeeNotListed',
|
|
6043
6307
|
},
|
|
6044
|
-
{
|
|
6045
|
-
type: 'error',
|
|
6046
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
6047
|
-
name: 'MintFeeNotListed',
|
|
6048
|
-
},
|
|
6308
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
6049
6309
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6050
6310
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6051
6311
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6052
6312
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6053
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
6054
6313
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6314
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6055
6315
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6056
6316
|
{
|
|
6057
6317
|
type: 'error',
|
|
@@ -6122,27 +6382,6 @@ export const publicPolicyAbi = [
|
|
|
6122
6382
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6123
6383
|
stateMutability: 'view',
|
|
6124
6384
|
},
|
|
6125
|
-
{
|
|
6126
|
-
type: 'function',
|
|
6127
|
-
inputs: [],
|
|
6128
|
-
name: 'creatorCurated',
|
|
6129
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6130
|
-
stateMutability: 'view',
|
|
6131
|
-
},
|
|
6132
|
-
{
|
|
6133
|
-
type: 'function',
|
|
6134
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6135
|
-
name: 'creatorListed',
|
|
6136
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6137
|
-
stateMutability: 'view',
|
|
6138
|
-
},
|
|
6139
|
-
{
|
|
6140
|
-
type: 'function',
|
|
6141
|
-
inputs: [],
|
|
6142
|
-
name: 'curated',
|
|
6143
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6144
|
-
stateMutability: 'view',
|
|
6145
|
-
},
|
|
6146
6385
|
{
|
|
6147
6386
|
type: 'function',
|
|
6148
6387
|
inputs: [],
|
|
@@ -6159,9 +6398,12 @@ export const publicPolicyAbi = [
|
|
|
6159
6398
|
},
|
|
6160
6399
|
{
|
|
6161
6400
|
type: 'function',
|
|
6162
|
-
inputs: [{ name: '', internalType: '
|
|
6163
|
-
name: '
|
|
6164
|
-
outputs: [
|
|
6401
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6402
|
+
name: 'incomeTax',
|
|
6403
|
+
outputs: [
|
|
6404
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
6405
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6406
|
+
],
|
|
6165
6407
|
stateMutability: 'view',
|
|
6166
6408
|
},
|
|
6167
6409
|
{
|
|
@@ -6171,13 +6413,6 @@ export const publicPolicyAbi = [
|
|
|
6171
6413
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6172
6414
|
stateMutability: 'pure',
|
|
6173
6415
|
},
|
|
6174
|
-
{
|
|
6175
|
-
type: 'function',
|
|
6176
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6177
|
-
name: 'listed',
|
|
6178
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6179
|
-
stateMutability: 'view',
|
|
6180
|
-
},
|
|
6181
6416
|
{
|
|
6182
6417
|
type: 'function',
|
|
6183
6418
|
inputs: [],
|
|
@@ -6187,6 +6422,13 @@ export const publicPolicyAbi = [
|
|
|
6187
6422
|
],
|
|
6188
6423
|
stateMutability: 'view',
|
|
6189
6424
|
},
|
|
6425
|
+
{
|
|
6426
|
+
type: 'function',
|
|
6427
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6428
|
+
name: 'managerOf',
|
|
6429
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6430
|
+
stateMutability: 'view',
|
|
6431
|
+
},
|
|
6190
6432
|
{
|
|
6191
6433
|
type: 'function',
|
|
6192
6434
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6222,20 +6464,6 @@ export const publicPolicyAbi = [
|
|
|
6222
6464
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
6223
6465
|
stateMutability: 'view',
|
|
6224
6466
|
},
|
|
6225
|
-
{
|
|
6226
|
-
type: 'function',
|
|
6227
|
-
inputs: [],
|
|
6228
|
-
name: 'mintFeeCurated',
|
|
6229
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6230
|
-
stateMutability: 'view',
|
|
6231
|
-
},
|
|
6232
|
-
{
|
|
6233
|
-
type: 'function',
|
|
6234
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6235
|
-
name: 'mintFeeListed',
|
|
6236
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6237
|
-
stateMutability: 'view',
|
|
6238
|
-
},
|
|
6239
6467
|
{
|
|
6240
6468
|
type: 'function',
|
|
6241
6469
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6249,20 +6477,21 @@ export const publicPolicyAbi = [
|
|
|
6249
6477
|
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
6250
6478
|
{
|
|
6251
6479
|
name: 'key',
|
|
6252
|
-
internalType: 'struct
|
|
6480
|
+
internalType: 'struct CPoolKey',
|
|
6253
6481
|
type: 'tuple',
|
|
6254
6482
|
components: [
|
|
6255
6483
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6256
6484
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6257
6485
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6486
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6258
6487
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6488
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6259
6489
|
],
|
|
6260
6490
|
},
|
|
6261
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6262
6491
|
],
|
|
6263
6492
|
name: 'onCInitialize',
|
|
6264
6493
|
outputs: [
|
|
6265
|
-
{ name: '', internalType: '
|
|
6494
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6266
6495
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6267
6496
|
],
|
|
6268
6497
|
stateMutability: 'nonpayable',
|
|
@@ -6278,21 +6507,16 @@ export const publicPolicyAbi = [
|
|
|
6278
6507
|
components: [
|
|
6279
6508
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6280
6509
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
6281
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6282
6510
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6283
6511
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6284
6512
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
6285
6513
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
6286
|
-
{ name: '
|
|
6514
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6287
6515
|
],
|
|
6288
6516
|
},
|
|
6289
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6290
6517
|
],
|
|
6291
6518
|
name: 'onInitialize',
|
|
6292
|
-
outputs: [
|
|
6293
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6294
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6295
|
-
],
|
|
6519
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
6296
6520
|
stateMutability: 'nonpayable',
|
|
6297
6521
|
},
|
|
6298
6522
|
{
|
|
@@ -6341,7 +6565,7 @@ export const publicPolicyAbi = [
|
|
|
6341
6565
|
components: [
|
|
6342
6566
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6343
6567
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6344
|
-
{ name: '
|
|
6568
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
6345
6569
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6346
6570
|
],
|
|
6347
6571
|
},
|
|
@@ -6398,25 +6622,8 @@ export const publicPolicyAbi = [
|
|
|
6398
6622
|
},
|
|
6399
6623
|
{
|
|
6400
6624
|
type: 'function',
|
|
6401
|
-
inputs: [{ name: '
|
|
6402
|
-
name: '
|
|
6403
|
-
outputs: [],
|
|
6404
|
-
stateMutability: 'nonpayable',
|
|
6405
|
-
},
|
|
6406
|
-
{
|
|
6407
|
-
type: 'function',
|
|
6408
|
-
inputs: [
|
|
6409
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6410
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6411
|
-
],
|
|
6412
|
-
name: 'setCreatorListed',
|
|
6413
|
-
outputs: [],
|
|
6414
|
-
stateMutability: 'nonpayable',
|
|
6415
|
-
},
|
|
6416
|
-
{
|
|
6417
|
-
type: 'function',
|
|
6418
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6419
|
-
name: 'setCurated',
|
|
6625
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6626
|
+
name: 'setCManager',
|
|
6420
6627
|
outputs: [],
|
|
6421
6628
|
stateMutability: 'nonpayable',
|
|
6422
6629
|
},
|
|
@@ -6437,43 +6644,6 @@ export const publicPolicyAbi = [
|
|
|
6437
6644
|
outputs: [],
|
|
6438
6645
|
stateMutability: 'nonpayable',
|
|
6439
6646
|
},
|
|
6440
|
-
{
|
|
6441
|
-
type: 'function',
|
|
6442
|
-
inputs: [
|
|
6443
|
-
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
6444
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
6445
|
-
],
|
|
6446
|
-
name: 'setForwarderTrusted',
|
|
6447
|
-
outputs: [],
|
|
6448
|
-
stateMutability: 'nonpayable',
|
|
6449
|
-
},
|
|
6450
|
-
{
|
|
6451
|
-
type: 'function',
|
|
6452
|
-
inputs: [
|
|
6453
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
6454
|
-
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
6455
|
-
],
|
|
6456
|
-
name: 'setListed',
|
|
6457
|
-
outputs: [],
|
|
6458
|
-
stateMutability: 'nonpayable',
|
|
6459
|
-
},
|
|
6460
|
-
{
|
|
6461
|
-
type: 'function',
|
|
6462
|
-
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
6463
|
-
name: 'setMintFeeCurated',
|
|
6464
|
-
outputs: [],
|
|
6465
|
-
stateMutability: 'nonpayable',
|
|
6466
|
-
},
|
|
6467
|
-
{
|
|
6468
|
-
type: 'function',
|
|
6469
|
-
inputs: [
|
|
6470
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6471
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6472
|
-
],
|
|
6473
|
-
name: 'setMintFeeListed',
|
|
6474
|
-
outputs: [],
|
|
6475
|
-
stateMutability: 'nonpayable',
|
|
6476
|
-
},
|
|
6477
6647
|
{
|
|
6478
6648
|
type: 'function',
|
|
6479
6649
|
inputs: [
|
|
@@ -6543,6 +6713,13 @@ export const publicPolicyAbi = [
|
|
|
6543
6713
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6544
6714
|
stateMutability: 'view',
|
|
6545
6715
|
},
|
|
6716
|
+
{
|
|
6717
|
+
type: 'function',
|
|
6718
|
+
inputs: [],
|
|
6719
|
+
name: 'sponsor',
|
|
6720
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6721
|
+
stateMutability: 'view',
|
|
6722
|
+
},
|
|
6546
6723
|
{
|
|
6547
6724
|
type: 'function',
|
|
6548
6725
|
inputs: [],
|
|
@@ -6590,35 +6767,18 @@ export const publicPolicyAbi = [
|
|
|
6590
6767
|
],
|
|
6591
6768
|
name: 'AuthoritySet',
|
|
6592
6769
|
},
|
|
6593
|
-
{
|
|
6594
|
-
type: 'event',
|
|
6595
|
-
anonymous: false,
|
|
6596
|
-
inputs: [
|
|
6597
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6598
|
-
],
|
|
6599
|
-
name: 'CreatorCuratedSet',
|
|
6600
|
-
},
|
|
6601
6770
|
{
|
|
6602
6771
|
type: 'event',
|
|
6603
6772
|
anonymous: false,
|
|
6604
6773
|
inputs: [
|
|
6605
6774
|
{
|
|
6606
|
-
name: '
|
|
6775
|
+
name: 'manager',
|
|
6607
6776
|
internalType: 'address',
|
|
6608
6777
|
type: 'address',
|
|
6609
6778
|
indexed: true,
|
|
6610
6779
|
},
|
|
6611
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6612
|
-
],
|
|
6613
|
-
name: 'CreatorListed',
|
|
6614
|
-
},
|
|
6615
|
-
{
|
|
6616
|
-
type: 'event',
|
|
6617
|
-
anonymous: false,
|
|
6618
|
-
inputs: [
|
|
6619
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6620
6780
|
],
|
|
6621
|
-
name: '
|
|
6781
|
+
name: 'CManagerSet',
|
|
6622
6782
|
},
|
|
6623
6783
|
{
|
|
6624
6784
|
type: 'event',
|
|
@@ -6637,56 +6797,6 @@ export const publicPolicyAbi = [
|
|
|
6637
6797
|
],
|
|
6638
6798
|
name: 'FeeListed',
|
|
6639
6799
|
},
|
|
6640
|
-
{
|
|
6641
|
-
type: 'event',
|
|
6642
|
-
anonymous: false,
|
|
6643
|
-
inputs: [
|
|
6644
|
-
{
|
|
6645
|
-
name: 'forwarder',
|
|
6646
|
-
internalType: 'address',
|
|
6647
|
-
type: 'address',
|
|
6648
|
-
indexed: true,
|
|
6649
|
-
},
|
|
6650
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
6651
|
-
],
|
|
6652
|
-
name: 'ForwarderTrusted',
|
|
6653
|
-
},
|
|
6654
|
-
{
|
|
6655
|
-
type: 'event',
|
|
6656
|
-
anonymous: false,
|
|
6657
|
-
inputs: [
|
|
6658
|
-
{
|
|
6659
|
-
name: 'token',
|
|
6660
|
-
internalType: 'address',
|
|
6661
|
-
type: 'address',
|
|
6662
|
-
indexed: true,
|
|
6663
|
-
},
|
|
6664
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6665
|
-
],
|
|
6666
|
-
name: 'Listed',
|
|
6667
|
-
},
|
|
6668
|
-
{
|
|
6669
|
-
type: 'event',
|
|
6670
|
-
anonymous: false,
|
|
6671
|
-
inputs: [
|
|
6672
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6673
|
-
],
|
|
6674
|
-
name: 'MintFeeCuratedSet',
|
|
6675
|
-
},
|
|
6676
|
-
{
|
|
6677
|
-
type: 'event',
|
|
6678
|
-
anonymous: false,
|
|
6679
|
-
inputs: [
|
|
6680
|
-
{
|
|
6681
|
-
name: 'mintFee',
|
|
6682
|
-
internalType: 'uint256',
|
|
6683
|
-
type: 'uint256',
|
|
6684
|
-
indexed: true,
|
|
6685
|
-
},
|
|
6686
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6687
|
-
],
|
|
6688
|
-
name: 'MintFeeListed',
|
|
6689
|
-
},
|
|
6690
6800
|
{
|
|
6691
6801
|
type: 'event',
|
|
6692
6802
|
anonymous: false,
|
|
@@ -6775,11 +6885,6 @@ export const publicPolicyAbi = [
|
|
|
6775
6885
|
},
|
|
6776
6886
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6777
6887
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6778
|
-
{
|
|
6779
|
-
type: 'error',
|
|
6780
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
6781
|
-
name: 'CreatorNotListed',
|
|
6782
|
-
},
|
|
6783
6888
|
{
|
|
6784
6889
|
type: 'error',
|
|
6785
6890
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6794,27 +6899,13 @@ export const publicPolicyAbi = [
|
|
|
6794
6899
|
],
|
|
6795
6900
|
name: 'MarketExists',
|
|
6796
6901
|
},
|
|
6797
|
-
{
|
|
6798
|
-
type: 'error',
|
|
6799
|
-
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
6800
|
-
name: 'MintFeeNotListed',
|
|
6801
|
-
},
|
|
6802
6902
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6803
|
-
{
|
|
6804
|
-
type: 'error',
|
|
6805
|
-
inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
|
|
6806
|
-
name: 'NoForwardedUser',
|
|
6807
|
-
},
|
|
6808
6903
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6809
6904
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6810
|
-
{
|
|
6811
|
-
type: 'error',
|
|
6812
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6813
|
-
name: 'NotListed',
|
|
6814
|
-
},
|
|
6815
6905
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6816
6906
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6817
6907
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6908
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6818
6909
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6819
6910
|
{
|
|
6820
6911
|
type: 'error',
|