@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/src/generated.ts CHANGED
@@ -6,7 +6,8 @@ export const cPoolManagerAbi = [
6
6
  {
7
7
  type: 'constructor',
8
8
  inputs: [
9
- { name: '_feeCollector', internalType: 'address', type: 'address' },
9
+ { name: '_treasury', internalType: 'address', type: 'address' },
10
+ { name: '_registry', internalType: 'address', type: 'address' },
10
11
  { name: 'gate_', internalType: 'address', type: 'address' },
11
12
  ],
12
13
  stateMutability: 'nonpayable',
@@ -21,7 +22,7 @@ export const cPoolManagerAbi = [
21
22
  {
22
23
  type: 'function',
23
24
  inputs: [],
24
- name: 'acceptCollector',
25
+ name: 'acceptTreasury',
25
26
  outputs: [],
26
27
  stateMutability: 'nonpayable',
27
28
  },
@@ -164,7 +165,6 @@ export const cPoolManagerAbi = [
164
165
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
165
166
  ],
166
167
  },
167
- { name: 'to', internalType: 'address', type: 'address' },
168
168
  ],
169
169
  name: 'collectProtocolFees',
170
170
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
@@ -211,13 +211,6 @@ export const cPoolManagerAbi = [
211
211
  outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
212
212
  stateMutability: 'view',
213
213
  },
214
- {
215
- type: 'function',
216
- inputs: [],
217
- name: 'feeCollector',
218
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
219
- stateMutability: 'view',
220
- },
221
214
  {
222
215
  type: 'function',
223
216
  inputs: [],
@@ -355,14 +348,14 @@ export const cPoolManagerAbi = [
355
348
  {
356
349
  type: 'function',
357
350
  inputs: [],
358
- name: 'pendingCollector',
351
+ name: 'pendingTreasury',
359
352
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
360
353
  stateMutability: 'view',
361
354
  },
362
355
  {
363
356
  type: 'function',
364
357
  inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
365
- name: 'proposeCollector',
358
+ name: 'proposeTreasury',
366
359
  outputs: [],
367
360
  stateMutability: 'nonpayable',
368
361
  },
@@ -390,10 +383,10 @@ export const cPoolManagerAbi = [
390
383
  },
391
384
  {
392
385
  type: 'function',
393
- inputs: [{ name: 'gate_', internalType: 'address', type: 'address' }],
394
- name: 'setGate',
395
- outputs: [],
396
- stateMutability: 'nonpayable',
386
+ inputs: [],
387
+ name: 'registry',
388
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
389
+ stateMutability: 'view',
397
390
  },
398
391
  {
399
392
  type: 'function',
@@ -405,13 +398,6 @@ export const cPoolManagerAbi = [
405
398
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
406
399
  stateMutability: 'payable',
407
400
  },
408
- {
409
- type: 'function',
410
- inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
411
- name: 'setSwapFeeTax',
412
- outputs: [],
413
- stateMutability: 'nonpayable',
414
- },
415
401
  {
416
402
  type: 'function',
417
403
  inputs: [],
@@ -451,13 +437,6 @@ export const cPoolManagerAbi = [
451
437
  ],
452
438
  stateMutability: 'nonpayable',
453
439
  },
454
- {
455
- type: 'function',
456
- inputs: [],
457
- name: 'swapFeeTax',
458
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
459
- stateMutability: 'view',
460
- },
461
440
  {
462
441
  type: 'function',
463
442
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -513,6 +492,13 @@ export const cPoolManagerAbi = [
513
492
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
514
493
  stateMutability: 'payable',
515
494
  },
495
+ {
496
+ type: 'function',
497
+ inputs: [],
498
+ name: 'treasury',
499
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
500
+ stateMutability: 'view',
501
+ },
516
502
  {
517
503
  type: 'function',
518
504
  inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
@@ -668,44 +654,6 @@ export const cPoolManagerAbi = [
668
654
  ],
669
655
  name: 'Claim',
670
656
  },
671
- {
672
- type: 'event',
673
- anonymous: false,
674
- inputs: [
675
- {
676
- name: 'previous',
677
- internalType: 'address',
678
- type: 'address',
679
- indexed: true,
680
- },
681
- {
682
- name: 'current',
683
- internalType: 'address',
684
- type: 'address',
685
- indexed: true,
686
- },
687
- ],
688
- name: 'CollectorAccepted',
689
- },
690
- {
691
- type: 'event',
692
- anonymous: false,
693
- inputs: [
694
- {
695
- name: 'current',
696
- internalType: 'address',
697
- type: 'address',
698
- indexed: true,
699
- },
700
- {
701
- name: 'proposed',
702
- internalType: 'address',
703
- type: 'address',
704
- indexed: true,
705
- },
706
- ],
707
- name: 'CollectorProposed',
708
- },
709
657
  {
710
658
  type: 'event',
711
659
  anonymous: false,
@@ -890,14 +838,6 @@ export const cPoolManagerAbi = [
890
838
  ],
891
839
  name: 'Swap',
892
840
  },
893
- {
894
- type: 'event',
895
- anonymous: false,
896
- inputs: [
897
- { name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
898
- ],
899
- name: 'SwapFeeTaxSet',
900
- },
901
841
  {
902
842
  type: 'event',
903
843
  anonymous: false,
@@ -936,6 +876,44 @@ export const cPoolManagerAbi = [
936
876
  ],
937
877
  name: 'Transfer',
938
878
  },
879
+ {
880
+ type: 'event',
881
+ anonymous: false,
882
+ inputs: [
883
+ {
884
+ name: 'previous',
885
+ internalType: 'address',
886
+ type: 'address',
887
+ indexed: true,
888
+ },
889
+ {
890
+ name: 'current',
891
+ internalType: 'address',
892
+ type: 'address',
893
+ indexed: true,
894
+ },
895
+ ],
896
+ name: 'TreasuryAccepted',
897
+ },
898
+ {
899
+ type: 'event',
900
+ anonymous: false,
901
+ inputs: [
902
+ {
903
+ name: 'current',
904
+ internalType: 'address',
905
+ type: 'address',
906
+ indexed: true,
907
+ },
908
+ {
909
+ name: 'proposed',
910
+ internalType: 'address',
911
+ type: 'address',
912
+ indexed: true,
913
+ },
914
+ ],
915
+ name: 'TreasuryProposed',
916
+ },
939
917
  {
940
918
  type: 'event',
941
919
  anonymous: false,
@@ -1010,7 +988,8 @@ export const cPoolManagerAbi = [
1010
988
  { type: 'error', inputs: [], name: 'InvalidToken' },
1011
989
  { type: 'error', inputs: [], name: 'NoLiquidity' },
1012
990
  { type: 'error', inputs: [], name: 'NotAuthorized' },
1013
- { type: 'error', inputs: [], name: 'NotCollector' },
991
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
992
+ { type: 'error', inputs: [], name: 'NotTreasury' },
1014
993
  { type: 'error', inputs: [], name: 'OffGrid' },
1015
994
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
1016
995
  { type: 'error', inputs: [], name: 'PoolLocked' },
@@ -1041,11 +1020,25 @@ export const fPoolManagerAbi = [
1041
1020
  {
1042
1021
  type: 'constructor',
1043
1022
  inputs: [
1044
- { name: '_feeCollector', internalType: 'address', type: 'address' },
1023
+ { name: '_treasury', internalType: 'address', type: 'address' },
1045
1024
  { name: '_registry', internalType: 'address', type: 'address' },
1046
1025
  ],
1047
1026
  stateMutability: 'nonpayable',
1048
1027
  },
1028
+ {
1029
+ type: 'function',
1030
+ inputs: [],
1031
+ name: 'PAD_PAYOUT_MAX',
1032
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1033
+ stateMutability: 'view',
1034
+ },
1035
+ {
1036
+ type: 'function',
1037
+ inputs: [],
1038
+ name: 'PAYEE_CUT_MAX',
1039
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1040
+ stateMutability: 'view',
1041
+ },
1049
1042
  {
1050
1043
  type: 'function',
1051
1044
  inputs: [],
@@ -1056,7 +1049,7 @@ export const fPoolManagerAbi = [
1056
1049
  {
1057
1050
  type: 'function',
1058
1051
  inputs: [],
1059
- name: 'acceptCollector',
1052
+ name: 'acceptTreasury',
1060
1053
  outputs: [],
1061
1054
  stateMutability: 'nonpayable',
1062
1055
  },
@@ -1187,13 +1180,6 @@ export const fPoolManagerAbi = [
1187
1180
  outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
1188
1181
  stateMutability: 'view',
1189
1182
  },
1190
- {
1191
- type: 'function',
1192
- inputs: [],
1193
- name: 'feeCollector',
1194
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1195
- stateMutability: 'view',
1196
- },
1197
1183
  {
1198
1184
  type: 'function',
1199
1185
  inputs: [
@@ -1220,7 +1206,7 @@ export const fPoolManagerAbi = [
1220
1206
  { name: 'policy', internalType: 'address', type: 'address' },
1221
1207
  { name: 'creator', internalType: 'address', type: 'address' },
1222
1208
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1223
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
1209
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
1224
1210
  ],
1225
1211
  },
1226
1212
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
@@ -1304,7 +1290,7 @@ export const fPoolManagerAbi = [
1304
1290
  {
1305
1291
  type: 'function',
1306
1292
  inputs: [],
1307
- name: 'pendingCollector',
1293
+ name: 'pendingTreasury',
1308
1294
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1309
1295
  stateMutability: 'view',
1310
1296
  },
@@ -1318,7 +1304,7 @@ export const fPoolManagerAbi = [
1318
1304
  {
1319
1305
  type: 'function',
1320
1306
  inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
1321
- name: 'proposeCollector',
1307
+ name: 'proposeTreasury',
1322
1308
  outputs: [],
1323
1309
  stateMutability: 'nonpayable',
1324
1310
  },
@@ -1348,9 +1334,7 @@ export const fPoolManagerAbi = [
1348
1334
  type: 'function',
1349
1335
  inputs: [],
1350
1336
  name: 'registry',
1351
- outputs: [
1352
- { name: '', internalType: 'contract PolicyRegistry', type: 'address' },
1353
- ],
1337
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1354
1338
  stateMutability: 'view',
1355
1339
  },
1356
1340
  {
@@ -1547,6 +1531,13 @@ export const fPoolManagerAbi = [
1547
1531
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1548
1532
  stateMutability: 'payable',
1549
1533
  },
1534
+ {
1535
+ type: 'function',
1536
+ inputs: [],
1537
+ name: 'treasury',
1538
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1539
+ stateMutability: 'view',
1540
+ },
1550
1541
  {
1551
1542
  type: 'function',
1552
1543
  inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
@@ -1613,44 +1604,6 @@ export const fPoolManagerAbi = [
1613
1604
  ],
1614
1605
  name: 'AsksSet',
1615
1606
  },
1616
- {
1617
- type: 'event',
1618
- anonymous: false,
1619
- inputs: [
1620
- {
1621
- name: 'previous',
1622
- internalType: 'address',
1623
- type: 'address',
1624
- indexed: true,
1625
- },
1626
- {
1627
- name: 'current',
1628
- internalType: 'address',
1629
- type: 'address',
1630
- indexed: true,
1631
- },
1632
- ],
1633
- name: 'CollectorAccepted',
1634
- },
1635
- {
1636
- type: 'event',
1637
- anonymous: false,
1638
- inputs: [
1639
- {
1640
- name: 'current',
1641
- internalType: 'address',
1642
- type: 'address',
1643
- indexed: true,
1644
- },
1645
- {
1646
- name: 'proposed',
1647
- internalType: 'address',
1648
- type: 'address',
1649
- indexed: true,
1650
- },
1651
- ],
1652
- name: 'CollectorProposed',
1653
- },
1654
1607
  {
1655
1608
  type: 'event',
1656
1609
  anonymous: false,
@@ -1758,7 +1711,12 @@ export const fPoolManagerAbi = [
1758
1711
  type: 'address',
1759
1712
  indexed: false,
1760
1713
  },
1761
- { name: 'cap', internalType: 'uint24', type: 'uint24', indexed: false },
1714
+ {
1715
+ name: 'lnCapOverFloor',
1716
+ internalType: 'uint24',
1717
+ type: 'uint24',
1718
+ indexed: false,
1719
+ },
1762
1720
  ],
1763
1721
  name: 'FInitialize',
1764
1722
  },
@@ -2026,12 +1984,6 @@ export const fPoolManagerAbi = [
2026
1984
  indexed: false,
2027
1985
  },
2028
1986
  { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
2029
- {
2030
- name: 'burnt',
2031
- internalType: 'uint256',
2032
- type: 'uint256',
2033
- indexed: false,
2034
- },
2035
1987
  {
2036
1988
  name: 'deepened',
2037
1989
  internalType: 'uint256',
@@ -2119,6 +2071,44 @@ export const fPoolManagerAbi = [
2119
2071
  ],
2120
2072
  name: 'Transfer',
2121
2073
  },
2074
+ {
2075
+ type: 'event',
2076
+ anonymous: false,
2077
+ inputs: [
2078
+ {
2079
+ name: 'previous',
2080
+ internalType: 'address',
2081
+ type: 'address',
2082
+ indexed: true,
2083
+ },
2084
+ {
2085
+ name: 'current',
2086
+ internalType: 'address',
2087
+ type: 'address',
2088
+ indexed: true,
2089
+ },
2090
+ ],
2091
+ name: 'TreasuryAccepted',
2092
+ },
2093
+ {
2094
+ type: 'event',
2095
+ anonymous: false,
2096
+ inputs: [
2097
+ {
2098
+ name: 'current',
2099
+ internalType: 'address',
2100
+ type: 'address',
2101
+ indexed: true,
2102
+ },
2103
+ {
2104
+ name: 'proposed',
2105
+ internalType: 'address',
2106
+ type: 'address',
2107
+ indexed: true,
2108
+ },
2109
+ ],
2110
+ name: 'TreasuryProposed',
2111
+ },
2122
2112
  { type: 'error', inputs: [], name: 'AlreadySeeded' },
2123
2113
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2124
2114
  { type: 'error', inputs: [], name: 'BadLeg' },
@@ -2142,11 +2132,13 @@ export const fPoolManagerAbi = [
2142
2132
  },
2143
2133
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2144
2134
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2145
- { type: 'error', inputs: [], name: 'NotCollector' },
2135
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
2146
2136
  { type: 'error', inputs: [], name: 'NotPolicy' },
2147
2137
  { type: 'error', inputs: [], name: 'NotRegistry' },
2148
2138
  { type: 'error', inputs: [], name: 'NotRetired' },
2149
2139
  { type: 'error', inputs: [], name: 'NotSeeded' },
2140
+ { type: 'error', inputs: [], name: 'NotTreasury' },
2141
+ { type: 'error', inputs: [], name: 'PadNeverRetires' },
2150
2142
  { type: 'error', inputs: [], name: 'PolicyNotApproved' },
2151
2143
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
2152
2144
  { type: 'error', inputs: [], name: 'PoolLocked' },
@@ -2365,12 +2357,16 @@ export const logswapLensAbi = [
2365
2357
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2366
2358
  { name: 'n', internalType: 'uint8', type: 'uint8' },
2367
2359
  {
2368
- name: 'restructureBlock',
2360
+ name: 'restructureTime',
2369
2361
  internalType: 'uint32',
2370
2362
  type: 'uint32',
2371
2363
  },
2372
2364
  { name: 'asks', internalType: 'uint8', type: 'uint8' },
2373
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
2365
+ {
2366
+ name: 'lnCapOverFloor',
2367
+ internalType: 'uint24',
2368
+ type: 'uint24',
2369
+ },
2374
2370
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2375
2371
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2376
2372
  { name: 'L', internalType: 'uint256', type: 'uint256' },
@@ -2460,9 +2456,9 @@ export const logswapLensAbi = [
2460
2456
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2461
2457
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2462
2458
  { name: 'n', internalType: 'uint8', type: 'uint8' },
2463
- { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2459
+ { name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
2464
2460
  { name: 'asks', internalType: 'uint8', type: 'uint8' },
2465
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
2461
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
2466
2462
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2467
2463
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2468
2464
  { name: 'L', internalType: 'uint256', type: 'uint256' },
@@ -2497,6 +2493,7 @@ export const logswapLensAbi = [
2497
2493
  { name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
2498
2494
  { name: 'backstopFloor', internalType: 'int256', type: 'int256' },
2499
2495
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
2496
+ { name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
2500
2497
  ],
2501
2498
  },
2502
2499
  ],
@@ -3660,7 +3657,8 @@ export const padPolicyAbi = [
3660
3657
  internalType: 'contract FPoolManager',
3661
3658
  type: 'address',
3662
3659
  },
3663
- { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3660
+ { name: 'quote', internalType: 'address', type: 'address' },
3661
+ { name: 'base', internalType: 'uint256', type: 'uint256' },
3664
3662
  ],
3665
3663
  stateMutability: 'nonpayable',
3666
3664
  },
@@ -3678,20 +3676,6 @@ export const padPolicyAbi = [
3678
3676
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
3679
3677
  stateMutability: 'view',
3680
3678
  },
3681
- {
3682
- type: 'function',
3683
- inputs: [],
3684
- name: 'burnMax',
3685
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3686
- stateMutability: 'view',
3687
- },
3688
- {
3689
- type: 'function',
3690
- inputs: [],
3691
- name: 'burnMin',
3692
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3693
- stateMutability: 'view',
3694
- },
3695
3679
  {
3696
3680
  type: 'function',
3697
3681
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -3829,7 +3813,7 @@ export const padPolicyAbi = [
3829
3813
  { name: 'policy', internalType: 'address', type: 'address' },
3830
3814
  { name: 'creator', internalType: 'address', type: 'address' },
3831
3815
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3832
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
3816
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
3833
3817
  ],
3834
3818
  },
3835
3819
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
@@ -3888,7 +3872,6 @@ export const padPolicyAbi = [
3888
3872
  { name: 'payee', internalType: 'address', type: 'address' },
3889
3873
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
3890
3874
  { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
3891
- { name: 'burn', internalType: 'uint256', type: 'uint256' },
3892
3875
  { name: 'carried', internalType: 'address', type: 'address' },
3893
3876
  ],
3894
3877
  },
@@ -3899,7 +3882,6 @@ export const padPolicyAbi = [
3899
3882
  type: 'function',
3900
3883
  inputs: [
3901
3884
  { name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
3902
- { name: 'burnShare', internalType: 'uint256', type: 'uint256' },
3903
3885
  { name: 'nonce', internalType: 'uint128', type: 'uint128' },
3904
3886
  ],
3905
3887
  name: 'pack',
@@ -4032,40 +4014,49 @@ export const padPolicyAbi = [
4032
4014
  {
4033
4015
  type: 'function',
4034
4016
  inputs: [
4035
- { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
4036
4017
  { name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
4037
4018
  { name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
4038
4019
  { name: '_creatorShareMin', internalType: 'uint256', type: 'uint256' },
4039
4020
  { name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
4040
- { name: '_burnMin', internalType: 'uint256', type: 'uint256' },
4041
- { name: '_burnMax', internalType: 'uint256', type: 'uint256' },
4042
4021
  ],
4043
4022
  name: 'setSchedule',
4044
4023
  outputs: [],
4045
4024
  stateMutability: 'nonpayable',
4046
4025
  },
4026
+ {
4027
+ type: 'function',
4028
+ inputs: [
4029
+ { name: 'quote', internalType: 'address', type: 'address' },
4030
+ { name: 'base', internalType: 'uint256', type: 'uint256' },
4031
+ ],
4032
+ name: 'setThresholdBase',
4033
+ outputs: [],
4034
+ stateMutability: 'nonpayable',
4035
+ },
4047
4036
  {
4048
4037
  type: 'function',
4049
4038
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4050
4039
  name: 'splitOf',
4051
4040
  outputs: [
4052
4041
  { name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
4053
- { name: 'burnShare', internalType: 'uint64', type: 'uint64' },
4054
4042
  { name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
4055
4043
  ],
4056
4044
  stateMutability: 'view',
4057
4045
  },
4058
4046
  {
4059
4047
  type: 'function',
4060
- inputs: [{ name: 'r', internalType: 'uint256', type: 'uint256' }],
4048
+ inputs: [
4049
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4050
+ { name: 'r', internalType: 'uint256', type: 'uint256' },
4051
+ ],
4061
4052
  name: 'threshold',
4062
- outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
4053
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4063
4054
  stateMutability: 'view',
4064
4055
  },
4065
4056
  {
4066
4057
  type: 'function',
4067
- inputs: [],
4068
- name: 'thresholdBase',
4058
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4059
+ name: 'thresholdBaseOf',
4069
4060
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4070
4061
  stateMutability: 'view',
4071
4062
  },
@@ -4076,6 +4067,23 @@ export const padPolicyAbi = [
4076
4067
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4077
4068
  stateMutability: 'view',
4078
4069
  },
4070
+ {
4071
+ type: 'function',
4072
+ inputs: [
4073
+ { name: 'quote', internalType: 'address', type: 'address' },
4074
+ { name: 'r', internalType: 'uint256', type: 'uint256' },
4075
+ ],
4076
+ name: 'thresholdOf',
4077
+ outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
4078
+ stateMutability: 'view',
4079
+ },
4080
+ {
4081
+ type: 'function',
4082
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4083
+ name: 'thresholdSet',
4084
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4085
+ stateMutability: 'view',
4086
+ },
4079
4087
  {
4080
4088
  type: 'event',
4081
4089
  anonymous: false,
@@ -4237,12 +4245,6 @@ export const padPolicyAbi = [
4237
4245
  type: 'event',
4238
4246
  anonymous: false,
4239
4247
  inputs: [
4240
- {
4241
- name: 'thresholdBase',
4242
- internalType: 'uint256',
4243
- type: 'uint256',
4244
- indexed: false,
4245
- },
4246
4248
  {
4247
4249
  name: 'thresholdGrowth',
4248
4250
  internalType: 'uint256',
@@ -4267,18 +4269,6 @@ export const padPolicyAbi = [
4267
4269
  type: 'uint256',
4268
4270
  indexed: false,
4269
4271
  },
4270
- {
4271
- name: 'burnMin',
4272
- internalType: 'uint256',
4273
- type: 'uint256',
4274
- indexed: false,
4275
- },
4276
- {
4277
- name: 'burnMax',
4278
- internalType: 'uint256',
4279
- type: 'uint256',
4280
- indexed: false,
4281
- },
4282
4272
  ],
4283
4273
  name: 'ScheduleSet',
4284
4274
  },
@@ -4299,19 +4289,32 @@ export const padPolicyAbi = [
4299
4289
  indexed: false,
4300
4290
  },
4301
4291
  {
4302
- name: 'burnShare',
4292
+ name: 'protocolShare',
4303
4293
  internalType: 'uint256',
4304
4294
  type: 'uint256',
4305
4295
  indexed: false,
4306
4296
  },
4297
+ ],
4298
+ name: 'SplitSet',
4299
+ },
4300
+ {
4301
+ type: 'event',
4302
+ anonymous: false,
4303
+ inputs: [
4307
4304
  {
4308
- name: 'protocolShare',
4305
+ name: 'quote',
4306
+ internalType: 'address',
4307
+ type: 'address',
4308
+ indexed: true,
4309
+ },
4310
+ {
4311
+ name: 'thresholdBase',
4309
4312
  internalType: 'uint256',
4310
4313
  type: 'uint256',
4311
4314
  indexed: false,
4312
4315
  },
4313
4316
  ],
4314
- name: 'SplitSet',
4317
+ name: 'ThresholdBaseSet',
4315
4318
  },
4316
4319
  { type: 'error', inputs: [], name: 'BadFee' },
4317
4320
  { type: 'error', inputs: [], name: 'BadRate' },
@@ -4331,9 +4334,14 @@ export const padPolicyAbi = [
4331
4334
  name: 'MintFeeNotListed',
4332
4335
  },
4333
4336
  { type: 'error', inputs: [], name: 'NoCreator' },
4337
+ {
4338
+ type: 'error',
4339
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4340
+ name: 'NoThreshold',
4341
+ },
4334
4342
  { type: 'error', inputs: [], name: 'NotAuthority' },
4335
- { type: 'error', inputs: [], name: 'NotCollector' },
4336
4343
  { type: 'error', inputs: [], name: 'NotGraduated' },
4344
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
4337
4345
  { type: 'error', inputs: [], name: 'NotManager' },
4338
4346
  { type: 'error', inputs: [], name: 'NotRegistry' },
4339
4347
  { type: 'error', inputs: [], name: 'OneBase' },
@@ -4521,7 +4529,7 @@ export const polPolicyAbi = [
4521
4529
  { name: 'policy', internalType: 'address', type: 'address' },
4522
4530
  { name: 'creator', internalType: 'address', type: 'address' },
4523
4531
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4524
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
4532
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
4525
4533
  ],
4526
4534
  },
4527
4535
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
@@ -4580,7 +4588,6 @@ export const polPolicyAbi = [
4580
4588
  { name: 'payee', internalType: 'address', type: 'address' },
4581
4589
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4582
4590
  { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4583
- { name: 'burn', internalType: 'uint256', type: 'uint256' },
4584
4591
  { name: 'carried', internalType: 'address', type: 'address' },
4585
4592
  ],
4586
4593
  },
@@ -4886,7 +4893,7 @@ export const polPolicyAbi = [
4886
4893
  },
4887
4894
  { type: 'error', inputs: [], name: 'NoCreator' },
4888
4895
  { type: 'error', inputs: [], name: 'NotAuthority' },
4889
- { type: 'error', inputs: [], name: 'NotCollector' },
4896
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
4890
4897
  { type: 'error', inputs: [], name: 'NotManager' },
4891
4898
  { type: 'error', inputs: [], name: 'NotRegistry' },
4892
4899
  { type: 'error', inputs: [], name: 'OneBase' },
@@ -4906,13 +4913,15 @@ export const polPolicyAbi = [
4906
4913
  export const policyRegistryAbi = [
4907
4914
  {
4908
4915
  type: 'constructor',
4909
- inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
4916
+ inputs: [
4917
+ { name: '_logAuthority', internalType: 'address', type: 'address' },
4918
+ ],
4910
4919
  stateMutability: 'nonpayable',
4911
4920
  },
4912
4921
  {
4913
4922
  type: 'function',
4914
4923
  inputs: [],
4915
- name: 'acceptOwner',
4924
+ name: 'acceptLogAuthority',
4916
4925
  outputs: [],
4917
4926
  stateMutability: 'nonpayable',
4918
4927
  },
@@ -4952,6 +4961,13 @@ export const policyRegistryAbi = [
4952
4961
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4953
4962
  stateMutability: 'view',
4954
4963
  },
4964
+ {
4965
+ type: 'function',
4966
+ inputs: [],
4967
+ name: 'logAuthority',
4968
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4969
+ stateMutability: 'view',
4970
+ },
4955
4971
  {
4956
4972
  type: 'function',
4957
4973
  inputs: [
@@ -4968,7 +4984,7 @@ export const policyRegistryAbi = [
4968
4984
  { name: 'policy', internalType: 'address', type: 'address' },
4969
4985
  { name: 'creator', internalType: 'address', type: 'address' },
4970
4986
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4971
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
4987
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
4972
4988
  ],
4973
4989
  },
4974
4990
  { name: 'to', internalType: 'address', type: 'address' },
@@ -4980,14 +4996,7 @@ export const policyRegistryAbi = [
4980
4996
  {
4981
4997
  type: 'function',
4982
4998
  inputs: [],
4983
- name: 'owner',
4984
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4985
- stateMutability: 'view',
4986
- },
4987
- {
4988
- type: 'function',
4989
- inputs: [],
4990
- name: 'pendingOwner',
4999
+ name: 'pendingLogAuthority',
4991
5000
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
4992
5001
  stateMutability: 'view',
4993
5002
  },
@@ -5001,7 +5010,7 @@ export const policyRegistryAbi = [
5001
5010
  {
5002
5011
  type: 'function',
5003
5012
  inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
5004
- name: 'proposeOwner',
5013
+ name: 'proposeLogAuthority',
5005
5014
  outputs: [],
5006
5015
  stateMutability: 'nonpayable',
5007
5016
  },
@@ -5033,7 +5042,7 @@ export const policyRegistryAbi = [
5033
5042
  type: 'function',
5034
5043
  inputs: [
5035
5044
  { name: 'policy', internalType: 'address', type: 'address' },
5036
- { name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
5045
+ { name: 'untilTime', internalType: 'uint64', type: 'uint64' },
5037
5046
  ],
5038
5047
  name: 'sunset',
5039
5048
  outputs: [],
@@ -5058,6 +5067,34 @@ export const policyRegistryAbi = [
5058
5067
  ],
5059
5068
  name: 'Approved',
5060
5069
  },
5070
+ {
5071
+ type: 'event',
5072
+ anonymous: false,
5073
+ inputs: [
5074
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
5075
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
5076
+ ],
5077
+ name: 'LogAuthorityAccepted',
5078
+ },
5079
+ {
5080
+ type: 'event',
5081
+ anonymous: false,
5082
+ inputs: [
5083
+ {
5084
+ name: 'current',
5085
+ internalType: 'address',
5086
+ type: 'address',
5087
+ indexed: true,
5088
+ },
5089
+ {
5090
+ name: 'proposed',
5091
+ internalType: 'address',
5092
+ type: 'address',
5093
+ indexed: true,
5094
+ },
5095
+ ],
5096
+ name: 'LogAuthorityProposed',
5097
+ },
5061
5098
  {
5062
5099
  type: 'event',
5063
5100
  anonymous: false,
@@ -5090,34 +5127,6 @@ export const policyRegistryAbi = [
5090
5127
  ],
5091
5128
  name: 'Migrated',
5092
5129
  },
5093
- {
5094
- type: 'event',
5095
- anonymous: false,
5096
- inputs: [
5097
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
5098
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
5099
- ],
5100
- name: 'OwnerAccepted',
5101
- },
5102
- {
5103
- type: 'event',
5104
- anonymous: false,
5105
- inputs: [
5106
- {
5107
- name: 'current',
5108
- internalType: 'address',
5109
- type: 'address',
5110
- indexed: true,
5111
- },
5112
- {
5113
- name: 'proposed',
5114
- internalType: 'address',
5115
- type: 'address',
5116
- indexed: true,
5117
- },
5118
- ],
5119
- name: 'OwnerProposed',
5120
- },
5121
5130
  {
5122
5131
  type: 'event',
5123
5132
  anonymous: false,
@@ -5156,7 +5165,7 @@ export const policyRegistryAbi = [
5156
5165
  indexed: true,
5157
5166
  },
5158
5167
  {
5159
- name: 'untilBlock',
5168
+ name: 'untilTime',
5160
5169
  internalType: 'uint64',
5161
5170
  type: 'uint64',
5162
5171
  indexed: false,
@@ -5169,7 +5178,7 @@ export const policyRegistryAbi = [
5169
5178
  { type: 'error', inputs: [], name: 'NoPool' },
5170
5179
  { type: 'error', inputs: [], name: 'NotAPolicy' },
5171
5180
  { type: 'error', inputs: [], name: 'NotListed' },
5172
- { type: 'error', inputs: [], name: 'NotOwner' },
5181
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
5173
5182
  { type: 'error', inputs: [], name: 'SamePolicy' },
5174
5183
  { type: 'error', inputs: [], name: 'WrongManager' },
5175
5184
  ] as const
@@ -5409,7 +5418,7 @@ export const privatePolicyAbi = [
5409
5418
  { name: 'policy', internalType: 'address', type: 'address' },
5410
5419
  { name: 'creator', internalType: 'address', type: 'address' },
5411
5420
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
5412
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
5421
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
5413
5422
  ],
5414
5423
  },
5415
5424
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
@@ -5468,7 +5477,6 @@ export const privatePolicyAbi = [
5468
5477
  { name: 'payee', internalType: 'address', type: 'address' },
5469
5478
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
5470
5479
  { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
5471
- { name: 'burn', internalType: 'uint256', type: 'uint256' },
5472
5480
  { name: 'carried', internalType: 'address', type: 'address' },
5473
5481
  ],
5474
5482
  },
@@ -5876,7 +5884,7 @@ export const privatePolicyAbi = [
5876
5884
  },
5877
5885
  { type: 'error', inputs: [], name: 'NoCreator' },
5878
5886
  { type: 'error', inputs: [], name: 'NotAuthority' },
5879
- { type: 'error', inputs: [], name: 'NotCollector' },
5887
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
5880
5888
  { type: 'error', inputs: [], name: 'NotManager' },
5881
5889
  { type: 'error', inputs: [], name: 'NotOperator' },
5882
5890
  { type: 'error', inputs: [], name: 'NotRegistry' },
@@ -5906,6 +5914,13 @@ export const publicPolicyAbi = [
5906
5914
  ],
5907
5915
  stateMutability: 'nonpayable',
5908
5916
  },
5917
+ {
5918
+ type: 'function',
5919
+ inputs: [],
5920
+ name: 'SWAP_FEE_TAX_MAX',
5921
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
5922
+ stateMutability: 'view',
5923
+ },
5909
5924
  {
5910
5925
  type: 'function',
5911
5926
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -6084,7 +6099,10 @@ export const publicPolicyAbi = [
6084
6099
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
6085
6100
  ],
6086
6101
  name: 'onCInitialize',
6087
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6102
+ outputs: [
6103
+ { name: '', internalType: 'uint256', type: 'uint256' },
6104
+ { name: '', internalType: 'uint256', type: 'uint256' },
6105
+ ],
6088
6106
  stateMutability: 'nonpayable',
6089
6107
  },
6090
6108
  {
@@ -6103,7 +6121,7 @@ export const publicPolicyAbi = [
6103
6121
  { name: 'policy', internalType: 'address', type: 'address' },
6104
6122
  { name: 'creator', internalType: 'address', type: 'address' },
6105
6123
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
6106
- { name: 'cap', internalType: 'uint24', type: 'uint24' },
6124
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
6107
6125
  ],
6108
6126
  },
6109
6127
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
@@ -6162,7 +6180,6 @@ export const publicPolicyAbi = [
6162
6180
  { name: 'payee', internalType: 'address', type: 'address' },
6163
6181
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
6164
6182
  { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
6165
- { name: 'burn', internalType: 'uint256', type: 'uint256' },
6166
6183
  { name: 'carried', internalType: 'address', type: 'address' },
6167
6184
  ],
6168
6185
  },
@@ -6350,6 +6367,13 @@ export const publicPolicyAbi = [
6350
6367
  outputs: [],
6351
6368
  stateMutability: 'nonpayable',
6352
6369
  },
6370
+ {
6371
+ type: 'function',
6372
+ inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
6373
+ name: 'setSwapFeeTax',
6374
+ outputs: [],
6375
+ stateMutability: 'nonpayable',
6376
+ },
6353
6377
  {
6354
6378
  type: 'function',
6355
6379
  inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
@@ -6357,6 +6381,13 @@ export const publicPolicyAbi = [
6357
6381
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6358
6382
  stateMutability: 'view',
6359
6383
  },
6384
+ {
6385
+ type: 'function',
6386
+ inputs: [],
6387
+ name: 'swapFeeTax',
6388
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6389
+ stateMutability: 'view',
6390
+ },
6360
6391
  {
6361
6392
  type: 'event',
6362
6393
  anonymous: false,
@@ -6572,6 +6603,14 @@ export const publicPolicyAbi = [
6572
6603
  ],
6573
6604
  name: 'SpacingListed',
6574
6605
  },
6606
+ {
6607
+ type: 'event',
6608
+ anonymous: false,
6609
+ inputs: [
6610
+ { name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
6611
+ ],
6612
+ name: 'SwapFeeTaxSet',
6613
+ },
6575
6614
  { type: 'error', inputs: [], name: 'BadFee' },
6576
6615
  { type: 'error', inputs: [], name: 'BadRate' },
6577
6616
  {
@@ -6606,12 +6645,12 @@ export const publicPolicyAbi = [
6606
6645
  },
6607
6646
  { type: 'error', inputs: [], name: 'NotAuthority' },
6608
6647
  { type: 'error', inputs: [], name: 'NotCanonical' },
6609
- { type: 'error', inputs: [], name: 'NotCollector' },
6610
6648
  {
6611
6649
  type: 'error',
6612
6650
  inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
6613
6651
  name: 'NotListed',
6614
6652
  },
6653
+ { type: 'error', inputs: [], name: 'NotLogAuthority' },
6615
6654
  { type: 'error', inputs: [], name: 'NotManager' },
6616
6655
  { type: 'error', inputs: [], name: 'NotRegistry' },
6617
6656
  { type: 'error', inputs: [], name: 'OneBase' },