@logswap/sdk 0.5.79 → 0.5.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.d.ts +702 -51
- package/dist/admin.js +53 -46
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/fpool.d.ts +185 -119
- package/dist/fpool.js +41 -42
- package/dist/generated.d.ts +1280 -670
- package/dist/generated.js +781 -465
- package/dist/history.d.ts +1 -2
- package/dist/history.js +3 -5
- package/dist/indexer.js +2 -1
- package/dist/keys.d.ts +6 -0
- package/dist/keys.js +2 -0
- package/dist/pools.d.ts +3 -3
- package/dist/pools.js +2 -1
- package/package.json +1 -1
- package/src/admin.ts +64 -54
- package/src/client.ts +2 -2
- package/src/fpool.ts +59 -55
- package/src/generated.ts +781 -465
- package/src/history.ts +3 -4
- package/src/indexer.ts +3 -2
- package/src/keys.ts +8 -0
- package/src/pools.ts +6 -5
package/src/generated.ts
CHANGED
|
@@ -8,7 +8,6 @@ export const cPoolManagerAbi = [
|
|
|
8
8
|
inputs: [
|
|
9
9
|
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
10
10
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
11
|
-
{ name: 'gate_', internalType: 'address', type: 'address' },
|
|
12
11
|
],
|
|
13
12
|
stateMutability: 'nonpayable',
|
|
14
13
|
},
|
|
@@ -69,6 +68,7 @@ export const cPoolManagerAbi = [
|
|
|
69
68
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
70
69
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
71
70
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
71
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
72
72
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
73
73
|
],
|
|
74
74
|
},
|
|
@@ -105,6 +105,7 @@ export const cPoolManagerAbi = [
|
|
|
105
105
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
106
106
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
107
107
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
108
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
108
109
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
109
110
|
],
|
|
110
111
|
},
|
|
@@ -133,6 +134,7 @@ export const cPoolManagerAbi = [
|
|
|
133
134
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
134
135
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
135
136
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
137
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
136
138
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
137
139
|
],
|
|
138
140
|
},
|
|
@@ -162,6 +164,7 @@ export const cPoolManagerAbi = [
|
|
|
162
164
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
163
165
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
164
166
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
167
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
165
168
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
166
169
|
],
|
|
167
170
|
},
|
|
@@ -211,13 +214,6 @@ export const cPoolManagerAbi = [
|
|
|
211
214
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
212
215
|
stateMutability: 'view',
|
|
213
216
|
},
|
|
214
|
-
{
|
|
215
|
-
type: 'function',
|
|
216
|
-
inputs: [],
|
|
217
|
-
name: 'gate',
|
|
218
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
219
|
-
stateMutability: 'view',
|
|
220
|
-
},
|
|
221
217
|
{
|
|
222
218
|
type: 'function',
|
|
223
219
|
inputs: [
|
|
@@ -229,6 +225,7 @@ export const cPoolManagerAbi = [
|
|
|
229
225
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
230
226
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
231
227
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
228
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
232
229
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
233
230
|
],
|
|
234
231
|
},
|
|
@@ -249,6 +246,7 @@ export const cPoolManagerAbi = [
|
|
|
249
246
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
250
247
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
251
248
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
249
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
252
250
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
253
251
|
],
|
|
254
252
|
},
|
|
@@ -270,6 +268,7 @@ export const cPoolManagerAbi = [
|
|
|
270
268
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
271
269
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
272
270
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
271
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
273
272
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
274
273
|
],
|
|
275
274
|
},
|
|
@@ -308,6 +307,7 @@ export const cPoolManagerAbi = [
|
|
|
308
307
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
309
308
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
310
309
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
310
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
311
311
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
312
312
|
],
|
|
313
313
|
},
|
|
@@ -370,6 +370,7 @@ export const cPoolManagerAbi = [
|
|
|
370
370
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
371
371
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
372
372
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
373
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
373
374
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
374
375
|
],
|
|
375
376
|
},
|
|
@@ -398,6 +399,17 @@ export const cPoolManagerAbi = [
|
|
|
398
399
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
399
400
|
stateMutability: 'payable',
|
|
400
401
|
},
|
|
402
|
+
{
|
|
403
|
+
type: 'function',
|
|
404
|
+
inputs: [
|
|
405
|
+
{ name: 'id', internalType: 'bytes32', type: 'bytes32' },
|
|
406
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
407
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
408
|
+
],
|
|
409
|
+
name: 'setPermissions',
|
|
410
|
+
outputs: [],
|
|
411
|
+
stateMutability: 'nonpayable',
|
|
412
|
+
},
|
|
401
413
|
{
|
|
402
414
|
type: 'function',
|
|
403
415
|
inputs: [],
|
|
@@ -405,6 +417,13 @@ export const cPoolManagerAbi = [
|
|
|
405
417
|
outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
|
|
406
418
|
stateMutability: 'nonpayable',
|
|
407
419
|
},
|
|
420
|
+
{
|
|
421
|
+
type: 'function',
|
|
422
|
+
inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
|
|
423
|
+
name: 'stamp',
|
|
424
|
+
outputs: [],
|
|
425
|
+
stateMutability: 'nonpayable',
|
|
426
|
+
},
|
|
408
427
|
{
|
|
409
428
|
type: 'function',
|
|
410
429
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -423,6 +442,7 @@ export const cPoolManagerAbi = [
|
|
|
423
442
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
424
443
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
425
444
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
445
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
426
446
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
427
447
|
],
|
|
428
448
|
},
|
|
@@ -525,6 +545,7 @@ export const cPoolManagerAbi = [
|
|
|
525
545
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
526
546
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
527
547
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
548
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
528
549
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
529
550
|
],
|
|
530
551
|
},
|
|
@@ -677,14 +698,6 @@ export const cPoolManagerAbi = [
|
|
|
677
698
|
],
|
|
678
699
|
name: 'FeesClaimed',
|
|
679
700
|
},
|
|
680
|
-
{
|
|
681
|
-
type: 'event',
|
|
682
|
-
anonymous: false,
|
|
683
|
-
inputs: [
|
|
684
|
-
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
685
|
-
],
|
|
686
|
-
name: 'GateSet',
|
|
687
|
-
},
|
|
688
701
|
{
|
|
689
702
|
type: 'event',
|
|
690
703
|
anonymous: false,
|
|
@@ -733,6 +746,12 @@ export const cPoolManagerAbi = [
|
|
|
733
746
|
type: 'uint256',
|
|
734
747
|
indexed: false,
|
|
735
748
|
},
|
|
749
|
+
{
|
|
750
|
+
name: 'policy',
|
|
751
|
+
internalType: 'address',
|
|
752
|
+
type: 'address',
|
|
753
|
+
indexed: false,
|
|
754
|
+
},
|
|
736
755
|
],
|
|
737
756
|
name: 'MarketCreated',
|
|
738
757
|
},
|
|
@@ -756,6 +775,26 @@ export const cPoolManagerAbi = [
|
|
|
756
775
|
],
|
|
757
776
|
name: 'OperatorSet',
|
|
758
777
|
},
|
|
778
|
+
{
|
|
779
|
+
type: 'event',
|
|
780
|
+
anonymous: false,
|
|
781
|
+
inputs: [
|
|
782
|
+
{
|
|
783
|
+
name: 'poolId',
|
|
784
|
+
internalType: 'bytes32',
|
|
785
|
+
type: 'bytes32',
|
|
786
|
+
indexed: true,
|
|
787
|
+
},
|
|
788
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
789
|
+
{
|
|
790
|
+
name: 'executor',
|
|
791
|
+
internalType: 'address',
|
|
792
|
+
type: 'address',
|
|
793
|
+
indexed: true,
|
|
794
|
+
},
|
|
795
|
+
],
|
|
796
|
+
name: 'PermissionsSet',
|
|
797
|
+
},
|
|
759
798
|
{
|
|
760
799
|
type: 'event',
|
|
761
800
|
anonymous: false,
|
|
@@ -1055,6 +1094,7 @@ export const cPoolManagerAbi = [
|
|
|
1055
1094
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1056
1095
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1057
1096
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1097
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1058
1098
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1059
1099
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1060
1100
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -1067,6 +1107,7 @@ export const cPoolManagerAbi = [
|
|
|
1067
1107
|
name: 'QuoteResult',
|
|
1068
1108
|
},
|
|
1069
1109
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1110
|
+
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1070
1111
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1071
1112
|
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1072
1113
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
@@ -1094,7 +1135,7 @@ export const fPoolManagerAbi = [
|
|
|
1094
1135
|
{
|
|
1095
1136
|
type: 'function',
|
|
1096
1137
|
inputs: [],
|
|
1097
|
-
name: '
|
|
1138
|
+
name: 'INCOME_FEE_MAX',
|
|
1098
1139
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1099
1140
|
stateMutability: 'view',
|
|
1100
1141
|
},
|
|
@@ -1105,13 +1146,6 @@ export const fPoolManagerAbi = [
|
|
|
1105
1146
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1106
1147
|
stateMutability: 'view',
|
|
1107
1148
|
},
|
|
1108
|
-
{
|
|
1109
|
-
type: 'function',
|
|
1110
|
-
inputs: [],
|
|
1111
|
-
name: 'POT_CUT_MAX',
|
|
1112
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1113
|
-
stateMutability: 'view',
|
|
1114
|
-
},
|
|
1115
1149
|
{
|
|
1116
1150
|
type: 'function',
|
|
1117
1151
|
inputs: [],
|
|
@@ -1305,7 +1339,19 @@ export const fPoolManagerAbi = [
|
|
|
1305
1339
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1306
1340
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1307
1341
|
],
|
|
1308
|
-
name: '
|
|
1342
|
+
name: 'lienLock',
|
|
1343
|
+
outputs: [],
|
|
1344
|
+
stateMutability: 'nonpayable',
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
type: 'function',
|
|
1348
|
+
inputs: [
|
|
1349
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1350
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1351
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1352
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1353
|
+
],
|
|
1354
|
+
name: 'lienUnlock',
|
|
1309
1355
|
outputs: [],
|
|
1310
1356
|
stateMutability: 'nonpayable',
|
|
1311
1357
|
},
|
|
@@ -1422,16 +1468,6 @@ export const fPoolManagerAbi = [
|
|
|
1422
1468
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1423
1469
|
stateMutability: 'nonpayable',
|
|
1424
1470
|
},
|
|
1425
|
-
{
|
|
1426
|
-
type: 'function',
|
|
1427
|
-
inputs: [
|
|
1428
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1429
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1430
|
-
],
|
|
1431
|
-
name: 'setAsks',
|
|
1432
|
-
outputs: [],
|
|
1433
|
-
stateMutability: 'nonpayable',
|
|
1434
|
-
},
|
|
1435
1471
|
{
|
|
1436
1472
|
type: 'function',
|
|
1437
1473
|
inputs: [
|
|
@@ -1453,6 +1489,17 @@ export const fPoolManagerAbi = [
|
|
|
1453
1489
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1454
1490
|
stateMutability: 'payable',
|
|
1455
1491
|
},
|
|
1492
|
+
{
|
|
1493
|
+
type: 'function',
|
|
1494
|
+
inputs: [
|
|
1495
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1496
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1497
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
1498
|
+
],
|
|
1499
|
+
name: 'setPermissions',
|
|
1500
|
+
outputs: [],
|
|
1501
|
+
stateMutability: 'nonpayable',
|
|
1502
|
+
},
|
|
1456
1503
|
{
|
|
1457
1504
|
type: 'function',
|
|
1458
1505
|
inputs: [
|
|
@@ -1611,18 +1658,6 @@ export const fPoolManagerAbi = [
|
|
|
1611
1658
|
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1612
1659
|
stateMutability: 'nonpayable',
|
|
1613
1660
|
},
|
|
1614
|
-
{
|
|
1615
|
-
type: 'function',
|
|
1616
|
-
inputs: [
|
|
1617
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1618
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1619
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1620
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1621
|
-
],
|
|
1622
|
-
name: 'unlock',
|
|
1623
|
-
outputs: [],
|
|
1624
|
-
stateMutability: 'nonpayable',
|
|
1625
|
-
},
|
|
1626
1661
|
{
|
|
1627
1662
|
type: 'function',
|
|
1628
1663
|
inputs: [],
|
|
@@ -1935,6 +1970,26 @@ export const fPoolManagerAbi = [
|
|
|
1935
1970
|
],
|
|
1936
1971
|
name: 'OperatorSet',
|
|
1937
1972
|
},
|
|
1973
|
+
{
|
|
1974
|
+
type: 'event',
|
|
1975
|
+
anonymous: false,
|
|
1976
|
+
inputs: [
|
|
1977
|
+
{
|
|
1978
|
+
name: 'poolId',
|
|
1979
|
+
internalType: 'bytes32',
|
|
1980
|
+
type: 'bytes32',
|
|
1981
|
+
indexed: true,
|
|
1982
|
+
},
|
|
1983
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1984
|
+
{
|
|
1985
|
+
name: 'executor',
|
|
1986
|
+
internalType: 'address',
|
|
1987
|
+
type: 'address',
|
|
1988
|
+
indexed: true,
|
|
1989
|
+
},
|
|
1990
|
+
],
|
|
1991
|
+
name: 'PermissionsSet',
|
|
1992
|
+
},
|
|
1938
1993
|
{
|
|
1939
1994
|
type: 'event',
|
|
1940
1995
|
anonymous: false,
|
|
@@ -2404,6 +2459,7 @@ export const logswapLensAbi = [
|
|
|
2404
2459
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2405
2460
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2406
2461
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2462
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2407
2463
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2408
2464
|
],
|
|
2409
2465
|
},
|
|
@@ -2423,6 +2479,7 @@ export const logswapLensAbi = [
|
|
|
2423
2479
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2424
2480
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2425
2481
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2482
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2426
2483
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2427
2484
|
],
|
|
2428
2485
|
},
|
|
@@ -2549,10 +2606,15 @@ export const logswapLensAbi = [
|
|
|
2549
2606
|
type: 'uint24',
|
|
2550
2607
|
},
|
|
2551
2608
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2552
|
-
{
|
|
2609
|
+
{
|
|
2610
|
+
name: 'realizedVariance',
|
|
2611
|
+
internalType: 'uint128',
|
|
2612
|
+
type: 'uint128',
|
|
2613
|
+
},
|
|
2553
2614
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2554
2615
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2555
2616
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2617
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2556
2618
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2557
2619
|
],
|
|
2558
2620
|
},
|
|
@@ -2592,6 +2654,7 @@ export const logswapLensAbi = [
|
|
|
2592
2654
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2593
2655
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2594
2656
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2657
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2595
2658
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2596
2659
|
],
|
|
2597
2660
|
},
|
|
@@ -2641,10 +2704,15 @@ export const logswapLensAbi = [
|
|
|
2641
2704
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2642
2705
|
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
2643
2706
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2644
|
-
{
|
|
2707
|
+
{
|
|
2708
|
+
name: 'realizedVariance',
|
|
2709
|
+
internalType: 'uint128',
|
|
2710
|
+
type: 'uint128',
|
|
2711
|
+
},
|
|
2645
2712
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2646
2713
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2647
2714
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2715
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2648
2716
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2649
2717
|
],
|
|
2650
2718
|
},
|
|
@@ -2668,12 +2736,20 @@ export const logswapLensAbi = [
|
|
|
2668
2736
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
2669
2737
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2670
2738
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2671
|
-
{
|
|
2739
|
+
{
|
|
2740
|
+
name: 'realizedVariance',
|
|
2741
|
+
internalType: 'uint256',
|
|
2742
|
+
type: 'uint256',
|
|
2743
|
+
},
|
|
2672
2744
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2673
2745
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2674
2746
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2675
2747
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2676
2748
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2749
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2750
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2751
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2752
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2677
2753
|
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2678
2754
|
],
|
|
2679
2755
|
},
|
|
@@ -2691,6 +2767,7 @@ export const logswapLensAbi = [
|
|
|
2691
2767
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2692
2768
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2693
2769
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2770
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2694
2771
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2695
2772
|
],
|
|
2696
2773
|
},
|
|
@@ -2727,6 +2804,7 @@ export const logswapLensAbi = [
|
|
|
2727
2804
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2728
2805
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2729
2806
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2807
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2730
2808
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2731
2809
|
],
|
|
2732
2810
|
},
|
|
@@ -2747,6 +2825,7 @@ export const logswapLensAbi = [
|
|
|
2747
2825
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2748
2826
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2749
2827
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2828
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2750
2829
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2751
2830
|
],
|
|
2752
2831
|
},
|
|
@@ -2766,6 +2845,7 @@ export const logswapLensAbi = [
|
|
|
2766
2845
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2767
2846
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2768
2847
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2848
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2769
2849
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2770
2850
|
],
|
|
2771
2851
|
},
|
|
@@ -2785,6 +2865,7 @@ export const logswapLensAbi = [
|
|
|
2785
2865
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2786
2866
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2787
2867
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2868
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2788
2869
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2789
2870
|
],
|
|
2790
2871
|
},
|
|
@@ -2811,6 +2892,7 @@ export const logswapLensAbi = [
|
|
|
2811
2892
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2812
2893
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2813
2894
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2895
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2814
2896
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2815
2897
|
],
|
|
2816
2898
|
},
|
|
@@ -2839,6 +2921,7 @@ export const logswapLensAbi = [
|
|
|
2839
2921
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2840
2922
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2841
2923
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2924
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2842
2925
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2843
2926
|
],
|
|
2844
2927
|
},
|
|
@@ -2877,6 +2960,7 @@ export const logswapLensAbi = [
|
|
|
2877
2960
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2878
2961
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2879
2962
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2963
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2880
2964
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2881
2965
|
],
|
|
2882
2966
|
},
|
|
@@ -2896,6 +2980,7 @@ export const logswapLensAbi = [
|
|
|
2896
2980
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2897
2981
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2898
2982
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2983
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2899
2984
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2900
2985
|
],
|
|
2901
2986
|
},
|
|
@@ -2929,6 +3014,7 @@ export const logswapLensAbi = [
|
|
|
2929
3014
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2930
3015
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2931
3016
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3017
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2932
3018
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2933
3019
|
],
|
|
2934
3020
|
},
|
|
@@ -2971,6 +3057,7 @@ export const logswapLensAbi = [
|
|
|
2971
3057
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2972
3058
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2973
3059
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3060
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2974
3061
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2975
3062
|
],
|
|
2976
3063
|
},
|
|
@@ -2992,6 +3079,7 @@ export const logswapLensAbi = [
|
|
|
2992
3079
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2993
3080
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2994
3081
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3082
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2995
3083
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2996
3084
|
],
|
|
2997
3085
|
},
|
|
@@ -3013,6 +3101,7 @@ export const logswapLensAbi = [
|
|
|
3013
3101
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3014
3102
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3015
3103
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3104
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3016
3105
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3017
3106
|
],
|
|
3018
3107
|
},
|
|
@@ -3034,6 +3123,7 @@ export const logswapLensAbi = [
|
|
|
3034
3123
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3035
3124
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3036
3125
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3126
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3037
3127
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3038
3128
|
],
|
|
3039
3129
|
},
|
|
@@ -3091,6 +3181,7 @@ export const logswapLensAbi = [
|
|
|
3091
3181
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3092
3182
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3093
3183
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3184
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3094
3185
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3095
3186
|
],
|
|
3096
3187
|
},
|
|
@@ -3182,6 +3273,7 @@ export const logswapRouterAbi = [
|
|
|
3182
3273
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3183
3274
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3184
3275
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3276
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3185
3277
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3186
3278
|
],
|
|
3187
3279
|
},
|
|
@@ -3210,6 +3302,7 @@ export const logswapRouterAbi = [
|
|
|
3210
3302
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3211
3303
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3212
3304
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3305
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3213
3306
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3214
3307
|
],
|
|
3215
3308
|
},
|
|
@@ -3232,6 +3325,7 @@ export const logswapRouterAbi = [
|
|
|
3232
3325
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3233
3326
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3234
3327
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3328
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3235
3329
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3236
3330
|
],
|
|
3237
3331
|
},
|
|
@@ -3268,6 +3362,7 @@ export const logswapRouterAbi = [
|
|
|
3268
3362
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3269
3363
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3270
3364
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3365
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3271
3366
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3272
3367
|
],
|
|
3273
3368
|
},
|
|
@@ -3296,6 +3391,7 @@ export const logswapRouterAbi = [
|
|
|
3296
3391
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3297
3392
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3298
3393
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3394
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3299
3395
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3300
3396
|
],
|
|
3301
3397
|
},
|
|
@@ -3323,6 +3419,7 @@ export const logswapRouterAbi = [
|
|
|
3323
3419
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3324
3420
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3325
3421
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3422
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3326
3423
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3327
3424
|
],
|
|
3328
3425
|
},
|
|
@@ -3361,6 +3458,7 @@ export const logswapRouterAbi = [
|
|
|
3361
3458
|
internalType: 'int256',
|
|
3362
3459
|
type: 'int256',
|
|
3363
3460
|
},
|
|
3461
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3364
3462
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3365
3463
|
],
|
|
3366
3464
|
},
|
|
@@ -3392,6 +3490,7 @@ export const logswapRouterAbi = [
|
|
|
3392
3490
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3393
3491
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3394
3492
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3493
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3395
3494
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3396
3495
|
],
|
|
3397
3496
|
},
|
|
@@ -3421,6 +3520,7 @@ export const logswapRouterAbi = [
|
|
|
3421
3520
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3422
3521
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3423
3522
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3523
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3424
3524
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3425
3525
|
],
|
|
3426
3526
|
},
|
|
@@ -3506,6 +3606,7 @@ export const logswapRouterAbi = [
|
|
|
3506
3606
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3507
3607
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3508
3608
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3609
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3509
3610
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3510
3611
|
],
|
|
3511
3612
|
},
|
|
@@ -3535,6 +3636,7 @@ export const logswapRouterAbi = [
|
|
|
3535
3636
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3536
3637
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3537
3638
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3639
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3538
3640
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3539
3641
|
],
|
|
3540
3642
|
},
|
|
@@ -3599,22 +3701,6 @@ export const logswapRouterAbi = [
|
|
|
3599
3701
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3600
3702
|
stateMutability: 'nonpayable',
|
|
3601
3703
|
},
|
|
3602
|
-
{
|
|
3603
|
-
type: 'function',
|
|
3604
|
-
inputs: [
|
|
3605
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3606
|
-
{ name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
|
|
3607
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3608
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3609
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3610
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3611
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3612
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3613
|
-
],
|
|
3614
|
-
name: 'swapExactIn',
|
|
3615
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3616
|
-
stateMutability: 'nonpayable',
|
|
3617
|
-
},
|
|
3618
3704
|
{
|
|
3619
3705
|
type: 'function',
|
|
3620
3706
|
inputs: [
|
|
@@ -3626,6 +3712,7 @@ export const logswapRouterAbi = [
|
|
|
3626
3712
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3627
3713
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3628
3714
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3715
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3629
3716
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3630
3717
|
],
|
|
3631
3718
|
},
|
|
@@ -3639,6 +3726,22 @@ export const logswapRouterAbi = [
|
|
|
3639
3726
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
3640
3727
|
stateMutability: 'nonpayable',
|
|
3641
3728
|
},
|
|
3729
|
+
{
|
|
3730
|
+
type: 'function',
|
|
3731
|
+
inputs: [
|
|
3732
|
+
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3733
|
+
{ name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
|
|
3734
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3735
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3736
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3737
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3738
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
3739
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3740
|
+
],
|
|
3741
|
+
name: 'swapExactIn',
|
|
3742
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3743
|
+
stateMutability: 'nonpayable',
|
|
3744
|
+
},
|
|
3642
3745
|
{
|
|
3643
3746
|
type: 'function',
|
|
3644
3747
|
inputs: [
|
|
@@ -3655,6 +3758,7 @@ export const logswapRouterAbi = [
|
|
|
3655
3758
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3656
3759
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3657
3760
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3761
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3658
3762
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3659
3763
|
],
|
|
3660
3764
|
},
|
|
@@ -3681,6 +3785,7 @@ export const logswapRouterAbi = [
|
|
|
3681
3785
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3682
3786
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3683
3787
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3788
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3684
3789
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3685
3790
|
],
|
|
3686
3791
|
},
|
|
@@ -3712,6 +3817,7 @@ export const logswapRouterAbi = [
|
|
|
3712
3817
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3713
3818
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3714
3819
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3820
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3715
3821
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3716
3822
|
],
|
|
3717
3823
|
},
|
|
@@ -3751,6 +3857,7 @@ export const logswapRouterAbi = [
|
|
|
3751
3857
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3752
3858
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3753
3859
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3860
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3754
3861
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3755
3862
|
],
|
|
3756
3863
|
},
|
|
@@ -3857,25 +3964,18 @@ export const padPolicyAbi = [
|
|
|
3857
3964
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3858
3965
|
stateMutability: 'view',
|
|
3859
3966
|
},
|
|
3860
|
-
{
|
|
3861
|
-
type: 'function',
|
|
3862
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3863
|
-
name: 'creator',
|
|
3864
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3865
|
-
stateMutability: 'view',
|
|
3866
|
-
},
|
|
3867
3967
|
{
|
|
3868
3968
|
type: 'function',
|
|
3869
3969
|
inputs: [],
|
|
3870
|
-
name: '
|
|
3871
|
-
outputs: [{ name: '', internalType: '
|
|
3970
|
+
name: 'cManager',
|
|
3971
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3872
3972
|
stateMutability: 'view',
|
|
3873
3973
|
},
|
|
3874
3974
|
{
|
|
3875
3975
|
type: 'function',
|
|
3876
|
-
inputs: [{ name: '', internalType: '
|
|
3877
|
-
name: '
|
|
3878
|
-
outputs: [{ name: '', internalType: '
|
|
3976
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3977
|
+
name: 'creator',
|
|
3978
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3879
3979
|
stateMutability: 'view',
|
|
3880
3980
|
},
|
|
3881
3981
|
{
|
|
@@ -3892,6 +3992,13 @@ export const padPolicyAbi = [
|
|
|
3892
3992
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3893
3993
|
stateMutability: 'view',
|
|
3894
3994
|
},
|
|
3995
|
+
{
|
|
3996
|
+
type: 'function',
|
|
3997
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3998
|
+
name: 'creatorShareOf',
|
|
3999
|
+
outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
|
|
4000
|
+
stateMutability: 'view',
|
|
4001
|
+
},
|
|
3895
4002
|
{
|
|
3896
4003
|
type: 'function',
|
|
3897
4004
|
inputs: [],
|
|
@@ -3906,6 +4013,23 @@ export const padPolicyAbi = [
|
|
|
3906
4013
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3907
4014
|
stateMutability: 'view',
|
|
3908
4015
|
},
|
|
4016
|
+
{
|
|
4017
|
+
type: 'function',
|
|
4018
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4019
|
+
name: 'incomeFee',
|
|
4020
|
+
outputs: [
|
|
4021
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4022
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4023
|
+
],
|
|
4024
|
+
stateMutability: 'view',
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
type: 'function',
|
|
4028
|
+
inputs: [],
|
|
4029
|
+
name: 'incomeFeeRate',
|
|
4030
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4031
|
+
stateMutability: 'view',
|
|
4032
|
+
},
|
|
3909
4033
|
{
|
|
3910
4034
|
type: 'function',
|
|
3911
4035
|
inputs: [],
|
|
@@ -3922,6 +4046,13 @@ export const padPolicyAbi = [
|
|
|
3922
4046
|
],
|
|
3923
4047
|
stateMutability: 'view',
|
|
3924
4048
|
},
|
|
4049
|
+
{
|
|
4050
|
+
type: 'function',
|
|
4051
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4052
|
+
name: 'managerOf',
|
|
4053
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4054
|
+
stateMutability: 'view',
|
|
4055
|
+
},
|
|
3925
4056
|
{
|
|
3926
4057
|
type: 'function',
|
|
3927
4058
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3981,20 +4112,46 @@ export const padPolicyAbi = [
|
|
|
3981
4112
|
{
|
|
3982
4113
|
type: 'function',
|
|
3983
4114
|
inputs: [
|
|
3984
|
-
{ name: '
|
|
4115
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
3985
4116
|
{
|
|
3986
|
-
name: '
|
|
3987
|
-
internalType: 'struct
|
|
4117
|
+
name: '',
|
|
4118
|
+
internalType: 'struct PoolKey',
|
|
3988
4119
|
type: 'tuple',
|
|
3989
4120
|
components: [
|
|
4121
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3990
4122
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3991
|
-
{ name: '
|
|
3992
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3993
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4123
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3994
4124
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3995
|
-
{ name: '
|
|
3996
|
-
|
|
3997
|
-
|
|
4125
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4126
|
+
],
|
|
4127
|
+
},
|
|
4128
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4129
|
+
],
|
|
4130
|
+
name: 'onCInitialize',
|
|
4131
|
+
outputs: [
|
|
4132
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4133
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4134
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4135
|
+
],
|
|
4136
|
+
stateMutability: 'pure',
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
type: 'function',
|
|
4140
|
+
inputs: [
|
|
4141
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4142
|
+
{
|
|
4143
|
+
name: 'key',
|
|
4144
|
+
internalType: 'struct FPoolKey',
|
|
4145
|
+
type: 'tuple',
|
|
4146
|
+
components: [
|
|
4147
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4148
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4149
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4150
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4151
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4152
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4153
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4154
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
3998
4155
|
],
|
|
3999
4156
|
},
|
|
4000
4157
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4052,7 +4209,7 @@ export const padPolicyAbi = [
|
|
|
4052
4209
|
components: [
|
|
4053
4210
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4054
4211
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4055
|
-
{ name: '
|
|
4212
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4056
4213
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4057
4214
|
],
|
|
4058
4215
|
},
|
|
@@ -4093,13 +4250,6 @@ export const padPolicyAbi = [
|
|
|
4093
4250
|
outputs: [],
|
|
4094
4251
|
stateMutability: 'nonpayable',
|
|
4095
4252
|
},
|
|
4096
|
-
{
|
|
4097
|
-
type: 'function',
|
|
4098
|
-
inputs: [],
|
|
4099
|
-
name: 'protocolShare',
|
|
4100
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4101
|
-
stateMutability: 'view',
|
|
4102
|
-
},
|
|
4103
4253
|
{
|
|
4104
4254
|
type: 'function',
|
|
4105
4255
|
inputs: [],
|
|
@@ -4116,18 +4266,8 @@ export const padPolicyAbi = [
|
|
|
4116
4266
|
},
|
|
4117
4267
|
{
|
|
4118
4268
|
type: 'function',
|
|
4119
|
-
inputs: [{ name: '
|
|
4120
|
-
name: '
|
|
4121
|
-
outputs: [],
|
|
4122
|
-
stateMutability: 'nonpayable',
|
|
4123
|
-
},
|
|
4124
|
-
{
|
|
4125
|
-
type: 'function',
|
|
4126
|
-
inputs: [
|
|
4127
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4128
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4129
|
-
],
|
|
4130
|
-
name: 'setCreatorListed',
|
|
4269
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4270
|
+
name: 'setCManager',
|
|
4131
4271
|
outputs: [],
|
|
4132
4272
|
stateMutability: 'nonpayable',
|
|
4133
4273
|
},
|
|
@@ -4148,6 +4288,13 @@ export const padPolicyAbi = [
|
|
|
4148
4288
|
outputs: [],
|
|
4149
4289
|
stateMutability: 'nonpayable',
|
|
4150
4290
|
},
|
|
4291
|
+
{
|
|
4292
|
+
type: 'function',
|
|
4293
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4294
|
+
name: 'setIncomeFeeRate',
|
|
4295
|
+
outputs: [],
|
|
4296
|
+
stateMutability: 'nonpayable',
|
|
4297
|
+
},
|
|
4151
4298
|
{
|
|
4152
4299
|
type: 'function',
|
|
4153
4300
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -4195,10 +4342,9 @@ export const padPolicyAbi = [
|
|
|
4195
4342
|
{
|
|
4196
4343
|
type: 'function',
|
|
4197
4344
|
inputs: [
|
|
4198
|
-
{ name: '
|
|
4199
|
-
{ name: '
|
|
4200
|
-
{ name: '
|
|
4201
|
-
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4345
|
+
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
4346
|
+
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4347
|
+
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4202
4348
|
],
|
|
4203
4349
|
name: 'setSchedule',
|
|
4204
4350
|
outputs: [],
|
|
@@ -4216,12 +4362,9 @@ export const padPolicyAbi = [
|
|
|
4216
4362
|
},
|
|
4217
4363
|
{
|
|
4218
4364
|
type: 'function',
|
|
4219
|
-
inputs: [
|
|
4220
|
-
name: '
|
|
4221
|
-
outputs: [
|
|
4222
|
-
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4223
|
-
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4224
|
-
],
|
|
4365
|
+
inputs: [],
|
|
4366
|
+
name: 'sponsor',
|
|
4367
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4225
4368
|
stateMutability: 'view',
|
|
4226
4369
|
},
|
|
4227
4370
|
{
|
|
@@ -4305,27 +4448,18 @@ export const padPolicyAbi = [
|
|
|
4305
4448
|
],
|
|
4306
4449
|
name: 'AuthoritySet',
|
|
4307
4450
|
},
|
|
4308
|
-
{
|
|
4309
|
-
type: 'event',
|
|
4310
|
-
anonymous: false,
|
|
4311
|
-
inputs: [
|
|
4312
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4313
|
-
],
|
|
4314
|
-
name: 'CreatorCuratedSet',
|
|
4315
|
-
},
|
|
4316
4451
|
{
|
|
4317
4452
|
type: 'event',
|
|
4318
4453
|
anonymous: false,
|
|
4319
4454
|
inputs: [
|
|
4320
4455
|
{
|
|
4321
|
-
name: '
|
|
4456
|
+
name: 'manager',
|
|
4322
4457
|
internalType: 'address',
|
|
4323
4458
|
type: 'address',
|
|
4324
4459
|
indexed: true,
|
|
4325
4460
|
},
|
|
4326
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4327
4461
|
],
|
|
4328
|
-
name: '
|
|
4462
|
+
name: 'CManagerSet',
|
|
4329
4463
|
},
|
|
4330
4464
|
{
|
|
4331
4465
|
type: 'event',
|
|
@@ -4359,6 +4493,19 @@ export const padPolicyAbi = [
|
|
|
4359
4493
|
],
|
|
4360
4494
|
name: 'Graduated',
|
|
4361
4495
|
},
|
|
4496
|
+
{
|
|
4497
|
+
type: 'event',
|
|
4498
|
+
anonymous: false,
|
|
4499
|
+
inputs: [
|
|
4500
|
+
{
|
|
4501
|
+
name: 'rate',
|
|
4502
|
+
internalType: 'uint256',
|
|
4503
|
+
type: 'uint256',
|
|
4504
|
+
indexed: false,
|
|
4505
|
+
},
|
|
4506
|
+
],
|
|
4507
|
+
name: 'IncomeFeeRateSet',
|
|
4508
|
+
},
|
|
4362
4509
|
{
|
|
4363
4510
|
type: 'event',
|
|
4364
4511
|
anonymous: false,
|
|
@@ -4432,12 +4579,6 @@ export const padPolicyAbi = [
|
|
|
4432
4579
|
type: 'uint256',
|
|
4433
4580
|
indexed: false,
|
|
4434
4581
|
},
|
|
4435
|
-
{
|
|
4436
|
-
name: 'protocolShare',
|
|
4437
|
-
internalType: 'uint256',
|
|
4438
|
-
type: 'uint256',
|
|
4439
|
-
indexed: false,
|
|
4440
|
-
},
|
|
4441
4582
|
{
|
|
4442
4583
|
name: 'creatorShareMin',
|
|
4443
4584
|
internalType: 'uint256',
|
|
@@ -4469,12 +4610,6 @@ export const padPolicyAbi = [
|
|
|
4469
4610
|
type: 'uint256',
|
|
4470
4611
|
indexed: false,
|
|
4471
4612
|
},
|
|
4472
|
-
{
|
|
4473
|
-
name: 'protocolShare',
|
|
4474
|
-
internalType: 'uint256',
|
|
4475
|
-
type: 'uint256',
|
|
4476
|
-
indexed: false,
|
|
4477
|
-
},
|
|
4478
4613
|
],
|
|
4479
4614
|
name: 'SplitSet',
|
|
4480
4615
|
},
|
|
@@ -4499,11 +4634,6 @@ export const padPolicyAbi = [
|
|
|
4499
4634
|
},
|
|
4500
4635
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4501
4636
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4502
|
-
{
|
|
4503
|
-
type: 'error',
|
|
4504
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4505
|
-
name: 'CreatorNotListed',
|
|
4506
|
-
},
|
|
4507
4637
|
{
|
|
4508
4638
|
type: 'error',
|
|
4509
4639
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4525,6 +4655,7 @@ export const padPolicyAbi = [
|
|
|
4525
4655
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4526
4656
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4527
4657
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4658
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4528
4659
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4529
4660
|
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4530
4661
|
{
|
|
@@ -4552,7 +4683,7 @@ export const polPolicyAbi = [
|
|
|
4552
4683
|
type: 'constructor',
|
|
4553
4684
|
inputs: [
|
|
4554
4685
|
{
|
|
4555
|
-
name: '
|
|
4686
|
+
name: 'manager_',
|
|
4556
4687
|
internalType: 'contract FPoolManager',
|
|
4557
4688
|
type: 'address',
|
|
4558
4689
|
},
|
|
@@ -4573,25 +4704,18 @@ export const polPolicyAbi = [
|
|
|
4573
4704
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4574
4705
|
stateMutability: 'view',
|
|
4575
4706
|
},
|
|
4576
|
-
{
|
|
4577
|
-
type: 'function',
|
|
4578
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4579
|
-
name: 'creator',
|
|
4580
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4581
|
-
stateMutability: 'view',
|
|
4582
|
-
},
|
|
4583
4707
|
{
|
|
4584
4708
|
type: 'function',
|
|
4585
4709
|
inputs: [],
|
|
4586
|
-
name: '
|
|
4587
|
-
outputs: [{ name: '', internalType: '
|
|
4710
|
+
name: 'cManager',
|
|
4711
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4588
4712
|
stateMutability: 'view',
|
|
4589
4713
|
},
|
|
4590
4714
|
{
|
|
4591
4715
|
type: 'function',
|
|
4592
|
-
inputs: [{ name: '', internalType: '
|
|
4593
|
-
name: '
|
|
4594
|
-
outputs: [{ name: '', internalType: '
|
|
4716
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4717
|
+
name: 'creator',
|
|
4718
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4595
4719
|
stateMutability: 'view',
|
|
4596
4720
|
},
|
|
4597
4721
|
{
|
|
@@ -4608,10 +4732,20 @@ export const polPolicyAbi = [
|
|
|
4608
4732
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4609
4733
|
stateMutability: 'view',
|
|
4610
4734
|
},
|
|
4735
|
+
{
|
|
4736
|
+
type: 'function',
|
|
4737
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4738
|
+
name: 'incomeFee',
|
|
4739
|
+
outputs: [
|
|
4740
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4741
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4742
|
+
],
|
|
4743
|
+
stateMutability: 'view',
|
|
4744
|
+
},
|
|
4611
4745
|
{
|
|
4612
4746
|
type: 'function',
|
|
4613
4747
|
inputs: [],
|
|
4614
|
-
name: '
|
|
4748
|
+
name: 'incomeFeeRate',
|
|
4615
4749
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4616
4750
|
stateMutability: 'view',
|
|
4617
4751
|
},
|
|
@@ -4631,6 +4765,13 @@ export const polPolicyAbi = [
|
|
|
4631
4765
|
],
|
|
4632
4766
|
stateMutability: 'view',
|
|
4633
4767
|
},
|
|
4768
|
+
{
|
|
4769
|
+
type: 'function',
|
|
4770
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4771
|
+
name: 'managerOf',
|
|
4772
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4773
|
+
stateMutability: 'view',
|
|
4774
|
+
},
|
|
4634
4775
|
{
|
|
4635
4776
|
type: 'function',
|
|
4636
4777
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4669,7 +4810,7 @@ export const polPolicyAbi = [
|
|
|
4669
4810
|
{
|
|
4670
4811
|
type: 'function',
|
|
4671
4812
|
inputs: [],
|
|
4672
|
-
name: '
|
|
4813
|
+
name: 'minQuoteRatio',
|
|
4673
4814
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4674
4815
|
stateMutability: 'view',
|
|
4675
4816
|
},
|
|
@@ -4694,6 +4835,32 @@ export const polPolicyAbi = [
|
|
|
4694
4835
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4695
4836
|
stateMutability: 'view',
|
|
4696
4837
|
},
|
|
4838
|
+
{
|
|
4839
|
+
type: 'function',
|
|
4840
|
+
inputs: [
|
|
4841
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4842
|
+
{
|
|
4843
|
+
name: '',
|
|
4844
|
+
internalType: 'struct PoolKey',
|
|
4845
|
+
type: 'tuple',
|
|
4846
|
+
components: [
|
|
4847
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4848
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4849
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4850
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4851
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4852
|
+
],
|
|
4853
|
+
},
|
|
4854
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4855
|
+
],
|
|
4856
|
+
name: 'onCInitialize',
|
|
4857
|
+
outputs: [
|
|
4858
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4859
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4860
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4861
|
+
],
|
|
4862
|
+
stateMutability: 'pure',
|
|
4863
|
+
},
|
|
4697
4864
|
{
|
|
4698
4865
|
type: 'function',
|
|
4699
4866
|
inputs: [
|
|
@@ -4768,7 +4935,7 @@ export const polPolicyAbi = [
|
|
|
4768
4935
|
components: [
|
|
4769
4936
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4770
4937
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4771
|
-
{ name: '
|
|
4938
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4772
4939
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4773
4940
|
],
|
|
4774
4941
|
},
|
|
@@ -4806,37 +4973,41 @@ export const polPolicyAbi = [
|
|
|
4806
4973
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4807
4974
|
stateMutability: 'view',
|
|
4808
4975
|
},
|
|
4976
|
+
{
|
|
4977
|
+
type: 'function',
|
|
4978
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4979
|
+
name: 'setCManager',
|
|
4980
|
+
outputs: [],
|
|
4981
|
+
stateMutability: 'nonpayable',
|
|
4982
|
+
},
|
|
4809
4983
|
{
|
|
4810
4984
|
type: 'function',
|
|
4811
4985
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4812
|
-
name: '
|
|
4986
|
+
name: 'setFeeCurated',
|
|
4813
4987
|
outputs: [],
|
|
4814
4988
|
stateMutability: 'nonpayable',
|
|
4815
4989
|
},
|
|
4816
4990
|
{
|
|
4817
4991
|
type: 'function',
|
|
4818
4992
|
inputs: [
|
|
4819
|
-
{ name: '
|
|
4993
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4820
4994
|
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4821
4995
|
],
|
|
4822
|
-
name: '
|
|
4996
|
+
name: 'setFeeListed',
|
|
4823
4997
|
outputs: [],
|
|
4824
4998
|
stateMutability: 'nonpayable',
|
|
4825
4999
|
},
|
|
4826
5000
|
{
|
|
4827
5001
|
type: 'function',
|
|
4828
|
-
inputs: [{ name: '
|
|
4829
|
-
name: '
|
|
5002
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
5003
|
+
name: 'setIncomeFeeRate',
|
|
4830
5004
|
outputs: [],
|
|
4831
5005
|
stateMutability: 'nonpayable',
|
|
4832
5006
|
},
|
|
4833
5007
|
{
|
|
4834
5008
|
type: 'function',
|
|
4835
|
-
inputs: [
|
|
4836
|
-
|
|
4837
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4838
|
-
],
|
|
4839
|
-
name: 'setFeeListed',
|
|
5009
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
5010
|
+
name: 'setMinQuoteRatio',
|
|
4840
5011
|
outputs: [],
|
|
4841
5012
|
stateMutability: 'nonpayable',
|
|
4842
5013
|
},
|
|
@@ -4886,13 +5057,10 @@ export const polPolicyAbi = [
|
|
|
4886
5057
|
},
|
|
4887
5058
|
{
|
|
4888
5059
|
type: 'function',
|
|
4889
|
-
inputs: [
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
name: 'setRules',
|
|
4894
|
-
outputs: [],
|
|
4895
|
-
stateMutability: 'nonpayable',
|
|
5060
|
+
inputs: [],
|
|
5061
|
+
name: 'sponsor',
|
|
5062
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5063
|
+
stateMutability: 'view',
|
|
4896
5064
|
},
|
|
4897
5065
|
{
|
|
4898
5066
|
type: 'event',
|
|
@@ -4934,27 +5102,18 @@ export const polPolicyAbi = [
|
|
|
4934
5102
|
],
|
|
4935
5103
|
name: 'AuthoritySet',
|
|
4936
5104
|
},
|
|
4937
|
-
{
|
|
4938
|
-
type: 'event',
|
|
4939
|
-
anonymous: false,
|
|
4940
|
-
inputs: [
|
|
4941
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4942
|
-
],
|
|
4943
|
-
name: 'CreatorCuratedSet',
|
|
4944
|
-
},
|
|
4945
5105
|
{
|
|
4946
5106
|
type: 'event',
|
|
4947
5107
|
anonymous: false,
|
|
4948
5108
|
inputs: [
|
|
4949
5109
|
{
|
|
4950
|
-
name: '
|
|
5110
|
+
name: 'manager',
|
|
4951
5111
|
internalType: 'address',
|
|
4952
5112
|
type: 'address',
|
|
4953
5113
|
indexed: true,
|
|
4954
5114
|
},
|
|
4955
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4956
5115
|
],
|
|
4957
|
-
name: '
|
|
5116
|
+
name: 'CManagerSet',
|
|
4958
5117
|
},
|
|
4959
5118
|
{
|
|
4960
5119
|
type: 'event',
|
|
@@ -4973,6 +5132,32 @@ export const polPolicyAbi = [
|
|
|
4973
5132
|
],
|
|
4974
5133
|
name: 'FeeListed',
|
|
4975
5134
|
},
|
|
5135
|
+
{
|
|
5136
|
+
type: 'event',
|
|
5137
|
+
anonymous: false,
|
|
5138
|
+
inputs: [
|
|
5139
|
+
{
|
|
5140
|
+
name: 'rate',
|
|
5141
|
+
internalType: 'uint256',
|
|
5142
|
+
type: 'uint256',
|
|
5143
|
+
indexed: false,
|
|
5144
|
+
},
|
|
5145
|
+
],
|
|
5146
|
+
name: 'IncomeFeeRateSet',
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
type: 'event',
|
|
5150
|
+
anonymous: false,
|
|
5151
|
+
inputs: [
|
|
5152
|
+
{
|
|
5153
|
+
name: 'ratio',
|
|
5154
|
+
internalType: 'uint256',
|
|
5155
|
+
type: 'uint256',
|
|
5156
|
+
indexed: false,
|
|
5157
|
+
},
|
|
5158
|
+
],
|
|
5159
|
+
name: 'MinQuoteRatioSet',
|
|
5160
|
+
},
|
|
4976
5161
|
{
|
|
4977
5162
|
type: 'event',
|
|
4978
5163
|
anonymous: false,
|
|
@@ -5036,32 +5221,8 @@ export const polPolicyAbi = [
|
|
|
5036
5221
|
],
|
|
5037
5222
|
name: 'QuoteListed',
|
|
5038
5223
|
},
|
|
5039
|
-
{
|
|
5040
|
-
type: 'event',
|
|
5041
|
-
anonymous: false,
|
|
5042
|
-
inputs: [
|
|
5043
|
-
{
|
|
5044
|
-
name: 'keepQuote',
|
|
5045
|
-
internalType: 'uint256',
|
|
5046
|
-
type: 'uint256',
|
|
5047
|
-
indexed: false,
|
|
5048
|
-
},
|
|
5049
|
-
{
|
|
5050
|
-
name: 'minQuoteAtSeed',
|
|
5051
|
-
internalType: 'uint256',
|
|
5052
|
-
type: 'uint256',
|
|
5053
|
-
indexed: false,
|
|
5054
|
-
},
|
|
5055
|
-
],
|
|
5056
|
-
name: 'RulesSet',
|
|
5057
|
-
},
|
|
5058
5224
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5059
5225
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5060
|
-
{
|
|
5061
|
-
type: 'error',
|
|
5062
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
5063
|
-
name: 'CreatorNotListed',
|
|
5064
|
-
},
|
|
5065
5226
|
{
|
|
5066
5227
|
type: 'error',
|
|
5067
5228
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -5077,6 +5238,7 @@ export const polPolicyAbi = [
|
|
|
5077
5238
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5078
5239
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5079
5240
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5241
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5080
5242
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5081
5243
|
{
|
|
5082
5244
|
type: 'error',
|
|
@@ -5106,6 +5268,17 @@ export const policyRegistryAbi = [
|
|
|
5106
5268
|
outputs: [],
|
|
5107
5269
|
stateMutability: 'nonpayable',
|
|
5108
5270
|
},
|
|
5271
|
+
{
|
|
5272
|
+
type: 'function',
|
|
5273
|
+
inputs: [
|
|
5274
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5275
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
5276
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5277
|
+
],
|
|
5278
|
+
name: 'admit',
|
|
5279
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
5280
|
+
stateMutability: 'view',
|
|
5281
|
+
},
|
|
5109
5282
|
{
|
|
5110
5283
|
type: 'function',
|
|
5111
5284
|
inputs: [
|
|
@@ -5116,6 +5289,29 @@ export const policyRegistryAbi = [
|
|
|
5116
5289
|
outputs: [],
|
|
5117
5290
|
stateMutability: 'nonpayable',
|
|
5118
5291
|
},
|
|
5292
|
+
{
|
|
5293
|
+
type: 'function',
|
|
5294
|
+
inputs: [
|
|
5295
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5296
|
+
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
5297
|
+
],
|
|
5298
|
+
name: 'bindSponsor',
|
|
5299
|
+
outputs: [],
|
|
5300
|
+
stateMutability: 'nonpayable',
|
|
5301
|
+
},
|
|
5302
|
+
{
|
|
5303
|
+
type: 'function',
|
|
5304
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5305
|
+
name: 'creationMode',
|
|
5306
|
+
outputs: [
|
|
5307
|
+
{
|
|
5308
|
+
name: '',
|
|
5309
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5310
|
+
type: 'uint8',
|
|
5311
|
+
},
|
|
5312
|
+
],
|
|
5313
|
+
stateMutability: 'view',
|
|
5314
|
+
},
|
|
5119
5315
|
{
|
|
5120
5316
|
type: 'function',
|
|
5121
5317
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5130,16 +5326,33 @@ export const policyRegistryAbi = [
|
|
|
5130
5326
|
},
|
|
5131
5327
|
{
|
|
5132
5328
|
type: 'function',
|
|
5133
|
-
inputs: [{ name: '
|
|
5134
|
-
name: '
|
|
5329
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5330
|
+
name: 'forwarderTrusted',
|
|
5135
5331
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5136
5332
|
stateMutability: 'view',
|
|
5137
5333
|
},
|
|
5138
5334
|
{
|
|
5139
5335
|
type: 'function',
|
|
5140
|
-
inputs: [
|
|
5141
|
-
|
|
5142
|
-
|
|
5336
|
+
inputs: [
|
|
5337
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5338
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5339
|
+
],
|
|
5340
|
+
name: 'initializerListed',
|
|
5341
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5342
|
+
stateMutability: 'view',
|
|
5343
|
+
},
|
|
5344
|
+
{
|
|
5345
|
+
type: 'function',
|
|
5346
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5347
|
+
name: 'isApproved',
|
|
5348
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5349
|
+
stateMutability: 'view',
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
type: 'function',
|
|
5353
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5354
|
+
name: 'kindOf',
|
|
5355
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5143
5356
|
stateMutability: 'view',
|
|
5144
5357
|
},
|
|
5145
5358
|
{
|
|
@@ -5174,6 +5387,43 @@ export const policyRegistryAbi = [
|
|
|
5174
5387
|
outputs: [],
|
|
5175
5388
|
stateMutability: 'nonpayable',
|
|
5176
5389
|
},
|
|
5390
|
+
{
|
|
5391
|
+
type: 'function',
|
|
5392
|
+
inputs: [
|
|
5393
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
5394
|
+
{
|
|
5395
|
+
name: 'key',
|
|
5396
|
+
internalType: 'struct FPoolKey',
|
|
5397
|
+
type: 'tuple',
|
|
5398
|
+
components: [
|
|
5399
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5400
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5401
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5402
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5403
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5404
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5405
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5406
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
5407
|
+
],
|
|
5408
|
+
},
|
|
5409
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
5410
|
+
{
|
|
5411
|
+
name: 'permissions',
|
|
5412
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5413
|
+
type: 'tuple',
|
|
5414
|
+
components: [
|
|
5415
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5416
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5417
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5418
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5419
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5420
|
+
],
|
|
5421
|
+
},
|
|
5422
|
+
],
|
|
5423
|
+
name: 'migratePrivate',
|
|
5424
|
+
outputs: [],
|
|
5425
|
+
stateMutability: 'nonpayable',
|
|
5426
|
+
},
|
|
5177
5427
|
{
|
|
5178
5428
|
type: 'function',
|
|
5179
5429
|
inputs: [],
|
|
@@ -5202,6 +5452,41 @@ export const policyRegistryAbi = [
|
|
|
5202
5452
|
outputs: [],
|
|
5203
5453
|
stateMutability: 'nonpayable',
|
|
5204
5454
|
},
|
|
5455
|
+
{
|
|
5456
|
+
type: 'function',
|
|
5457
|
+
inputs: [
|
|
5458
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5459
|
+
{
|
|
5460
|
+
name: 'mode',
|
|
5461
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5462
|
+
type: 'uint8',
|
|
5463
|
+
},
|
|
5464
|
+
],
|
|
5465
|
+
name: 'setCreationMode',
|
|
5466
|
+
outputs: [],
|
|
5467
|
+
stateMutability: 'nonpayable',
|
|
5468
|
+
},
|
|
5469
|
+
{
|
|
5470
|
+
type: 'function',
|
|
5471
|
+
inputs: [
|
|
5472
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
5473
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
5474
|
+
],
|
|
5475
|
+
name: 'setForwarderTrusted',
|
|
5476
|
+
outputs: [],
|
|
5477
|
+
stateMutability: 'nonpayable',
|
|
5478
|
+
},
|
|
5479
|
+
{
|
|
5480
|
+
type: 'function',
|
|
5481
|
+
inputs: [
|
|
5482
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5483
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5484
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool' },
|
|
5485
|
+
],
|
|
5486
|
+
name: 'setInitializerListed',
|
|
5487
|
+
outputs: [],
|
|
5488
|
+
stateMutability: 'nonpayable',
|
|
5489
|
+
},
|
|
5205
5490
|
{
|
|
5206
5491
|
type: 'function',
|
|
5207
5492
|
inputs: [
|
|
@@ -5219,6 +5504,13 @@ export const policyRegistryAbi = [
|
|
|
5219
5504
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5220
5505
|
stateMutability: 'view',
|
|
5221
5506
|
},
|
|
5507
|
+
{
|
|
5508
|
+
type: 'function',
|
|
5509
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5510
|
+
name: 'sponsorOf',
|
|
5511
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5512
|
+
stateMutability: 'view',
|
|
5513
|
+
},
|
|
5222
5514
|
{
|
|
5223
5515
|
type: 'function',
|
|
5224
5516
|
inputs: [
|
|
@@ -5248,6 +5540,54 @@ export const policyRegistryAbi = [
|
|
|
5248
5540
|
],
|
|
5249
5541
|
name: 'Approved',
|
|
5250
5542
|
},
|
|
5543
|
+
{
|
|
5544
|
+
type: 'event',
|
|
5545
|
+
anonymous: false,
|
|
5546
|
+
inputs: [
|
|
5547
|
+
{
|
|
5548
|
+
name: 'policy',
|
|
5549
|
+
internalType: 'address',
|
|
5550
|
+
type: 'address',
|
|
5551
|
+
indexed: true,
|
|
5552
|
+
},
|
|
5553
|
+
{
|
|
5554
|
+
name: 'mode',
|
|
5555
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5556
|
+
type: 'uint8',
|
|
5557
|
+
indexed: false,
|
|
5558
|
+
},
|
|
5559
|
+
],
|
|
5560
|
+
name: 'CreationModeSet',
|
|
5561
|
+
},
|
|
5562
|
+
{
|
|
5563
|
+
type: 'event',
|
|
5564
|
+
anonymous: false,
|
|
5565
|
+
inputs: [
|
|
5566
|
+
{
|
|
5567
|
+
name: 'forwarder',
|
|
5568
|
+
internalType: 'address',
|
|
5569
|
+
type: 'address',
|
|
5570
|
+
indexed: true,
|
|
5571
|
+
},
|
|
5572
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
5573
|
+
],
|
|
5574
|
+
name: 'ForwarderTrusted',
|
|
5575
|
+
},
|
|
5576
|
+
{
|
|
5577
|
+
type: 'event',
|
|
5578
|
+
anonymous: false,
|
|
5579
|
+
inputs: [
|
|
5580
|
+
{
|
|
5581
|
+
name: 'policy',
|
|
5582
|
+
internalType: 'address',
|
|
5583
|
+
type: 'address',
|
|
5584
|
+
indexed: true,
|
|
5585
|
+
},
|
|
5586
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5587
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5588
|
+
],
|
|
5589
|
+
name: 'InitializerListed',
|
|
5590
|
+
},
|
|
5251
5591
|
{
|
|
5252
5592
|
type: 'event',
|
|
5253
5593
|
anonymous: false,
|
|
@@ -5321,6 +5661,25 @@ export const policyRegistryAbi = [
|
|
|
5321
5661
|
],
|
|
5322
5662
|
name: 'Revoked',
|
|
5323
5663
|
},
|
|
5664
|
+
{
|
|
5665
|
+
type: 'event',
|
|
5666
|
+
anonymous: false,
|
|
5667
|
+
inputs: [
|
|
5668
|
+
{
|
|
5669
|
+
name: 'policy',
|
|
5670
|
+
internalType: 'address',
|
|
5671
|
+
type: 'address',
|
|
5672
|
+
indexed: true,
|
|
5673
|
+
},
|
|
5674
|
+
{
|
|
5675
|
+
name: 'sponsor',
|
|
5676
|
+
internalType: 'address',
|
|
5677
|
+
type: 'address',
|
|
5678
|
+
indexed: true,
|
|
5679
|
+
},
|
|
5680
|
+
],
|
|
5681
|
+
name: 'SponsorBound',
|
|
5682
|
+
},
|
|
5324
5683
|
{
|
|
5325
5684
|
type: 'event',
|
|
5326
5685
|
anonymous: false,
|
|
@@ -5355,12 +5714,16 @@ export const policyRegistryAbi = [
|
|
|
5355
5714
|
name: 'SunsetSet',
|
|
5356
5715
|
},
|
|
5357
5716
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
5717
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
5718
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
5358
5719
|
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
5359
5720
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5360
5721
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5361
5722
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5362
5723
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5724
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
5363
5725
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5726
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
5364
5727
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5365
5728
|
] as const
|
|
5366
5729
|
|
|
@@ -5401,23 +5764,6 @@ export const privatePolicyAbi = [
|
|
|
5401
5764
|
outputs: [],
|
|
5402
5765
|
stateMutability: 'nonpayable',
|
|
5403
5766
|
},
|
|
5404
|
-
{
|
|
5405
|
-
type: 'function',
|
|
5406
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5407
|
-
name: 'acceptOperator',
|
|
5408
|
-
outputs: [],
|
|
5409
|
-
stateMutability: 'nonpayable',
|
|
5410
|
-
},
|
|
5411
|
-
{
|
|
5412
|
-
type: 'function',
|
|
5413
|
-
inputs: [
|
|
5414
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5415
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5416
|
-
],
|
|
5417
|
-
name: 'appointOperator',
|
|
5418
|
-
outputs: [],
|
|
5419
|
-
stateMutability: 'nonpayable',
|
|
5420
|
-
},
|
|
5421
5767
|
{
|
|
5422
5768
|
type: 'function',
|
|
5423
5769
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5427,23 +5773,37 @@ export const privatePolicyAbi = [
|
|
|
5427
5773
|
},
|
|
5428
5774
|
{
|
|
5429
5775
|
type: 'function',
|
|
5430
|
-
inputs: [
|
|
5431
|
-
name: '
|
|
5776
|
+
inputs: [],
|
|
5777
|
+
name: 'cManager',
|
|
5432
5778
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5433
5779
|
stateMutability: 'view',
|
|
5434
5780
|
},
|
|
5435
5781
|
{
|
|
5436
5782
|
type: 'function',
|
|
5437
|
-
inputs: [
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5783
|
+
inputs: [
|
|
5784
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5785
|
+
{
|
|
5786
|
+
name: 'permissions',
|
|
5787
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5788
|
+
type: 'tuple',
|
|
5789
|
+
components: [
|
|
5790
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5791
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5792
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5793
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5794
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5795
|
+
],
|
|
5796
|
+
},
|
|
5797
|
+
],
|
|
5798
|
+
name: 'configureMigration',
|
|
5799
|
+
outputs: [],
|
|
5800
|
+
stateMutability: 'nonpayable',
|
|
5441
5801
|
},
|
|
5442
5802
|
{
|
|
5443
5803
|
type: 'function',
|
|
5444
|
-
inputs: [{ name: '', internalType: '
|
|
5445
|
-
name: '
|
|
5446
|
-
outputs: [{ name: '', internalType: '
|
|
5804
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5805
|
+
name: 'creator',
|
|
5806
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5447
5807
|
stateMutability: 'view',
|
|
5448
5808
|
},
|
|
5449
5809
|
{
|
|
@@ -5470,8 +5830,11 @@ export const privatePolicyAbi = [
|
|
|
5470
5830
|
{
|
|
5471
5831
|
type: 'function',
|
|
5472
5832
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5473
|
-
name: '
|
|
5474
|
-
outputs: [
|
|
5833
|
+
name: 'incomeFee',
|
|
5834
|
+
outputs: [
|
|
5835
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5836
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5837
|
+
],
|
|
5475
5838
|
stateMutability: 'view',
|
|
5476
5839
|
},
|
|
5477
5840
|
{
|
|
@@ -5527,6 +5890,13 @@ export const privatePolicyAbi = [
|
|
|
5527
5890
|
],
|
|
5528
5891
|
stateMutability: 'view',
|
|
5529
5892
|
},
|
|
5893
|
+
{
|
|
5894
|
+
type: 'function',
|
|
5895
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5896
|
+
name: 'managerOf',
|
|
5897
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5898
|
+
stateMutability: 'view',
|
|
5899
|
+
},
|
|
5530
5900
|
{
|
|
5531
5901
|
type: 'function',
|
|
5532
5902
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5583,6 +5953,32 @@ export const privatePolicyAbi = [
|
|
|
5583
5953
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5584
5954
|
stateMutability: 'view',
|
|
5585
5955
|
},
|
|
5956
|
+
{
|
|
5957
|
+
type: 'function',
|
|
5958
|
+
inputs: [
|
|
5959
|
+
{ name: 'initializer', internalType: 'address', type: 'address' },
|
|
5960
|
+
{
|
|
5961
|
+
name: 'key',
|
|
5962
|
+
internalType: 'struct PoolKey',
|
|
5963
|
+
type: 'tuple',
|
|
5964
|
+
components: [
|
|
5965
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5966
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5967
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
5968
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5969
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5970
|
+
],
|
|
5971
|
+
},
|
|
5972
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5973
|
+
],
|
|
5974
|
+
name: 'onCInitialize',
|
|
5975
|
+
outputs: [
|
|
5976
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5977
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5978
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5979
|
+
],
|
|
5980
|
+
stateMutability: 'nonpayable',
|
|
5981
|
+
},
|
|
5586
5982
|
{
|
|
5587
5983
|
type: 'function',
|
|
5588
5984
|
inputs: [
|
|
@@ -5657,7 +6053,7 @@ export const privatePolicyAbi = [
|
|
|
5657
6053
|
components: [
|
|
5658
6054
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5659
6055
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5660
|
-
{ name: '
|
|
6056
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5661
6057
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5662
6058
|
],
|
|
5663
6059
|
},
|
|
@@ -5667,28 +6063,31 @@ export const privatePolicyAbi = [
|
|
|
5667
6063
|
{
|
|
5668
6064
|
type: 'function',
|
|
5669
6065
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5670
|
-
name: '
|
|
6066
|
+
name: 'pendingAuthority',
|
|
5671
6067
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5672
6068
|
stateMutability: 'view',
|
|
5673
6069
|
},
|
|
5674
6070
|
{
|
|
5675
6071
|
type: 'function',
|
|
5676
6072
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5677
|
-
name: '
|
|
5678
|
-
outputs: [
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
6073
|
+
name: 'permissionsOf',
|
|
6074
|
+
outputs: [
|
|
6075
|
+
{
|
|
6076
|
+
name: 'mode',
|
|
6077
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6078
|
+
type: 'uint8',
|
|
6079
|
+
},
|
|
6080
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6081
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
6082
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
6083
|
+
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
6084
|
+
],
|
|
5686
6085
|
stateMutability: 'view',
|
|
5687
6086
|
},
|
|
5688
6087
|
{
|
|
5689
6088
|
type: 'function',
|
|
5690
6089
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5691
|
-
name: '
|
|
6090
|
+
name: 'poolOperator',
|
|
5692
6091
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5693
6092
|
stateMutability: 'view',
|
|
5694
6093
|
},
|
|
@@ -5718,18 +6117,8 @@ export const privatePolicyAbi = [
|
|
|
5718
6117
|
},
|
|
5719
6118
|
{
|
|
5720
6119
|
type: 'function',
|
|
5721
|
-
inputs: [{ name: '
|
|
5722
|
-
name: '
|
|
5723
|
-
outputs: [],
|
|
5724
|
-
stateMutability: 'nonpayable',
|
|
5725
|
-
},
|
|
5726
|
-
{
|
|
5727
|
-
type: 'function',
|
|
5728
|
-
inputs: [
|
|
5729
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5730
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5731
|
-
],
|
|
5732
|
-
name: 'setCreatorListed',
|
|
6120
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6121
|
+
name: 'setCManager',
|
|
5733
6122
|
outputs: [],
|
|
5734
6123
|
stateMutability: 'nonpayable',
|
|
5735
6124
|
},
|
|
@@ -5750,17 +6139,6 @@ export const privatePolicyAbi = [
|
|
|
5750
6139
|
outputs: [],
|
|
5751
6140
|
stateMutability: 'nonpayable',
|
|
5752
6141
|
},
|
|
5753
|
-
{
|
|
5754
|
-
type: 'function',
|
|
5755
|
-
inputs: [
|
|
5756
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5757
|
-
{ name: '_gateMint', internalType: 'bool', type: 'bool' },
|
|
5758
|
-
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
5759
|
-
],
|
|
5760
|
-
name: 'setGates',
|
|
5761
|
-
outputs: [],
|
|
5762
|
-
stateMutability: 'nonpayable',
|
|
5763
|
-
},
|
|
5764
6142
|
{
|
|
5765
6143
|
type: 'function',
|
|
5766
6144
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5778,6 +6156,16 @@ export const privatePolicyAbi = [
|
|
|
5778
6156
|
outputs: [],
|
|
5779
6157
|
stateMutability: 'nonpayable',
|
|
5780
6158
|
},
|
|
6159
|
+
{
|
|
6160
|
+
type: 'function',
|
|
6161
|
+
inputs: [
|
|
6162
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6163
|
+
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
6164
|
+
],
|
|
6165
|
+
name: 'setMintGate',
|
|
6166
|
+
outputs: [],
|
|
6167
|
+
stateMutability: 'nonpayable',
|
|
6168
|
+
},
|
|
5781
6169
|
{
|
|
5782
6170
|
type: 'function',
|
|
5783
6171
|
inputs: [
|
|
@@ -5799,6 +6187,16 @@ export const privatePolicyAbi = [
|
|
|
5799
6187
|
outputs: [],
|
|
5800
6188
|
stateMutability: 'nonpayable',
|
|
5801
6189
|
},
|
|
6190
|
+
{
|
|
6191
|
+
type: 'function',
|
|
6192
|
+
inputs: [
|
|
6193
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6194
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6195
|
+
],
|
|
6196
|
+
name: 'setPoolOperator',
|
|
6197
|
+
outputs: [],
|
|
6198
|
+
stateMutability: 'nonpayable',
|
|
6199
|
+
},
|
|
5802
6200
|
{
|
|
5803
6201
|
type: 'function',
|
|
5804
6202
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5816,6 +6214,21 @@ export const privatePolicyAbi = [
|
|
|
5816
6214
|
outputs: [],
|
|
5817
6215
|
stateMutability: 'nonpayable',
|
|
5818
6216
|
},
|
|
6217
|
+
{
|
|
6218
|
+
type: 'function',
|
|
6219
|
+
inputs: [
|
|
6220
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6221
|
+
{
|
|
6222
|
+
name: 'mode',
|
|
6223
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6224
|
+
type: 'uint8',
|
|
6225
|
+
},
|
|
6226
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6227
|
+
],
|
|
6228
|
+
name: 'setSwapMode',
|
|
6229
|
+
outputs: [],
|
|
6230
|
+
stateMutability: 'nonpayable',
|
|
6231
|
+
},
|
|
5819
6232
|
{
|
|
5820
6233
|
type: 'function',
|
|
5821
6234
|
inputs: [
|
|
@@ -5827,6 +6240,27 @@ export const privatePolicyAbi = [
|
|
|
5827
6240
|
outputs: [],
|
|
5828
6241
|
stateMutability: 'nonpayable',
|
|
5829
6242
|
},
|
|
6243
|
+
{
|
|
6244
|
+
type: 'function',
|
|
6245
|
+
inputs: [],
|
|
6246
|
+
name: 'sponsor',
|
|
6247
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6248
|
+
stateMutability: 'view',
|
|
6249
|
+
},
|
|
6250
|
+
{
|
|
6251
|
+
type: 'function',
|
|
6252
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6253
|
+
name: 'swapPermission',
|
|
6254
|
+
outputs: [
|
|
6255
|
+
{
|
|
6256
|
+
name: 'mode',
|
|
6257
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6258
|
+
type: 'uint8',
|
|
6259
|
+
},
|
|
6260
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6261
|
+
],
|
|
6262
|
+
stateMutability: 'view',
|
|
6263
|
+
},
|
|
5830
6264
|
{
|
|
5831
6265
|
type: 'event',
|
|
5832
6266
|
anonymous: false,
|
|
@@ -5867,27 +6301,18 @@ export const privatePolicyAbi = [
|
|
|
5867
6301
|
],
|
|
5868
6302
|
name: 'AuthoritySet',
|
|
5869
6303
|
},
|
|
5870
|
-
{
|
|
5871
|
-
type: 'event',
|
|
5872
|
-
anonymous: false,
|
|
5873
|
-
inputs: [
|
|
5874
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5875
|
-
],
|
|
5876
|
-
name: 'CreatorCuratedSet',
|
|
5877
|
-
},
|
|
5878
6304
|
{
|
|
5879
6305
|
type: 'event',
|
|
5880
6306
|
anonymous: false,
|
|
5881
6307
|
inputs: [
|
|
5882
6308
|
{
|
|
5883
|
-
name: '
|
|
6309
|
+
name: 'manager',
|
|
5884
6310
|
internalType: 'address',
|
|
5885
6311
|
type: 'address',
|
|
5886
6312
|
indexed: true,
|
|
5887
6313
|
},
|
|
5888
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5889
6314
|
],
|
|
5890
|
-
name: '
|
|
6315
|
+
name: 'CManagerSet',
|
|
5891
6316
|
},
|
|
5892
6317
|
{
|
|
5893
6318
|
type: 'event',
|
|
@@ -5906,21 +6331,6 @@ export const privatePolicyAbi = [
|
|
|
5906
6331
|
],
|
|
5907
6332
|
name: 'FeeListed',
|
|
5908
6333
|
},
|
|
5909
|
-
{
|
|
5910
|
-
type: 'event',
|
|
5911
|
-
anonymous: false,
|
|
5912
|
-
inputs: [
|
|
5913
|
-
{
|
|
5914
|
-
name: 'poolId',
|
|
5915
|
-
internalType: 'bytes32',
|
|
5916
|
-
type: 'bytes32',
|
|
5917
|
-
indexed: true,
|
|
5918
|
-
},
|
|
5919
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
5920
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
5921
|
-
],
|
|
5922
|
-
name: 'GatesSet',
|
|
5923
|
-
},
|
|
5924
6334
|
{
|
|
5925
6335
|
type: 'event',
|
|
5926
6336
|
anonymous: false,
|
|
@@ -5975,14 +6385,9 @@ export const privatePolicyAbi = [
|
|
|
5975
6385
|
type: 'bytes32',
|
|
5976
6386
|
indexed: true,
|
|
5977
6387
|
},
|
|
5978
|
-
{
|
|
5979
|
-
name: 'name',
|
|
5980
|
-
internalType: 'bytes32',
|
|
5981
|
-
type: 'bytes32',
|
|
5982
|
-
indexed: false,
|
|
5983
|
-
},
|
|
6388
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5984
6389
|
],
|
|
5985
|
-
name: '
|
|
6390
|
+
name: 'MintGateSet',
|
|
5986
6391
|
},
|
|
5987
6392
|
{
|
|
5988
6393
|
type: 'event',
|
|
@@ -5995,19 +6400,13 @@ export const privatePolicyAbi = [
|
|
|
5995
6400
|
indexed: true,
|
|
5996
6401
|
},
|
|
5997
6402
|
{
|
|
5998
|
-
name: '
|
|
5999
|
-
internalType: '
|
|
6000
|
-
type: '
|
|
6001
|
-
indexed:
|
|
6002
|
-
},
|
|
6003
|
-
{
|
|
6004
|
-
name: 'proposed',
|
|
6005
|
-
internalType: 'address',
|
|
6006
|
-
type: 'address',
|
|
6007
|
-
indexed: true,
|
|
6403
|
+
name: 'name',
|
|
6404
|
+
internalType: 'bytes32',
|
|
6405
|
+
type: 'bytes32',
|
|
6406
|
+
indexed: false,
|
|
6008
6407
|
},
|
|
6009
6408
|
],
|
|
6010
|
-
name: '
|
|
6409
|
+
name: 'NameSet',
|
|
6011
6410
|
},
|
|
6012
6411
|
{
|
|
6013
6412
|
type: 'event',
|
|
@@ -6022,7 +6421,7 @@ export const privatePolicyAbi = [
|
|
|
6022
6421
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
6023
6422
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
6024
6423
|
],
|
|
6025
|
-
name: '
|
|
6424
|
+
name: 'PoolOperatorSet',
|
|
6026
6425
|
},
|
|
6027
6426
|
{
|
|
6028
6427
|
type: 'event',
|
|
@@ -6046,18 +6445,40 @@ export const privatePolicyAbi = [
|
|
|
6046
6445
|
],
|
|
6047
6446
|
name: 'QuoteListed',
|
|
6048
6447
|
},
|
|
6049
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6050
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6051
6448
|
{
|
|
6052
|
-
type: '
|
|
6053
|
-
|
|
6054
|
-
|
|
6449
|
+
type: 'event',
|
|
6450
|
+
anonymous: false,
|
|
6451
|
+
inputs: [
|
|
6452
|
+
{
|
|
6453
|
+
name: 'poolId',
|
|
6454
|
+
internalType: 'bytes32',
|
|
6455
|
+
type: 'bytes32',
|
|
6456
|
+
indexed: true,
|
|
6457
|
+
},
|
|
6458
|
+
{
|
|
6459
|
+
name: 'mode',
|
|
6460
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6461
|
+
type: 'uint8',
|
|
6462
|
+
indexed: false,
|
|
6463
|
+
},
|
|
6464
|
+
{
|
|
6465
|
+
name: 'executor',
|
|
6466
|
+
internalType: 'address',
|
|
6467
|
+
type: 'address',
|
|
6468
|
+
indexed: true,
|
|
6469
|
+
},
|
|
6470
|
+
],
|
|
6471
|
+
name: 'SwapModeSet',
|
|
6055
6472
|
},
|
|
6473
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6474
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6475
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
6056
6476
|
{
|
|
6057
6477
|
type: 'error',
|
|
6058
6478
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
6059
6479
|
name: 'FeeNotListed',
|
|
6060
6480
|
},
|
|
6481
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
6061
6482
|
{
|
|
6062
6483
|
type: 'error',
|
|
6063
6484
|
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6067,8 +6488,8 @@ export const privatePolicyAbi = [
|
|
|
6067
6488
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6068
6489
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6069
6490
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6070
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
6071
6491
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6492
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6072
6493
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6073
6494
|
{
|
|
6074
6495
|
type: 'error',
|
|
@@ -6141,27 +6562,6 @@ export const publicPolicyAbi = [
|
|
|
6141
6562
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6142
6563
|
stateMutability: 'view',
|
|
6143
6564
|
},
|
|
6144
|
-
{
|
|
6145
|
-
type: 'function',
|
|
6146
|
-
inputs: [],
|
|
6147
|
-
name: 'creatorCurated',
|
|
6148
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6149
|
-
stateMutability: 'view',
|
|
6150
|
-
},
|
|
6151
|
-
{
|
|
6152
|
-
type: 'function',
|
|
6153
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6154
|
-
name: 'creatorListed',
|
|
6155
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6156
|
-
stateMutability: 'view',
|
|
6157
|
-
},
|
|
6158
|
-
{
|
|
6159
|
-
type: 'function',
|
|
6160
|
-
inputs: [],
|
|
6161
|
-
name: 'curated',
|
|
6162
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6163
|
-
stateMutability: 'view',
|
|
6164
|
-
},
|
|
6165
6565
|
{
|
|
6166
6566
|
type: 'function',
|
|
6167
6567
|
inputs: [],
|
|
@@ -6178,9 +6578,12 @@ export const publicPolicyAbi = [
|
|
|
6178
6578
|
},
|
|
6179
6579
|
{
|
|
6180
6580
|
type: 'function',
|
|
6181
|
-
inputs: [{ name: '', internalType: '
|
|
6182
|
-
name: '
|
|
6183
|
-
outputs: [
|
|
6581
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6582
|
+
name: 'incomeFee',
|
|
6583
|
+
outputs: [
|
|
6584
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
6585
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6586
|
+
],
|
|
6184
6587
|
stateMutability: 'view',
|
|
6185
6588
|
},
|
|
6186
6589
|
{
|
|
@@ -6190,13 +6593,6 @@ export const publicPolicyAbi = [
|
|
|
6190
6593
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6191
6594
|
stateMutability: 'pure',
|
|
6192
6595
|
},
|
|
6193
|
-
{
|
|
6194
|
-
type: 'function',
|
|
6195
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6196
|
-
name: 'listed',
|
|
6197
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6198
|
-
stateMutability: 'view',
|
|
6199
|
-
},
|
|
6200
6596
|
{
|
|
6201
6597
|
type: 'function',
|
|
6202
6598
|
inputs: [],
|
|
@@ -6206,6 +6602,13 @@ export const publicPolicyAbi = [
|
|
|
6206
6602
|
],
|
|
6207
6603
|
stateMutability: 'view',
|
|
6208
6604
|
},
|
|
6605
|
+
{
|
|
6606
|
+
type: 'function',
|
|
6607
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6608
|
+
name: 'managerOf',
|
|
6609
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6610
|
+
stateMutability: 'view',
|
|
6611
|
+
},
|
|
6209
6612
|
{
|
|
6210
6613
|
type: 'function',
|
|
6211
6614
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6274,6 +6677,7 @@ export const publicPolicyAbi = [
|
|
|
6274
6677
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6275
6678
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6276
6679
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6680
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6277
6681
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6278
6682
|
],
|
|
6279
6683
|
},
|
|
@@ -6281,6 +6685,7 @@ export const publicPolicyAbi = [
|
|
|
6281
6685
|
],
|
|
6282
6686
|
name: 'onCInitialize',
|
|
6283
6687
|
outputs: [
|
|
6688
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6284
6689
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6285
6690
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6286
6691
|
],
|
|
@@ -6360,7 +6765,7 @@ export const publicPolicyAbi = [
|
|
|
6360
6765
|
components: [
|
|
6361
6766
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6362
6767
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6363
|
-
{ name: '
|
|
6768
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
6364
6769
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6365
6770
|
],
|
|
6366
6771
|
},
|
|
@@ -6417,25 +6822,8 @@ export const publicPolicyAbi = [
|
|
|
6417
6822
|
},
|
|
6418
6823
|
{
|
|
6419
6824
|
type: 'function',
|
|
6420
|
-
inputs: [{ name: '
|
|
6421
|
-
name: '
|
|
6422
|
-
outputs: [],
|
|
6423
|
-
stateMutability: 'nonpayable',
|
|
6424
|
-
},
|
|
6425
|
-
{
|
|
6426
|
-
type: 'function',
|
|
6427
|
-
inputs: [
|
|
6428
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6429
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6430
|
-
],
|
|
6431
|
-
name: 'setCreatorListed',
|
|
6432
|
-
outputs: [],
|
|
6433
|
-
stateMutability: 'nonpayable',
|
|
6434
|
-
},
|
|
6435
|
-
{
|
|
6436
|
-
type: 'function',
|
|
6437
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6438
|
-
name: 'setCurated',
|
|
6825
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6826
|
+
name: 'setCManager',
|
|
6439
6827
|
outputs: [],
|
|
6440
6828
|
stateMutability: 'nonpayable',
|
|
6441
6829
|
},
|
|
@@ -6456,26 +6844,6 @@ export const publicPolicyAbi = [
|
|
|
6456
6844
|
outputs: [],
|
|
6457
6845
|
stateMutability: 'nonpayable',
|
|
6458
6846
|
},
|
|
6459
|
-
{
|
|
6460
|
-
type: 'function',
|
|
6461
|
-
inputs: [
|
|
6462
|
-
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
6463
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
6464
|
-
],
|
|
6465
|
-
name: 'setForwarderTrusted',
|
|
6466
|
-
outputs: [],
|
|
6467
|
-
stateMutability: 'nonpayable',
|
|
6468
|
-
},
|
|
6469
|
-
{
|
|
6470
|
-
type: 'function',
|
|
6471
|
-
inputs: [
|
|
6472
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
6473
|
-
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
6474
|
-
],
|
|
6475
|
-
name: 'setListed',
|
|
6476
|
-
outputs: [],
|
|
6477
|
-
stateMutability: 'nonpayable',
|
|
6478
|
-
},
|
|
6479
6847
|
{
|
|
6480
6848
|
type: 'function',
|
|
6481
6849
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -6562,6 +6930,13 @@ export const publicPolicyAbi = [
|
|
|
6562
6930
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6563
6931
|
stateMutability: 'view',
|
|
6564
6932
|
},
|
|
6933
|
+
{
|
|
6934
|
+
type: 'function',
|
|
6935
|
+
inputs: [],
|
|
6936
|
+
name: 'sponsor',
|
|
6937
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6938
|
+
stateMutability: 'view',
|
|
6939
|
+
},
|
|
6565
6940
|
{
|
|
6566
6941
|
type: 'function',
|
|
6567
6942
|
inputs: [],
|
|
@@ -6609,35 +6984,18 @@ export const publicPolicyAbi = [
|
|
|
6609
6984
|
],
|
|
6610
6985
|
name: 'AuthoritySet',
|
|
6611
6986
|
},
|
|
6612
|
-
{
|
|
6613
|
-
type: 'event',
|
|
6614
|
-
anonymous: false,
|
|
6615
|
-
inputs: [
|
|
6616
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6617
|
-
],
|
|
6618
|
-
name: 'CreatorCuratedSet',
|
|
6619
|
-
},
|
|
6620
6987
|
{
|
|
6621
6988
|
type: 'event',
|
|
6622
6989
|
anonymous: false,
|
|
6623
6990
|
inputs: [
|
|
6624
6991
|
{
|
|
6625
|
-
name: '
|
|
6992
|
+
name: 'manager',
|
|
6626
6993
|
internalType: 'address',
|
|
6627
6994
|
type: 'address',
|
|
6628
6995
|
indexed: true,
|
|
6629
6996
|
},
|
|
6630
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6631
|
-
],
|
|
6632
|
-
name: 'CreatorListed',
|
|
6633
|
-
},
|
|
6634
|
-
{
|
|
6635
|
-
type: 'event',
|
|
6636
|
-
anonymous: false,
|
|
6637
|
-
inputs: [
|
|
6638
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6639
6997
|
],
|
|
6640
|
-
name: '
|
|
6998
|
+
name: 'CManagerSet',
|
|
6641
6999
|
},
|
|
6642
7000
|
{
|
|
6643
7001
|
type: 'event',
|
|
@@ -6656,34 +7014,6 @@ export const publicPolicyAbi = [
|
|
|
6656
7014
|
],
|
|
6657
7015
|
name: 'FeeListed',
|
|
6658
7016
|
},
|
|
6659
|
-
{
|
|
6660
|
-
type: 'event',
|
|
6661
|
-
anonymous: false,
|
|
6662
|
-
inputs: [
|
|
6663
|
-
{
|
|
6664
|
-
name: 'forwarder',
|
|
6665
|
-
internalType: 'address',
|
|
6666
|
-
type: 'address',
|
|
6667
|
-
indexed: true,
|
|
6668
|
-
},
|
|
6669
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
6670
|
-
],
|
|
6671
|
-
name: 'ForwarderTrusted',
|
|
6672
|
-
},
|
|
6673
|
-
{
|
|
6674
|
-
type: 'event',
|
|
6675
|
-
anonymous: false,
|
|
6676
|
-
inputs: [
|
|
6677
|
-
{
|
|
6678
|
-
name: 'token',
|
|
6679
|
-
internalType: 'address',
|
|
6680
|
-
type: 'address',
|
|
6681
|
-
indexed: true,
|
|
6682
|
-
},
|
|
6683
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6684
|
-
],
|
|
6685
|
-
name: 'Listed',
|
|
6686
|
-
},
|
|
6687
7017
|
{
|
|
6688
7018
|
type: 'event',
|
|
6689
7019
|
anonymous: false,
|
|
@@ -6794,11 +7124,6 @@ export const publicPolicyAbi = [
|
|
|
6794
7124
|
},
|
|
6795
7125
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6796
7126
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6797
|
-
{
|
|
6798
|
-
type: 'error',
|
|
6799
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
6800
|
-
name: 'CreatorNotListed',
|
|
6801
|
-
},
|
|
6802
7127
|
{
|
|
6803
7128
|
type: 'error',
|
|
6804
7129
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6819,21 +7144,12 @@ export const publicPolicyAbi = [
|
|
|
6819
7144
|
name: 'MintFeeNotListed',
|
|
6820
7145
|
},
|
|
6821
7146
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6822
|
-
{
|
|
6823
|
-
type: 'error',
|
|
6824
|
-
inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
|
|
6825
|
-
name: 'NoForwardedUser',
|
|
6826
|
-
},
|
|
6827
7147
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6828
7148
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6829
|
-
{
|
|
6830
|
-
type: 'error',
|
|
6831
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6832
|
-
name: 'NotListed',
|
|
6833
|
-
},
|
|
6834
7149
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6835
7150
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6836
7151
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
7152
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6837
7153
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6838
7154
|
{
|
|
6839
7155
|
type: 'error',
|