@logswap/sdk 0.5.78 → 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/README.md +4 -0
- package/dist/admin.d.ts +702 -51
- package/dist/admin.js +53 -46
- package/dist/client.d.ts +2 -2
- package/dist/client.js +4 -2
- package/dist/fpool.d.ts +185 -119
- package/dist/fpool.js +41 -42
- package/dist/generated.d.ts +1376 -700
- package/dist/generated.js +853 -472
- 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 +4 -2
- package/src/fpool.ts +59 -55
- package/src/generated.ts +853 -472
- 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: [],
|
|
@@ -1677,13 +1712,14 @@ export const fPoolManagerAbi = [
|
|
|
1677
1712
|
type: 'bytes32',
|
|
1678
1713
|
indexed: true,
|
|
1679
1714
|
},
|
|
1715
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1680
1716
|
{
|
|
1681
1717
|
name: 'holder',
|
|
1682
1718
|
internalType: 'address',
|
|
1683
1719
|
type: 'address',
|
|
1684
1720
|
indexed: true,
|
|
1685
1721
|
},
|
|
1686
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed:
|
|
1722
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
1687
1723
|
{
|
|
1688
1724
|
name: 'amount',
|
|
1689
1725
|
internalType: 'uint256',
|
|
@@ -1846,6 +1882,71 @@ export const fPoolManagerAbi = [
|
|
|
1846
1882
|
],
|
|
1847
1883
|
name: 'LegsSet',
|
|
1848
1884
|
},
|
|
1885
|
+
{
|
|
1886
|
+
type: 'event',
|
|
1887
|
+
anonymous: false,
|
|
1888
|
+
inputs: [
|
|
1889
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1890
|
+
{
|
|
1891
|
+
name: 'owner',
|
|
1892
|
+
internalType: 'address',
|
|
1893
|
+
type: 'address',
|
|
1894
|
+
indexed: true,
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
name: 'locker',
|
|
1898
|
+
internalType: 'address',
|
|
1899
|
+
type: 'address',
|
|
1900
|
+
indexed: true,
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
name: 'amount',
|
|
1904
|
+
internalType: 'uint256',
|
|
1905
|
+
type: 'uint256',
|
|
1906
|
+
indexed: false,
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
name: 'total',
|
|
1910
|
+
internalType: 'uint256',
|
|
1911
|
+
type: 'uint256',
|
|
1912
|
+
indexed: false,
|
|
1913
|
+
},
|
|
1914
|
+
],
|
|
1915
|
+
name: 'LienLocked',
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
type: 'event',
|
|
1919
|
+
anonymous: false,
|
|
1920
|
+
inputs: [
|
|
1921
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1922
|
+
{
|
|
1923
|
+
name: 'owner',
|
|
1924
|
+
internalType: 'address',
|
|
1925
|
+
type: 'address',
|
|
1926
|
+
indexed: true,
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
name: 'locker',
|
|
1930
|
+
internalType: 'address',
|
|
1931
|
+
type: 'address',
|
|
1932
|
+
indexed: true,
|
|
1933
|
+
},
|
|
1934
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
1935
|
+
{
|
|
1936
|
+
name: 'amount',
|
|
1937
|
+
internalType: 'uint256',
|
|
1938
|
+
type: 'uint256',
|
|
1939
|
+
indexed: false,
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
name: 'owed',
|
|
1943
|
+
internalType: 'uint256',
|
|
1944
|
+
type: 'uint256',
|
|
1945
|
+
indexed: false,
|
|
1946
|
+
},
|
|
1947
|
+
],
|
|
1948
|
+
name: 'LienUnlocked',
|
|
1949
|
+
},
|
|
1849
1950
|
{
|
|
1850
1951
|
type: 'event',
|
|
1851
1952
|
anonymous: false,
|
|
@@ -1866,6 +1967,26 @@ export const fPoolManagerAbi = [
|
|
|
1866
1967
|
],
|
|
1867
1968
|
name: 'OperatorSet',
|
|
1868
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
|
+
},
|
|
1869
1990
|
{
|
|
1870
1991
|
type: 'event',
|
|
1871
1992
|
anonymous: false,
|
|
@@ -2243,7 +2364,6 @@ export const fPoolManagerAbi = [
|
|
|
2243
2364
|
inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
|
|
2244
2365
|
name: 'MulticallFailed',
|
|
2245
2366
|
},
|
|
2246
|
-
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2247
2367
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2248
2368
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2249
2369
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
@@ -2332,6 +2452,7 @@ export const logswapLensAbi = [
|
|
|
2332
2452
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2333
2453
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2334
2454
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2455
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2335
2456
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2336
2457
|
],
|
|
2337
2458
|
},
|
|
@@ -2351,6 +2472,7 @@ export const logswapLensAbi = [
|
|
|
2351
2472
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2352
2473
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2353
2474
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2475
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2354
2476
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2355
2477
|
],
|
|
2356
2478
|
},
|
|
@@ -2477,10 +2599,15 @@ export const logswapLensAbi = [
|
|
|
2477
2599
|
type: 'uint24',
|
|
2478
2600
|
},
|
|
2479
2601
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2480
|
-
{
|
|
2602
|
+
{
|
|
2603
|
+
name: 'realizedVariance',
|
|
2604
|
+
internalType: 'uint128',
|
|
2605
|
+
type: 'uint128',
|
|
2606
|
+
},
|
|
2481
2607
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2482
2608
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2483
2609
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2610
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2484
2611
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2485
2612
|
],
|
|
2486
2613
|
},
|
|
@@ -2520,6 +2647,7 @@ export const logswapLensAbi = [
|
|
|
2520
2647
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2521
2648
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2522
2649
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2650
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2523
2651
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2524
2652
|
],
|
|
2525
2653
|
},
|
|
@@ -2569,10 +2697,15 @@ export const logswapLensAbi = [
|
|
|
2569
2697
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2570
2698
|
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
2571
2699
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2572
|
-
{
|
|
2700
|
+
{
|
|
2701
|
+
name: 'realizedVariance',
|
|
2702
|
+
internalType: 'uint128',
|
|
2703
|
+
type: 'uint128',
|
|
2704
|
+
},
|
|
2573
2705
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2574
2706
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2575
2707
|
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2708
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
2576
2709
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2577
2710
|
],
|
|
2578
2711
|
},
|
|
@@ -2596,12 +2729,20 @@ export const logswapLensAbi = [
|
|
|
2596
2729
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
2597
2730
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2598
2731
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2599
|
-
{
|
|
2732
|
+
{
|
|
2733
|
+
name: 'realizedVariance',
|
|
2734
|
+
internalType: 'uint256',
|
|
2735
|
+
type: 'uint256',
|
|
2736
|
+
},
|
|
2600
2737
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2601
2738
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2602
2739
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2603
2740
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2604
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' },
|
|
2605
2746
|
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2606
2747
|
],
|
|
2607
2748
|
},
|
|
@@ -2619,6 +2760,7 @@ export const logswapLensAbi = [
|
|
|
2619
2760
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2620
2761
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2621
2762
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2763
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2622
2764
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2623
2765
|
],
|
|
2624
2766
|
},
|
|
@@ -2655,6 +2797,7 @@ export const logswapLensAbi = [
|
|
|
2655
2797
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2656
2798
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2657
2799
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2800
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2658
2801
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2659
2802
|
],
|
|
2660
2803
|
},
|
|
@@ -2675,6 +2818,7 @@ export const logswapLensAbi = [
|
|
|
2675
2818
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2676
2819
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2677
2820
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2821
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2678
2822
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2679
2823
|
],
|
|
2680
2824
|
},
|
|
@@ -2694,6 +2838,7 @@ export const logswapLensAbi = [
|
|
|
2694
2838
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2695
2839
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2696
2840
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2841
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2697
2842
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2698
2843
|
],
|
|
2699
2844
|
},
|
|
@@ -2713,6 +2858,7 @@ export const logswapLensAbi = [
|
|
|
2713
2858
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2714
2859
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2715
2860
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2861
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2716
2862
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2717
2863
|
],
|
|
2718
2864
|
},
|
|
@@ -2739,6 +2885,7 @@ export const logswapLensAbi = [
|
|
|
2739
2885
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2740
2886
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2741
2887
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2888
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2742
2889
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2743
2890
|
],
|
|
2744
2891
|
},
|
|
@@ -2767,6 +2914,7 @@ export const logswapLensAbi = [
|
|
|
2767
2914
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2768
2915
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2769
2916
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2917
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2770
2918
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2771
2919
|
],
|
|
2772
2920
|
},
|
|
@@ -2805,6 +2953,7 @@ export const logswapLensAbi = [
|
|
|
2805
2953
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2806
2954
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2807
2955
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2956
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2808
2957
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2809
2958
|
],
|
|
2810
2959
|
},
|
|
@@ -2824,6 +2973,7 @@ export const logswapLensAbi = [
|
|
|
2824
2973
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2825
2974
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2826
2975
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2976
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2827
2977
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2828
2978
|
],
|
|
2829
2979
|
},
|
|
@@ -2857,6 +3007,7 @@ export const logswapLensAbi = [
|
|
|
2857
3007
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2858
3008
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2859
3009
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3010
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2860
3011
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2861
3012
|
],
|
|
2862
3013
|
},
|
|
@@ -2899,6 +3050,7 @@ export const logswapLensAbi = [
|
|
|
2899
3050
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2900
3051
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2901
3052
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3053
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2902
3054
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2903
3055
|
],
|
|
2904
3056
|
},
|
|
@@ -2920,6 +3072,7 @@ export const logswapLensAbi = [
|
|
|
2920
3072
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2921
3073
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2922
3074
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3075
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2923
3076
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2924
3077
|
],
|
|
2925
3078
|
},
|
|
@@ -2941,6 +3094,7 @@ export const logswapLensAbi = [
|
|
|
2941
3094
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2942
3095
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2943
3096
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3097
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2944
3098
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2945
3099
|
],
|
|
2946
3100
|
},
|
|
@@ -2962,6 +3116,7 @@ export const logswapLensAbi = [
|
|
|
2962
3116
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2963
3117
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2964
3118
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3119
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2965
3120
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2966
3121
|
],
|
|
2967
3122
|
},
|
|
@@ -3019,6 +3174,7 @@ export const logswapLensAbi = [
|
|
|
3019
3174
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3020
3175
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3021
3176
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3177
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3022
3178
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3023
3179
|
],
|
|
3024
3180
|
},
|
|
@@ -3108,6 +3264,7 @@ export const logswapRouterAbi = [
|
|
|
3108
3264
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3109
3265
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3110
3266
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3267
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3111
3268
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3112
3269
|
],
|
|
3113
3270
|
},
|
|
@@ -3136,6 +3293,7 @@ export const logswapRouterAbi = [
|
|
|
3136
3293
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3137
3294
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3138
3295
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3296
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3139
3297
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3140
3298
|
],
|
|
3141
3299
|
},
|
|
@@ -3158,6 +3316,7 @@ export const logswapRouterAbi = [
|
|
|
3158
3316
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3159
3317
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3160
3318
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3319
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3161
3320
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3162
3321
|
],
|
|
3163
3322
|
},
|
|
@@ -3194,6 +3353,7 @@ export const logswapRouterAbi = [
|
|
|
3194
3353
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3195
3354
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3196
3355
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3356
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3197
3357
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3198
3358
|
],
|
|
3199
3359
|
},
|
|
@@ -3222,6 +3382,7 @@ export const logswapRouterAbi = [
|
|
|
3222
3382
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3223
3383
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3224
3384
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3385
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3225
3386
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3226
3387
|
],
|
|
3227
3388
|
},
|
|
@@ -3249,6 +3410,7 @@ export const logswapRouterAbi = [
|
|
|
3249
3410
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3250
3411
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3251
3412
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3413
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3252
3414
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3253
3415
|
],
|
|
3254
3416
|
},
|
|
@@ -3287,6 +3449,7 @@ export const logswapRouterAbi = [
|
|
|
3287
3449
|
internalType: 'int256',
|
|
3288
3450
|
type: 'int256',
|
|
3289
3451
|
},
|
|
3452
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3290
3453
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3291
3454
|
],
|
|
3292
3455
|
},
|
|
@@ -3318,6 +3481,7 @@ export const logswapRouterAbi = [
|
|
|
3318
3481
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3319
3482
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3320
3483
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3484
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3321
3485
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3322
3486
|
],
|
|
3323
3487
|
},
|
|
@@ -3347,6 +3511,7 @@ export const logswapRouterAbi = [
|
|
|
3347
3511
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3348
3512
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3349
3513
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3514
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3350
3515
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3351
3516
|
],
|
|
3352
3517
|
},
|
|
@@ -3432,6 +3597,7 @@ export const logswapRouterAbi = [
|
|
|
3432
3597
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3433
3598
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3434
3599
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3600
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3435
3601
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3436
3602
|
],
|
|
3437
3603
|
},
|
|
@@ -3461,6 +3627,7 @@ export const logswapRouterAbi = [
|
|
|
3461
3627
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3462
3628
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3463
3629
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3630
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3464
3631
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3465
3632
|
],
|
|
3466
3633
|
},
|
|
@@ -3525,22 +3692,6 @@ export const logswapRouterAbi = [
|
|
|
3525
3692
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3526
3693
|
stateMutability: 'nonpayable',
|
|
3527
3694
|
},
|
|
3528
|
-
{
|
|
3529
|
-
type: 'function',
|
|
3530
|
-
inputs: [
|
|
3531
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3532
|
-
{ name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
|
|
3533
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3534
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3535
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3536
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3537
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3538
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3539
|
-
],
|
|
3540
|
-
name: 'swapExactIn',
|
|
3541
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3542
|
-
stateMutability: 'nonpayable',
|
|
3543
|
-
},
|
|
3544
3695
|
{
|
|
3545
3696
|
type: 'function',
|
|
3546
3697
|
inputs: [
|
|
@@ -3552,6 +3703,7 @@ export const logswapRouterAbi = [
|
|
|
3552
3703
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3553
3704
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3554
3705
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3706
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3555
3707
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3556
3708
|
],
|
|
3557
3709
|
},
|
|
@@ -3568,20 +3720,37 @@ export const logswapRouterAbi = [
|
|
|
3568
3720
|
{
|
|
3569
3721
|
type: 'function',
|
|
3570
3722
|
inputs: [
|
|
3571
|
-
{
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
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
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
type: 'function',
|
|
3738
|
+
inputs: [
|
|
3739
|
+
{
|
|
3740
|
+
name: 'hops',
|
|
3741
|
+
internalType: 'struct Hop[]',
|
|
3742
|
+
type: 'tuple[]',
|
|
3743
|
+
components: [
|
|
3744
|
+
{
|
|
3745
|
+
name: 'key',
|
|
3746
|
+
internalType: 'struct PoolKey',
|
|
3747
|
+
type: 'tuple',
|
|
3748
|
+
components: [
|
|
3749
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3750
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3751
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3752
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3753
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3585
3754
|
],
|
|
3586
3755
|
},
|
|
3587
3756
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3607,6 +3776,7 @@ export const logswapRouterAbi = [
|
|
|
3607
3776
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3608
3777
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3609
3778
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3779
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3610
3780
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3611
3781
|
],
|
|
3612
3782
|
},
|
|
@@ -3638,6 +3808,7 @@ export const logswapRouterAbi = [
|
|
|
3638
3808
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3639
3809
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3640
3810
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3811
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3641
3812
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3642
3813
|
],
|
|
3643
3814
|
},
|
|
@@ -3677,6 +3848,7 @@ export const logswapRouterAbi = [
|
|
|
3677
3848
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3678
3849
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3679
3850
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3851
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3680
3852
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3681
3853
|
],
|
|
3682
3854
|
},
|
|
@@ -3781,25 +3953,18 @@ export const padPolicyAbi = [
|
|
|
3781
3953
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3782
3954
|
stateMutability: 'view',
|
|
3783
3955
|
},
|
|
3784
|
-
{
|
|
3785
|
-
type: 'function',
|
|
3786
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3787
|
-
name: 'creator',
|
|
3788
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3789
|
-
stateMutability: 'view',
|
|
3790
|
-
},
|
|
3791
3956
|
{
|
|
3792
3957
|
type: 'function',
|
|
3793
3958
|
inputs: [],
|
|
3794
|
-
name: '
|
|
3795
|
-
outputs: [{ name: '', internalType: '
|
|
3959
|
+
name: 'cManager',
|
|
3960
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3796
3961
|
stateMutability: 'view',
|
|
3797
3962
|
},
|
|
3798
3963
|
{
|
|
3799
3964
|
type: 'function',
|
|
3800
|
-
inputs: [{ name: '', internalType: '
|
|
3801
|
-
name: '
|
|
3802
|
-
outputs: [{ name: '', internalType: '
|
|
3965
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3966
|
+
name: 'creator',
|
|
3967
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3803
3968
|
stateMutability: 'view',
|
|
3804
3969
|
},
|
|
3805
3970
|
{
|
|
@@ -3816,6 +3981,13 @@ export const padPolicyAbi = [
|
|
|
3816
3981
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3817
3982
|
stateMutability: 'view',
|
|
3818
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
|
+
},
|
|
3819
3991
|
{
|
|
3820
3992
|
type: 'function',
|
|
3821
3993
|
inputs: [],
|
|
@@ -3830,6 +4002,23 @@ export const padPolicyAbi = [
|
|
|
3830
4002
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3831
4003
|
stateMutability: 'view',
|
|
3832
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
|
+
},
|
|
3833
4022
|
{
|
|
3834
4023
|
type: 'function',
|
|
3835
4024
|
inputs: [],
|
|
@@ -3846,6 +4035,13 @@ export const padPolicyAbi = [
|
|
|
3846
4035
|
],
|
|
3847
4036
|
stateMutability: 'view',
|
|
3848
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
|
+
},
|
|
3849
4045
|
{
|
|
3850
4046
|
type: 'function',
|
|
3851
4047
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3902,6 +4098,32 @@ export const padPolicyAbi = [
|
|
|
3902
4098
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3903
4099
|
stateMutability: 'view',
|
|
3904
4100
|
},
|
|
4101
|
+
{
|
|
4102
|
+
type: 'function',
|
|
4103
|
+
inputs: [
|
|
4104
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4105
|
+
{
|
|
4106
|
+
name: '',
|
|
4107
|
+
internalType: 'struct PoolKey',
|
|
4108
|
+
type: 'tuple',
|
|
4109
|
+
components: [
|
|
4110
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4111
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4112
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4113
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
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
|
+
},
|
|
3905
4127
|
{
|
|
3906
4128
|
type: 'function',
|
|
3907
4129
|
inputs: [
|
|
@@ -3976,7 +4198,7 @@ export const padPolicyAbi = [
|
|
|
3976
4198
|
components: [
|
|
3977
4199
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3978
4200
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3979
|
-
{ name: '
|
|
4201
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
3980
4202
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3981
4203
|
],
|
|
3982
4204
|
},
|
|
@@ -4017,13 +4239,6 @@ export const padPolicyAbi = [
|
|
|
4017
4239
|
outputs: [],
|
|
4018
4240
|
stateMutability: 'nonpayable',
|
|
4019
4241
|
},
|
|
4020
|
-
{
|
|
4021
|
-
type: 'function',
|
|
4022
|
-
inputs: [],
|
|
4023
|
-
name: 'protocolShare',
|
|
4024
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4025
|
-
stateMutability: 'view',
|
|
4026
|
-
},
|
|
4027
4242
|
{
|
|
4028
4243
|
type: 'function',
|
|
4029
4244
|
inputs: [],
|
|
@@ -4040,18 +4255,8 @@ export const padPolicyAbi = [
|
|
|
4040
4255
|
},
|
|
4041
4256
|
{
|
|
4042
4257
|
type: 'function',
|
|
4043
|
-
inputs: [{ name: '
|
|
4044
|
-
name: '
|
|
4045
|
-
outputs: [],
|
|
4046
|
-
stateMutability: 'nonpayable',
|
|
4047
|
-
},
|
|
4048
|
-
{
|
|
4049
|
-
type: 'function',
|
|
4050
|
-
inputs: [
|
|
4051
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4052
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4053
|
-
],
|
|
4054
|
-
name: 'setCreatorListed',
|
|
4258
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4259
|
+
name: 'setCManager',
|
|
4055
4260
|
outputs: [],
|
|
4056
4261
|
stateMutability: 'nonpayable',
|
|
4057
4262
|
},
|
|
@@ -4072,6 +4277,13 @@ export const padPolicyAbi = [
|
|
|
4072
4277
|
outputs: [],
|
|
4073
4278
|
stateMutability: 'nonpayable',
|
|
4074
4279
|
},
|
|
4280
|
+
{
|
|
4281
|
+
type: 'function',
|
|
4282
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4283
|
+
name: 'setIncomeFeeRate',
|
|
4284
|
+
outputs: [],
|
|
4285
|
+
stateMutability: 'nonpayable',
|
|
4286
|
+
},
|
|
4075
4287
|
{
|
|
4076
4288
|
type: 'function',
|
|
4077
4289
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -4119,10 +4331,9 @@ export const padPolicyAbi = [
|
|
|
4119
4331
|
{
|
|
4120
4332
|
type: 'function',
|
|
4121
4333
|
inputs: [
|
|
4122
|
-
{ name: '
|
|
4123
|
-
{ name: '
|
|
4124
|
-
{ name: '
|
|
4125
|
-
{ 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' },
|
|
4126
4337
|
],
|
|
4127
4338
|
name: 'setSchedule',
|
|
4128
4339
|
outputs: [],
|
|
@@ -4140,12 +4351,9 @@ export const padPolicyAbi = [
|
|
|
4140
4351
|
},
|
|
4141
4352
|
{
|
|
4142
4353
|
type: 'function',
|
|
4143
|
-
inputs: [
|
|
4144
|
-
name: '
|
|
4145
|
-
outputs: [
|
|
4146
|
-
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4147
|
-
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4148
|
-
],
|
|
4354
|
+
inputs: [],
|
|
4355
|
+
name: 'sponsor',
|
|
4356
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4149
4357
|
stateMutability: 'view',
|
|
4150
4358
|
},
|
|
4151
4359
|
{
|
|
@@ -4229,27 +4437,18 @@ export const padPolicyAbi = [
|
|
|
4229
4437
|
],
|
|
4230
4438
|
name: 'AuthoritySet',
|
|
4231
4439
|
},
|
|
4232
|
-
{
|
|
4233
|
-
type: 'event',
|
|
4234
|
-
anonymous: false,
|
|
4235
|
-
inputs: [
|
|
4236
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4237
|
-
],
|
|
4238
|
-
name: 'CreatorCuratedSet',
|
|
4239
|
-
},
|
|
4240
4440
|
{
|
|
4241
4441
|
type: 'event',
|
|
4242
4442
|
anonymous: false,
|
|
4243
4443
|
inputs: [
|
|
4244
4444
|
{
|
|
4245
|
-
name: '
|
|
4445
|
+
name: 'manager',
|
|
4246
4446
|
internalType: 'address',
|
|
4247
4447
|
type: 'address',
|
|
4248
4448
|
indexed: true,
|
|
4249
4449
|
},
|
|
4250
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4251
4450
|
],
|
|
4252
|
-
name: '
|
|
4451
|
+
name: 'CManagerSet',
|
|
4253
4452
|
},
|
|
4254
4453
|
{
|
|
4255
4454
|
type: 'event',
|
|
@@ -4283,6 +4482,19 @@ export const padPolicyAbi = [
|
|
|
4283
4482
|
],
|
|
4284
4483
|
name: 'Graduated',
|
|
4285
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
|
+
},
|
|
4286
4498
|
{
|
|
4287
4499
|
type: 'event',
|
|
4288
4500
|
anonymous: false,
|
|
@@ -4356,12 +4568,6 @@ export const padPolicyAbi = [
|
|
|
4356
4568
|
type: 'uint256',
|
|
4357
4569
|
indexed: false,
|
|
4358
4570
|
},
|
|
4359
|
-
{
|
|
4360
|
-
name: 'protocolShare',
|
|
4361
|
-
internalType: 'uint256',
|
|
4362
|
-
type: 'uint256',
|
|
4363
|
-
indexed: false,
|
|
4364
|
-
},
|
|
4365
4571
|
{
|
|
4366
4572
|
name: 'creatorShareMin',
|
|
4367
4573
|
internalType: 'uint256',
|
|
@@ -4393,12 +4599,6 @@ export const padPolicyAbi = [
|
|
|
4393
4599
|
type: 'uint256',
|
|
4394
4600
|
indexed: false,
|
|
4395
4601
|
},
|
|
4396
|
-
{
|
|
4397
|
-
name: 'protocolShare',
|
|
4398
|
-
internalType: 'uint256',
|
|
4399
|
-
type: 'uint256',
|
|
4400
|
-
indexed: false,
|
|
4401
|
-
},
|
|
4402
4602
|
],
|
|
4403
4603
|
name: 'SplitSet',
|
|
4404
4604
|
},
|
|
@@ -4423,11 +4623,6 @@ export const padPolicyAbi = [
|
|
|
4423
4623
|
},
|
|
4424
4624
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4425
4625
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4426
|
-
{
|
|
4427
|
-
type: 'error',
|
|
4428
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4429
|
-
name: 'CreatorNotListed',
|
|
4430
|
-
},
|
|
4431
4626
|
{
|
|
4432
4627
|
type: 'error',
|
|
4433
4628
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4449,6 +4644,7 @@ export const padPolicyAbi = [
|
|
|
4449
4644
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4450
4645
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4451
4646
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4647
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4452
4648
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4453
4649
|
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4454
4650
|
{
|
|
@@ -4474,7 +4670,7 @@ export const polPolicyAbi = [
|
|
|
4474
4670
|
type: 'constructor',
|
|
4475
4671
|
inputs: [
|
|
4476
4672
|
{
|
|
4477
|
-
name: '
|
|
4673
|
+
name: 'manager_',
|
|
4478
4674
|
internalType: 'contract FPoolManager',
|
|
4479
4675
|
type: 'address',
|
|
4480
4676
|
},
|
|
@@ -4495,25 +4691,18 @@ export const polPolicyAbi = [
|
|
|
4495
4691
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4496
4692
|
stateMutability: 'view',
|
|
4497
4693
|
},
|
|
4498
|
-
{
|
|
4499
|
-
type: 'function',
|
|
4500
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4501
|
-
name: 'creator',
|
|
4502
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4503
|
-
stateMutability: 'view',
|
|
4504
|
-
},
|
|
4505
4694
|
{
|
|
4506
4695
|
type: 'function',
|
|
4507
4696
|
inputs: [],
|
|
4508
|
-
name: '
|
|
4509
|
-
outputs: [{ name: '', internalType: '
|
|
4697
|
+
name: 'cManager',
|
|
4698
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4510
4699
|
stateMutability: 'view',
|
|
4511
4700
|
},
|
|
4512
4701
|
{
|
|
4513
4702
|
type: 'function',
|
|
4514
|
-
inputs: [{ name: '', internalType: '
|
|
4515
|
-
name: '
|
|
4516
|
-
outputs: [{ name: '', internalType: '
|
|
4703
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4704
|
+
name: 'creator',
|
|
4705
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4517
4706
|
stateMutability: 'view',
|
|
4518
4707
|
},
|
|
4519
4708
|
{
|
|
@@ -4530,10 +4719,20 @@ export const polPolicyAbi = [
|
|
|
4530
4719
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4531
4720
|
stateMutability: 'view',
|
|
4532
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
|
+
},
|
|
4533
4732
|
{
|
|
4534
4733
|
type: 'function',
|
|
4535
4734
|
inputs: [],
|
|
4536
|
-
name: '
|
|
4735
|
+
name: 'incomeFeeRate',
|
|
4537
4736
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4538
4737
|
stateMutability: 'view',
|
|
4539
4738
|
},
|
|
@@ -4553,6 +4752,13 @@ export const polPolicyAbi = [
|
|
|
4553
4752
|
],
|
|
4554
4753
|
stateMutability: 'view',
|
|
4555
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
|
+
},
|
|
4556
4762
|
{
|
|
4557
4763
|
type: 'function',
|
|
4558
4764
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4591,7 +4797,7 @@ export const polPolicyAbi = [
|
|
|
4591
4797
|
{
|
|
4592
4798
|
type: 'function',
|
|
4593
4799
|
inputs: [],
|
|
4594
|
-
name: '
|
|
4800
|
+
name: 'minQuoteRatio',
|
|
4595
4801
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4596
4802
|
stateMutability: 'view',
|
|
4597
4803
|
},
|
|
@@ -4616,6 +4822,32 @@ export const polPolicyAbi = [
|
|
|
4616
4822
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4617
4823
|
stateMutability: 'view',
|
|
4618
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
|
+
},
|
|
4619
4851
|
{
|
|
4620
4852
|
type: 'function',
|
|
4621
4853
|
inputs: [
|
|
@@ -4690,7 +4922,7 @@ export const polPolicyAbi = [
|
|
|
4690
4922
|
components: [
|
|
4691
4923
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4692
4924
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4693
|
-
{ name: '
|
|
4925
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4694
4926
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4695
4927
|
],
|
|
4696
4928
|
},
|
|
@@ -4728,37 +4960,41 @@ export const polPolicyAbi = [
|
|
|
4728
4960
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4729
4961
|
stateMutability: 'view',
|
|
4730
4962
|
},
|
|
4963
|
+
{
|
|
4964
|
+
type: 'function',
|
|
4965
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4966
|
+
name: 'setCManager',
|
|
4967
|
+
outputs: [],
|
|
4968
|
+
stateMutability: 'nonpayable',
|
|
4969
|
+
},
|
|
4731
4970
|
{
|
|
4732
4971
|
type: 'function',
|
|
4733
4972
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4734
|
-
name: '
|
|
4973
|
+
name: 'setFeeCurated',
|
|
4735
4974
|
outputs: [],
|
|
4736
4975
|
stateMutability: 'nonpayable',
|
|
4737
4976
|
},
|
|
4738
4977
|
{
|
|
4739
4978
|
type: 'function',
|
|
4740
4979
|
inputs: [
|
|
4741
|
-
{ name: '
|
|
4980
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4742
4981
|
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4743
4982
|
],
|
|
4744
|
-
name: '
|
|
4983
|
+
name: 'setFeeListed',
|
|
4745
4984
|
outputs: [],
|
|
4746
4985
|
stateMutability: 'nonpayable',
|
|
4747
4986
|
},
|
|
4748
4987
|
{
|
|
4749
4988
|
type: 'function',
|
|
4750
|
-
inputs: [{ name: '
|
|
4751
|
-
name: '
|
|
4989
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
4990
|
+
name: 'setIncomeFeeRate',
|
|
4752
4991
|
outputs: [],
|
|
4753
4992
|
stateMutability: 'nonpayable',
|
|
4754
4993
|
},
|
|
4755
4994
|
{
|
|
4756
4995
|
type: 'function',
|
|
4757
|
-
inputs: [
|
|
4758
|
-
|
|
4759
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4760
|
-
],
|
|
4761
|
-
name: 'setFeeListed',
|
|
4996
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
4997
|
+
name: 'setMinQuoteRatio',
|
|
4762
4998
|
outputs: [],
|
|
4763
4999
|
stateMutability: 'nonpayable',
|
|
4764
5000
|
},
|
|
@@ -4808,13 +5044,10 @@ export const polPolicyAbi = [
|
|
|
4808
5044
|
},
|
|
4809
5045
|
{
|
|
4810
5046
|
type: 'function',
|
|
4811
|
-
inputs: [
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
name: 'setRules',
|
|
4816
|
-
outputs: [],
|
|
4817
|
-
stateMutability: 'nonpayable',
|
|
5047
|
+
inputs: [],
|
|
5048
|
+
name: 'sponsor',
|
|
5049
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5050
|
+
stateMutability: 'view',
|
|
4818
5051
|
},
|
|
4819
5052
|
{
|
|
4820
5053
|
type: 'event',
|
|
@@ -4856,27 +5089,18 @@ export const polPolicyAbi = [
|
|
|
4856
5089
|
],
|
|
4857
5090
|
name: 'AuthoritySet',
|
|
4858
5091
|
},
|
|
4859
|
-
{
|
|
4860
|
-
type: 'event',
|
|
4861
|
-
anonymous: false,
|
|
4862
|
-
inputs: [
|
|
4863
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4864
|
-
],
|
|
4865
|
-
name: 'CreatorCuratedSet',
|
|
4866
|
-
},
|
|
4867
5092
|
{
|
|
4868
5093
|
type: 'event',
|
|
4869
5094
|
anonymous: false,
|
|
4870
5095
|
inputs: [
|
|
4871
5096
|
{
|
|
4872
|
-
name: '
|
|
5097
|
+
name: 'manager',
|
|
4873
5098
|
internalType: 'address',
|
|
4874
5099
|
type: 'address',
|
|
4875
5100
|
indexed: true,
|
|
4876
5101
|
},
|
|
4877
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4878
5102
|
],
|
|
4879
|
-
name: '
|
|
5103
|
+
name: 'CManagerSet',
|
|
4880
5104
|
},
|
|
4881
5105
|
{
|
|
4882
5106
|
type: 'event',
|
|
@@ -4899,9 +5123,35 @@ export const polPolicyAbi = [
|
|
|
4899
5123
|
type: 'event',
|
|
4900
5124
|
anonymous: false,
|
|
4901
5125
|
inputs: [
|
|
4902
|
-
{
|
|
5126
|
+
{
|
|
5127
|
+
name: 'rate',
|
|
5128
|
+
internalType: 'uint256',
|
|
5129
|
+
type: 'uint256',
|
|
5130
|
+
indexed: false,
|
|
5131
|
+
},
|
|
4903
5132
|
],
|
|
4904
|
-
name: '
|
|
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
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
type: 'event',
|
|
5150
|
+
anonymous: false,
|
|
5151
|
+
inputs: [
|
|
5152
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5153
|
+
],
|
|
5154
|
+
name: 'MintFeeCuratedSet',
|
|
4905
5155
|
},
|
|
4906
5156
|
{
|
|
4907
5157
|
type: 'event',
|
|
@@ -4958,32 +5208,8 @@ export const polPolicyAbi = [
|
|
|
4958
5208
|
],
|
|
4959
5209
|
name: 'QuoteListed',
|
|
4960
5210
|
},
|
|
4961
|
-
{
|
|
4962
|
-
type: 'event',
|
|
4963
|
-
anonymous: false,
|
|
4964
|
-
inputs: [
|
|
4965
|
-
{
|
|
4966
|
-
name: 'keepQuote',
|
|
4967
|
-
internalType: 'uint256',
|
|
4968
|
-
type: 'uint256',
|
|
4969
|
-
indexed: false,
|
|
4970
|
-
},
|
|
4971
|
-
{
|
|
4972
|
-
name: 'minQuoteAtSeed',
|
|
4973
|
-
internalType: 'uint256',
|
|
4974
|
-
type: 'uint256',
|
|
4975
|
-
indexed: false,
|
|
4976
|
-
},
|
|
4977
|
-
],
|
|
4978
|
-
name: 'RulesSet',
|
|
4979
|
-
},
|
|
4980
5211
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4981
5212
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4982
|
-
{
|
|
4983
|
-
type: 'error',
|
|
4984
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
4985
|
-
name: 'CreatorNotListed',
|
|
4986
|
-
},
|
|
4987
5213
|
{
|
|
4988
5214
|
type: 'error',
|
|
4989
5215
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4999,6 +5225,7 @@ export const polPolicyAbi = [
|
|
|
4999
5225
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5000
5226
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5001
5227
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5228
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5002
5229
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5003
5230
|
{
|
|
5004
5231
|
type: 'error',
|
|
@@ -5026,6 +5253,17 @@ export const policyRegistryAbi = [
|
|
|
5026
5253
|
outputs: [],
|
|
5027
5254
|
stateMutability: 'nonpayable',
|
|
5028
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
|
+
},
|
|
5029
5267
|
{
|
|
5030
5268
|
type: 'function',
|
|
5031
5269
|
inputs: [
|
|
@@ -5036,6 +5274,29 @@ export const policyRegistryAbi = [
|
|
|
5036
5274
|
outputs: [],
|
|
5037
5275
|
stateMutability: 'nonpayable',
|
|
5038
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
|
+
},
|
|
5039
5300
|
{
|
|
5040
5301
|
type: 'function',
|
|
5041
5302
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5048,6 +5309,23 @@ export const policyRegistryAbi = [
|
|
|
5048
5309
|
],
|
|
5049
5310
|
stateMutability: 'view',
|
|
5050
5311
|
},
|
|
5312
|
+
{
|
|
5313
|
+
type: 'function',
|
|
5314
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5315
|
+
name: 'forwarderTrusted',
|
|
5316
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5317
|
+
stateMutability: 'view',
|
|
5318
|
+
},
|
|
5319
|
+
{
|
|
5320
|
+
type: 'function',
|
|
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
|
+
},
|
|
5051
5329
|
{
|
|
5052
5330
|
type: 'function',
|
|
5053
5331
|
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
@@ -5094,6 +5372,43 @@ export const policyRegistryAbi = [
|
|
|
5094
5372
|
outputs: [],
|
|
5095
5373
|
stateMutability: 'nonpayable',
|
|
5096
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
|
+
},
|
|
5097
5412
|
{
|
|
5098
5413
|
type: 'function',
|
|
5099
5414
|
inputs: [],
|
|
@@ -5122,6 +5437,41 @@ export const policyRegistryAbi = [
|
|
|
5122
5437
|
outputs: [],
|
|
5123
5438
|
stateMutability: 'nonpayable',
|
|
5124
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
|
+
},
|
|
5125
5475
|
{
|
|
5126
5476
|
type: 'function',
|
|
5127
5477
|
inputs: [
|
|
@@ -5139,6 +5489,13 @@ export const policyRegistryAbi = [
|
|
|
5139
5489
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5140
5490
|
stateMutability: 'view',
|
|
5141
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
|
+
},
|
|
5142
5499
|
{
|
|
5143
5500
|
type: 'function',
|
|
5144
5501
|
inputs: [
|
|
@@ -5168,6 +5525,54 @@ export const policyRegistryAbi = [
|
|
|
5168
5525
|
],
|
|
5169
5526
|
name: 'Approved',
|
|
5170
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
|
+
},
|
|
5171
5576
|
{
|
|
5172
5577
|
type: 'event',
|
|
5173
5578
|
anonymous: false,
|
|
@@ -5241,6 +5646,25 @@ export const policyRegistryAbi = [
|
|
|
5241
5646
|
],
|
|
5242
5647
|
name: 'Revoked',
|
|
5243
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
|
+
},
|
|
5244
5668
|
{
|
|
5245
5669
|
type: 'event',
|
|
5246
5670
|
anonymous: false,
|
|
@@ -5275,12 +5699,16 @@ export const policyRegistryAbi = [
|
|
|
5275
5699
|
name: 'SunsetSet',
|
|
5276
5700
|
},
|
|
5277
5701
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
5702
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
5703
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
5278
5704
|
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
5279
5705
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5280
5706
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5281
5707
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5282
5708
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5709
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
5283
5710
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5711
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
5284
5712
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5285
5713
|
];
|
|
5286
5714
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -5319,23 +5747,6 @@ export const privatePolicyAbi = [
|
|
|
5319
5747
|
outputs: [],
|
|
5320
5748
|
stateMutability: 'nonpayable',
|
|
5321
5749
|
},
|
|
5322
|
-
{
|
|
5323
|
-
type: 'function',
|
|
5324
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5325
|
-
name: 'acceptOperator',
|
|
5326
|
-
outputs: [],
|
|
5327
|
-
stateMutability: 'nonpayable',
|
|
5328
|
-
},
|
|
5329
|
-
{
|
|
5330
|
-
type: 'function',
|
|
5331
|
-
inputs: [
|
|
5332
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5333
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5334
|
-
],
|
|
5335
|
-
name: 'appointOperator',
|
|
5336
|
-
outputs: [],
|
|
5337
|
-
stateMutability: 'nonpayable',
|
|
5338
|
-
},
|
|
5339
5750
|
{
|
|
5340
5751
|
type: 'function',
|
|
5341
5752
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5345,23 +5756,37 @@ export const privatePolicyAbi = [
|
|
|
5345
5756
|
},
|
|
5346
5757
|
{
|
|
5347
5758
|
type: 'function',
|
|
5348
|
-
inputs: [
|
|
5349
|
-
name: '
|
|
5759
|
+
inputs: [],
|
|
5760
|
+
name: 'cManager',
|
|
5350
5761
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5351
5762
|
stateMutability: 'view',
|
|
5352
5763
|
},
|
|
5353
5764
|
{
|
|
5354
5765
|
type: 'function',
|
|
5355
|
-
inputs: [
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
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',
|
|
5359
5784
|
},
|
|
5360
5785
|
{
|
|
5361
5786
|
type: 'function',
|
|
5362
|
-
inputs: [{ name: '', internalType: '
|
|
5363
|
-
name: '
|
|
5364
|
-
outputs: [{ name: '', internalType: '
|
|
5787
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5788
|
+
name: 'creator',
|
|
5789
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5365
5790
|
stateMutability: 'view',
|
|
5366
5791
|
},
|
|
5367
5792
|
{
|
|
@@ -5388,8 +5813,11 @@ export const privatePolicyAbi = [
|
|
|
5388
5813
|
{
|
|
5389
5814
|
type: 'function',
|
|
5390
5815
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5391
|
-
name: '
|
|
5392
|
-
outputs: [
|
|
5816
|
+
name: 'incomeFee',
|
|
5817
|
+
outputs: [
|
|
5818
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5819
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5820
|
+
],
|
|
5393
5821
|
stateMutability: 'view',
|
|
5394
5822
|
},
|
|
5395
5823
|
{
|
|
@@ -5445,6 +5873,13 @@ export const privatePolicyAbi = [
|
|
|
5445
5873
|
],
|
|
5446
5874
|
stateMutability: 'view',
|
|
5447
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
|
+
},
|
|
5448
5883
|
{
|
|
5449
5884
|
type: 'function',
|
|
5450
5885
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5501,6 +5936,32 @@ export const privatePolicyAbi = [
|
|
|
5501
5936
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5502
5937
|
stateMutability: 'view',
|
|
5503
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
|
+
},
|
|
5504
5965
|
{
|
|
5505
5966
|
type: 'function',
|
|
5506
5967
|
inputs: [
|
|
@@ -5575,7 +6036,7 @@ export const privatePolicyAbi = [
|
|
|
5575
6036
|
components: [
|
|
5576
6037
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5577
6038
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5578
|
-
{ name: '
|
|
6039
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5579
6040
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5580
6041
|
],
|
|
5581
6042
|
},
|
|
@@ -5585,28 +6046,31 @@ export const privatePolicyAbi = [
|
|
|
5585
6046
|
{
|
|
5586
6047
|
type: 'function',
|
|
5587
6048
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5588
|
-
name: '
|
|
6049
|
+
name: 'pendingAuthority',
|
|
5589
6050
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5590
6051
|
stateMutability: 'view',
|
|
5591
6052
|
},
|
|
5592
6053
|
{
|
|
5593
6054
|
type: 'function',
|
|
5594
6055
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5595
|
-
name: '
|
|
5596
|
-
outputs: [
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
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
|
+
],
|
|
5604
6068
|
stateMutability: 'view',
|
|
5605
6069
|
},
|
|
5606
6070
|
{
|
|
5607
6071
|
type: 'function',
|
|
5608
6072
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5609
|
-
name: '
|
|
6073
|
+
name: 'poolOperator',
|
|
5610
6074
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5611
6075
|
stateMutability: 'view',
|
|
5612
6076
|
},
|
|
@@ -5633,21 +6097,11 @@ export const privatePolicyAbi = [
|
|
|
5633
6097
|
name: 'quoteListed',
|
|
5634
6098
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5635
6099
|
stateMutability: 'view',
|
|
5636
|
-
},
|
|
5637
|
-
{
|
|
5638
|
-
type: 'function',
|
|
5639
|
-
inputs: [{ name: '
|
|
5640
|
-
name: '
|
|
5641
|
-
outputs: [],
|
|
5642
|
-
stateMutability: 'nonpayable',
|
|
5643
|
-
},
|
|
5644
|
-
{
|
|
5645
|
-
type: 'function',
|
|
5646
|
-
inputs: [
|
|
5647
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5648
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5649
|
-
],
|
|
5650
|
-
name: 'setCreatorListed',
|
|
6100
|
+
},
|
|
6101
|
+
{
|
|
6102
|
+
type: 'function',
|
|
6103
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6104
|
+
name: 'setCManager',
|
|
5651
6105
|
outputs: [],
|
|
5652
6106
|
stateMutability: 'nonpayable',
|
|
5653
6107
|
},
|
|
@@ -5668,17 +6122,6 @@ export const privatePolicyAbi = [
|
|
|
5668
6122
|
outputs: [],
|
|
5669
6123
|
stateMutability: 'nonpayable',
|
|
5670
6124
|
},
|
|
5671
|
-
{
|
|
5672
|
-
type: 'function',
|
|
5673
|
-
inputs: [
|
|
5674
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5675
|
-
{ name: '_gateMint', internalType: 'bool', type: 'bool' },
|
|
5676
|
-
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
5677
|
-
],
|
|
5678
|
-
name: 'setGates',
|
|
5679
|
-
outputs: [],
|
|
5680
|
-
stateMutability: 'nonpayable',
|
|
5681
|
-
},
|
|
5682
6125
|
{
|
|
5683
6126
|
type: 'function',
|
|
5684
6127
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5696,6 +6139,16 @@ export const privatePolicyAbi = [
|
|
|
5696
6139
|
outputs: [],
|
|
5697
6140
|
stateMutability: 'nonpayable',
|
|
5698
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
|
+
},
|
|
5699
6152
|
{
|
|
5700
6153
|
type: 'function',
|
|
5701
6154
|
inputs: [
|
|
@@ -5717,6 +6170,16 @@ export const privatePolicyAbi = [
|
|
|
5717
6170
|
outputs: [],
|
|
5718
6171
|
stateMutability: 'nonpayable',
|
|
5719
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
|
+
},
|
|
5720
6183
|
{
|
|
5721
6184
|
type: 'function',
|
|
5722
6185
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5734,6 +6197,21 @@ export const privatePolicyAbi = [
|
|
|
5734
6197
|
outputs: [],
|
|
5735
6198
|
stateMutability: 'nonpayable',
|
|
5736
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
|
+
},
|
|
5737
6215
|
{
|
|
5738
6216
|
type: 'function',
|
|
5739
6217
|
inputs: [
|
|
@@ -5745,6 +6223,27 @@ export const privatePolicyAbi = [
|
|
|
5745
6223
|
outputs: [],
|
|
5746
6224
|
stateMutability: 'nonpayable',
|
|
5747
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
|
+
},
|
|
5748
6247
|
{
|
|
5749
6248
|
type: 'event',
|
|
5750
6249
|
anonymous: false,
|
|
@@ -5785,27 +6284,18 @@ export const privatePolicyAbi = [
|
|
|
5785
6284
|
],
|
|
5786
6285
|
name: 'AuthoritySet',
|
|
5787
6286
|
},
|
|
5788
|
-
{
|
|
5789
|
-
type: 'event',
|
|
5790
|
-
anonymous: false,
|
|
5791
|
-
inputs: [
|
|
5792
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5793
|
-
],
|
|
5794
|
-
name: 'CreatorCuratedSet',
|
|
5795
|
-
},
|
|
5796
6287
|
{
|
|
5797
6288
|
type: 'event',
|
|
5798
6289
|
anonymous: false,
|
|
5799
6290
|
inputs: [
|
|
5800
6291
|
{
|
|
5801
|
-
name: '
|
|
6292
|
+
name: 'manager',
|
|
5802
6293
|
internalType: 'address',
|
|
5803
6294
|
type: 'address',
|
|
5804
6295
|
indexed: true,
|
|
5805
6296
|
},
|
|
5806
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5807
6297
|
],
|
|
5808
|
-
name: '
|
|
6298
|
+
name: 'CManagerSet',
|
|
5809
6299
|
},
|
|
5810
6300
|
{
|
|
5811
6301
|
type: 'event',
|
|
@@ -5824,21 +6314,6 @@ export const privatePolicyAbi = [
|
|
|
5824
6314
|
],
|
|
5825
6315
|
name: 'FeeListed',
|
|
5826
6316
|
},
|
|
5827
|
-
{
|
|
5828
|
-
type: 'event',
|
|
5829
|
-
anonymous: false,
|
|
5830
|
-
inputs: [
|
|
5831
|
-
{
|
|
5832
|
-
name: 'poolId',
|
|
5833
|
-
internalType: 'bytes32',
|
|
5834
|
-
type: 'bytes32',
|
|
5835
|
-
indexed: true,
|
|
5836
|
-
},
|
|
5837
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
5838
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
5839
|
-
],
|
|
5840
|
-
name: 'GatesSet',
|
|
5841
|
-
},
|
|
5842
6317
|
{
|
|
5843
6318
|
type: 'event',
|
|
5844
6319
|
anonymous: false,
|
|
@@ -5893,14 +6368,9 @@ export const privatePolicyAbi = [
|
|
|
5893
6368
|
type: 'bytes32',
|
|
5894
6369
|
indexed: true,
|
|
5895
6370
|
},
|
|
5896
|
-
{
|
|
5897
|
-
name: 'name',
|
|
5898
|
-
internalType: 'bytes32',
|
|
5899
|
-
type: 'bytes32',
|
|
5900
|
-
indexed: false,
|
|
5901
|
-
},
|
|
6371
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5902
6372
|
],
|
|
5903
|
-
name: '
|
|
6373
|
+
name: 'MintGateSet',
|
|
5904
6374
|
},
|
|
5905
6375
|
{
|
|
5906
6376
|
type: 'event',
|
|
@@ -5913,19 +6383,13 @@ export const privatePolicyAbi = [
|
|
|
5913
6383
|
indexed: true,
|
|
5914
6384
|
},
|
|
5915
6385
|
{
|
|
5916
|
-
name: '
|
|
5917
|
-
internalType: '
|
|
5918
|
-
type: '
|
|
5919
|
-
indexed:
|
|
5920
|
-
},
|
|
5921
|
-
{
|
|
5922
|
-
name: 'proposed',
|
|
5923
|
-
internalType: 'address',
|
|
5924
|
-
type: 'address',
|
|
5925
|
-
indexed: true,
|
|
6386
|
+
name: 'name',
|
|
6387
|
+
internalType: 'bytes32',
|
|
6388
|
+
type: 'bytes32',
|
|
6389
|
+
indexed: false,
|
|
5926
6390
|
},
|
|
5927
6391
|
],
|
|
5928
|
-
name: '
|
|
6392
|
+
name: 'NameSet',
|
|
5929
6393
|
},
|
|
5930
6394
|
{
|
|
5931
6395
|
type: 'event',
|
|
@@ -5940,7 +6404,7 @@ export const privatePolicyAbi = [
|
|
|
5940
6404
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5941
6405
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5942
6406
|
],
|
|
5943
|
-
name: '
|
|
6407
|
+
name: 'PoolOperatorSet',
|
|
5944
6408
|
},
|
|
5945
6409
|
{
|
|
5946
6410
|
type: 'event',
|
|
@@ -5964,18 +6428,40 @@ export const privatePolicyAbi = [
|
|
|
5964
6428
|
],
|
|
5965
6429
|
name: 'QuoteListed',
|
|
5966
6430
|
},
|
|
5967
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5968
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5969
6431
|
{
|
|
5970
|
-
type: '
|
|
5971
|
-
|
|
5972
|
-
|
|
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',
|
|
5973
6455
|
},
|
|
6456
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6457
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6458
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
5974
6459
|
{
|
|
5975
6460
|
type: 'error',
|
|
5976
6461
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5977
6462
|
name: 'FeeNotListed',
|
|
5978
6463
|
},
|
|
6464
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
5979
6465
|
{
|
|
5980
6466
|
type: 'error',
|
|
5981
6467
|
inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -5985,8 +6471,8 @@ export const privatePolicyAbi = [
|
|
|
5985
6471
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5986
6472
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5987
6473
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5988
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
5989
6474
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6475
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5990
6476
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5991
6477
|
{
|
|
5992
6478
|
type: 'error',
|
|
@@ -6057,27 +6543,6 @@ export const publicPolicyAbi = [
|
|
|
6057
6543
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6058
6544
|
stateMutability: 'view',
|
|
6059
6545
|
},
|
|
6060
|
-
{
|
|
6061
|
-
type: 'function',
|
|
6062
|
-
inputs: [],
|
|
6063
|
-
name: 'creatorCurated',
|
|
6064
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6065
|
-
stateMutability: 'view',
|
|
6066
|
-
},
|
|
6067
|
-
{
|
|
6068
|
-
type: 'function',
|
|
6069
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6070
|
-
name: 'creatorListed',
|
|
6071
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6072
|
-
stateMutability: 'view',
|
|
6073
|
-
},
|
|
6074
|
-
{
|
|
6075
|
-
type: 'function',
|
|
6076
|
-
inputs: [],
|
|
6077
|
-
name: 'curated',
|
|
6078
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6079
|
-
stateMutability: 'view',
|
|
6080
|
-
},
|
|
6081
6546
|
{
|
|
6082
6547
|
type: 'function',
|
|
6083
6548
|
inputs: [],
|
|
@@ -6094,9 +6559,12 @@ export const publicPolicyAbi = [
|
|
|
6094
6559
|
},
|
|
6095
6560
|
{
|
|
6096
6561
|
type: 'function',
|
|
6097
|
-
inputs: [{ name: '', internalType: '
|
|
6098
|
-
name: '
|
|
6099
|
-
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
|
+
],
|
|
6100
6568
|
stateMutability: 'view',
|
|
6101
6569
|
},
|
|
6102
6570
|
{
|
|
@@ -6106,13 +6574,6 @@ export const publicPolicyAbi = [
|
|
|
6106
6574
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
6107
6575
|
stateMutability: 'pure',
|
|
6108
6576
|
},
|
|
6109
|
-
{
|
|
6110
|
-
type: 'function',
|
|
6111
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6112
|
-
name: 'listed',
|
|
6113
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6114
|
-
stateMutability: 'view',
|
|
6115
|
-
},
|
|
6116
6577
|
{
|
|
6117
6578
|
type: 'function',
|
|
6118
6579
|
inputs: [],
|
|
@@ -6122,6 +6583,13 @@ export const publicPolicyAbi = [
|
|
|
6122
6583
|
],
|
|
6123
6584
|
stateMutability: 'view',
|
|
6124
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
|
+
},
|
|
6125
6593
|
{
|
|
6126
6594
|
type: 'function',
|
|
6127
6595
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6190,6 +6658,7 @@ export const publicPolicyAbi = [
|
|
|
6190
6658
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6191
6659
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6192
6660
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6661
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6193
6662
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6194
6663
|
],
|
|
6195
6664
|
},
|
|
@@ -6197,6 +6666,7 @@ export const publicPolicyAbi = [
|
|
|
6197
6666
|
],
|
|
6198
6667
|
name: 'onCInitialize',
|
|
6199
6668
|
outputs: [
|
|
6669
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
6200
6670
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6201
6671
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6202
6672
|
],
|
|
@@ -6276,7 +6746,7 @@ export const publicPolicyAbi = [
|
|
|
6276
6746
|
components: [
|
|
6277
6747
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6278
6748
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6279
|
-
{ name: '
|
|
6749
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
6280
6750
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6281
6751
|
],
|
|
6282
6752
|
},
|
|
@@ -6333,25 +6803,8 @@ export const publicPolicyAbi = [
|
|
|
6333
6803
|
},
|
|
6334
6804
|
{
|
|
6335
6805
|
type: 'function',
|
|
6336
|
-
inputs: [{ name: '
|
|
6337
|
-
name: '
|
|
6338
|
-
outputs: [],
|
|
6339
|
-
stateMutability: 'nonpayable',
|
|
6340
|
-
},
|
|
6341
|
-
{
|
|
6342
|
-
type: 'function',
|
|
6343
|
-
inputs: [
|
|
6344
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6345
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
6346
|
-
],
|
|
6347
|
-
name: 'setCreatorListed',
|
|
6348
|
-
outputs: [],
|
|
6349
|
-
stateMutability: 'nonpayable',
|
|
6350
|
-
},
|
|
6351
|
-
{
|
|
6352
|
-
type: 'function',
|
|
6353
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6354
|
-
name: 'setCurated',
|
|
6806
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
6807
|
+
name: 'setCManager',
|
|
6355
6808
|
outputs: [],
|
|
6356
6809
|
stateMutability: 'nonpayable',
|
|
6357
6810
|
},
|
|
@@ -6372,26 +6825,6 @@ export const publicPolicyAbi = [
|
|
|
6372
6825
|
outputs: [],
|
|
6373
6826
|
stateMutability: 'nonpayable',
|
|
6374
6827
|
},
|
|
6375
|
-
{
|
|
6376
|
-
type: 'function',
|
|
6377
|
-
inputs: [
|
|
6378
|
-
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
6379
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
6380
|
-
],
|
|
6381
|
-
name: 'setForwarderTrusted',
|
|
6382
|
-
outputs: [],
|
|
6383
|
-
stateMutability: 'nonpayable',
|
|
6384
|
-
},
|
|
6385
|
-
{
|
|
6386
|
-
type: 'function',
|
|
6387
|
-
inputs: [
|
|
6388
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
6389
|
-
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
6390
|
-
],
|
|
6391
|
-
name: 'setListed',
|
|
6392
|
-
outputs: [],
|
|
6393
|
-
stateMutability: 'nonpayable',
|
|
6394
|
-
},
|
|
6395
6828
|
{
|
|
6396
6829
|
type: 'function',
|
|
6397
6830
|
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -6478,6 +6911,13 @@ export const publicPolicyAbi = [
|
|
|
6478
6911
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6479
6912
|
stateMutability: 'view',
|
|
6480
6913
|
},
|
|
6914
|
+
{
|
|
6915
|
+
type: 'function',
|
|
6916
|
+
inputs: [],
|
|
6917
|
+
name: 'sponsor',
|
|
6918
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6919
|
+
stateMutability: 'view',
|
|
6920
|
+
},
|
|
6481
6921
|
{
|
|
6482
6922
|
type: 'function',
|
|
6483
6923
|
inputs: [],
|
|
@@ -6525,35 +6965,18 @@ export const publicPolicyAbi = [
|
|
|
6525
6965
|
],
|
|
6526
6966
|
name: 'AuthoritySet',
|
|
6527
6967
|
},
|
|
6528
|
-
{
|
|
6529
|
-
type: 'event',
|
|
6530
|
-
anonymous: false,
|
|
6531
|
-
inputs: [
|
|
6532
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6533
|
-
],
|
|
6534
|
-
name: 'CreatorCuratedSet',
|
|
6535
|
-
},
|
|
6536
6968
|
{
|
|
6537
6969
|
type: 'event',
|
|
6538
6970
|
anonymous: false,
|
|
6539
6971
|
inputs: [
|
|
6540
6972
|
{
|
|
6541
|
-
name: '
|
|
6973
|
+
name: 'manager',
|
|
6542
6974
|
internalType: 'address',
|
|
6543
6975
|
type: 'address',
|
|
6544
6976
|
indexed: true,
|
|
6545
6977
|
},
|
|
6546
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6547
|
-
],
|
|
6548
|
-
name: 'CreatorListed',
|
|
6549
|
-
},
|
|
6550
|
-
{
|
|
6551
|
-
type: 'event',
|
|
6552
|
-
anonymous: false,
|
|
6553
|
-
inputs: [
|
|
6554
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6555
6978
|
],
|
|
6556
|
-
name: '
|
|
6979
|
+
name: 'CManagerSet',
|
|
6557
6980
|
},
|
|
6558
6981
|
{
|
|
6559
6982
|
type: 'event',
|
|
@@ -6572,34 +6995,6 @@ export const publicPolicyAbi = [
|
|
|
6572
6995
|
],
|
|
6573
6996
|
name: 'FeeListed',
|
|
6574
6997
|
},
|
|
6575
|
-
{
|
|
6576
|
-
type: 'event',
|
|
6577
|
-
anonymous: false,
|
|
6578
|
-
inputs: [
|
|
6579
|
-
{
|
|
6580
|
-
name: 'forwarder',
|
|
6581
|
-
internalType: 'address',
|
|
6582
|
-
type: 'address',
|
|
6583
|
-
indexed: true,
|
|
6584
|
-
},
|
|
6585
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
6586
|
-
],
|
|
6587
|
-
name: 'ForwarderTrusted',
|
|
6588
|
-
},
|
|
6589
|
-
{
|
|
6590
|
-
type: 'event',
|
|
6591
|
-
anonymous: false,
|
|
6592
|
-
inputs: [
|
|
6593
|
-
{
|
|
6594
|
-
name: 'token',
|
|
6595
|
-
internalType: 'address',
|
|
6596
|
-
type: 'address',
|
|
6597
|
-
indexed: true,
|
|
6598
|
-
},
|
|
6599
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6600
|
-
],
|
|
6601
|
-
name: 'Listed',
|
|
6602
|
-
},
|
|
6603
6998
|
{
|
|
6604
6999
|
type: 'event',
|
|
6605
7000
|
anonymous: false,
|
|
@@ -6710,11 +7105,6 @@ export const publicPolicyAbi = [
|
|
|
6710
7105
|
},
|
|
6711
7106
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6712
7107
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6713
|
-
{
|
|
6714
|
-
type: 'error',
|
|
6715
|
-
inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
|
|
6716
|
-
name: 'CreatorNotListed',
|
|
6717
|
-
},
|
|
6718
7108
|
{
|
|
6719
7109
|
type: 'error',
|
|
6720
7110
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -6735,21 +7125,12 @@ export const publicPolicyAbi = [
|
|
|
6735
7125
|
name: 'MintFeeNotListed',
|
|
6736
7126
|
},
|
|
6737
7127
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6738
|
-
{
|
|
6739
|
-
type: 'error',
|
|
6740
|
-
inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
|
|
6741
|
-
name: 'NoForwardedUser',
|
|
6742
|
-
},
|
|
6743
7128
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6744
7129
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6745
|
-
{
|
|
6746
|
-
type: 'error',
|
|
6747
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6748
|
-
name: 'NotListed',
|
|
6749
|
-
},
|
|
6750
7130
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6751
7131
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6752
7132
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
7133
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6753
7134
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6754
7135
|
{
|
|
6755
7136
|
type: 'error',
|