@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/dist/generated.js
CHANGED
|
@@ -7,7 +7,6 @@ export const cPoolManagerAbi = [
|
|
|
7
7
|
inputs: [
|
|
8
8
|
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
9
9
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
10
|
-
{ name: 'gate_', internalType: 'address', type: 'address' },
|
|
11
10
|
],
|
|
12
11
|
stateMutability: 'nonpayable',
|
|
13
12
|
},
|
|
@@ -68,6 +67,7 @@ export const cPoolManagerAbi = [
|
|
|
68
67
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
69
68
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
70
69
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
70
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
71
71
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
72
72
|
],
|
|
73
73
|
},
|
|
@@ -104,6 +104,7 @@ export const cPoolManagerAbi = [
|
|
|
104
104
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
105
105
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
106
106
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
107
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
107
108
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
108
109
|
],
|
|
109
110
|
},
|
|
@@ -132,6 +133,7 @@ export const cPoolManagerAbi = [
|
|
|
132
133
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
133
134
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
134
135
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
136
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
135
137
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
136
138
|
],
|
|
137
139
|
},
|
|
@@ -161,6 +163,7 @@ export const cPoolManagerAbi = [
|
|
|
161
163
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
162
164
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
163
165
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
166
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
164
167
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
165
168
|
],
|
|
166
169
|
},
|
|
@@ -210,13 +213,6 @@ export const cPoolManagerAbi = [
|
|
|
210
213
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
211
214
|
stateMutability: 'view',
|
|
212
215
|
},
|
|
213
|
-
{
|
|
214
|
-
type: 'function',
|
|
215
|
-
inputs: [],
|
|
216
|
-
name: 'gate',
|
|
217
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
218
|
-
stateMutability: 'view',
|
|
219
|
-
},
|
|
220
216
|
{
|
|
221
217
|
type: 'function',
|
|
222
218
|
inputs: [
|
|
@@ -228,6 +224,7 @@ export const cPoolManagerAbi = [
|
|
|
228
224
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
229
225
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
230
226
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
227
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
231
228
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
232
229
|
],
|
|
233
230
|
},
|
|
@@ -248,6 +245,7 @@ export const cPoolManagerAbi = [
|
|
|
248
245
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
249
246
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
250
247
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
248
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
251
249
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
252
250
|
],
|
|
253
251
|
},
|
|
@@ -269,6 +267,7 @@ export const cPoolManagerAbi = [
|
|
|
269
267
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
270
268
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
271
269
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
270
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
272
271
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
273
272
|
],
|
|
274
273
|
},
|
|
@@ -307,6 +306,7 @@ export const cPoolManagerAbi = [
|
|
|
307
306
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
308
307
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
309
308
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
309
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
310
310
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
311
311
|
],
|
|
312
312
|
},
|
|
@@ -369,6 +369,7 @@ export const cPoolManagerAbi = [
|
|
|
369
369
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
370
370
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
371
371
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
372
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
372
373
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
373
374
|
],
|
|
374
375
|
},
|
|
@@ -397,6 +398,17 @@ export const cPoolManagerAbi = [
|
|
|
397
398
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
398
399
|
stateMutability: 'payable',
|
|
399
400
|
},
|
|
401
|
+
{
|
|
402
|
+
type: 'function',
|
|
403
|
+
inputs: [
|
|
404
|
+
{ name: 'id', internalType: 'bytes32', type: 'bytes32' },
|
|
405
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
406
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
407
|
+
],
|
|
408
|
+
name: 'setPermissions',
|
|
409
|
+
outputs: [],
|
|
410
|
+
stateMutability: 'nonpayable',
|
|
411
|
+
},
|
|
400
412
|
{
|
|
401
413
|
type: 'function',
|
|
402
414
|
inputs: [],
|
|
@@ -404,6 +416,13 @@ export const cPoolManagerAbi = [
|
|
|
404
416
|
outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
|
|
405
417
|
stateMutability: 'nonpayable',
|
|
406
418
|
},
|
|
419
|
+
{
|
|
420
|
+
type: 'function',
|
|
421
|
+
inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
|
|
422
|
+
name: 'stamp',
|
|
423
|
+
outputs: [],
|
|
424
|
+
stateMutability: 'nonpayable',
|
|
425
|
+
},
|
|
407
426
|
{
|
|
408
427
|
type: 'function',
|
|
409
428
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -422,6 +441,7 @@ export const cPoolManagerAbi = [
|
|
|
422
441
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
423
442
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
424
443
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
444
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
425
445
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
426
446
|
],
|
|
427
447
|
},
|
|
@@ -524,6 +544,7 @@ export const cPoolManagerAbi = [
|
|
|
524
544
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
525
545
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
526
546
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
547
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
527
548
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
528
549
|
],
|
|
529
550
|
},
|
|
@@ -676,14 +697,6 @@ export const cPoolManagerAbi = [
|
|
|
676
697
|
],
|
|
677
698
|
name: 'FeesClaimed',
|
|
678
699
|
},
|
|
679
|
-
{
|
|
680
|
-
type: 'event',
|
|
681
|
-
anonymous: false,
|
|
682
|
-
inputs: [
|
|
683
|
-
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
684
|
-
],
|
|
685
|
-
name: 'GateSet',
|
|
686
|
-
},
|
|
687
700
|
{
|
|
688
701
|
type: 'event',
|
|
689
702
|
anonymous: false,
|
|
@@ -732,6 +745,12 @@ export const cPoolManagerAbi = [
|
|
|
732
745
|
type: 'uint256',
|
|
733
746
|
indexed: false,
|
|
734
747
|
},
|
|
748
|
+
{
|
|
749
|
+
name: 'policy',
|
|
750
|
+
internalType: 'address',
|
|
751
|
+
type: 'address',
|
|
752
|
+
indexed: false,
|
|
753
|
+
},
|
|
735
754
|
],
|
|
736
755
|
name: 'MarketCreated',
|
|
737
756
|
},
|
|
@@ -755,6 +774,26 @@ export const cPoolManagerAbi = [
|
|
|
755
774
|
],
|
|
756
775
|
name: 'OperatorSet',
|
|
757
776
|
},
|
|
777
|
+
{
|
|
778
|
+
type: 'event',
|
|
779
|
+
anonymous: false,
|
|
780
|
+
inputs: [
|
|
781
|
+
{
|
|
782
|
+
name: 'poolId',
|
|
783
|
+
internalType: 'bytes32',
|
|
784
|
+
type: 'bytes32',
|
|
785
|
+
indexed: true,
|
|
786
|
+
},
|
|
787
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
788
|
+
{
|
|
789
|
+
name: 'executor',
|
|
790
|
+
internalType: 'address',
|
|
791
|
+
type: 'address',
|
|
792
|
+
indexed: true,
|
|
793
|
+
},
|
|
794
|
+
],
|
|
795
|
+
name: 'PermissionsSet',
|
|
796
|
+
},
|
|
758
797
|
{
|
|
759
798
|
type: 'event',
|
|
760
799
|
anonymous: false,
|
|
@@ -1054,6 +1093,7 @@ export const cPoolManagerAbi = [
|
|
|
1054
1093
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1055
1094
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1056
1095
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1096
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1057
1097
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1058
1098
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1059
1099
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
@@ -1066,6 +1106,7 @@ export const cPoolManagerAbi = [
|
|
|
1066
1106
|
name: 'QuoteResult',
|
|
1067
1107
|
},
|
|
1068
1108
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1109
|
+
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1069
1110
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1070
1111
|
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1071
1112
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
@@ -1091,7 +1132,7 @@ export const fPoolManagerAbi = [
|
|
|
1091
1132
|
{
|
|
1092
1133
|
type: 'function',
|
|
1093
1134
|
inputs: [],
|
|
1094
|
-
name: '
|
|
1135
|
+
name: 'INCOME_FEE_MAX',
|
|
1095
1136
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1096
1137
|
stateMutability: 'view',
|
|
1097
1138
|
},
|
|
@@ -1102,13 +1143,6 @@ export const fPoolManagerAbi = [
|
|
|
1102
1143
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1103
1144
|
stateMutability: 'view',
|
|
1104
1145
|
},
|
|
1105
|
-
{
|
|
1106
|
-
type: 'function',
|
|
1107
|
-
inputs: [],
|
|
1108
|
-
name: 'POT_CUT_MAX',
|
|
1109
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1110
|
-
stateMutability: 'view',
|
|
1111
|
-
},
|
|
1112
1146
|
{
|
|
1113
1147
|
type: 'function',
|
|
1114
1148
|
inputs: [],
|
|
@@ -1302,7 +1336,19 @@ export const fPoolManagerAbi = [
|
|
|
1302
1336
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1303
1337
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1304
1338
|
],
|
|
1305
|
-
name: '
|
|
1339
|
+
name: 'lienLock',
|
|
1340
|
+
outputs: [],
|
|
1341
|
+
stateMutability: 'nonpayable',
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
type: 'function',
|
|
1345
|
+
inputs: [
|
|
1346
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1347
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1348
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1349
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1350
|
+
],
|
|
1351
|
+
name: 'lienUnlock',
|
|
1306
1352
|
outputs: [],
|
|
1307
1353
|
stateMutability: 'nonpayable',
|
|
1308
1354
|
},
|
|
@@ -1419,16 +1465,6 @@ export const fPoolManagerAbi = [
|
|
|
1419
1465
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1420
1466
|
stateMutability: 'nonpayable',
|
|
1421
1467
|
},
|
|
1422
|
-
{
|
|
1423
|
-
type: 'function',
|
|
1424
|
-
inputs: [
|
|
1425
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1426
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1427
|
-
],
|
|
1428
|
-
name: 'setAsks',
|
|
1429
|
-
outputs: [],
|
|
1430
|
-
stateMutability: 'nonpayable',
|
|
1431
|
-
},
|
|
1432
1468
|
{
|
|
1433
1469
|
type: 'function',
|
|
1434
1470
|
inputs: [
|
|
@@ -1450,6 +1486,17 @@ export const fPoolManagerAbi = [
|
|
|
1450
1486
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1451
1487
|
stateMutability: 'payable',
|
|
1452
1488
|
},
|
|
1489
|
+
{
|
|
1490
|
+
type: 'function',
|
|
1491
|
+
inputs: [
|
|
1492
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1493
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1494
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
1495
|
+
],
|
|
1496
|
+
name: 'setPermissions',
|
|
1497
|
+
outputs: [],
|
|
1498
|
+
stateMutability: 'nonpayable',
|
|
1499
|
+
},
|
|
1453
1500
|
{
|
|
1454
1501
|
type: 'function',
|
|
1455
1502
|
inputs: [
|
|
@@ -1608,18 +1655,6 @@ export const fPoolManagerAbi = [
|
|
|
1608
1655
|
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1609
1656
|
stateMutability: 'nonpayable',
|
|
1610
1657
|
},
|
|
1611
|
-
{
|
|
1612
|
-
type: 'function',
|
|
1613
|
-
inputs: [
|
|
1614
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1615
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1616
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1617
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1618
|
-
],
|
|
1619
|
-
name: 'unlock',
|
|
1620
|
-
outputs: [],
|
|
1621
|
-
stateMutability: 'nonpayable',
|
|
1622
|
-
},
|
|
1623
1658
|
{
|
|
1624
1659
|
type: 'function',
|
|
1625
1660
|
inputs: [],
|
|
@@ -1932,6 +1967,26 @@ export const fPoolManagerAbi = [
|
|
|
1932
1967
|
],
|
|
1933
1968
|
name: 'OperatorSet',
|
|
1934
1969
|
},
|
|
1970
|
+
{
|
|
1971
|
+
type: 'event',
|
|
1972
|
+
anonymous: false,
|
|
1973
|
+
inputs: [
|
|
1974
|
+
{
|
|
1975
|
+
name: 'poolId',
|
|
1976
|
+
internalType: 'bytes32',
|
|
1977
|
+
type: 'bytes32',
|
|
1978
|
+
indexed: true,
|
|
1979
|
+
},
|
|
1980
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1981
|
+
{
|
|
1982
|
+
name: 'executor',
|
|
1983
|
+
internalType: 'address',
|
|
1984
|
+
type: 'address',
|
|
1985
|
+
indexed: true,
|
|
1986
|
+
},
|
|
1987
|
+
],
|
|
1988
|
+
name: 'PermissionsSet',
|
|
1989
|
+
},
|
|
1935
1990
|
{
|
|
1936
1991
|
type: 'event',
|
|
1937
1992
|
anonymous: false,
|
|
@@ -2397,6 +2452,7 @@ export const logswapLensAbi = [
|
|
|
2397
2452
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2398
2453
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2399
2454
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2455
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2400
2456
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2401
2457
|
],
|
|
2402
2458
|
},
|
|
@@ -2416,6 +2472,7 @@ export const logswapLensAbi = [
|
|
|
2416
2472
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2417
2473
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2418
2474
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2475
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2419
2476
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2420
2477
|
],
|
|
2421
2478
|
},
|
|
@@ -2542,10 +2599,15 @@ export const logswapLensAbi = [
|
|
|
2542
2599
|
type: 'uint24',
|
|
2543
2600
|
},
|
|
2544
2601
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2545
|
-
{
|
|
2602
|
+
{
|
|
2603
|
+
name: 'realizedVariance',
|
|
2604
|
+
internalType: 'uint128',
|
|
2605
|
+
type: 'uint128',
|
|
2606
|
+
},
|
|
2546
2607
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2547
2608
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2548
2609
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2610
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2549
2611
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2550
2612
|
],
|
|
2551
2613
|
},
|
|
@@ -2585,6 +2647,7 @@ export const logswapLensAbi = [
|
|
|
2585
2647
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2586
2648
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2587
2649
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2650
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2588
2651
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2589
2652
|
],
|
|
2590
2653
|
},
|
|
@@ -2634,10 +2697,15 @@ export const logswapLensAbi = [
|
|
|
2634
2697
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2635
2698
|
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
2636
2699
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2637
|
-
{
|
|
2700
|
+
{
|
|
2701
|
+
name: 'realizedVariance',
|
|
2702
|
+
internalType: 'uint128',
|
|
2703
|
+
type: 'uint128',
|
|
2704
|
+
},
|
|
2638
2705
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2639
2706
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2640
2707
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2708
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2641
2709
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2642
2710
|
],
|
|
2643
2711
|
},
|
|
@@ -2661,12 +2729,20 @@ export const logswapLensAbi = [
|
|
|
2661
2729
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
2662
2730
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2663
2731
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2664
|
-
{
|
|
2732
|
+
{
|
|
2733
|
+
name: 'realizedVariance',
|
|
2734
|
+
internalType: 'uint256',
|
|
2735
|
+
type: 'uint256',
|
|
2736
|
+
},
|
|
2665
2737
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2666
2738
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2667
2739
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2668
2740
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2669
2741
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2742
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2743
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2744
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2745
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2670
2746
|
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2671
2747
|
],
|
|
2672
2748
|
},
|
|
@@ -2684,6 +2760,7 @@ export const logswapLensAbi = [
|
|
|
2684
2760
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2685
2761
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2686
2762
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2763
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2687
2764
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2688
2765
|
],
|
|
2689
2766
|
},
|
|
@@ -2720,6 +2797,7 @@ export const logswapLensAbi = [
|
|
|
2720
2797
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2721
2798
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2722
2799
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2800
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2723
2801
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2724
2802
|
],
|
|
2725
2803
|
},
|
|
@@ -2740,6 +2818,7 @@ export const logswapLensAbi = [
|
|
|
2740
2818
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2741
2819
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2742
2820
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2821
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2743
2822
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2744
2823
|
],
|
|
2745
2824
|
},
|
|
@@ -2759,6 +2838,7 @@ export const logswapLensAbi = [
|
|
|
2759
2838
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2760
2839
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2761
2840
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2841
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2762
2842
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2763
2843
|
],
|
|
2764
2844
|
},
|
|
@@ -2778,6 +2858,7 @@ export const logswapLensAbi = [
|
|
|
2778
2858
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2779
2859
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2780
2860
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2861
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2781
2862
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2782
2863
|
],
|
|
2783
2864
|
},
|
|
@@ -2804,6 +2885,7 @@ export const logswapLensAbi = [
|
|
|
2804
2885
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2805
2886
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2806
2887
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2888
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2807
2889
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2808
2890
|
],
|
|
2809
2891
|
},
|
|
@@ -2832,6 +2914,7 @@ export const logswapLensAbi = [
|
|
|
2832
2914
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2833
2915
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2834
2916
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2917
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2835
2918
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2836
2919
|
],
|
|
2837
2920
|
},
|
|
@@ -2870,6 +2953,7 @@ export const logswapLensAbi = [
|
|
|
2870
2953
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2871
2954
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2872
2955
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2956
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2873
2957
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2874
2958
|
],
|
|
2875
2959
|
},
|
|
@@ -2889,6 +2973,7 @@ export const logswapLensAbi = [
|
|
|
2889
2973
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2890
2974
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2891
2975
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2976
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2892
2977
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2893
2978
|
],
|
|
2894
2979
|
},
|
|
@@ -2922,6 +3007,7 @@ export const logswapLensAbi = [
|
|
|
2922
3007
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2923
3008
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2924
3009
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3010
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2925
3011
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2926
3012
|
],
|
|
2927
3013
|
},
|
|
@@ -2964,6 +3050,7 @@ export const logswapLensAbi = [
|
|
|
2964
3050
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2965
3051
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2966
3052
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3053
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2967
3054
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2968
3055
|
],
|
|
2969
3056
|
},
|
|
@@ -2985,6 +3072,7 @@ export const logswapLensAbi = [
|
|
|
2985
3072
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2986
3073
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2987
3074
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3075
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2988
3076
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2989
3077
|
],
|
|
2990
3078
|
},
|
|
@@ -3006,6 +3094,7 @@ export const logswapLensAbi = [
|
|
|
3006
3094
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3007
3095
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3008
3096
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3097
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3009
3098
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3010
3099
|
],
|
|
3011
3100
|
},
|
|
@@ -3027,6 +3116,7 @@ export const logswapLensAbi = [
|
|
|
3027
3116
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3028
3117
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3029
3118
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3119
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3030
3120
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3031
3121
|
],
|
|
3032
3122
|
},
|
|
@@ -3084,6 +3174,7 @@ export const logswapLensAbi = [
|
|
|
3084
3174
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3085
3175
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3086
3176
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3177
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3087
3178
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3088
3179
|
],
|
|
3089
3180
|
},
|
|
@@ -3173,6 +3264,7 @@ export const logswapRouterAbi = [
|
|
|
3173
3264
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3174
3265
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3175
3266
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3267
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3176
3268
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3177
3269
|
],
|
|
3178
3270
|
},
|
|
@@ -3201,6 +3293,7 @@ export const logswapRouterAbi = [
|
|
|
3201
3293
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3202
3294
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3203
3295
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3296
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3204
3297
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3205
3298
|
],
|
|
3206
3299
|
},
|
|
@@ -3223,6 +3316,7 @@ export const logswapRouterAbi = [
|
|
|
3223
3316
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3224
3317
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3225
3318
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3319
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3226
3320
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3227
3321
|
],
|
|
3228
3322
|
},
|
|
@@ -3259,6 +3353,7 @@ export const logswapRouterAbi = [
|
|
|
3259
3353
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3260
3354
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3261
3355
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3356
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3262
3357
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3263
3358
|
],
|
|
3264
3359
|
},
|
|
@@ -3287,6 +3382,7 @@ export const logswapRouterAbi = [
|
|
|
3287
3382
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3288
3383
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3289
3384
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3385
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3290
3386
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3291
3387
|
],
|
|
3292
3388
|
},
|
|
@@ -3314,6 +3410,7 @@ export const logswapRouterAbi = [
|
|
|
3314
3410
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3315
3411
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3316
3412
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3413
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3317
3414
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3318
3415
|
],
|
|
3319
3416
|
},
|
|
@@ -3352,6 +3449,7 @@ export const logswapRouterAbi = [
|
|
|
3352
3449
|
internalType: 'int256',
|
|
3353
3450
|
type: 'int256',
|
|
3354
3451
|
},
|
|
3452
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3355
3453
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3356
3454
|
],
|
|
3357
3455
|
},
|
|
@@ -3383,6 +3481,7 @@ export const logswapRouterAbi = [
|
|
|
3383
3481
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3384
3482
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3385
3483
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3484
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3386
3485
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3387
3486
|
],
|
|
3388
3487
|
},
|
|
@@ -3412,6 +3511,7 @@ export const logswapRouterAbi = [
|
|
|
3412
3511
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3413
3512
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3414
3513
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3514
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3415
3515
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3416
3516
|
],
|
|
3417
3517
|
},
|
|
@@ -3497,6 +3597,7 @@ export const logswapRouterAbi = [
|
|
|
3497
3597
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3498
3598
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3499
3599
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3600
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3500
3601
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3501
3602
|
],
|
|
3502
3603
|
},
|
|
@@ -3526,6 +3627,7 @@ export const logswapRouterAbi = [
|
|
|
3526
3627
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3527
3628
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3528
3629
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3630
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3529
3631
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3530
3632
|
],
|
|
3531
3633
|
},
|
|
@@ -3590,22 +3692,6 @@ export const logswapRouterAbi = [
|
|
|
3590
3692
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3591
3693
|
stateMutability: 'nonpayable',
|
|
3592
3694
|
},
|
|
3593
|
-
{
|
|
3594
|
-
type: 'function',
|
|
3595
|
-
inputs: [
|
|
3596
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3597
|
-
{ name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
|
|
3598
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3599
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3600
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3601
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3602
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3603
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3604
|
-
],
|
|
3605
|
-
name: 'swapExactIn',
|
|
3606
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3607
|
-
stateMutability: 'nonpayable',
|
|
3608
|
-
},
|
|
3609
3695
|
{
|
|
3610
3696
|
type: 'function',
|
|
3611
3697
|
inputs: [
|
|
@@ -3617,6 +3703,7 @@ export const logswapRouterAbi = [
|
|
|
3617
3703
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3618
3704
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3619
3705
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3706
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3620
3707
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3621
3708
|
],
|
|
3622
3709
|
},
|
|
@@ -3630,6 +3717,22 @@ export const logswapRouterAbi = [
|
|
|
3630
3717
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
3631
3718
|
stateMutability: 'nonpayable',
|
|
3632
3719
|
},
|
|
3720
|
+
{
|
|
3721
|
+
type: 'function',
|
|
3722
|
+
inputs: [
|
|
3723
|
+
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3724
|
+
{ name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
|
|
3725
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3726
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3727
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3728
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3729
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
3730
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3731
|
+
],
|
|
3732
|
+
name: 'swapExactIn',
|
|
3733
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3734
|
+
stateMutability: 'nonpayable',
|
|
3735
|
+
},
|
|
3633
3736
|
{
|
|
3634
3737
|
type: 'function',
|
|
3635
3738
|
inputs: [
|
|
@@ -3646,6 +3749,7 @@ export const logswapRouterAbi = [
|
|
|
3646
3749
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3647
3750
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3648
3751
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3752
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3649
3753
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3650
3754
|
],
|
|
3651
3755
|
},
|
|
@@ -3672,6 +3776,7 @@ export const logswapRouterAbi = [
|
|
|
3672
3776
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3673
3777
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3674
3778
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3779
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3675
3780
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3676
3781
|
],
|
|
3677
3782
|
},
|
|
@@ -3703,6 +3808,7 @@ export const logswapRouterAbi = [
|
|
|
3703
3808
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3704
3809
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3705
3810
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3811
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3706
3812
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3707
3813
|
],
|
|
3708
3814
|
},
|
|
@@ -3742,6 +3848,7 @@ export const logswapRouterAbi = [
|
|
|
3742
3848
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3743
3849
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3744
3850
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3851
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3745
3852
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3746
3853
|
],
|
|
3747
3854
|
},
|
|
@@ -3846,25 +3953,18 @@ export const padPolicyAbi = [
|
|
|
3846
3953
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3847
3954
|
stateMutability: 'view',
|
|
3848
3955
|
},
|
|
3849
|
-
{
|
|
3850
|
-
type: 'function',
|
|
3851
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3852
|
-
name: 'creator',
|
|
3853
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3854
|
-
stateMutability: 'view',
|
|
3855
|
-
},
|
|
3856
3956
|
{
|
|
3857
3957
|
type: 'function',
|
|
3858
3958
|
inputs: [],
|
|
3859
|
-
name: '
|
|
3860
|
-
outputs: [{ name: '', internalType: '
|
|
3959
|
+
name: 'cManager',
|
|
3960
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3861
3961
|
stateMutability: 'view',
|
|
3862
3962
|
},
|
|
3863
3963
|
{
|
|
3864
3964
|
type: 'function',
|
|
3865
|
-
inputs: [{ name: '', internalType: '
|
|
3866
|
-
name: '
|
|
3867
|
-
outputs: [{ name: '', internalType: '
|
|
3965
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3966
|
+
name: 'creator',
|
|
3967
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3868
3968
|
stateMutability: 'view',
|
|
3869
3969
|
},
|
|
3870
3970
|
{
|
|
@@ -3881,6 +3981,13 @@ export const padPolicyAbi = [
|
|
|
3881
3981
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3882
3982
|
stateMutability: 'view',
|
|
3883
3983
|
},
|
|
3984
|
+
{
|
|
3985
|
+
type: 'function',
|
|
3986
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3987
|
+
name: 'creatorShareOf',
|
|
3988
|
+
outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
|
|
3989
|
+
stateMutability: 'view',
|
|
3990
|
+
},
|
|
3884
3991
|
{
|
|
3885
3992
|
type: 'function',
|
|
3886
3993
|
inputs: [],
|
|
@@ -3895,6 +4002,23 @@ export const padPolicyAbi = [
|
|
|
3895
4002
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3896
4003
|
stateMutability: 'view',
|
|
3897
4004
|
},
|
|
4005
|
+
{
|
|
4006
|
+
type: 'function',
|
|
4007
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4008
|
+
name: 'incomeFee',
|
|
4009
|
+
outputs: [
|
|
4010
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4011
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4012
|
+
],
|
|
4013
|
+
stateMutability: 'view',
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
type: 'function',
|
|
4017
|
+
inputs: [],
|
|
4018
|
+
name: 'incomeFeeRate',
|
|
4019
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4020
|
+
stateMutability: 'view',
|
|
4021
|
+
},
|
|
3898
4022
|
{
|
|
3899
4023
|
type: 'function',
|
|
3900
4024
|
inputs: [],
|
|
@@ -3911,6 +4035,13 @@ export const padPolicyAbi = [
|
|
|
3911
4035
|
],
|
|
3912
4036
|
stateMutability: 'view',
|
|
3913
4037
|
},
|
|
4038
|
+
{
|
|
4039
|
+
type: 'function',
|
|
4040
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4041
|
+
name: 'managerOf',
|
|
4042
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4043
|
+
stateMutability: 'view',
|
|
4044
|
+
},
|
|
3914
4045
|
{
|
|
3915
4046
|
type: 'function',
|
|
3916
4047
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3970,20 +4101,46 @@ export const padPolicyAbi = [
|
|
|
3970
4101
|
{
|
|
3971
4102
|
type: 'function',
|
|
3972
4103
|
inputs: [
|
|
3973
|
-
{ name: '
|
|
4104
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
3974
4105
|
{
|
|
3975
|
-
name: '
|
|
3976
|
-
internalType: 'struct
|
|
4106
|
+
name: '',
|
|
4107
|
+
internalType: 'struct PoolKey',
|
|
3977
4108
|
type: 'tuple',
|
|
3978
4109
|
components: [
|
|
4110
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3979
4111
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3980
|
-
{ name: '
|
|
3981
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3982
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4112
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3983
4113
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3984
|
-
{ name: '
|
|
3985
|
-
|
|
3986
|
-
|
|
4114
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4115
|
+
],
|
|
4116
|
+
},
|
|
4117
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4118
|
+
],
|
|
4119
|
+
name: 'onCInitialize',
|
|
4120
|
+
outputs: [
|
|
4121
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4122
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4123
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4124
|
+
],
|
|
4125
|
+
stateMutability: 'pure',
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
type: 'function',
|
|
4129
|
+
inputs: [
|
|
4130
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4131
|
+
{
|
|
4132
|
+
name: 'key',
|
|
4133
|
+
internalType: 'struct FPoolKey',
|
|
4134
|
+
type: 'tuple',
|
|
4135
|
+
components: [
|
|
4136
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4137
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4138
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4139
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4140
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4141
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4142
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4143
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
3987
4144
|
],
|
|
3988
4145
|
},
|
|
3989
4146
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4041,7 +4198,7 @@ export const padPolicyAbi = [
|
|
|
4041
4198
|
components: [
|
|
4042
4199
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4043
4200
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4044
|
-
{ name: '
|
|
4201
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4045
4202
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4046
4203
|
],
|
|
4047
4204
|
},
|
|
@@ -4082,13 +4239,6 @@ export const padPolicyAbi = [
|
|
|
4082
4239
|
outputs: [],
|
|
4083
4240
|
stateMutability: 'nonpayable',
|
|
4084
4241
|
},
|
|
4085
|
-
{
|
|
4086
|
-
type: 'function',
|
|
4087
|
-
inputs: [],
|
|
4088
|
-
name: 'protocolShare',
|
|
4089
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4090
|
-
stateMutability: 'view',
|
|
4091
|
-
},
|
|
4092
4242
|
{
|
|
4093
4243
|
type: 'function',
|
|
4094
4244
|
inputs: [],
|
|
@@ -4105,18 +4255,8 @@ export const padPolicyAbi = [
|
|
|
4105
4255
|
},
|
|
4106
4256
|
{
|
|
4107
4257
|
type: 'function',
|
|
4108
|
-
inputs: [{ name: '
|
|
4109
|
-
name: '
|
|
4110
|
-
outputs: [],
|
|
4111
|
-
stateMutability: 'nonpayable',
|
|
4112
|
-
},
|
|
4113
|
-
{
|
|
4114
|
-
type: 'function',
|
|
4115
|
-
inputs: [
|
|
4116
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4117
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4118
|
-
],
|
|
4119
|
-
name: 'setCreatorListed',
|
|
4258
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4259
|
+
name: 'setCManager',
|
|
4120
4260
|
outputs: [],
|
|
4121
4261
|
stateMutability: 'nonpayable',
|
|
4122
4262
|
},
|
|
@@ -4137,6 +4277,13 @@ export const padPolicyAbi = [
|
|
|
4137
4277
|
outputs: [],
|
|
4138
4278
|
stateMutability: 'nonpayable',
|
|
4139
4279
|
},
|
|
4280
|
+
{
|
|
4281
|
+
type: 'function',
|
|
4282
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4283
|
+
name: 'setIncomeFeeRate',
|
|
4284
|
+
outputs: [],
|
|
4285
|
+
stateMutability: 'nonpayable',
|
|
4286
|
+
},
|
|
4140
4287
|
{
|
|
4141
4288
|
type: 'function',
|
|
4142
4289
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -4184,10 +4331,9 @@ export const padPolicyAbi = [
|
|
|
4184
4331
|
{
|
|
4185
4332
|
type: 'function',
|
|
4186
4333
|
inputs: [
|
|
4187
|
-
{ name: '
|
|
4188
|
-
{ name: '
|
|
4189
|
-
{ name: '
|
|
4190
|
-
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4334
|
+
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
4335
|
+
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4336
|
+
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
4191
4337
|
],
|
|
4192
4338
|
name: 'setSchedule',
|
|
4193
4339
|
outputs: [],
|
|
@@ -4205,12 +4351,9 @@ export const padPolicyAbi = [
|
|
|
4205
4351
|
},
|
|
4206
4352
|
{
|
|
4207
4353
|
type: 'function',
|
|
4208
|
-
inputs: [
|
|
4209
|
-
name: '
|
|
4210
|
-
outputs: [
|
|
4211
|
-
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4212
|
-
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4213
|
-
],
|
|
4354
|
+
inputs: [],
|
|
4355
|
+
name: 'sponsor',
|
|
4356
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4214
4357
|
stateMutability: 'view',
|
|
4215
4358
|
},
|
|
4216
4359
|
{
|
|
@@ -4294,27 +4437,18 @@ export const padPolicyAbi = [
|
|
|
4294
4437
|
],
|
|
4295
4438
|
name: 'AuthoritySet',
|
|
4296
4439
|
},
|
|
4297
|
-
{
|
|
4298
|
-
type: 'event',
|
|
4299
|
-
anonymous: false,
|
|
4300
|
-
inputs: [
|
|
4301
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4302
|
-
],
|
|
4303
|
-
name: 'CreatorCuratedSet',
|
|
4304
|
-
},
|
|
4305
4440
|
{
|
|
4306
4441
|
type: 'event',
|
|
4307
4442
|
anonymous: false,
|
|
4308
4443
|
inputs: [
|
|
4309
4444
|
{
|
|
4310
|
-
name: '
|
|
4445
|
+
name: 'manager',
|
|
4311
4446
|
internalType: 'address',
|
|
4312
4447
|
type: 'address',
|
|
4313
4448
|
indexed: true,
|
|
4314
4449
|
},
|
|
4315
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4316
4450
|
],
|
|
4317
|
-
name: '
|
|
4451
|
+
name: 'CManagerSet',
|
|
4318
4452
|
},
|
|
4319
4453
|
{
|
|
4320
4454
|
type: 'event',
|
|
@@ -4348,6 +4482,19 @@ export const padPolicyAbi = [
|
|
|
4348
4482
|
],
|
|
4349
4483
|
name: 'Graduated',
|
|
4350
4484
|
},
|
|
4485
|
+
{
|
|
4486
|
+
type: 'event',
|
|
4487
|
+
anonymous: false,
|
|
4488
|
+
inputs: [
|
|
4489
|
+
{
|
|
4490
|
+
name: 'rate',
|
|
4491
|
+
internalType: 'uint256',
|
|
4492
|
+
type: 'uint256',
|
|
4493
|
+
indexed: false,
|
|
4494
|
+
},
|
|
4495
|
+
],
|
|
4496
|
+
name: 'IncomeFeeRateSet',
|
|
4497
|
+
},
|
|
4351
4498
|
{
|
|
4352
4499
|
type: 'event',
|
|
4353
4500
|
anonymous: false,
|
|
@@ -4421,12 +4568,6 @@ export const padPolicyAbi = [
|
|
|
4421
4568
|
type: 'uint256',
|
|
4422
4569
|
indexed: false,
|
|
4423
4570
|
},
|
|
4424
|
-
{
|
|
4425
|
-
name: 'protocolShare',
|
|
4426
|
-
internalType: 'uint256',
|
|
4427
|
-
type: 'uint256',
|
|
4428
|
-
indexed: false,
|
|
4429
|
-
},
|
|
4430
4571
|
{
|
|
4431
4572
|
name: 'creatorShareMin',
|
|
4432
4573
|
internalType: 'uint256',
|
|
@@ -4458,12 +4599,6 @@ export const padPolicyAbi = [
|
|
|
4458
4599
|
type: 'uint256',
|
|
4459
4600
|
indexed: false,
|
|
4460
4601
|
},
|
|
4461
|
-
{
|
|
4462
|
-
name: 'protocolShare',
|
|
4463
|
-
internalType: 'uint256',
|
|
4464
|
-
type: 'uint256',
|
|
4465
|
-
indexed: false,
|
|
4466
|
-
},
|
|
4467
4602
|
],
|
|
4468
4603
|
name: 'SplitSet',
|
|
4469
4604
|
},
|
|
@@ -4488,11 +4623,6 @@ export const padPolicyAbi = [
|
|
|
4488
4623
|
},
|
|
4489
4624
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4490
4625
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4491
|
-
{
|
|
4492
|
-
type: 'error',
|
|
4493
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4494
|
-
name: 'CreatorNotListed',
|
|
4495
|
-
},
|
|
4496
4626
|
{
|
|
4497
4627
|
type: 'error',
|
|
4498
4628
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4514,6 +4644,7 @@ export const padPolicyAbi = [
|
|
|
4514
4644
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4515
4645
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4516
4646
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4647
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4517
4648
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4518
4649
|
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4519
4650
|
{
|
|
@@ -4539,7 +4670,7 @@ export const polPolicyAbi = [
|
|
|
4539
4670
|
type: 'constructor',
|
|
4540
4671
|
inputs: [
|
|
4541
4672
|
{
|
|
4542
|
-
name: '
|
|
4673
|
+
name: 'manager_',
|
|
4543
4674
|
internalType: 'contract FPoolManager',
|
|
4544
4675
|
type: 'address',
|
|
4545
4676
|
},
|
|
@@ -4560,25 +4691,18 @@ export const polPolicyAbi = [
|
|
|
4560
4691
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4561
4692
|
stateMutability: 'view',
|
|
4562
4693
|
},
|
|
4563
|
-
{
|
|
4564
|
-
type: 'function',
|
|
4565
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4566
|
-
name: 'creator',
|
|
4567
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4568
|
-
stateMutability: 'view',
|
|
4569
|
-
},
|
|
4570
4694
|
{
|
|
4571
4695
|
type: 'function',
|
|
4572
4696
|
inputs: [],
|
|
4573
|
-
name: '
|
|
4574
|
-
outputs: [{ name: '', internalType: '
|
|
4697
|
+
name: 'cManager',
|
|
4698
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4575
4699
|
stateMutability: 'view',
|
|
4576
4700
|
},
|
|
4577
4701
|
{
|
|
4578
4702
|
type: 'function',
|
|
4579
|
-
inputs: [{ name: '', internalType: '
|
|
4580
|
-
name: '
|
|
4581
|
-
outputs: [{ name: '', internalType: '
|
|
4703
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4704
|
+
name: 'creator',
|
|
4705
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4582
4706
|
stateMutability: 'view',
|
|
4583
4707
|
},
|
|
4584
4708
|
{
|
|
@@ -4595,10 +4719,20 @@ export const polPolicyAbi = [
|
|
|
4595
4719
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4596
4720
|
stateMutability: 'view',
|
|
4597
4721
|
},
|
|
4722
|
+
{
|
|
4723
|
+
type: 'function',
|
|
4724
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4725
|
+
name: 'incomeFee',
|
|
4726
|
+
outputs: [
|
|
4727
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4728
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4729
|
+
],
|
|
4730
|
+
stateMutability: 'view',
|
|
4731
|
+
},
|
|
4598
4732
|
{
|
|
4599
4733
|
type: 'function',
|
|
4600
4734
|
inputs: [],
|
|
4601
|
-
name: '
|
|
4735
|
+
name: 'incomeFeeRate',
|
|
4602
4736
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4603
4737
|
stateMutability: 'view',
|
|
4604
4738
|
},
|
|
@@ -4618,6 +4752,13 @@ export const polPolicyAbi = [
|
|
|
4618
4752
|
],
|
|
4619
4753
|
stateMutability: 'view',
|
|
4620
4754
|
},
|
|
4755
|
+
{
|
|
4756
|
+
type: 'function',
|
|
4757
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4758
|
+
name: 'managerOf',
|
|
4759
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4760
|
+
stateMutability: 'view',
|
|
4761
|
+
},
|
|
4621
4762
|
{
|
|
4622
4763
|
type: 'function',
|
|
4623
4764
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4656,7 +4797,7 @@ export const polPolicyAbi = [
|
|
|
4656
4797
|
{
|
|
4657
4798
|
type: 'function',
|
|
4658
4799
|
inputs: [],
|
|
4659
|
-
name: '
|
|
4800
|
+
name: 'minQuoteRatio',
|
|
4660
4801
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4661
4802
|
stateMutability: 'view',
|
|
4662
4803
|
},
|
|
@@ -4681,6 +4822,32 @@ export const polPolicyAbi = [
|
|
|
4681
4822
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4682
4823
|
stateMutability: 'view',
|
|
4683
4824
|
},
|
|
4825
|
+
{
|
|
4826
|
+
type: 'function',
|
|
4827
|
+
inputs: [
|
|
4828
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4829
|
+
{
|
|
4830
|
+
name: '',
|
|
4831
|
+
internalType: 'struct PoolKey',
|
|
4832
|
+
type: 'tuple',
|
|
4833
|
+
components: [
|
|
4834
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4835
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4836
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4837
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4838
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4839
|
+
],
|
|
4840
|
+
},
|
|
4841
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4842
|
+
],
|
|
4843
|
+
name: 'onCInitialize',
|
|
4844
|
+
outputs: [
|
|
4845
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4846
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4847
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4848
|
+
],
|
|
4849
|
+
stateMutability: 'pure',
|
|
4850
|
+
},
|
|
4684
4851
|
{
|
|
4685
4852
|
type: 'function',
|
|
4686
4853
|
inputs: [
|
|
@@ -4755,7 +4922,7 @@ export const polPolicyAbi = [
|
|
|
4755
4922
|
components: [
|
|
4756
4923
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4757
4924
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4758
|
-
{ name: '
|
|
4925
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4759
4926
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4760
4927
|
],
|
|
4761
4928
|
},
|
|
@@ -4793,37 +4960,41 @@ export const polPolicyAbi = [
|
|
|
4793
4960
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4794
4961
|
stateMutability: 'view',
|
|
4795
4962
|
},
|
|
4963
|
+
{
|
|
4964
|
+
type: 'function',
|
|
4965
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4966
|
+
name: 'setCManager',
|
|
4967
|
+
outputs: [],
|
|
4968
|
+
stateMutability: 'nonpayable',
|
|
4969
|
+
},
|
|
4796
4970
|
{
|
|
4797
4971
|
type: 'function',
|
|
4798
4972
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4799
|
-
name: '
|
|
4973
|
+
name: 'setFeeCurated',
|
|
4800
4974
|
outputs: [],
|
|
4801
4975
|
stateMutability: 'nonpayable',
|
|
4802
4976
|
},
|
|
4803
4977
|
{
|
|
4804
4978
|
type: 'function',
|
|
4805
4979
|
inputs: [
|
|
4806
|
-
{ name: '
|
|
4980
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4807
4981
|
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4808
4982
|
],
|
|
4809
|
-
name: '
|
|
4983
|
+
name: 'setFeeListed',
|
|
4810
4984
|
outputs: [],
|
|
4811
4985
|
stateMutability: 'nonpayable',
|
|
4812
4986
|
},
|
|
4813
4987
|
{
|
|
4814
4988
|
type: 'function',
|
|
4815
|
-
inputs: [{ name: '
|
|
4816
|
-
name: '
|
|
4989
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4990
|
+
name: 'setIncomeFeeRate',
|
|
4817
4991
|
outputs: [],
|
|
4818
4992
|
stateMutability: 'nonpayable',
|
|
4819
4993
|
},
|
|
4820
4994
|
{
|
|
4821
4995
|
type: 'function',
|
|
4822
|
-
inputs: [
|
|
4823
|
-
|
|
4824
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4825
|
-
],
|
|
4826
|
-
name: 'setFeeListed',
|
|
4996
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
4997
|
+
name: 'setMinQuoteRatio',
|
|
4827
4998
|
outputs: [],
|
|
4828
4999
|
stateMutability: 'nonpayable',
|
|
4829
5000
|
},
|
|
@@ -4873,13 +5044,10 @@ export const polPolicyAbi = [
|
|
|
4873
5044
|
},
|
|
4874
5045
|
{
|
|
4875
5046
|
type: 'function',
|
|
4876
|
-
inputs: [
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
name: 'setRules',
|
|
4881
|
-
outputs: [],
|
|
4882
|
-
stateMutability: 'nonpayable',
|
|
5047
|
+
inputs: [],
|
|
5048
|
+
name: 'sponsor',
|
|
5049
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5050
|
+
stateMutability: 'view',
|
|
4883
5051
|
},
|
|
4884
5052
|
{
|
|
4885
5053
|
type: 'event',
|
|
@@ -4921,27 +5089,18 @@ export const polPolicyAbi = [
|
|
|
4921
5089
|
],
|
|
4922
5090
|
name: 'AuthoritySet',
|
|
4923
5091
|
},
|
|
4924
|
-
{
|
|
4925
|
-
type: 'event',
|
|
4926
|
-
anonymous: false,
|
|
4927
|
-
inputs: [
|
|
4928
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4929
|
-
],
|
|
4930
|
-
name: 'CreatorCuratedSet',
|
|
4931
|
-
},
|
|
4932
5092
|
{
|
|
4933
5093
|
type: 'event',
|
|
4934
5094
|
anonymous: false,
|
|
4935
5095
|
inputs: [
|
|
4936
5096
|
{
|
|
4937
|
-
name: '
|
|
5097
|
+
name: 'manager',
|
|
4938
5098
|
internalType: 'address',
|
|
4939
5099
|
type: 'address',
|
|
4940
5100
|
indexed: true,
|
|
4941
5101
|
},
|
|
4942
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4943
5102
|
],
|
|
4944
|
-
name: '
|
|
5103
|
+
name: 'CManagerSet',
|
|
4945
5104
|
},
|
|
4946
5105
|
{
|
|
4947
5106
|
type: 'event',
|
|
@@ -4960,6 +5119,32 @@ export const polPolicyAbi = [
|
|
|
4960
5119
|
],
|
|
4961
5120
|
name: 'FeeListed',
|
|
4962
5121
|
},
|
|
5122
|
+
{
|
|
5123
|
+
type: 'event',
|
|
5124
|
+
anonymous: false,
|
|
5125
|
+
inputs: [
|
|
5126
|
+
{
|
|
5127
|
+
name: 'rate',
|
|
5128
|
+
internalType: 'uint256',
|
|
5129
|
+
type: 'uint256',
|
|
5130
|
+
indexed: false,
|
|
5131
|
+
},
|
|
5132
|
+
],
|
|
5133
|
+
name: 'IncomeFeeRateSet',
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
type: 'event',
|
|
5137
|
+
anonymous: false,
|
|
5138
|
+
inputs: [
|
|
5139
|
+
{
|
|
5140
|
+
name: 'ratio',
|
|
5141
|
+
internalType: 'uint256',
|
|
5142
|
+
type: 'uint256',
|
|
5143
|
+
indexed: false,
|
|
5144
|
+
},
|
|
5145
|
+
],
|
|
5146
|
+
name: 'MinQuoteRatioSet',
|
|
5147
|
+
},
|
|
4963
5148
|
{
|
|
4964
5149
|
type: 'event',
|
|
4965
5150
|
anonymous: false,
|
|
@@ -5023,32 +5208,8 @@ export const polPolicyAbi = [
|
|
|
5023
5208
|
],
|
|
5024
5209
|
name: 'QuoteListed',
|
|
5025
5210
|
},
|
|
5026
|
-
{
|
|
5027
|
-
type: 'event',
|
|
5028
|
-
anonymous: false,
|
|
5029
|
-
inputs: [
|
|
5030
|
-
{
|
|
5031
|
-
name: 'keepQuote',
|
|
5032
|
-
internalType: 'uint256',
|
|
5033
|
-
type: 'uint256',
|
|
5034
|
-
indexed: false,
|
|
5035
|
-
},
|
|
5036
|
-
{
|
|
5037
|
-
name: 'minQuoteAtSeed',
|
|
5038
|
-
internalType: 'uint256',
|
|
5039
|
-
type: 'uint256',
|
|
5040
|
-
indexed: false,
|
|
5041
|
-
},
|
|
5042
|
-
],
|
|
5043
|
-
name: 'RulesSet',
|
|
5044
|
-
},
|
|
5045
5211
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5046
5212
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5047
|
-
{
|
|
5048
|
-
type: 'error',
|
|
5049
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
5050
|
-
name: 'CreatorNotListed',
|
|
5051
|
-
},
|
|
5052
5213
|
{
|
|
5053
5214
|
type: 'error',
|
|
5054
5215
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -5064,6 +5225,7 @@ export const polPolicyAbi = [
|
|
|
5064
5225
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5065
5226
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5066
5227
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5228
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5067
5229
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5068
5230
|
{
|
|
5069
5231
|
type: 'error',
|
|
@@ -5091,6 +5253,17 @@ export const policyRegistryAbi = [
|
|
|
5091
5253
|
outputs: [],
|
|
5092
5254
|
stateMutability: 'nonpayable',
|
|
5093
5255
|
},
|
|
5256
|
+
{
|
|
5257
|
+
type: 'function',
|
|
5258
|
+
inputs: [
|
|
5259
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5260
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
5261
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5262
|
+
],
|
|
5263
|
+
name: 'admit',
|
|
5264
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
5265
|
+
stateMutability: 'view',
|
|
5266
|
+
},
|
|
5094
5267
|
{
|
|
5095
5268
|
type: 'function',
|
|
5096
5269
|
inputs: [
|
|
@@ -5101,6 +5274,29 @@ export const policyRegistryAbi = [
|
|
|
5101
5274
|
outputs: [],
|
|
5102
5275
|
stateMutability: 'nonpayable',
|
|
5103
5276
|
},
|
|
5277
|
+
{
|
|
5278
|
+
type: 'function',
|
|
5279
|
+
inputs: [
|
|
5280
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5281
|
+
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
5282
|
+
],
|
|
5283
|
+
name: 'bindSponsor',
|
|
5284
|
+
outputs: [],
|
|
5285
|
+
stateMutability: 'nonpayable',
|
|
5286
|
+
},
|
|
5287
|
+
{
|
|
5288
|
+
type: 'function',
|
|
5289
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5290
|
+
name: 'creationMode',
|
|
5291
|
+
outputs: [
|
|
5292
|
+
{
|
|
5293
|
+
name: '',
|
|
5294
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5295
|
+
type: 'uint8',
|
|
5296
|
+
},
|
|
5297
|
+
],
|
|
5298
|
+
stateMutability: 'view',
|
|
5299
|
+
},
|
|
5104
5300
|
{
|
|
5105
5301
|
type: 'function',
|
|
5106
5302
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5115,16 +5311,33 @@ export const policyRegistryAbi = [
|
|
|
5115
5311
|
},
|
|
5116
5312
|
{
|
|
5117
5313
|
type: 'function',
|
|
5118
|
-
inputs: [{ name: '
|
|
5119
|
-
name: '
|
|
5314
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5315
|
+
name: 'forwarderTrusted',
|
|
5120
5316
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5121
5317
|
stateMutability: 'view',
|
|
5122
5318
|
},
|
|
5123
5319
|
{
|
|
5124
5320
|
type: 'function',
|
|
5125
|
-
inputs: [
|
|
5126
|
-
|
|
5127
|
-
|
|
5321
|
+
inputs: [
|
|
5322
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5323
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5324
|
+
],
|
|
5325
|
+
name: 'initializerListed',
|
|
5326
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5327
|
+
stateMutability: 'view',
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
type: 'function',
|
|
5331
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5332
|
+
name: 'isApproved',
|
|
5333
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5334
|
+
stateMutability: 'view',
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
type: 'function',
|
|
5338
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5339
|
+
name: 'kindOf',
|
|
5340
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5128
5341
|
stateMutability: 'view',
|
|
5129
5342
|
},
|
|
5130
5343
|
{
|
|
@@ -5159,6 +5372,43 @@ export const policyRegistryAbi = [
|
|
|
5159
5372
|
outputs: [],
|
|
5160
5373
|
stateMutability: 'nonpayable',
|
|
5161
5374
|
},
|
|
5375
|
+
{
|
|
5376
|
+
type: 'function',
|
|
5377
|
+
inputs: [
|
|
5378
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
5379
|
+
{
|
|
5380
|
+
name: 'key',
|
|
5381
|
+
internalType: 'struct FPoolKey',
|
|
5382
|
+
type: 'tuple',
|
|
5383
|
+
components: [
|
|
5384
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5385
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5386
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5387
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5388
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5389
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5390
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5391
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
5392
|
+
],
|
|
5393
|
+
},
|
|
5394
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
5395
|
+
{
|
|
5396
|
+
name: 'permissions',
|
|
5397
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5398
|
+
type: 'tuple',
|
|
5399
|
+
components: [
|
|
5400
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5401
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5402
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5403
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5404
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5405
|
+
],
|
|
5406
|
+
},
|
|
5407
|
+
],
|
|
5408
|
+
name: 'migratePrivate',
|
|
5409
|
+
outputs: [],
|
|
5410
|
+
stateMutability: 'nonpayable',
|
|
5411
|
+
},
|
|
5162
5412
|
{
|
|
5163
5413
|
type: 'function',
|
|
5164
5414
|
inputs: [],
|
|
@@ -5187,6 +5437,41 @@ export const policyRegistryAbi = [
|
|
|
5187
5437
|
outputs: [],
|
|
5188
5438
|
stateMutability: 'nonpayable',
|
|
5189
5439
|
},
|
|
5440
|
+
{
|
|
5441
|
+
type: 'function',
|
|
5442
|
+
inputs: [
|
|
5443
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5444
|
+
{
|
|
5445
|
+
name: 'mode',
|
|
5446
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5447
|
+
type: 'uint8',
|
|
5448
|
+
},
|
|
5449
|
+
],
|
|
5450
|
+
name: 'setCreationMode',
|
|
5451
|
+
outputs: [],
|
|
5452
|
+
stateMutability: 'nonpayable',
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
type: 'function',
|
|
5456
|
+
inputs: [
|
|
5457
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
5458
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
5459
|
+
],
|
|
5460
|
+
name: 'setForwarderTrusted',
|
|
5461
|
+
outputs: [],
|
|
5462
|
+
stateMutability: 'nonpayable',
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
type: 'function',
|
|
5466
|
+
inputs: [
|
|
5467
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5468
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5469
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool' },
|
|
5470
|
+
],
|
|
5471
|
+
name: 'setInitializerListed',
|
|
5472
|
+
outputs: [],
|
|
5473
|
+
stateMutability: 'nonpayable',
|
|
5474
|
+
},
|
|
5190
5475
|
{
|
|
5191
5476
|
type: 'function',
|
|
5192
5477
|
inputs: [
|
|
@@ -5204,6 +5489,13 @@ export const policyRegistryAbi = [
|
|
|
5204
5489
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5205
5490
|
stateMutability: 'view',
|
|
5206
5491
|
},
|
|
5492
|
+
{
|
|
5493
|
+
type: 'function',
|
|
5494
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
5495
|
+
name: 'sponsorOf',
|
|
5496
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5497
|
+
stateMutability: 'view',
|
|
5498
|
+
},
|
|
5207
5499
|
{
|
|
5208
5500
|
type: 'function',
|
|
5209
5501
|
inputs: [
|
|
@@ -5233,6 +5525,54 @@ export const policyRegistryAbi = [
|
|
|
5233
5525
|
],
|
|
5234
5526
|
name: 'Approved',
|
|
5235
5527
|
},
|
|
5528
|
+
{
|
|
5529
|
+
type: 'event',
|
|
5530
|
+
anonymous: false,
|
|
5531
|
+
inputs: [
|
|
5532
|
+
{
|
|
5533
|
+
name: 'policy',
|
|
5534
|
+
internalType: 'address',
|
|
5535
|
+
type: 'address',
|
|
5536
|
+
indexed: true,
|
|
5537
|
+
},
|
|
5538
|
+
{
|
|
5539
|
+
name: 'mode',
|
|
5540
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
5541
|
+
type: 'uint8',
|
|
5542
|
+
indexed: false,
|
|
5543
|
+
},
|
|
5544
|
+
],
|
|
5545
|
+
name: 'CreationModeSet',
|
|
5546
|
+
},
|
|
5547
|
+
{
|
|
5548
|
+
type: 'event',
|
|
5549
|
+
anonymous: false,
|
|
5550
|
+
inputs: [
|
|
5551
|
+
{
|
|
5552
|
+
name: 'forwarder',
|
|
5553
|
+
internalType: 'address',
|
|
5554
|
+
type: 'address',
|
|
5555
|
+
indexed: true,
|
|
5556
|
+
},
|
|
5557
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
5558
|
+
],
|
|
5559
|
+
name: 'ForwarderTrusted',
|
|
5560
|
+
},
|
|
5561
|
+
{
|
|
5562
|
+
type: 'event',
|
|
5563
|
+
anonymous: false,
|
|
5564
|
+
inputs: [
|
|
5565
|
+
{
|
|
5566
|
+
name: 'policy',
|
|
5567
|
+
internalType: 'address',
|
|
5568
|
+
type: 'address',
|
|
5569
|
+
indexed: true,
|
|
5570
|
+
},
|
|
5571
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5572
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5573
|
+
],
|
|
5574
|
+
name: 'InitializerListed',
|
|
5575
|
+
},
|
|
5236
5576
|
{
|
|
5237
5577
|
type: 'event',
|
|
5238
5578
|
anonymous: false,
|
|
@@ -5306,6 +5646,25 @@ export const policyRegistryAbi = [
|
|
|
5306
5646
|
],
|
|
5307
5647
|
name: 'Revoked',
|
|
5308
5648
|
},
|
|
5649
|
+
{
|
|
5650
|
+
type: 'event',
|
|
5651
|
+
anonymous: false,
|
|
5652
|
+
inputs: [
|
|
5653
|
+
{
|
|
5654
|
+
name: 'policy',
|
|
5655
|
+
internalType: 'address',
|
|
5656
|
+
type: 'address',
|
|
5657
|
+
indexed: true,
|
|
5658
|
+
},
|
|
5659
|
+
{
|
|
5660
|
+
name: 'sponsor',
|
|
5661
|
+
internalType: 'address',
|
|
5662
|
+
type: 'address',
|
|
5663
|
+
indexed: true,
|
|
5664
|
+
},
|
|
5665
|
+
],
|
|
5666
|
+
name: 'SponsorBound',
|
|
5667
|
+
},
|
|
5309
5668
|
{
|
|
5310
5669
|
type: 'event',
|
|
5311
5670
|
anonymous: false,
|
|
@@ -5340,12 +5699,16 @@ export const policyRegistryAbi = [
|
|
|
5340
5699
|
name: 'SunsetSet',
|
|
5341
5700
|
},
|
|
5342
5701
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
5702
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
5703
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
5343
5704
|
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
5344
5705
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5345
5706
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5346
5707
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5347
5708
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5709
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
5348
5710
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5711
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
5349
5712
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5350
5713
|
];
|
|
5351
5714
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -5384,23 +5747,6 @@ export const privatePolicyAbi = [
|
|
|
5384
5747
|
outputs: [],
|
|
5385
5748
|
stateMutability: 'nonpayable',
|
|
5386
5749
|
},
|
|
5387
|
-
{
|
|
5388
|
-
type: 'function',
|
|
5389
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5390
|
-
name: 'acceptOperator',
|
|
5391
|
-
outputs: [],
|
|
5392
|
-
stateMutability: 'nonpayable',
|
|
5393
|
-
},
|
|
5394
|
-
{
|
|
5395
|
-
type: 'function',
|
|
5396
|
-
inputs: [
|
|
5397
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5398
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5399
|
-
],
|
|
5400
|
-
name: 'appointOperator',
|
|
5401
|
-
outputs: [],
|
|
5402
|
-
stateMutability: 'nonpayable',
|
|
5403
|
-
},
|
|
5404
5750
|
{
|
|
5405
5751
|
type: 'function',
|
|
5406
5752
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5410,23 +5756,37 @@ export const privatePolicyAbi = [
|
|
|
5410
5756
|
},
|
|
5411
5757
|
{
|
|
5412
5758
|
type: 'function',
|
|
5413
|
-
inputs: [
|
|
5414
|
-
name: '
|
|
5759
|
+
inputs: [],
|
|
5760
|
+
name: 'cManager',
|
|
5415
5761
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5416
5762
|
stateMutability: 'view',
|
|
5417
5763
|
},
|
|
5418
5764
|
{
|
|
5419
5765
|
type: 'function',
|
|
5420
|
-
inputs: [
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5766
|
+
inputs: [
|
|
5767
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5768
|
+
{
|
|
5769
|
+
name: 'permissions',
|
|
5770
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5771
|
+
type: 'tuple',
|
|
5772
|
+
components: [
|
|
5773
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5774
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5775
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5776
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5777
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5778
|
+
],
|
|
5779
|
+
},
|
|
5780
|
+
],
|
|
5781
|
+
name: 'configureMigration',
|
|
5782
|
+
outputs: [],
|
|
5783
|
+
stateMutability: 'nonpayable',
|
|
5424
5784
|
},
|
|
5425
5785
|
{
|
|
5426
5786
|
type: 'function',
|
|
5427
|
-
inputs: [{ name: '', internalType: '
|
|
5428
|
-
name: '
|
|
5429
|
-
outputs: [{ name: '', internalType: '
|
|
5787
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5788
|
+
name: 'creator',
|
|
5789
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5430
5790
|
stateMutability: 'view',
|
|
5431
5791
|
},
|
|
5432
5792
|
{
|
|
@@ -5453,8 +5813,11 @@ export const privatePolicyAbi = [
|
|
|
5453
5813
|
{
|
|
5454
5814
|
type: 'function',
|
|
5455
5815
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5456
|
-
name: '
|
|
5457
|
-
outputs: [
|
|
5816
|
+
name: 'incomeFee',
|
|
5817
|
+
outputs: [
|
|
5818
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5819
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5820
|
+
],
|
|
5458
5821
|
stateMutability: 'view',
|
|
5459
5822
|
},
|
|
5460
5823
|
{
|
|
@@ -5510,6 +5873,13 @@ export const privatePolicyAbi = [
|
|
|
5510
5873
|
],
|
|
5511
5874
|
stateMutability: 'view',
|
|
5512
5875
|
},
|
|
5876
|
+
{
|
|
5877
|
+
type: 'function',
|
|
5878
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5879
|
+
name: 'managerOf',
|
|
5880
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5881
|
+
stateMutability: 'view',
|
|
5882
|
+
},
|
|
5513
5883
|
{
|
|
5514
5884
|
type: 'function',
|
|
5515
5885
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5566,6 +5936,32 @@ export const privatePolicyAbi = [
|
|
|
5566
5936
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5567
5937
|
stateMutability: 'view',
|
|
5568
5938
|
},
|
|
5939
|
+
{
|
|
5940
|
+
type: 'function',
|
|
5941
|
+
inputs: [
|
|
5942
|
+
{ name: 'initializer', internalType: 'address', type: 'address' },
|
|
5943
|
+
{
|
|
5944
|
+
name: 'key',
|
|
5945
|
+
internalType: 'struct PoolKey',
|
|
5946
|
+
type: 'tuple',
|
|
5947
|
+
components: [
|
|
5948
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5949
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5950
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
5951
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5952
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5953
|
+
],
|
|
5954
|
+
},
|
|
5955
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5956
|
+
],
|
|
5957
|
+
name: 'onCInitialize',
|
|
5958
|
+
outputs: [
|
|
5959
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5960
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5961
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5962
|
+
],
|
|
5963
|
+
stateMutability: 'nonpayable',
|
|
5964
|
+
},
|
|
5569
5965
|
{
|
|
5570
5966
|
type: 'function',
|
|
5571
5967
|
inputs: [
|
|
@@ -5640,7 +6036,7 @@ export const privatePolicyAbi = [
|
|
|
5640
6036
|
components: [
|
|
5641
6037
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5642
6038
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5643
|
-
{ name: '
|
|
6039
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5644
6040
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5645
6041
|
],
|
|
5646
6042
|
},
|
|
@@ -5650,28 +6046,31 @@ export const privatePolicyAbi = [
|
|
|
5650
6046
|
{
|
|
5651
6047
|
type: 'function',
|
|
5652
6048
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5653
|
-
name: '
|
|
6049
|
+
name: 'pendingAuthority',
|
|
5654
6050
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5655
6051
|
stateMutability: 'view',
|
|
5656
6052
|
},
|
|
5657
6053
|
{
|
|
5658
6054
|
type: 'function',
|
|
5659
6055
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5660
|
-
name: '
|
|
5661
|
-
outputs: [
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
6056
|
+
name: 'permissionsOf',
|
|
6057
|
+
outputs: [
|
|
6058
|
+
{
|
|
6059
|
+
name: 'mode',
|
|
6060
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6061
|
+
type: 'uint8',
|
|
6062
|
+
},
|
|
6063
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6064
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
6065
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
6066
|
+
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
6067
|
+
],
|
|
5669
6068
|
stateMutability: 'view',
|
|
5670
6069
|
},
|
|
5671
6070
|
{
|
|
5672
6071
|
type: 'function',
|
|
5673
6072
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5674
|
-
name: '
|
|
6073
|
+
name: 'poolOperator',
|
|
5675
6074
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5676
6075
|
stateMutability: 'view',
|
|
5677
6076
|
},
|
|
@@ -5701,18 +6100,8 @@ export const privatePolicyAbi = [
|
|
|
5701
6100
|
},
|
|
5702
6101
|
{
|
|
5703
6102
|
type: 'function',
|
|
5704
|
-
inputs: [{ name: '
|
|
5705
|
-
name: '
|
|
5706
|
-
outputs: [],
|
|
5707
|
-
stateMutability: 'nonpayable',
|
|
5708
|
-
},
|
|
5709
|
-
{
|
|
5710
|
-
type: 'function',
|
|
5711
|
-
inputs: [
|
|
5712
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5713
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5714
|
-
],
|
|
5715
|
-
name: 'setCreatorListed',
|
|
6103
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6104
|
+
name: 'setCManager',
|
|
5716
6105
|
outputs: [],
|
|
5717
6106
|
stateMutability: 'nonpayable',
|
|
5718
6107
|
},
|
|
@@ -5733,17 +6122,6 @@ export const privatePolicyAbi = [
|
|
|
5733
6122
|
outputs: [],
|
|
5734
6123
|
stateMutability: 'nonpayable',
|
|
5735
6124
|
},
|
|
5736
|
-
{
|
|
5737
|
-
type: 'function',
|
|
5738
|
-
inputs: [
|
|
5739
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5740
|
-
{ name: '_gateMint', internalType: 'bool', type: 'bool' },
|
|
5741
|
-
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
5742
|
-
],
|
|
5743
|
-
name: 'setGates',
|
|
5744
|
-
outputs: [],
|
|
5745
|
-
stateMutability: 'nonpayable',
|
|
5746
|
-
},
|
|
5747
6125
|
{
|
|
5748
6126
|
type: 'function',
|
|
5749
6127
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5761,6 +6139,16 @@ export const privatePolicyAbi = [
|
|
|
5761
6139
|
outputs: [],
|
|
5762
6140
|
stateMutability: 'nonpayable',
|
|
5763
6141
|
},
|
|
6142
|
+
{
|
|
6143
|
+
type: 'function',
|
|
6144
|
+
inputs: [
|
|
6145
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6146
|
+
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
6147
|
+
],
|
|
6148
|
+
name: 'setMintGate',
|
|
6149
|
+
outputs: [],
|
|
6150
|
+
stateMutability: 'nonpayable',
|
|
6151
|
+
},
|
|
5764
6152
|
{
|
|
5765
6153
|
type: 'function',
|
|
5766
6154
|
inputs: [
|
|
@@ -5782,6 +6170,16 @@ export const privatePolicyAbi = [
|
|
|
5782
6170
|
outputs: [],
|
|
5783
6171
|
stateMutability: 'nonpayable',
|
|
5784
6172
|
},
|
|
6173
|
+
{
|
|
6174
|
+
type: 'function',
|
|
6175
|
+
inputs: [
|
|
6176
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6177
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6178
|
+
],
|
|
6179
|
+
name: 'setPoolOperator',
|
|
6180
|
+
outputs: [],
|
|
6181
|
+
stateMutability: 'nonpayable',
|
|
6182
|
+
},
|
|
5785
6183
|
{
|
|
5786
6184
|
type: 'function',
|
|
5787
6185
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5799,6 +6197,21 @@ export const privatePolicyAbi = [
|
|
|
5799
6197
|
outputs: [],
|
|
5800
6198
|
stateMutability: 'nonpayable',
|
|
5801
6199
|
},
|
|
6200
|
+
{
|
|
6201
|
+
type: 'function',
|
|
6202
|
+
inputs: [
|
|
6203
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6204
|
+
{
|
|
6205
|
+
name: 'mode',
|
|
6206
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6207
|
+
type: 'uint8',
|
|
6208
|
+
},
|
|
6209
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6210
|
+
],
|
|
6211
|
+
name: 'setSwapMode',
|
|
6212
|
+
outputs: [],
|
|
6213
|
+
stateMutability: 'nonpayable',
|
|
6214
|
+
},
|
|
5802
6215
|
{
|
|
5803
6216
|
type: 'function',
|
|
5804
6217
|
inputs: [
|
|
@@ -5810,6 +6223,27 @@ export const privatePolicyAbi = [
|
|
|
5810
6223
|
outputs: [],
|
|
5811
6224
|
stateMutability: 'nonpayable',
|
|
5812
6225
|
},
|
|
6226
|
+
{
|
|
6227
|
+
type: 'function',
|
|
6228
|
+
inputs: [],
|
|
6229
|
+
name: 'sponsor',
|
|
6230
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6231
|
+
stateMutability: 'view',
|
|
6232
|
+
},
|
|
6233
|
+
{
|
|
6234
|
+
type: 'function',
|
|
6235
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6236
|
+
name: 'swapPermission',
|
|
6237
|
+
outputs: [
|
|
6238
|
+
{
|
|
6239
|
+
name: 'mode',
|
|
6240
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6241
|
+
type: 'uint8',
|
|
6242
|
+
},
|
|
6243
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
6244
|
+
],
|
|
6245
|
+
stateMutability: 'view',
|
|
6246
|
+
},
|
|
5813
6247
|
{
|
|
5814
6248
|
type: 'event',
|
|
5815
6249
|
anonymous: false,
|
|
@@ -5850,27 +6284,18 @@ export const privatePolicyAbi = [
|
|
|
5850
6284
|
],
|
|
5851
6285
|
name: 'AuthoritySet',
|
|
5852
6286
|
},
|
|
5853
|
-
{
|
|
5854
|
-
type: 'event',
|
|
5855
|
-
anonymous: false,
|
|
5856
|
-
inputs: [
|
|
5857
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5858
|
-
],
|
|
5859
|
-
name: 'CreatorCuratedSet',
|
|
5860
|
-
},
|
|
5861
6287
|
{
|
|
5862
6288
|
type: 'event',
|
|
5863
6289
|
anonymous: false,
|
|
5864
6290
|
inputs: [
|
|
5865
6291
|
{
|
|
5866
|
-
name: '
|
|
6292
|
+
name: 'manager',
|
|
5867
6293
|
internalType: 'address',
|
|
5868
6294
|
type: 'address',
|
|
5869
6295
|
indexed: true,
|
|
5870
6296
|
},
|
|
5871
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5872
6297
|
],
|
|
5873
|
-
name: '
|
|
6298
|
+
name: 'CManagerSet',
|
|
5874
6299
|
},
|
|
5875
6300
|
{
|
|
5876
6301
|
type: 'event',
|
|
@@ -5889,21 +6314,6 @@ export const privatePolicyAbi = [
|
|
|
5889
6314
|
],
|
|
5890
6315
|
name: 'FeeListed',
|
|
5891
6316
|
},
|
|
5892
|
-
{
|
|
5893
|
-
type: 'event',
|
|
5894
|
-
anonymous: false,
|
|
5895
|
-
inputs: [
|
|
5896
|
-
{
|
|
5897
|
-
name: 'poolId',
|
|
5898
|
-
internalType: 'bytes32',
|
|
5899
|
-
type: 'bytes32',
|
|
5900
|
-
indexed: true,
|
|
5901
|
-
},
|
|
5902
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
5903
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
5904
|
-
],
|
|
5905
|
-
name: 'GatesSet',
|
|
5906
|
-
},
|
|
5907
6317
|
{
|
|
5908
6318
|
type: 'event',
|
|
5909
6319
|
anonymous: false,
|
|
@@ -5958,14 +6368,9 @@ export const privatePolicyAbi = [
|
|
|
5958
6368
|
type: 'bytes32',
|
|
5959
6369
|
indexed: true,
|
|
5960
6370
|
},
|
|
5961
|
-
{
|
|
5962
|
-
name: 'name',
|
|
5963
|
-
internalType: 'bytes32',
|
|
5964
|
-
type: 'bytes32',
|
|
5965
|
-
indexed: false,
|
|
5966
|
-
},
|
|
6371
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5967
6372
|
],
|
|
5968
|
-
name: '
|
|
6373
|
+
name: 'MintGateSet',
|
|
5969
6374
|
},
|
|
5970
6375
|
{
|
|
5971
6376
|
type: 'event',
|
|
@@ -5978,19 +6383,13 @@ export const privatePolicyAbi = [
|
|
|
5978
6383
|
indexed: true,
|
|
5979
6384
|
},
|
|
5980
6385
|
{
|
|
5981
|
-
name: '
|
|
5982
|
-
internalType: '
|
|
5983
|
-
type: '
|
|
5984
|
-
indexed:
|
|
5985
|
-
},
|
|
5986
|
-
{
|
|
5987
|
-
name: 'proposed',
|
|
5988
|
-
internalType: 'address',
|
|
5989
|
-
type: 'address',
|
|
5990
|
-
indexed: true,
|
|
6386
|
+
name: 'name',
|
|
6387
|
+
internalType: 'bytes32',
|
|
6388
|
+
type: 'bytes32',
|
|
6389
|
+
indexed: false,
|
|
5991
6390
|
},
|
|
5992
6391
|
],
|
|
5993
|
-
name: '
|
|
6392
|
+
name: 'NameSet',
|
|
5994
6393
|
},
|
|
5995
6394
|
{
|
|
5996
6395
|
type: 'event',
|
|
@@ -6005,7 +6404,7 @@ export const privatePolicyAbi = [
|
|
|
6005
6404
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
6006
6405
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
6007
6406
|
],
|
|
6008
|
-
name: '
|
|
6407
|
+
name: 'PoolOperatorSet',
|
|
6009
6408
|
},
|
|
6010
6409
|
{
|
|
6011
6410
|
type: 'event',
|
|
@@ -6029,18 +6428,40 @@ export const privatePolicyAbi = [
|
|
|
6029
6428
|
],
|
|
6030
6429
|
name: 'QuoteListed',
|
|
6031
6430
|
},
|
|
6032
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6033
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6034
6431
|
{
|
|
6035
|
-
type: '
|
|
6036
|
-
|
|
6037
|
-
|
|
6432
|
+
type: 'event',
|
|
6433
|
+
anonymous: false,
|
|
6434
|
+
inputs: [
|
|
6435
|
+
{
|
|
6436
|
+
name: 'poolId',
|
|
6437
|
+
internalType: 'bytes32',
|
|
6438
|
+
type: 'bytes32',
|
|
6439
|
+
indexed: true,
|
|
6440
|
+
},
|
|
6441
|
+
{
|
|
6442
|
+
name: 'mode',
|
|
6443
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
6444
|
+
type: 'uint8',
|
|
6445
|
+
indexed: false,
|
|
6446
|
+
},
|
|
6447
|
+
{
|
|
6448
|
+
name: 'executor',
|
|
6449
|
+
internalType: 'address',
|
|
6450
|
+
type: 'address',
|
|
6451
|
+
indexed: true,
|
|
6452
|
+
},
|
|
6453
|
+
],
|
|
6454
|
+
name: 'SwapModeSet',
|
|
6038
6455
|
},
|
|
6456
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6457
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6458
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
6039
6459
|
{
|
|
6040
6460
|
type: 'error',
|
|
6041
6461
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
6042
6462
|
name: 'FeeNotListed',
|
|
6043
6463
|
},
|
|
6464
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
6044
6465
|
{
|
|
6045
6466
|
type: 'error',
|
|
6046
6467
|
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6050,8 +6471,8 @@ export const privatePolicyAbi = [
|
|
|
6050
6471
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6051
6472
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6052
6473
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6053
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
6054
6474
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6475
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6055
6476
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6056
6477
|
{
|
|
6057
6478
|
type: 'error',
|
|
@@ -6122,27 +6543,6 @@ export const publicPolicyAbi = [
|
|
|
6122
6543
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6123
6544
|
stateMutability: 'view',
|
|
6124
6545
|
},
|
|
6125
|
-
{
|
|
6126
|
-
type: 'function',
|
|
6127
|
-
inputs: [],
|
|
6128
|
-
name: 'creatorCurated',
|
|
6129
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6130
|
-
stateMutability: 'view',
|
|
6131
|
-
},
|
|
6132
|
-
{
|
|
6133
|
-
type: 'function',
|
|
6134
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6135
|
-
name: 'creatorListed',
|
|
6136
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6137
|
-
stateMutability: 'view',
|
|
6138
|
-
},
|
|
6139
|
-
{
|
|
6140
|
-
type: 'function',
|
|
6141
|
-
inputs: [],
|
|
6142
|
-
name: 'curated',
|
|
6143
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6144
|
-
stateMutability: 'view',
|
|
6145
|
-
},
|
|
6146
6546
|
{
|
|
6147
6547
|
type: 'function',
|
|
6148
6548
|
inputs: [],
|
|
@@ -6159,9 +6559,12 @@ export const publicPolicyAbi = [
|
|
|
6159
6559
|
},
|
|
6160
6560
|
{
|
|
6161
6561
|
type: 'function',
|
|
6162
|
-
inputs: [{ name: '', internalType: '
|
|
6163
|
-
name: '
|
|
6164
|
-
outputs: [
|
|
6562
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6563
|
+
name: 'incomeFee',
|
|
6564
|
+
outputs: [
|
|
6565
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
6566
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6567
|
+
],
|
|
6165
6568
|
stateMutability: 'view',
|
|
6166
6569
|
},
|
|
6167
6570
|
{
|
|
@@ -6171,13 +6574,6 @@ export const publicPolicyAbi = [
|
|
|
6171
6574
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6172
6575
|
stateMutability: 'pure',
|
|
6173
6576
|
},
|
|
6174
|
-
{
|
|
6175
|
-
type: 'function',
|
|
6176
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6177
|
-
name: 'listed',
|
|
6178
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6179
|
-
stateMutability: 'view',
|
|
6180
|
-
},
|
|
6181
6577
|
{
|
|
6182
6578
|
type: 'function',
|
|
6183
6579
|
inputs: [],
|
|
@@ -6187,6 +6583,13 @@ export const publicPolicyAbi = [
|
|
|
6187
6583
|
],
|
|
6188
6584
|
stateMutability: 'view',
|
|
6189
6585
|
},
|
|
6586
|
+
{
|
|
6587
|
+
type: 'function',
|
|
6588
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6589
|
+
name: 'managerOf',
|
|
6590
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6591
|
+
stateMutability: 'view',
|
|
6592
|
+
},
|
|
6190
6593
|
{
|
|
6191
6594
|
type: 'function',
|
|
6192
6595
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6255,6 +6658,7 @@ export const publicPolicyAbi = [
|
|
|
6255
6658
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6256
6659
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6257
6660
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6661
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6258
6662
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6259
6663
|
],
|
|
6260
6664
|
},
|
|
@@ -6262,6 +6666,7 @@ export const publicPolicyAbi = [
|
|
|
6262
6666
|
],
|
|
6263
6667
|
name: 'onCInitialize',
|
|
6264
6668
|
outputs: [
|
|
6669
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6265
6670
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6266
6671
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6267
6672
|
],
|
|
@@ -6341,7 +6746,7 @@ export const publicPolicyAbi = [
|
|
|
6341
6746
|
components: [
|
|
6342
6747
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6343
6748
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6344
|
-
{ name: '
|
|
6749
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
6345
6750
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6346
6751
|
],
|
|
6347
6752
|
},
|
|
@@ -6398,25 +6803,8 @@ export const publicPolicyAbi = [
|
|
|
6398
6803
|
},
|
|
6399
6804
|
{
|
|
6400
6805
|
type: 'function',
|
|
6401
|
-
inputs: [{ name: '
|
|
6402
|
-
name: '
|
|
6403
|
-
outputs: [],
|
|
6404
|
-
stateMutability: 'nonpayable',
|
|
6405
|
-
},
|
|
6406
|
-
{
|
|
6407
|
-
type: 'function',
|
|
6408
|
-
inputs: [
|
|
6409
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6410
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6411
|
-
],
|
|
6412
|
-
name: 'setCreatorListed',
|
|
6413
|
-
outputs: [],
|
|
6414
|
-
stateMutability: 'nonpayable',
|
|
6415
|
-
},
|
|
6416
|
-
{
|
|
6417
|
-
type: 'function',
|
|
6418
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6419
|
-
name: 'setCurated',
|
|
6806
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6807
|
+
name: 'setCManager',
|
|
6420
6808
|
outputs: [],
|
|
6421
6809
|
stateMutability: 'nonpayable',
|
|
6422
6810
|
},
|
|
@@ -6437,26 +6825,6 @@ export const publicPolicyAbi = [
|
|
|
6437
6825
|
outputs: [],
|
|
6438
6826
|
stateMutability: 'nonpayable',
|
|
6439
6827
|
},
|
|
6440
|
-
{
|
|
6441
|
-
type: 'function',
|
|
6442
|
-
inputs: [
|
|
6443
|
-
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
6444
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
6445
|
-
],
|
|
6446
|
-
name: 'setForwarderTrusted',
|
|
6447
|
-
outputs: [],
|
|
6448
|
-
stateMutability: 'nonpayable',
|
|
6449
|
-
},
|
|
6450
|
-
{
|
|
6451
|
-
type: 'function',
|
|
6452
|
-
inputs: [
|
|
6453
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
6454
|
-
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
6455
|
-
],
|
|
6456
|
-
name: 'setListed',
|
|
6457
|
-
outputs: [],
|
|
6458
|
-
stateMutability: 'nonpayable',
|
|
6459
|
-
},
|
|
6460
6828
|
{
|
|
6461
6829
|
type: 'function',
|
|
6462
6830
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -6543,6 +6911,13 @@ export const publicPolicyAbi = [
|
|
|
6543
6911
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6544
6912
|
stateMutability: 'view',
|
|
6545
6913
|
},
|
|
6914
|
+
{
|
|
6915
|
+
type: 'function',
|
|
6916
|
+
inputs: [],
|
|
6917
|
+
name: 'sponsor',
|
|
6918
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6919
|
+
stateMutability: 'view',
|
|
6920
|
+
},
|
|
6546
6921
|
{
|
|
6547
6922
|
type: 'function',
|
|
6548
6923
|
inputs: [],
|
|
@@ -6590,35 +6965,18 @@ export const publicPolicyAbi = [
|
|
|
6590
6965
|
],
|
|
6591
6966
|
name: 'AuthoritySet',
|
|
6592
6967
|
},
|
|
6593
|
-
{
|
|
6594
|
-
type: 'event',
|
|
6595
|
-
anonymous: false,
|
|
6596
|
-
inputs: [
|
|
6597
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6598
|
-
],
|
|
6599
|
-
name: 'CreatorCuratedSet',
|
|
6600
|
-
},
|
|
6601
6968
|
{
|
|
6602
6969
|
type: 'event',
|
|
6603
6970
|
anonymous: false,
|
|
6604
6971
|
inputs: [
|
|
6605
6972
|
{
|
|
6606
|
-
name: '
|
|
6973
|
+
name: 'manager',
|
|
6607
6974
|
internalType: 'address',
|
|
6608
6975
|
type: 'address',
|
|
6609
6976
|
indexed: true,
|
|
6610
6977
|
},
|
|
6611
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6612
|
-
],
|
|
6613
|
-
name: 'CreatorListed',
|
|
6614
|
-
},
|
|
6615
|
-
{
|
|
6616
|
-
type: 'event',
|
|
6617
|
-
anonymous: false,
|
|
6618
|
-
inputs: [
|
|
6619
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6620
6978
|
],
|
|
6621
|
-
name: '
|
|
6979
|
+
name: 'CManagerSet',
|
|
6622
6980
|
},
|
|
6623
6981
|
{
|
|
6624
6982
|
type: 'event',
|
|
@@ -6637,34 +6995,6 @@ export const publicPolicyAbi = [
|
|
|
6637
6995
|
],
|
|
6638
6996
|
name: 'FeeListed',
|
|
6639
6997
|
},
|
|
6640
|
-
{
|
|
6641
|
-
type: 'event',
|
|
6642
|
-
anonymous: false,
|
|
6643
|
-
inputs: [
|
|
6644
|
-
{
|
|
6645
|
-
name: 'forwarder',
|
|
6646
|
-
internalType: 'address',
|
|
6647
|
-
type: 'address',
|
|
6648
|
-
indexed: true,
|
|
6649
|
-
},
|
|
6650
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
6651
|
-
],
|
|
6652
|
-
name: 'ForwarderTrusted',
|
|
6653
|
-
},
|
|
6654
|
-
{
|
|
6655
|
-
type: 'event',
|
|
6656
|
-
anonymous: false,
|
|
6657
|
-
inputs: [
|
|
6658
|
-
{
|
|
6659
|
-
name: 'token',
|
|
6660
|
-
internalType: 'address',
|
|
6661
|
-
type: 'address',
|
|
6662
|
-
indexed: true,
|
|
6663
|
-
},
|
|
6664
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6665
|
-
],
|
|
6666
|
-
name: 'Listed',
|
|
6667
|
-
},
|
|
6668
6998
|
{
|
|
6669
6999
|
type: 'event',
|
|
6670
7000
|
anonymous: false,
|
|
@@ -6775,11 +7105,6 @@ export const publicPolicyAbi = [
|
|
|
6775
7105
|
},
|
|
6776
7106
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6777
7107
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6778
|
-
{
|
|
6779
|
-
type: 'error',
|
|
6780
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
6781
|
-
name: 'CreatorNotListed',
|
|
6782
|
-
},
|
|
6783
7108
|
{
|
|
6784
7109
|
type: 'error',
|
|
6785
7110
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6800,21 +7125,12 @@ export const publicPolicyAbi = [
|
|
|
6800
7125
|
name: 'MintFeeNotListed',
|
|
6801
7126
|
},
|
|
6802
7127
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6803
|
-
{
|
|
6804
|
-
type: 'error',
|
|
6805
|
-
inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
|
|
6806
|
-
name: 'NoForwardedUser',
|
|
6807
|
-
},
|
|
6808
7128
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6809
7129
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6810
|
-
{
|
|
6811
|
-
type: 'error',
|
|
6812
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6813
|
-
name: 'NotListed',
|
|
6814
|
-
},
|
|
6815
7130
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6816
7131
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6817
7132
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
7133
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6818
7134
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6819
7135
|
{
|
|
6820
7136
|
type: 'error',
|