@logswap/sdk 0.5.76 → 0.5.77
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 +59 -1
- package/dist/admin.d.ts +116 -39
- package/dist/admin.js +151 -59
- package/dist/chains.d.ts +155 -0
- package/dist/chains.js +186 -0
- package/dist/client.d.ts +36 -5
- package/dist/client.js +47 -5
- package/dist/fees.js +3 -2
- package/dist/fpool.d.ts +71 -45
- package/dist/fpool.js +77 -47
- package/dist/generated.d.ts +321 -271
- package/dist/generated.js +282 -243
- package/dist/history.d.ts +10 -1
- package/dist/history.js +35 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.js +1 -1
- package/dist/pools.d.ts +5 -3
- package/dist/pools.js +5 -4
- package/dist/positions.d.ts +1 -1
- package/dist/positions.js +4 -3
- package/dist/tokencache.d.ts +2 -10
- package/dist/tokencache.js +14 -6
- package/dist/views.d.ts +1 -1
- package/dist/write.d.ts +2 -1
- package/dist/write.js +4 -3
- package/package.json +1 -1
- package/src/admin.ts +182 -73
- package/src/chains.ts +259 -0
- package/src/client.ts +71 -8
- package/src/fees.ts +3 -2
- package/src/fpool.ts +116 -73
- package/src/generated.ts +282 -243
- package/src/history.ts +40 -12
- package/src/index.ts +1 -0
- package/src/indexer.ts +1 -1
- package/src/pools.ts +7 -5
- package/src/positions.ts +5 -4
- package/src/tokencache.ts +15 -6
- package/src/views.ts +1 -1
- package/src/write.ts +4 -3
package/dist/generated.js
CHANGED
|
@@ -5,7 +5,8 @@ export const cPoolManagerAbi = [
|
|
|
5
5
|
{
|
|
6
6
|
type: 'constructor',
|
|
7
7
|
inputs: [
|
|
8
|
-
{ name: '
|
|
8
|
+
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
9
|
+
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
9
10
|
{ name: 'gate_', internalType: 'address', type: 'address' },
|
|
10
11
|
],
|
|
11
12
|
stateMutability: 'nonpayable',
|
|
@@ -20,7 +21,7 @@ export const cPoolManagerAbi = [
|
|
|
20
21
|
{
|
|
21
22
|
type: 'function',
|
|
22
23
|
inputs: [],
|
|
23
|
-
name: '
|
|
24
|
+
name: 'acceptTreasury',
|
|
24
25
|
outputs: [],
|
|
25
26
|
stateMutability: 'nonpayable',
|
|
26
27
|
},
|
|
@@ -163,7 +164,6 @@ export const cPoolManagerAbi = [
|
|
|
163
164
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
164
165
|
],
|
|
165
166
|
},
|
|
166
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
167
167
|
],
|
|
168
168
|
name: 'collectProtocolFees',
|
|
169
169
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -210,13 +210,6 @@ export const cPoolManagerAbi = [
|
|
|
210
210
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
211
211
|
stateMutability: 'view',
|
|
212
212
|
},
|
|
213
|
-
{
|
|
214
|
-
type: 'function',
|
|
215
|
-
inputs: [],
|
|
216
|
-
name: 'feeCollector',
|
|
217
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
218
|
-
stateMutability: 'view',
|
|
219
|
-
},
|
|
220
213
|
{
|
|
221
214
|
type: 'function',
|
|
222
215
|
inputs: [],
|
|
@@ -354,14 +347,14 @@ export const cPoolManagerAbi = [
|
|
|
354
347
|
{
|
|
355
348
|
type: 'function',
|
|
356
349
|
inputs: [],
|
|
357
|
-
name: '
|
|
350
|
+
name: 'pendingTreasury',
|
|
358
351
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
359
352
|
stateMutability: 'view',
|
|
360
353
|
},
|
|
361
354
|
{
|
|
362
355
|
type: 'function',
|
|
363
356
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
364
|
-
name: '
|
|
357
|
+
name: 'proposeTreasury',
|
|
365
358
|
outputs: [],
|
|
366
359
|
stateMutability: 'nonpayable',
|
|
367
360
|
},
|
|
@@ -389,10 +382,10 @@ export const cPoolManagerAbi = [
|
|
|
389
382
|
},
|
|
390
383
|
{
|
|
391
384
|
type: 'function',
|
|
392
|
-
inputs: [
|
|
393
|
-
name: '
|
|
394
|
-
outputs: [],
|
|
395
|
-
stateMutability: '
|
|
385
|
+
inputs: [],
|
|
386
|
+
name: 'registry',
|
|
387
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
388
|
+
stateMutability: 'view',
|
|
396
389
|
},
|
|
397
390
|
{
|
|
398
391
|
type: 'function',
|
|
@@ -404,13 +397,6 @@ export const cPoolManagerAbi = [
|
|
|
404
397
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
405
398
|
stateMutability: 'payable',
|
|
406
399
|
},
|
|
407
|
-
{
|
|
408
|
-
type: 'function',
|
|
409
|
-
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
410
|
-
name: 'setSwapFeeTax',
|
|
411
|
-
outputs: [],
|
|
412
|
-
stateMutability: 'nonpayable',
|
|
413
|
-
},
|
|
414
400
|
{
|
|
415
401
|
type: 'function',
|
|
416
402
|
inputs: [],
|
|
@@ -450,13 +436,6 @@ export const cPoolManagerAbi = [
|
|
|
450
436
|
],
|
|
451
437
|
stateMutability: 'nonpayable',
|
|
452
438
|
},
|
|
453
|
-
{
|
|
454
|
-
type: 'function',
|
|
455
|
-
inputs: [],
|
|
456
|
-
name: 'swapFeeTax',
|
|
457
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
458
|
-
stateMutability: 'view',
|
|
459
|
-
},
|
|
460
439
|
{
|
|
461
440
|
type: 'function',
|
|
462
441
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -512,6 +491,13 @@ export const cPoolManagerAbi = [
|
|
|
512
491
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
513
492
|
stateMutability: 'payable',
|
|
514
493
|
},
|
|
494
|
+
{
|
|
495
|
+
type: 'function',
|
|
496
|
+
inputs: [],
|
|
497
|
+
name: 'treasury',
|
|
498
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
499
|
+
stateMutability: 'view',
|
|
500
|
+
},
|
|
515
501
|
{
|
|
516
502
|
type: 'function',
|
|
517
503
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -667,44 +653,6 @@ export const cPoolManagerAbi = [
|
|
|
667
653
|
],
|
|
668
654
|
name: 'Claim',
|
|
669
655
|
},
|
|
670
|
-
{
|
|
671
|
-
type: 'event',
|
|
672
|
-
anonymous: false,
|
|
673
|
-
inputs: [
|
|
674
|
-
{
|
|
675
|
-
name: 'previous',
|
|
676
|
-
internalType: 'address',
|
|
677
|
-
type: 'address',
|
|
678
|
-
indexed: true,
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
name: 'current',
|
|
682
|
-
internalType: 'address',
|
|
683
|
-
type: 'address',
|
|
684
|
-
indexed: true,
|
|
685
|
-
},
|
|
686
|
-
],
|
|
687
|
-
name: 'CollectorAccepted',
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
type: 'event',
|
|
691
|
-
anonymous: false,
|
|
692
|
-
inputs: [
|
|
693
|
-
{
|
|
694
|
-
name: 'current',
|
|
695
|
-
internalType: 'address',
|
|
696
|
-
type: 'address',
|
|
697
|
-
indexed: true,
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
name: 'proposed',
|
|
701
|
-
internalType: 'address',
|
|
702
|
-
type: 'address',
|
|
703
|
-
indexed: true,
|
|
704
|
-
},
|
|
705
|
-
],
|
|
706
|
-
name: 'CollectorProposed',
|
|
707
|
-
},
|
|
708
656
|
{
|
|
709
657
|
type: 'event',
|
|
710
658
|
anonymous: false,
|
|
@@ -889,14 +837,6 @@ export const cPoolManagerAbi = [
|
|
|
889
837
|
],
|
|
890
838
|
name: 'Swap',
|
|
891
839
|
},
|
|
892
|
-
{
|
|
893
|
-
type: 'event',
|
|
894
|
-
anonymous: false,
|
|
895
|
-
inputs: [
|
|
896
|
-
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
897
|
-
],
|
|
898
|
-
name: 'SwapFeeTaxSet',
|
|
899
|
-
},
|
|
900
840
|
{
|
|
901
841
|
type: 'event',
|
|
902
842
|
anonymous: false,
|
|
@@ -935,6 +875,44 @@ export const cPoolManagerAbi = [
|
|
|
935
875
|
],
|
|
936
876
|
name: 'Transfer',
|
|
937
877
|
},
|
|
878
|
+
{
|
|
879
|
+
type: 'event',
|
|
880
|
+
anonymous: false,
|
|
881
|
+
inputs: [
|
|
882
|
+
{
|
|
883
|
+
name: 'previous',
|
|
884
|
+
internalType: 'address',
|
|
885
|
+
type: 'address',
|
|
886
|
+
indexed: true,
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
name: 'current',
|
|
890
|
+
internalType: 'address',
|
|
891
|
+
type: 'address',
|
|
892
|
+
indexed: true,
|
|
893
|
+
},
|
|
894
|
+
],
|
|
895
|
+
name: 'TreasuryAccepted',
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
type: 'event',
|
|
899
|
+
anonymous: false,
|
|
900
|
+
inputs: [
|
|
901
|
+
{
|
|
902
|
+
name: 'current',
|
|
903
|
+
internalType: 'address',
|
|
904
|
+
type: 'address',
|
|
905
|
+
indexed: true,
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
name: 'proposed',
|
|
909
|
+
internalType: 'address',
|
|
910
|
+
type: 'address',
|
|
911
|
+
indexed: true,
|
|
912
|
+
},
|
|
913
|
+
],
|
|
914
|
+
name: 'TreasuryProposed',
|
|
915
|
+
},
|
|
938
916
|
{
|
|
939
917
|
type: 'event',
|
|
940
918
|
anonymous: false,
|
|
@@ -1009,7 +987,8 @@ export const cPoolManagerAbi = [
|
|
|
1009
987
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
1010
988
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1011
989
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1012
|
-
{ type: 'error', inputs: [], name: '
|
|
990
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
991
|
+
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1013
992
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1014
993
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
1015
994
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -1038,11 +1017,25 @@ export const fPoolManagerAbi = [
|
|
|
1038
1017
|
{
|
|
1039
1018
|
type: 'constructor',
|
|
1040
1019
|
inputs: [
|
|
1041
|
-
{ name: '
|
|
1020
|
+
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
1042
1021
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
1043
1022
|
],
|
|
1044
1023
|
stateMutability: 'nonpayable',
|
|
1045
1024
|
},
|
|
1025
|
+
{
|
|
1026
|
+
type: 'function',
|
|
1027
|
+
inputs: [],
|
|
1028
|
+
name: 'PAD_PAYOUT_MAX',
|
|
1029
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1030
|
+
stateMutability: 'view',
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
type: 'function',
|
|
1034
|
+
inputs: [],
|
|
1035
|
+
name: 'PAYEE_CUT_MAX',
|
|
1036
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1037
|
+
stateMutability: 'view',
|
|
1038
|
+
},
|
|
1046
1039
|
{
|
|
1047
1040
|
type: 'function',
|
|
1048
1041
|
inputs: [],
|
|
@@ -1053,7 +1046,7 @@ export const fPoolManagerAbi = [
|
|
|
1053
1046
|
{
|
|
1054
1047
|
type: 'function',
|
|
1055
1048
|
inputs: [],
|
|
1056
|
-
name: '
|
|
1049
|
+
name: 'acceptTreasury',
|
|
1057
1050
|
outputs: [],
|
|
1058
1051
|
stateMutability: 'nonpayable',
|
|
1059
1052
|
},
|
|
@@ -1184,13 +1177,6 @@ export const fPoolManagerAbi = [
|
|
|
1184
1177
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1185
1178
|
stateMutability: 'view',
|
|
1186
1179
|
},
|
|
1187
|
-
{
|
|
1188
|
-
type: 'function',
|
|
1189
|
-
inputs: [],
|
|
1190
|
-
name: 'feeCollector',
|
|
1191
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1192
|
-
stateMutability: 'view',
|
|
1193
|
-
},
|
|
1194
1180
|
{
|
|
1195
1181
|
type: 'function',
|
|
1196
1182
|
inputs: [
|
|
@@ -1217,7 +1203,7 @@ export const fPoolManagerAbi = [
|
|
|
1217
1203
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1218
1204
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1219
1205
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1220
|
-
{ name: '
|
|
1206
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
1221
1207
|
],
|
|
1222
1208
|
},
|
|
1223
1209
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -1301,7 +1287,7 @@ export const fPoolManagerAbi = [
|
|
|
1301
1287
|
{
|
|
1302
1288
|
type: 'function',
|
|
1303
1289
|
inputs: [],
|
|
1304
|
-
name: '
|
|
1290
|
+
name: 'pendingTreasury',
|
|
1305
1291
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1306
1292
|
stateMutability: 'view',
|
|
1307
1293
|
},
|
|
@@ -1315,7 +1301,7 @@ export const fPoolManagerAbi = [
|
|
|
1315
1301
|
{
|
|
1316
1302
|
type: 'function',
|
|
1317
1303
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
1318
|
-
name: '
|
|
1304
|
+
name: 'proposeTreasury',
|
|
1319
1305
|
outputs: [],
|
|
1320
1306
|
stateMutability: 'nonpayable',
|
|
1321
1307
|
},
|
|
@@ -1345,9 +1331,7 @@ export const fPoolManagerAbi = [
|
|
|
1345
1331
|
type: 'function',
|
|
1346
1332
|
inputs: [],
|
|
1347
1333
|
name: 'registry',
|
|
1348
|
-
outputs: [
|
|
1349
|
-
{ name: '', internalType: 'contract PolicyRegistry', type: 'address' },
|
|
1350
|
-
],
|
|
1334
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1351
1335
|
stateMutability: 'view',
|
|
1352
1336
|
},
|
|
1353
1337
|
{
|
|
@@ -1544,6 +1528,13 @@ export const fPoolManagerAbi = [
|
|
|
1544
1528
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1545
1529
|
stateMutability: 'payable',
|
|
1546
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
type: 'function',
|
|
1533
|
+
inputs: [],
|
|
1534
|
+
name: 'treasury',
|
|
1535
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1536
|
+
stateMutability: 'view',
|
|
1537
|
+
},
|
|
1547
1538
|
{
|
|
1548
1539
|
type: 'function',
|
|
1549
1540
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -1610,44 +1601,6 @@ export const fPoolManagerAbi = [
|
|
|
1610
1601
|
],
|
|
1611
1602
|
name: 'AsksSet',
|
|
1612
1603
|
},
|
|
1613
|
-
{
|
|
1614
|
-
type: 'event',
|
|
1615
|
-
anonymous: false,
|
|
1616
|
-
inputs: [
|
|
1617
|
-
{
|
|
1618
|
-
name: 'previous',
|
|
1619
|
-
internalType: 'address',
|
|
1620
|
-
type: 'address',
|
|
1621
|
-
indexed: true,
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
name: 'current',
|
|
1625
|
-
internalType: 'address',
|
|
1626
|
-
type: 'address',
|
|
1627
|
-
indexed: true,
|
|
1628
|
-
},
|
|
1629
|
-
],
|
|
1630
|
-
name: 'CollectorAccepted',
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
type: 'event',
|
|
1634
|
-
anonymous: false,
|
|
1635
|
-
inputs: [
|
|
1636
|
-
{
|
|
1637
|
-
name: 'current',
|
|
1638
|
-
internalType: 'address',
|
|
1639
|
-
type: 'address',
|
|
1640
|
-
indexed: true,
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
name: 'proposed',
|
|
1644
|
-
internalType: 'address',
|
|
1645
|
-
type: 'address',
|
|
1646
|
-
indexed: true,
|
|
1647
|
-
},
|
|
1648
|
-
],
|
|
1649
|
-
name: 'CollectorProposed',
|
|
1650
|
-
},
|
|
1651
1604
|
{
|
|
1652
1605
|
type: 'event',
|
|
1653
1606
|
anonymous: false,
|
|
@@ -1755,7 +1708,12 @@ export const fPoolManagerAbi = [
|
|
|
1755
1708
|
type: 'address',
|
|
1756
1709
|
indexed: false,
|
|
1757
1710
|
},
|
|
1758
|
-
{
|
|
1711
|
+
{
|
|
1712
|
+
name: 'lnCapOverFloor',
|
|
1713
|
+
internalType: 'uint24',
|
|
1714
|
+
type: 'uint24',
|
|
1715
|
+
indexed: false,
|
|
1716
|
+
},
|
|
1759
1717
|
],
|
|
1760
1718
|
name: 'FInitialize',
|
|
1761
1719
|
},
|
|
@@ -2023,12 +1981,6 @@ export const fPoolManagerAbi = [
|
|
|
2023
1981
|
indexed: false,
|
|
2024
1982
|
},
|
|
2025
1983
|
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2026
|
-
{
|
|
2027
|
-
name: 'burnt',
|
|
2028
|
-
internalType: 'uint256',
|
|
2029
|
-
type: 'uint256',
|
|
2030
|
-
indexed: false,
|
|
2031
|
-
},
|
|
2032
1984
|
{
|
|
2033
1985
|
name: 'deepened',
|
|
2034
1986
|
internalType: 'uint256',
|
|
@@ -2116,6 +2068,44 @@ export const fPoolManagerAbi = [
|
|
|
2116
2068
|
],
|
|
2117
2069
|
name: 'Transfer',
|
|
2118
2070
|
},
|
|
2071
|
+
{
|
|
2072
|
+
type: 'event',
|
|
2073
|
+
anonymous: false,
|
|
2074
|
+
inputs: [
|
|
2075
|
+
{
|
|
2076
|
+
name: 'previous',
|
|
2077
|
+
internalType: 'address',
|
|
2078
|
+
type: 'address',
|
|
2079
|
+
indexed: true,
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
name: 'current',
|
|
2083
|
+
internalType: 'address',
|
|
2084
|
+
type: 'address',
|
|
2085
|
+
indexed: true,
|
|
2086
|
+
},
|
|
2087
|
+
],
|
|
2088
|
+
name: 'TreasuryAccepted',
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
type: 'event',
|
|
2092
|
+
anonymous: false,
|
|
2093
|
+
inputs: [
|
|
2094
|
+
{
|
|
2095
|
+
name: 'current',
|
|
2096
|
+
internalType: 'address',
|
|
2097
|
+
type: 'address',
|
|
2098
|
+
indexed: true,
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
name: 'proposed',
|
|
2102
|
+
internalType: 'address',
|
|
2103
|
+
type: 'address',
|
|
2104
|
+
indexed: true,
|
|
2105
|
+
},
|
|
2106
|
+
],
|
|
2107
|
+
name: 'TreasuryProposed',
|
|
2108
|
+
},
|
|
2119
2109
|
{ type: 'error', inputs: [], name: 'AlreadySeeded' },
|
|
2120
2110
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
2121
2111
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
@@ -2139,11 +2129,13 @@ export const fPoolManagerAbi = [
|
|
|
2139
2129
|
},
|
|
2140
2130
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2141
2131
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2142
|
-
{ type: 'error', inputs: [], name: '
|
|
2132
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2143
2133
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2144
2134
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2145
2135
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2146
2136
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2137
|
+
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
2138
|
+
{ type: 'error', inputs: [], name: 'PadNeverRetires' },
|
|
2147
2139
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2148
2140
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2149
2141
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -2358,12 +2350,16 @@ export const logswapLensAbi = [
|
|
|
2358
2350
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2359
2351
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2360
2352
|
{
|
|
2361
|
-
name: '
|
|
2353
|
+
name: 'restructureTime',
|
|
2362
2354
|
internalType: 'uint32',
|
|
2363
2355
|
type: 'uint32',
|
|
2364
2356
|
},
|
|
2365
2357
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2366
|
-
{
|
|
2358
|
+
{
|
|
2359
|
+
name: 'lnCapOverFloor',
|
|
2360
|
+
internalType: 'uint24',
|
|
2361
|
+
type: 'uint24',
|
|
2362
|
+
},
|
|
2367
2363
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2368
2364
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2369
2365
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2453,9 +2449,9 @@ export const logswapLensAbi = [
|
|
|
2453
2449
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2454
2450
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2455
2451
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2456
|
-
{ name: '
|
|
2452
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2457
2453
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2458
|
-
{ name: '
|
|
2454
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
2459
2455
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2460
2456
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2461
2457
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2490,6 +2486,7 @@ export const logswapLensAbi = [
|
|
|
2490
2486
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2491
2487
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2492
2488
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2489
|
+
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2493
2490
|
],
|
|
2494
2491
|
},
|
|
2495
2492
|
],
|
|
@@ -3649,7 +3646,8 @@ export const padPolicyAbi = [
|
|
|
3649
3646
|
internalType: 'contract FPoolManager',
|
|
3650
3647
|
type: 'address',
|
|
3651
3648
|
},
|
|
3652
|
-
{ name: '
|
|
3649
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3650
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
3653
3651
|
],
|
|
3654
3652
|
stateMutability: 'nonpayable',
|
|
3655
3653
|
},
|
|
@@ -3667,20 +3665,6 @@ export const padPolicyAbi = [
|
|
|
3667
3665
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3668
3666
|
stateMutability: 'view',
|
|
3669
3667
|
},
|
|
3670
|
-
{
|
|
3671
|
-
type: 'function',
|
|
3672
|
-
inputs: [],
|
|
3673
|
-
name: 'burnMax',
|
|
3674
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3675
|
-
stateMutability: 'view',
|
|
3676
|
-
},
|
|
3677
|
-
{
|
|
3678
|
-
type: 'function',
|
|
3679
|
-
inputs: [],
|
|
3680
|
-
name: 'burnMin',
|
|
3681
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3682
|
-
stateMutability: 'view',
|
|
3683
|
-
},
|
|
3684
3668
|
{
|
|
3685
3669
|
type: 'function',
|
|
3686
3670
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3818,7 +3802,7 @@ export const padPolicyAbi = [
|
|
|
3818
3802
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3819
3803
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3820
3804
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3821
|
-
{ name: '
|
|
3805
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
3822
3806
|
],
|
|
3823
3807
|
},
|
|
3824
3808
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3877,7 +3861,6 @@ export const padPolicyAbi = [
|
|
|
3877
3861
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3878
3862
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3879
3863
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
3880
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
3881
3864
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3882
3865
|
],
|
|
3883
3866
|
},
|
|
@@ -3888,7 +3871,6 @@ export const padPolicyAbi = [
|
|
|
3888
3871
|
type: 'function',
|
|
3889
3872
|
inputs: [
|
|
3890
3873
|
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3891
|
-
{ name: 'burnShare', internalType: 'uint256', type: 'uint256' },
|
|
3892
3874
|
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3893
3875
|
],
|
|
3894
3876
|
name: 'pack',
|
|
@@ -4021,40 +4003,49 @@ export const padPolicyAbi = [
|
|
|
4021
4003
|
{
|
|
4022
4004
|
type: 'function',
|
|
4023
4005
|
inputs: [
|
|
4024
|
-
{ name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
|
|
4025
4006
|
{ name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
|
|
4026
4007
|
{ name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
|
|
4027
4008
|
{ name: '_creatorShareMin', internalType: 'uint256', type: 'uint256' },
|
|
4028
4009
|
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4029
|
-
{ name: '_burnMin', internalType: 'uint256', type: 'uint256' },
|
|
4030
|
-
{ name: '_burnMax', internalType: 'uint256', type: 'uint256' },
|
|
4031
4010
|
],
|
|
4032
4011
|
name: 'setSchedule',
|
|
4033
4012
|
outputs: [],
|
|
4034
4013
|
stateMutability: 'nonpayable',
|
|
4035
4014
|
},
|
|
4015
|
+
{
|
|
4016
|
+
type: 'function',
|
|
4017
|
+
inputs: [
|
|
4018
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4019
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
4020
|
+
],
|
|
4021
|
+
name: 'setThresholdBase',
|
|
4022
|
+
outputs: [],
|
|
4023
|
+
stateMutability: 'nonpayable',
|
|
4024
|
+
},
|
|
4036
4025
|
{
|
|
4037
4026
|
type: 'function',
|
|
4038
4027
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4039
4028
|
name: 'splitOf',
|
|
4040
4029
|
outputs: [
|
|
4041
4030
|
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4042
|
-
{ name: 'burnShare', internalType: 'uint64', type: 'uint64' },
|
|
4043
4031
|
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4044
4032
|
],
|
|
4045
4033
|
stateMutability: 'view',
|
|
4046
4034
|
},
|
|
4047
4035
|
{
|
|
4048
4036
|
type: 'function',
|
|
4049
|
-
inputs: [
|
|
4037
|
+
inputs: [
|
|
4038
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4039
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
4040
|
+
],
|
|
4050
4041
|
name: 'threshold',
|
|
4051
|
-
outputs: [{ name: '
|
|
4042
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4052
4043
|
stateMutability: 'view',
|
|
4053
4044
|
},
|
|
4054
4045
|
{
|
|
4055
4046
|
type: 'function',
|
|
4056
|
-
inputs: [],
|
|
4057
|
-
name: '
|
|
4047
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4048
|
+
name: 'thresholdBaseOf',
|
|
4058
4049
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4059
4050
|
stateMutability: 'view',
|
|
4060
4051
|
},
|
|
@@ -4065,6 +4056,23 @@ export const padPolicyAbi = [
|
|
|
4065
4056
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4066
4057
|
stateMutability: 'view',
|
|
4067
4058
|
},
|
|
4059
|
+
{
|
|
4060
|
+
type: 'function',
|
|
4061
|
+
inputs: [
|
|
4062
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4063
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
4064
|
+
],
|
|
4065
|
+
name: 'thresholdOf',
|
|
4066
|
+
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
4067
|
+
stateMutability: 'view',
|
|
4068
|
+
},
|
|
4069
|
+
{
|
|
4070
|
+
type: 'function',
|
|
4071
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4072
|
+
name: 'thresholdSet',
|
|
4073
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4074
|
+
stateMutability: 'view',
|
|
4075
|
+
},
|
|
4068
4076
|
{
|
|
4069
4077
|
type: 'event',
|
|
4070
4078
|
anonymous: false,
|
|
@@ -4226,12 +4234,6 @@ export const padPolicyAbi = [
|
|
|
4226
4234
|
type: 'event',
|
|
4227
4235
|
anonymous: false,
|
|
4228
4236
|
inputs: [
|
|
4229
|
-
{
|
|
4230
|
-
name: 'thresholdBase',
|
|
4231
|
-
internalType: 'uint256',
|
|
4232
|
-
type: 'uint256',
|
|
4233
|
-
indexed: false,
|
|
4234
|
-
},
|
|
4235
4237
|
{
|
|
4236
4238
|
name: 'thresholdGrowth',
|
|
4237
4239
|
internalType: 'uint256',
|
|
@@ -4256,18 +4258,6 @@ export const padPolicyAbi = [
|
|
|
4256
4258
|
type: 'uint256',
|
|
4257
4259
|
indexed: false,
|
|
4258
4260
|
},
|
|
4259
|
-
{
|
|
4260
|
-
name: 'burnMin',
|
|
4261
|
-
internalType: 'uint256',
|
|
4262
|
-
type: 'uint256',
|
|
4263
|
-
indexed: false,
|
|
4264
|
-
},
|
|
4265
|
-
{
|
|
4266
|
-
name: 'burnMax',
|
|
4267
|
-
internalType: 'uint256',
|
|
4268
|
-
type: 'uint256',
|
|
4269
|
-
indexed: false,
|
|
4270
|
-
},
|
|
4271
4261
|
],
|
|
4272
4262
|
name: 'ScheduleSet',
|
|
4273
4263
|
},
|
|
@@ -4288,19 +4278,32 @@ export const padPolicyAbi = [
|
|
|
4288
4278
|
indexed: false,
|
|
4289
4279
|
},
|
|
4290
4280
|
{
|
|
4291
|
-
name: '
|
|
4281
|
+
name: 'protocolShare',
|
|
4292
4282
|
internalType: 'uint256',
|
|
4293
4283
|
type: 'uint256',
|
|
4294
4284
|
indexed: false,
|
|
4295
4285
|
},
|
|
4286
|
+
],
|
|
4287
|
+
name: 'SplitSet',
|
|
4288
|
+
},
|
|
4289
|
+
{
|
|
4290
|
+
type: 'event',
|
|
4291
|
+
anonymous: false,
|
|
4292
|
+
inputs: [
|
|
4296
4293
|
{
|
|
4297
|
-
name: '
|
|
4294
|
+
name: 'quote',
|
|
4295
|
+
internalType: 'address',
|
|
4296
|
+
type: 'address',
|
|
4297
|
+
indexed: true,
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
name: 'thresholdBase',
|
|
4298
4301
|
internalType: 'uint256',
|
|
4299
4302
|
type: 'uint256',
|
|
4300
4303
|
indexed: false,
|
|
4301
4304
|
},
|
|
4302
4305
|
],
|
|
4303
|
-
name: '
|
|
4306
|
+
name: 'ThresholdBaseSet',
|
|
4304
4307
|
},
|
|
4305
4308
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4306
4309
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
@@ -4320,9 +4323,14 @@ export const padPolicyAbi = [
|
|
|
4320
4323
|
name: 'MintFeeNotListed',
|
|
4321
4324
|
},
|
|
4322
4325
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4326
|
+
{
|
|
4327
|
+
type: 'error',
|
|
4328
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4329
|
+
name: 'NoThreshold',
|
|
4330
|
+
},
|
|
4323
4331
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4324
|
-
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4325
4332
|
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4333
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4326
4334
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4327
4335
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4328
4336
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
@@ -4508,7 +4516,7 @@ export const polPolicyAbi = [
|
|
|
4508
4516
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4509
4517
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4510
4518
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4511
|
-
{ name: '
|
|
4519
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
4512
4520
|
],
|
|
4513
4521
|
},
|
|
4514
4522
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4567,7 +4575,6 @@ export const polPolicyAbi = [
|
|
|
4567
4575
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4568
4576
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4569
4577
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
4570
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
4571
4578
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4572
4579
|
],
|
|
4573
4580
|
},
|
|
@@ -4873,7 +4880,7 @@ export const polPolicyAbi = [
|
|
|
4873
4880
|
},
|
|
4874
4881
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4875
4882
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4876
|
-
{ type: 'error', inputs: [], name: '
|
|
4883
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4877
4884
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4878
4885
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4879
4886
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
@@ -4891,13 +4898,15 @@ export const polPolicyAbi = [
|
|
|
4891
4898
|
export const policyRegistryAbi = [
|
|
4892
4899
|
{
|
|
4893
4900
|
type: 'constructor',
|
|
4894
|
-
inputs: [
|
|
4901
|
+
inputs: [
|
|
4902
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
4903
|
+
],
|
|
4895
4904
|
stateMutability: 'nonpayable',
|
|
4896
4905
|
},
|
|
4897
4906
|
{
|
|
4898
4907
|
type: 'function',
|
|
4899
4908
|
inputs: [],
|
|
4900
|
-
name: '
|
|
4909
|
+
name: 'acceptLogAuthority',
|
|
4901
4910
|
outputs: [],
|
|
4902
4911
|
stateMutability: 'nonpayable',
|
|
4903
4912
|
},
|
|
@@ -4937,6 +4946,13 @@ export const policyRegistryAbi = [
|
|
|
4937
4946
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4938
4947
|
stateMutability: 'view',
|
|
4939
4948
|
},
|
|
4949
|
+
{
|
|
4950
|
+
type: 'function',
|
|
4951
|
+
inputs: [],
|
|
4952
|
+
name: 'logAuthority',
|
|
4953
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4954
|
+
stateMutability: 'view',
|
|
4955
|
+
},
|
|
4940
4956
|
{
|
|
4941
4957
|
type: 'function',
|
|
4942
4958
|
inputs: [
|
|
@@ -4953,7 +4969,7 @@ export const policyRegistryAbi = [
|
|
|
4953
4969
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4954
4970
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4955
4971
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4956
|
-
{ name: '
|
|
4972
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
4957
4973
|
],
|
|
4958
4974
|
},
|
|
4959
4975
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -4965,14 +4981,7 @@ export const policyRegistryAbi = [
|
|
|
4965
4981
|
{
|
|
4966
4982
|
type: 'function',
|
|
4967
4983
|
inputs: [],
|
|
4968
|
-
name: '
|
|
4969
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4970
|
-
stateMutability: 'view',
|
|
4971
|
-
},
|
|
4972
|
-
{
|
|
4973
|
-
type: 'function',
|
|
4974
|
-
inputs: [],
|
|
4975
|
-
name: 'pendingOwner',
|
|
4984
|
+
name: 'pendingLogAuthority',
|
|
4976
4985
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4977
4986
|
stateMutability: 'view',
|
|
4978
4987
|
},
|
|
@@ -4986,7 +4995,7 @@ export const policyRegistryAbi = [
|
|
|
4986
4995
|
{
|
|
4987
4996
|
type: 'function',
|
|
4988
4997
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
4989
|
-
name: '
|
|
4998
|
+
name: 'proposeLogAuthority',
|
|
4990
4999
|
outputs: [],
|
|
4991
5000
|
stateMutability: 'nonpayable',
|
|
4992
5001
|
},
|
|
@@ -5018,7 +5027,7 @@ export const policyRegistryAbi = [
|
|
|
5018
5027
|
type: 'function',
|
|
5019
5028
|
inputs: [
|
|
5020
5029
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5021
|
-
{ name: '
|
|
5030
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
5022
5031
|
],
|
|
5023
5032
|
name: 'sunset',
|
|
5024
5033
|
outputs: [],
|
|
@@ -5043,6 +5052,34 @@ export const policyRegistryAbi = [
|
|
|
5043
5052
|
],
|
|
5044
5053
|
name: 'Approved',
|
|
5045
5054
|
},
|
|
5055
|
+
{
|
|
5056
|
+
type: 'event',
|
|
5057
|
+
anonymous: false,
|
|
5058
|
+
inputs: [
|
|
5059
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5060
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5061
|
+
],
|
|
5062
|
+
name: 'LogAuthorityAccepted',
|
|
5063
|
+
},
|
|
5064
|
+
{
|
|
5065
|
+
type: 'event',
|
|
5066
|
+
anonymous: false,
|
|
5067
|
+
inputs: [
|
|
5068
|
+
{
|
|
5069
|
+
name: 'current',
|
|
5070
|
+
internalType: 'address',
|
|
5071
|
+
type: 'address',
|
|
5072
|
+
indexed: true,
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
name: 'proposed',
|
|
5076
|
+
internalType: 'address',
|
|
5077
|
+
type: 'address',
|
|
5078
|
+
indexed: true,
|
|
5079
|
+
},
|
|
5080
|
+
],
|
|
5081
|
+
name: 'LogAuthorityProposed',
|
|
5082
|
+
},
|
|
5046
5083
|
{
|
|
5047
5084
|
type: 'event',
|
|
5048
5085
|
anonymous: false,
|
|
@@ -5075,34 +5112,6 @@ export const policyRegistryAbi = [
|
|
|
5075
5112
|
],
|
|
5076
5113
|
name: 'Migrated',
|
|
5077
5114
|
},
|
|
5078
|
-
{
|
|
5079
|
-
type: 'event',
|
|
5080
|
-
anonymous: false,
|
|
5081
|
-
inputs: [
|
|
5082
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5083
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5084
|
-
],
|
|
5085
|
-
name: 'OwnerAccepted',
|
|
5086
|
-
},
|
|
5087
|
-
{
|
|
5088
|
-
type: 'event',
|
|
5089
|
-
anonymous: false,
|
|
5090
|
-
inputs: [
|
|
5091
|
-
{
|
|
5092
|
-
name: 'current',
|
|
5093
|
-
internalType: 'address',
|
|
5094
|
-
type: 'address',
|
|
5095
|
-
indexed: true,
|
|
5096
|
-
},
|
|
5097
|
-
{
|
|
5098
|
-
name: 'proposed',
|
|
5099
|
-
internalType: 'address',
|
|
5100
|
-
type: 'address',
|
|
5101
|
-
indexed: true,
|
|
5102
|
-
},
|
|
5103
|
-
],
|
|
5104
|
-
name: 'OwnerProposed',
|
|
5105
|
-
},
|
|
5106
5115
|
{
|
|
5107
5116
|
type: 'event',
|
|
5108
5117
|
anonymous: false,
|
|
@@ -5141,7 +5150,7 @@ export const policyRegistryAbi = [
|
|
|
5141
5150
|
indexed: true,
|
|
5142
5151
|
},
|
|
5143
5152
|
{
|
|
5144
|
-
name: '
|
|
5153
|
+
name: 'untilTime',
|
|
5145
5154
|
internalType: 'uint64',
|
|
5146
5155
|
type: 'uint64',
|
|
5147
5156
|
indexed: false,
|
|
@@ -5154,7 +5163,7 @@ export const policyRegistryAbi = [
|
|
|
5154
5163
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5155
5164
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5156
5165
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5157
|
-
{ type: 'error', inputs: [], name: '
|
|
5166
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5158
5167
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5159
5168
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5160
5169
|
];
|
|
@@ -5392,7 +5401,7 @@ export const privatePolicyAbi = [
|
|
|
5392
5401
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5393
5402
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5394
5403
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5395
|
-
{ name: '
|
|
5404
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
5396
5405
|
],
|
|
5397
5406
|
},
|
|
5398
5407
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -5451,7 +5460,6 @@ export const privatePolicyAbi = [
|
|
|
5451
5460
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5452
5461
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5453
5462
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
5454
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
5455
5463
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5456
5464
|
],
|
|
5457
5465
|
},
|
|
@@ -5859,7 +5867,7 @@ export const privatePolicyAbi = [
|
|
|
5859
5867
|
},
|
|
5860
5868
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5861
5869
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5862
|
-
{ type: 'error', inputs: [], name: '
|
|
5870
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5863
5871
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5864
5872
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
5865
5873
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
@@ -5887,6 +5895,13 @@ export const publicPolicyAbi = [
|
|
|
5887
5895
|
],
|
|
5888
5896
|
stateMutability: 'nonpayable',
|
|
5889
5897
|
},
|
|
5898
|
+
{
|
|
5899
|
+
type: 'function',
|
|
5900
|
+
inputs: [],
|
|
5901
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
5902
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5903
|
+
stateMutability: 'view',
|
|
5904
|
+
},
|
|
5890
5905
|
{
|
|
5891
5906
|
type: 'function',
|
|
5892
5907
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6065,7 +6080,10 @@ export const publicPolicyAbi = [
|
|
|
6065
6080
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6066
6081
|
],
|
|
6067
6082
|
name: 'onCInitialize',
|
|
6068
|
-
outputs: [
|
|
6083
|
+
outputs: [
|
|
6084
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6085
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6086
|
+
],
|
|
6069
6087
|
stateMutability: 'nonpayable',
|
|
6070
6088
|
},
|
|
6071
6089
|
{
|
|
@@ -6084,7 +6102,7 @@ export const publicPolicyAbi = [
|
|
|
6084
6102
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6085
6103
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
6086
6104
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
6087
|
-
{ name: '
|
|
6105
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
6088
6106
|
],
|
|
6089
6107
|
},
|
|
6090
6108
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -6143,7 +6161,6 @@ export const publicPolicyAbi = [
|
|
|
6143
6161
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6144
6162
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6145
6163
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
6146
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
6147
6164
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6148
6165
|
],
|
|
6149
6166
|
},
|
|
@@ -6331,6 +6348,13 @@ export const publicPolicyAbi = [
|
|
|
6331
6348
|
outputs: [],
|
|
6332
6349
|
stateMutability: 'nonpayable',
|
|
6333
6350
|
},
|
|
6351
|
+
{
|
|
6352
|
+
type: 'function',
|
|
6353
|
+
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
6354
|
+
name: 'setSwapFeeTax',
|
|
6355
|
+
outputs: [],
|
|
6356
|
+
stateMutability: 'nonpayable',
|
|
6357
|
+
},
|
|
6334
6358
|
{
|
|
6335
6359
|
type: 'function',
|
|
6336
6360
|
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
@@ -6338,6 +6362,13 @@ export const publicPolicyAbi = [
|
|
|
6338
6362
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6339
6363
|
stateMutability: 'view',
|
|
6340
6364
|
},
|
|
6365
|
+
{
|
|
6366
|
+
type: 'function',
|
|
6367
|
+
inputs: [],
|
|
6368
|
+
name: 'swapFeeTax',
|
|
6369
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6370
|
+
stateMutability: 'view',
|
|
6371
|
+
},
|
|
6341
6372
|
{
|
|
6342
6373
|
type: 'event',
|
|
6343
6374
|
anonymous: false,
|
|
@@ -6553,6 +6584,14 @@ export const publicPolicyAbi = [
|
|
|
6553
6584
|
],
|
|
6554
6585
|
name: 'SpacingListed',
|
|
6555
6586
|
},
|
|
6587
|
+
{
|
|
6588
|
+
type: 'event',
|
|
6589
|
+
anonymous: false,
|
|
6590
|
+
inputs: [
|
|
6591
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
6592
|
+
],
|
|
6593
|
+
name: 'SwapFeeTaxSet',
|
|
6594
|
+
},
|
|
6556
6595
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6557
6596
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6558
6597
|
{
|
|
@@ -6587,12 +6626,12 @@ export const publicPolicyAbi = [
|
|
|
6587
6626
|
},
|
|
6588
6627
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6589
6628
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6590
|
-
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
6591
6629
|
{
|
|
6592
6630
|
type: 'error',
|
|
6593
6631
|
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6594
6632
|
name: 'NotListed',
|
|
6595
6633
|
},
|
|
6634
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6596
6635
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6597
6636
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6598
6637
|
{ type: 'error', inputs: [], name: 'OneBase' },
|