@logswap/sdk 0.5.76 → 0.5.78
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 +62 -4
- package/dist/admin.d.ts +117 -40
- package/dist/admin.js +152 -60
- package/dist/chains.d.ts +155 -0
- package/dist/chains.js +186 -0
- package/dist/client.d.ts +39 -5
- package/dist/client.js +53 -5
- package/dist/fees.js +3 -2
- package/dist/fpool.d.ts +74 -48
- package/dist/fpool.js +84 -54
- package/dist/generated.d.ts +692 -553
- package/dist/generated.js +613 -458
- package/dist/history.d.ts +10 -1
- package/dist/history.js +36 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/indexer.d.ts +5 -5
- package/dist/indexer.js +7 -7
- package/dist/pools.d.ts +10 -8
- package/dist/pools.js +9 -8
- package/dist/positions.d.ts +5 -5
- package/dist/positions.js +10 -9
- 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 +183 -74
- package/src/chains.ts +259 -0
- package/src/client.ts +77 -8
- package/src/fees.ts +3 -2
- package/src/fpool.ts +127 -84
- package/src/generated.ts +613 -458
- package/src/history.ts +41 -13
- package/src/index.ts +1 -0
- package/src/indexer.ts +7 -7
- package/src/pools.ts +16 -14
- package/src/positions.ts +12 -11
- package/src/tokencache.ts +15 -6
- package/src/views.ts +1 -1
- package/src/write.ts +4 -3
package/src/generated.ts
CHANGED
|
@@ -6,7 +6,8 @@ export const cPoolManagerAbi = [
|
|
|
6
6
|
{
|
|
7
7
|
type: 'constructor',
|
|
8
8
|
inputs: [
|
|
9
|
-
{ name: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: [
|
|
394
|
-
name: '
|
|
395
|
-
outputs: [],
|
|
396
|
-
stateMutability: '
|
|
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: [],
|
|
@@ -440,9 +426,17 @@ export const cPoolManagerAbi = [
|
|
|
440
426
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
441
427
|
],
|
|
442
428
|
},
|
|
443
|
-
{
|
|
444
|
-
|
|
445
|
-
|
|
429
|
+
{
|
|
430
|
+
name: 'sp',
|
|
431
|
+
internalType: 'struct CPoolManager.SwapParams',
|
|
432
|
+
type: 'tuple',
|
|
433
|
+
components: [
|
|
434
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
435
|
+
{ name: 'amountSpecified', internalType: 'int256', type: 'int256' },
|
|
436
|
+
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
437
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
438
|
+
],
|
|
439
|
+
},
|
|
446
440
|
],
|
|
447
441
|
name: 'swap',
|
|
448
442
|
outputs: [
|
|
@@ -451,13 +445,6 @@ export const cPoolManagerAbi = [
|
|
|
451
445
|
],
|
|
452
446
|
stateMutability: 'nonpayable',
|
|
453
447
|
},
|
|
454
|
-
{
|
|
455
|
-
type: 'function',
|
|
456
|
-
inputs: [],
|
|
457
|
-
name: 'swapFeeTax',
|
|
458
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
459
|
-
stateMutability: 'view',
|
|
460
|
-
},
|
|
461
448
|
{
|
|
462
449
|
type: 'function',
|
|
463
450
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -513,6 +500,13 @@ export const cPoolManagerAbi = [
|
|
|
513
500
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
514
501
|
stateMutability: 'payable',
|
|
515
502
|
},
|
|
503
|
+
{
|
|
504
|
+
type: 'function',
|
|
505
|
+
inputs: [],
|
|
506
|
+
name: 'treasury',
|
|
507
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
508
|
+
stateMutability: 'view',
|
|
509
|
+
},
|
|
516
510
|
{
|
|
517
511
|
type: 'function',
|
|
518
512
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -613,34 +607,49 @@ export const cPoolManagerAbi = [
|
|
|
613
607
|
type: 'bytes32',
|
|
614
608
|
indexed: true,
|
|
615
609
|
},
|
|
616
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
617
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
618
610
|
{
|
|
619
|
-
name: '
|
|
620
|
-
internalType: '
|
|
621
|
-
type: '
|
|
611
|
+
name: 'logPrice',
|
|
612
|
+
internalType: 'int256',
|
|
613
|
+
type: 'int256',
|
|
622
614
|
indexed: false,
|
|
623
615
|
},
|
|
624
616
|
{
|
|
625
|
-
name: '
|
|
617
|
+
name: 'feeGrowth',
|
|
626
618
|
internalType: 'uint256',
|
|
627
619
|
type: 'uint256',
|
|
628
620
|
indexed: false,
|
|
629
621
|
},
|
|
630
622
|
{
|
|
631
|
-
name: '
|
|
623
|
+
name: 'realizedVariance',
|
|
632
624
|
internalType: 'uint256',
|
|
633
625
|
type: 'uint256',
|
|
634
626
|
indexed: false,
|
|
635
627
|
},
|
|
636
628
|
{
|
|
637
|
-
name: '
|
|
629
|
+
name: 'lActive',
|
|
638
630
|
internalType: 'uint256',
|
|
639
631
|
type: 'uint256',
|
|
640
632
|
indexed: false,
|
|
641
633
|
},
|
|
642
634
|
],
|
|
643
|
-
name: '
|
|
635
|
+
name: 'CSwapState',
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
type: 'event',
|
|
639
|
+
anonymous: false,
|
|
640
|
+
inputs: [
|
|
641
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
642
|
+
{
|
|
643
|
+
name: 'poolId',
|
|
644
|
+
internalType: 'bytes32',
|
|
645
|
+
type: 'bytes32',
|
|
646
|
+
indexed: true,
|
|
647
|
+
},
|
|
648
|
+
{ name: 'floor', internalType: 'int256', type: 'int256', indexed: false },
|
|
649
|
+
{ name: 'cap', internalType: 'int256', type: 'int256', indexed: false },
|
|
650
|
+
{ name: 'capped', internalType: 'bool', type: 'bool', indexed: false },
|
|
651
|
+
],
|
|
652
|
+
name: 'ClassRegistered',
|
|
644
653
|
},
|
|
645
654
|
{
|
|
646
655
|
type: 'event',
|
|
@@ -666,103 +675,125 @@ export const cPoolManagerAbi = [
|
|
|
666
675
|
indexed: false,
|
|
667
676
|
},
|
|
668
677
|
],
|
|
669
|
-
name: '
|
|
678
|
+
name: 'FeesClaimed',
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
type: 'event',
|
|
682
|
+
anonymous: false,
|
|
683
|
+
inputs: [
|
|
684
|
+
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
685
|
+
],
|
|
686
|
+
name: 'GateSet',
|
|
670
687
|
},
|
|
671
688
|
{
|
|
672
689
|
type: 'event',
|
|
673
690
|
anonymous: false,
|
|
674
691
|
inputs: [
|
|
675
692
|
{
|
|
676
|
-
name: '
|
|
693
|
+
name: 'poolId',
|
|
694
|
+
internalType: 'bytes32',
|
|
695
|
+
type: 'bytes32',
|
|
696
|
+
indexed: true,
|
|
697
|
+
},
|
|
698
|
+
{ name: 'base', internalType: 'address', type: 'address', indexed: true },
|
|
699
|
+
{
|
|
700
|
+
name: 'quote',
|
|
677
701
|
internalType: 'address',
|
|
678
702
|
type: 'address',
|
|
679
703
|
indexed: true,
|
|
680
704
|
},
|
|
681
705
|
{
|
|
682
|
-
name: '
|
|
706
|
+
name: 'tickSpacing',
|
|
707
|
+
internalType: 'int256',
|
|
708
|
+
type: 'int256',
|
|
709
|
+
indexed: false,
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: 'swapFee',
|
|
713
|
+
internalType: 'uint256',
|
|
714
|
+
type: 'uint256',
|
|
715
|
+
indexed: false,
|
|
716
|
+
},
|
|
717
|
+
{ name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
|
|
718
|
+
{
|
|
719
|
+
name: 'creator',
|
|
683
720
|
internalType: 'address',
|
|
684
721
|
type: 'address',
|
|
685
|
-
indexed:
|
|
722
|
+
indexed: false,
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
name: 'mintFee',
|
|
726
|
+
internalType: 'uint256',
|
|
727
|
+
type: 'uint256',
|
|
728
|
+
indexed: false,
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
name: 'swapFeeTax',
|
|
732
|
+
internalType: 'uint256',
|
|
733
|
+
type: 'uint256',
|
|
734
|
+
indexed: false,
|
|
686
735
|
},
|
|
687
736
|
],
|
|
688
|
-
name: '
|
|
737
|
+
name: 'MarketCreated',
|
|
689
738
|
},
|
|
690
739
|
{
|
|
691
740
|
type: 'event',
|
|
692
741
|
anonymous: false,
|
|
693
742
|
inputs: [
|
|
694
743
|
{
|
|
695
|
-
name: '
|
|
744
|
+
name: 'owner',
|
|
696
745
|
internalType: 'address',
|
|
697
746
|
type: 'address',
|
|
698
747
|
indexed: true,
|
|
699
748
|
},
|
|
700
749
|
{
|
|
701
|
-
name: '
|
|
750
|
+
name: 'operator',
|
|
702
751
|
internalType: 'address',
|
|
703
752
|
type: 'address',
|
|
704
753
|
indexed: true,
|
|
705
754
|
},
|
|
755
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
706
756
|
],
|
|
707
|
-
name: '
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
type: 'event',
|
|
711
|
-
anonymous: false,
|
|
712
|
-
inputs: [
|
|
713
|
-
{ name: 'gate', internalType: 'address', type: 'address', indexed: true },
|
|
714
|
-
],
|
|
715
|
-
name: 'GateSet',
|
|
757
|
+
name: 'OperatorSet',
|
|
716
758
|
},
|
|
717
759
|
{
|
|
718
760
|
type: 'event',
|
|
719
761
|
anonymous: false,
|
|
720
762
|
inputs: [
|
|
721
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
722
763
|
{
|
|
723
764
|
name: 'poolId',
|
|
724
765
|
internalType: 'bytes32',
|
|
725
766
|
type: 'bytes32',
|
|
726
767
|
indexed: true,
|
|
727
768
|
},
|
|
728
|
-
{ name: '
|
|
729
|
-
{ name: '
|
|
730
|
-
{ name: 'capped', internalType: 'bool', type: 'bool', indexed: false },
|
|
731
|
-
],
|
|
732
|
-
name: 'IdRegistered',
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
type: 'event',
|
|
736
|
-
anonymous: false,
|
|
737
|
-
inputs: [
|
|
769
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
770
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
738
771
|
{
|
|
739
|
-
name: '
|
|
740
|
-
internalType: '
|
|
741
|
-
type: '
|
|
742
|
-
indexed:
|
|
772
|
+
name: 'shares',
|
|
773
|
+
internalType: 'uint256',
|
|
774
|
+
type: 'uint256',
|
|
775
|
+
indexed: false,
|
|
743
776
|
},
|
|
744
|
-
{ name: 'base', internalType: 'address', type: 'address', indexed: true },
|
|
745
777
|
{
|
|
746
|
-
name: '
|
|
747
|
-
internalType: '
|
|
748
|
-
type: '
|
|
749
|
-
indexed:
|
|
778
|
+
name: 'dBase',
|
|
779
|
+
internalType: 'uint256',
|
|
780
|
+
type: 'uint256',
|
|
781
|
+
indexed: false,
|
|
750
782
|
},
|
|
751
783
|
{
|
|
752
|
-
name: '
|
|
753
|
-
internalType: '
|
|
754
|
-
type: '
|
|
784
|
+
name: 'dQuote',
|
|
785
|
+
internalType: 'uint256',
|
|
786
|
+
type: 'uint256',
|
|
755
787
|
indexed: false,
|
|
756
788
|
},
|
|
757
789
|
{
|
|
758
|
-
name: '
|
|
790
|
+
name: 'fees',
|
|
759
791
|
internalType: 'uint256',
|
|
760
792
|
type: 'uint256',
|
|
761
793
|
indexed: false,
|
|
762
794
|
},
|
|
763
|
-
{ name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
|
|
764
795
|
],
|
|
765
|
-
name: '
|
|
796
|
+
name: 'PositionBurned',
|
|
766
797
|
},
|
|
767
798
|
{
|
|
768
799
|
type: 'event',
|
|
@@ -795,27 +826,63 @@ export const cPoolManagerAbi = [
|
|
|
795
826
|
indexed: false,
|
|
796
827
|
},
|
|
797
828
|
],
|
|
798
|
-
name: '
|
|
829
|
+
name: 'PositionMinted',
|
|
799
830
|
},
|
|
800
831
|
{
|
|
801
832
|
type: 'event',
|
|
802
833
|
anonymous: false,
|
|
803
834
|
inputs: [
|
|
804
835
|
{
|
|
805
|
-
name: '
|
|
806
|
-
internalType: '
|
|
807
|
-
type: '
|
|
836
|
+
name: 'poolId',
|
|
837
|
+
internalType: 'bytes32',
|
|
838
|
+
type: 'bytes32',
|
|
808
839
|
indexed: true,
|
|
809
840
|
},
|
|
810
841
|
{
|
|
811
|
-
name: '
|
|
842
|
+
name: 'holder',
|
|
812
843
|
internalType: 'address',
|
|
813
844
|
type: 'address',
|
|
814
845
|
indexed: true,
|
|
815
846
|
},
|
|
816
|
-
{
|
|
847
|
+
{
|
|
848
|
+
name: 'fromId',
|
|
849
|
+
internalType: 'uint256',
|
|
850
|
+
type: 'uint256',
|
|
851
|
+
indexed: true,
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
name: 'toId',
|
|
855
|
+
internalType: 'uint256',
|
|
856
|
+
type: 'uint256',
|
|
857
|
+
indexed: false,
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
name: 'oldL',
|
|
861
|
+
internalType: 'uint256',
|
|
862
|
+
type: 'uint256',
|
|
863
|
+
indexed: false,
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
name: 'newL',
|
|
867
|
+
internalType: 'uint256',
|
|
868
|
+
type: 'uint256',
|
|
869
|
+
indexed: false,
|
|
870
|
+
},
|
|
871
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256', indexed: false },
|
|
872
|
+
{
|
|
873
|
+
name: 'dQuote',
|
|
874
|
+
internalType: 'int256',
|
|
875
|
+
type: 'int256',
|
|
876
|
+
indexed: false,
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
name: 'fees',
|
|
880
|
+
internalType: 'uint256',
|
|
881
|
+
type: 'uint256',
|
|
882
|
+
indexed: false,
|
|
883
|
+
},
|
|
817
884
|
],
|
|
818
|
-
name: '
|
|
885
|
+
name: 'PositionUpdated',
|
|
819
886
|
},
|
|
820
887
|
{
|
|
821
888
|
type: 'event',
|
|
@@ -853,51 +920,46 @@ export const cPoolManagerAbi = [
|
|
|
853
920
|
type: 'address',
|
|
854
921
|
indexed: true,
|
|
855
922
|
},
|
|
856
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool', indexed: false },
|
|
857
923
|
{
|
|
858
|
-
name: '
|
|
859
|
-
internalType: '
|
|
860
|
-
type: '
|
|
924
|
+
name: 'taker',
|
|
925
|
+
internalType: 'address',
|
|
926
|
+
type: 'address',
|
|
927
|
+
indexed: true,
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
name: 'tokenIn',
|
|
931
|
+
internalType: 'address',
|
|
932
|
+
type: 'address',
|
|
861
933
|
indexed: false,
|
|
862
934
|
},
|
|
863
935
|
{
|
|
864
|
-
name: '
|
|
865
|
-
internalType: '
|
|
866
|
-
type: '
|
|
936
|
+
name: 'tokenOut',
|
|
937
|
+
internalType: 'address',
|
|
938
|
+
type: 'address',
|
|
867
939
|
indexed: false,
|
|
868
940
|
},
|
|
869
|
-
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
870
|
-
{ name: 'newX', internalType: 'int256', type: 'int256', indexed: false },
|
|
871
941
|
{
|
|
872
|
-
name: '
|
|
942
|
+
name: 'amountIn',
|
|
873
943
|
internalType: 'uint256',
|
|
874
944
|
type: 'uint256',
|
|
875
945
|
indexed: false,
|
|
876
946
|
},
|
|
877
|
-
{ name: 'F', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
878
947
|
{
|
|
879
|
-
name: '
|
|
948
|
+
name: 'amountOut',
|
|
880
949
|
internalType: 'uint256',
|
|
881
950
|
type: 'uint256',
|
|
882
951
|
indexed: false,
|
|
883
952
|
},
|
|
953
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
884
954
|
{
|
|
885
|
-
name: '
|
|
886
|
-
internalType: '
|
|
887
|
-
type: '
|
|
955
|
+
name: 'feeToken',
|
|
956
|
+
internalType: 'address',
|
|
957
|
+
type: 'address',
|
|
888
958
|
indexed: false,
|
|
889
959
|
},
|
|
890
960
|
],
|
|
891
961
|
name: 'Swap',
|
|
892
962
|
},
|
|
893
|
-
{
|
|
894
|
-
type: 'event',
|
|
895
|
-
anonymous: false,
|
|
896
|
-
inputs: [
|
|
897
|
-
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
898
|
-
],
|
|
899
|
-
name: 'SwapFeeTaxSet',
|
|
900
|
-
},
|
|
901
963
|
{
|
|
902
964
|
type: 'event',
|
|
903
965
|
anonymous: false,
|
|
@@ -917,7 +979,7 @@ export const cPoolManagerAbi = [
|
|
|
917
979
|
indexed: false,
|
|
918
980
|
},
|
|
919
981
|
],
|
|
920
|
-
name: '
|
|
982
|
+
name: 'TickCrossed',
|
|
921
983
|
},
|
|
922
984
|
{
|
|
923
985
|
type: 'event',
|
|
@@ -941,56 +1003,38 @@ export const cPoolManagerAbi = [
|
|
|
941
1003
|
anonymous: false,
|
|
942
1004
|
inputs: [
|
|
943
1005
|
{
|
|
944
|
-
name: '
|
|
945
|
-
internalType: '
|
|
946
|
-
type: '
|
|
1006
|
+
name: 'previous',
|
|
1007
|
+
internalType: 'address',
|
|
1008
|
+
type: 'address',
|
|
947
1009
|
indexed: true,
|
|
948
1010
|
},
|
|
949
1011
|
{
|
|
950
|
-
name: '
|
|
1012
|
+
name: 'current',
|
|
951
1013
|
internalType: 'address',
|
|
952
1014
|
type: 'address',
|
|
953
1015
|
indexed: true,
|
|
954
1016
|
},
|
|
1017
|
+
],
|
|
1018
|
+
name: 'TreasuryAccepted',
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
type: 'event',
|
|
1022
|
+
anonymous: false,
|
|
1023
|
+
inputs: [
|
|
955
1024
|
{
|
|
956
|
-
name: '
|
|
957
|
-
internalType: '
|
|
958
|
-
type: '
|
|
1025
|
+
name: 'current',
|
|
1026
|
+
internalType: 'address',
|
|
1027
|
+
type: 'address',
|
|
959
1028
|
indexed: true,
|
|
960
1029
|
},
|
|
961
1030
|
{
|
|
962
|
-
name: '
|
|
963
|
-
internalType: '
|
|
964
|
-
type: '
|
|
965
|
-
indexed:
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
name: 'oldL',
|
|
969
|
-
internalType: 'uint256',
|
|
970
|
-
type: 'uint256',
|
|
971
|
-
indexed: false,
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
name: 'newL',
|
|
975
|
-
internalType: 'uint256',
|
|
976
|
-
type: 'uint256',
|
|
977
|
-
indexed: false,
|
|
978
|
-
},
|
|
979
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256', indexed: false },
|
|
980
|
-
{
|
|
981
|
-
name: 'dQuote',
|
|
982
|
-
internalType: 'int256',
|
|
983
|
-
type: 'int256',
|
|
984
|
-
indexed: false,
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
name: 'fees',
|
|
988
|
-
internalType: 'uint256',
|
|
989
|
-
type: 'uint256',
|
|
990
|
-
indexed: false,
|
|
1031
|
+
name: 'proposed',
|
|
1032
|
+
internalType: 'address',
|
|
1033
|
+
type: 'address',
|
|
1034
|
+
indexed: true,
|
|
991
1035
|
},
|
|
992
1036
|
],
|
|
993
|
-
name: '
|
|
1037
|
+
name: 'TreasuryProposed',
|
|
994
1038
|
},
|
|
995
1039
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
996
1040
|
{ type: 'error', inputs: [], name: 'BackstopMustBeUncapped' },
|
|
@@ -1010,7 +1054,8 @@ export const cPoolManagerAbi = [
|
|
|
1010
1054
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
1011
1055
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1012
1056
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1013
|
-
{ type: 'error', inputs: [], name: '
|
|
1057
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1058
|
+
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1014
1059
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1015
1060
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
1016
1061
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -1041,11 +1086,25 @@ export const fPoolManagerAbi = [
|
|
|
1041
1086
|
{
|
|
1042
1087
|
type: 'constructor',
|
|
1043
1088
|
inputs: [
|
|
1044
|
-
{ name: '
|
|
1089
|
+
{ name: '_treasury', internalType: 'address', type: 'address' },
|
|
1045
1090
|
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
1046
1091
|
],
|
|
1047
1092
|
stateMutability: 'nonpayable',
|
|
1048
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
type: 'function',
|
|
1096
|
+
inputs: [],
|
|
1097
|
+
name: 'PAD_PAYOUT_MAX',
|
|
1098
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1099
|
+
stateMutability: 'view',
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
type: 'function',
|
|
1103
|
+
inputs: [],
|
|
1104
|
+
name: 'PAYEE_CUT_MAX',
|
|
1105
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1106
|
+
stateMutability: 'view',
|
|
1107
|
+
},
|
|
1049
1108
|
{
|
|
1050
1109
|
type: 'function',
|
|
1051
1110
|
inputs: [],
|
|
@@ -1056,7 +1115,7 @@ export const fPoolManagerAbi = [
|
|
|
1056
1115
|
{
|
|
1057
1116
|
type: 'function',
|
|
1058
1117
|
inputs: [],
|
|
1059
|
-
name: '
|
|
1118
|
+
name: 'acceptTreasury',
|
|
1060
1119
|
outputs: [],
|
|
1061
1120
|
stateMutability: 'nonpayable',
|
|
1062
1121
|
},
|
|
@@ -1187,13 +1246,6 @@ export const fPoolManagerAbi = [
|
|
|
1187
1246
|
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1188
1247
|
stateMutability: 'view',
|
|
1189
1248
|
},
|
|
1190
|
-
{
|
|
1191
|
-
type: 'function',
|
|
1192
|
-
inputs: [],
|
|
1193
|
-
name: 'feeCollector',
|
|
1194
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1195
|
-
stateMutability: 'view',
|
|
1196
|
-
},
|
|
1197
1249
|
{
|
|
1198
1250
|
type: 'function',
|
|
1199
1251
|
inputs: [
|
|
@@ -1220,7 +1272,7 @@ export const fPoolManagerAbi = [
|
|
|
1220
1272
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1221
1273
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1222
1274
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1223
|
-
{ name: '
|
|
1275
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
1224
1276
|
],
|
|
1225
1277
|
},
|
|
1226
1278
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -1304,7 +1356,7 @@ export const fPoolManagerAbi = [
|
|
|
1304
1356
|
{
|
|
1305
1357
|
type: 'function',
|
|
1306
1358
|
inputs: [],
|
|
1307
|
-
name: '
|
|
1359
|
+
name: 'pendingTreasury',
|
|
1308
1360
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1309
1361
|
stateMutability: 'view',
|
|
1310
1362
|
},
|
|
@@ -1318,7 +1370,7 @@ export const fPoolManagerAbi = [
|
|
|
1318
1370
|
{
|
|
1319
1371
|
type: 'function',
|
|
1320
1372
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
1321
|
-
name: '
|
|
1373
|
+
name: 'proposeTreasury',
|
|
1322
1374
|
outputs: [],
|
|
1323
1375
|
stateMutability: 'nonpayable',
|
|
1324
1376
|
},
|
|
@@ -1348,9 +1400,7 @@ export const fPoolManagerAbi = [
|
|
|
1348
1400
|
type: 'function',
|
|
1349
1401
|
inputs: [],
|
|
1350
1402
|
name: 'registry',
|
|
1351
|
-
outputs: [
|
|
1352
|
-
{ name: '', internalType: 'contract PolicyRegistry', type: 'address' },
|
|
1353
|
-
],
|
|
1403
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1354
1404
|
stateMutability: 'view',
|
|
1355
1405
|
},
|
|
1356
1406
|
{
|
|
@@ -1547,6 +1597,13 @@ export const fPoolManagerAbi = [
|
|
|
1547
1597
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1548
1598
|
stateMutability: 'payable',
|
|
1549
1599
|
},
|
|
1600
|
+
{
|
|
1601
|
+
type: 'function',
|
|
1602
|
+
inputs: [],
|
|
1603
|
+
name: 'treasury',
|
|
1604
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1605
|
+
stateMutability: 'view',
|
|
1606
|
+
},
|
|
1550
1607
|
{
|
|
1551
1608
|
type: 'function',
|
|
1552
1609
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -1618,38 +1675,76 @@ export const fPoolManagerAbi = [
|
|
|
1618
1675
|
anonymous: false,
|
|
1619
1676
|
inputs: [
|
|
1620
1677
|
{
|
|
1621
|
-
name: '
|
|
1622
|
-
internalType: '
|
|
1623
|
-
type: '
|
|
1678
|
+
name: 'poolId',
|
|
1679
|
+
internalType: 'bytes32',
|
|
1680
|
+
type: 'bytes32',
|
|
1624
1681
|
indexed: true,
|
|
1625
1682
|
},
|
|
1626
1683
|
{
|
|
1627
|
-
name: '
|
|
1684
|
+
name: 'holder',
|
|
1628
1685
|
internalType: 'address',
|
|
1629
1686
|
type: 'address',
|
|
1630
1687
|
indexed: true,
|
|
1631
1688
|
},
|
|
1689
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1690
|
+
{
|
|
1691
|
+
name: 'amount',
|
|
1692
|
+
internalType: 'uint256',
|
|
1693
|
+
type: 'uint256',
|
|
1694
|
+
indexed: false,
|
|
1695
|
+
},
|
|
1632
1696
|
],
|
|
1633
|
-
name: '
|
|
1697
|
+
name: 'DividendClaimed',
|
|
1634
1698
|
},
|
|
1635
1699
|
{
|
|
1636
1700
|
type: 'event',
|
|
1637
1701
|
anonymous: false,
|
|
1638
1702
|
inputs: [
|
|
1639
1703
|
{
|
|
1640
|
-
name: '
|
|
1704
|
+
name: 'poolId',
|
|
1705
|
+
internalType: 'bytes32',
|
|
1706
|
+
type: 'bytes32',
|
|
1707
|
+
indexed: true,
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
name: 'tokenIn',
|
|
1641
1711
|
internalType: 'address',
|
|
1642
1712
|
type: 'address',
|
|
1643
|
-
indexed:
|
|
1713
|
+
indexed: false,
|
|
1644
1714
|
},
|
|
1645
1715
|
{
|
|
1646
|
-
name: '
|
|
1716
|
+
name: 'tokenOut',
|
|
1647
1717
|
internalType: 'address',
|
|
1648
1718
|
type: 'address',
|
|
1649
|
-
indexed:
|
|
1719
|
+
indexed: false,
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
name: 'reserveIn',
|
|
1723
|
+
internalType: 'uint256',
|
|
1724
|
+
type: 'uint256',
|
|
1725
|
+
indexed: false,
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
name: 'reserveOut',
|
|
1729
|
+
internalType: 'uint256',
|
|
1730
|
+
type: 'uint256',
|
|
1731
|
+
indexed: false,
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
name: 'reserveQuote',
|
|
1735
|
+
internalType: 'uint256',
|
|
1736
|
+
type: 'uint256',
|
|
1737
|
+
indexed: false,
|
|
1738
|
+
},
|
|
1739
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1740
|
+
{
|
|
1741
|
+
name: 'realizedVariance',
|
|
1742
|
+
internalType: 'uint256',
|
|
1743
|
+
type: 'uint256',
|
|
1744
|
+
indexed: false,
|
|
1650
1745
|
},
|
|
1651
1746
|
],
|
|
1652
|
-
name: '
|
|
1747
|
+
name: 'FSwapState',
|
|
1653
1748
|
},
|
|
1654
1749
|
{
|
|
1655
1750
|
type: 'event',
|
|
@@ -1661,21 +1756,21 @@ export const fPoolManagerAbi = [
|
|
|
1661
1756
|
type: 'bytes32',
|
|
1662
1757
|
indexed: true,
|
|
1663
1758
|
},
|
|
1759
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1664
1760
|
{
|
|
1665
|
-
name: '
|
|
1666
|
-
internalType: '
|
|
1667
|
-
type: '
|
|
1668
|
-
indexed:
|
|
1761
|
+
name: 'supply',
|
|
1762
|
+
internalType: 'uint256',
|
|
1763
|
+
type: 'uint256',
|
|
1764
|
+
indexed: false,
|
|
1669
1765
|
},
|
|
1670
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1671
1766
|
{
|
|
1672
|
-
name: '
|
|
1767
|
+
name: 'quote',
|
|
1673
1768
|
internalType: 'uint256',
|
|
1674
1769
|
type: 'uint256',
|
|
1675
1770
|
indexed: false,
|
|
1676
1771
|
},
|
|
1677
1772
|
],
|
|
1678
|
-
name: '
|
|
1773
|
+
name: 'GenerationRetired',
|
|
1679
1774
|
},
|
|
1680
1775
|
{
|
|
1681
1776
|
type: 'event',
|
|
@@ -1687,30 +1782,46 @@ export const fPoolManagerAbi = [
|
|
|
1687
1782
|
type: 'bytes32',
|
|
1688
1783
|
indexed: true,
|
|
1689
1784
|
},
|
|
1690
|
-
{ name: '
|
|
1691
|
-
{ name: '
|
|
1692
|
-
{ name: '
|
|
1785
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1786
|
+
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1787
|
+
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1693
1788
|
{
|
|
1694
|
-
name: '
|
|
1695
|
-
internalType: 'uint256',
|
|
1696
|
-
type: 'uint256',
|
|
1789
|
+
name: 'r0',
|
|
1790
|
+
internalType: 'uint256[]',
|
|
1791
|
+
type: 'uint256[]',
|
|
1697
1792
|
indexed: false,
|
|
1698
1793
|
},
|
|
1794
|
+
],
|
|
1795
|
+
name: 'GenerationSeeded',
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
type: 'event',
|
|
1799
|
+
anonymous: false,
|
|
1800
|
+
inputs: [
|
|
1801
|
+
{
|
|
1802
|
+
name: 'poolId',
|
|
1803
|
+
internalType: 'bytes32',
|
|
1804
|
+
type: 'bytes32',
|
|
1805
|
+
indexed: true,
|
|
1806
|
+
},
|
|
1807
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1808
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1699
1809
|
{
|
|
1700
|
-
name: '
|
|
1810
|
+
name: 'amount',
|
|
1701
1811
|
internalType: 'uint256',
|
|
1702
1812
|
type: 'uint256',
|
|
1703
1813
|
indexed: false,
|
|
1704
1814
|
},
|
|
1705
|
-
{ name: '
|
|
1815
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1706
1816
|
{
|
|
1707
|
-
name: '
|
|
1817
|
+
name: 'toOperator',
|
|
1708
1818
|
internalType: 'uint256',
|
|
1709
1819
|
type: 'uint256',
|
|
1710
1820
|
indexed: false,
|
|
1711
1821
|
},
|
|
1822
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1712
1823
|
],
|
|
1713
|
-
name: '
|
|
1824
|
+
name: 'IncomeHarvested',
|
|
1714
1825
|
},
|
|
1715
1826
|
{
|
|
1716
1827
|
type: 'event',
|
|
@@ -1722,18 +1833,7 @@ export const fPoolManagerAbi = [
|
|
|
1722
1833
|
type: 'bytes32',
|
|
1723
1834
|
indexed: true,
|
|
1724
1835
|
},
|
|
1725
|
-
{
|
|
1726
|
-
name: 'quote',
|
|
1727
|
-
internalType: 'address',
|
|
1728
|
-
type: 'address',
|
|
1729
|
-
indexed: true,
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
name: 'creator',
|
|
1733
|
-
internalType: 'address',
|
|
1734
|
-
type: 'address',
|
|
1735
|
-
indexed: true,
|
|
1736
|
-
},
|
|
1836
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1737
1837
|
{
|
|
1738
1838
|
name: 'bases',
|
|
1739
1839
|
internalType: 'address[]',
|
|
@@ -1746,21 +1846,28 @@ export const fPoolManagerAbi = [
|
|
|
1746
1846
|
type: 'uint256[]',
|
|
1747
1847
|
indexed: false,
|
|
1748
1848
|
},
|
|
1849
|
+
],
|
|
1850
|
+
name: 'LegsSet',
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
type: 'event',
|
|
1854
|
+
anonymous: false,
|
|
1855
|
+
inputs: [
|
|
1749
1856
|
{
|
|
1750
|
-
name: '
|
|
1751
|
-
internalType: '
|
|
1752
|
-
type: '
|
|
1753
|
-
indexed:
|
|
1857
|
+
name: 'owner',
|
|
1858
|
+
internalType: 'address',
|
|
1859
|
+
type: 'address',
|
|
1860
|
+
indexed: true,
|
|
1754
1861
|
},
|
|
1755
1862
|
{
|
|
1756
|
-
name: '
|
|
1863
|
+
name: 'operator',
|
|
1757
1864
|
internalType: 'address',
|
|
1758
1865
|
type: 'address',
|
|
1759
|
-
indexed:
|
|
1866
|
+
indexed: true,
|
|
1760
1867
|
},
|
|
1761
|
-
{ name: '
|
|
1868
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
1762
1869
|
],
|
|
1763
|
-
name: '
|
|
1870
|
+
name: 'OperatorSet',
|
|
1764
1871
|
},
|
|
1765
1872
|
{
|
|
1766
1873
|
type: 'event',
|
|
@@ -1772,30 +1879,11 @@ export const fPoolManagerAbi = [
|
|
|
1772
1879
|
type: 'bytes32',
|
|
1773
1880
|
indexed: true,
|
|
1774
1881
|
},
|
|
1882
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1775
1883
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1776
|
-
{ name: '
|
|
1777
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1778
|
-
{
|
|
1779
|
-
name: 'shares',
|
|
1780
|
-
internalType: 'uint256',
|
|
1781
|
-
type: 'uint256',
|
|
1782
|
-
indexed: false,
|
|
1783
|
-
},
|
|
1784
|
-
{
|
|
1785
|
-
name: 'dQuote',
|
|
1786
|
-
internalType: 'uint256',
|
|
1787
|
-
type: 'uint256',
|
|
1788
|
-
indexed: false,
|
|
1789
|
-
},
|
|
1790
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1791
|
-
{
|
|
1792
|
-
name: 'supply',
|
|
1793
|
-
internalType: 'uint256',
|
|
1794
|
-
type: 'uint256',
|
|
1795
|
-
indexed: false,
|
|
1796
|
-
},
|
|
1884
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1797
1885
|
],
|
|
1798
|
-
name: '
|
|
1886
|
+
name: 'PolicyMigrated',
|
|
1799
1887
|
},
|
|
1800
1888
|
{
|
|
1801
1889
|
type: 'event',
|
|
@@ -1808,56 +1896,55 @@ export const fPoolManagerAbi = [
|
|
|
1808
1896
|
indexed: true,
|
|
1809
1897
|
},
|
|
1810
1898
|
{
|
|
1811
|
-
name: '
|
|
1899
|
+
name: 'quote',
|
|
1812
1900
|
internalType: 'address',
|
|
1813
1901
|
type: 'address',
|
|
1814
1902
|
indexed: true,
|
|
1815
1903
|
},
|
|
1816
1904
|
{
|
|
1817
|
-
name: '
|
|
1905
|
+
name: 'creator',
|
|
1818
1906
|
internalType: 'address',
|
|
1819
1907
|
type: 'address',
|
|
1820
1908
|
indexed: true,
|
|
1821
1909
|
},
|
|
1822
1910
|
{
|
|
1823
|
-
name: '
|
|
1824
|
-
internalType: 'address',
|
|
1825
|
-
type: 'address',
|
|
1911
|
+
name: 'bases',
|
|
1912
|
+
internalType: 'address[]',
|
|
1913
|
+
type: 'address[]',
|
|
1826
1914
|
indexed: false,
|
|
1827
1915
|
},
|
|
1828
1916
|
{
|
|
1829
|
-
name: '
|
|
1830
|
-
internalType: '
|
|
1831
|
-
type: '
|
|
1917
|
+
name: 'weights',
|
|
1918
|
+
internalType: 'uint256[]',
|
|
1919
|
+
type: 'uint256[]',
|
|
1832
1920
|
indexed: false,
|
|
1833
1921
|
},
|
|
1834
1922
|
{
|
|
1835
|
-
name: '
|
|
1923
|
+
name: 'swapFee',
|
|
1836
1924
|
internalType: 'uint256',
|
|
1837
1925
|
type: 'uint256',
|
|
1838
1926
|
indexed: false,
|
|
1839
1927
|
},
|
|
1840
1928
|
{
|
|
1841
|
-
name: '
|
|
1842
|
-
internalType: '
|
|
1843
|
-
type: '
|
|
1929
|
+
name: 'policy',
|
|
1930
|
+
internalType: 'address',
|
|
1931
|
+
type: 'address',
|
|
1844
1932
|
indexed: false,
|
|
1845
1933
|
},
|
|
1846
|
-
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1847
1934
|
{
|
|
1848
|
-
name: '
|
|
1849
|
-
internalType: '
|
|
1850
|
-
type: '
|
|
1935
|
+
name: 'lnCapOverFloor',
|
|
1936
|
+
internalType: 'uint24',
|
|
1937
|
+
type: 'uint24',
|
|
1851
1938
|
indexed: false,
|
|
1852
1939
|
},
|
|
1853
1940
|
{
|
|
1854
|
-
name: '
|
|
1941
|
+
name: 'mintFee',
|
|
1855
1942
|
internalType: 'uint256',
|
|
1856
1943
|
type: 'uint256',
|
|
1857
1944
|
indexed: false,
|
|
1858
1945
|
},
|
|
1859
1946
|
],
|
|
1860
|
-
name: '
|
|
1947
|
+
name: 'PoolCreated',
|
|
1861
1948
|
},
|
|
1862
1949
|
{
|
|
1863
1950
|
type: 'event',
|
|
@@ -1869,24 +1956,28 @@ export const fPoolManagerAbi = [
|
|
|
1869
1956
|
type: 'bytes32',
|
|
1870
1957
|
indexed: true,
|
|
1871
1958
|
},
|
|
1872
|
-
{ name: '
|
|
1873
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1959
|
+
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1874
1960
|
{
|
|
1875
|
-
name: '
|
|
1961
|
+
name: 'payee',
|
|
1962
|
+
internalType: 'address',
|
|
1963
|
+
type: 'address',
|
|
1964
|
+
indexed: false,
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
name: 'toPayee',
|
|
1876
1968
|
internalType: 'uint256',
|
|
1877
1969
|
type: 'uint256',
|
|
1878
1970
|
indexed: false,
|
|
1879
1971
|
},
|
|
1880
1972
|
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1881
1973
|
{
|
|
1882
|
-
name: '
|
|
1974
|
+
name: 'deepened',
|
|
1883
1975
|
internalType: 'uint256',
|
|
1884
1976
|
type: 'uint256',
|
|
1885
1977
|
indexed: false,
|
|
1886
1978
|
},
|
|
1887
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1888
1979
|
],
|
|
1889
|
-
name: '
|
|
1980
|
+
name: 'PotReleased',
|
|
1890
1981
|
},
|
|
1891
1982
|
{
|
|
1892
1983
|
type: 'event',
|
|
@@ -1898,41 +1989,50 @@ export const fPoolManagerAbi = [
|
|
|
1898
1989
|
type: 'bytes32',
|
|
1899
1990
|
indexed: true,
|
|
1900
1991
|
},
|
|
1901
|
-
{ name: '
|
|
1902
|
-
{
|
|
1903
|
-
name: 'bases',
|
|
1904
|
-
internalType: 'address[]',
|
|
1905
|
-
type: 'address[]',
|
|
1906
|
-
indexed: false,
|
|
1907
|
-
},
|
|
1992
|
+
{ name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
|
|
1908
1993
|
{
|
|
1909
|
-
name: '
|
|
1910
|
-
internalType: 'uint256
|
|
1911
|
-
type: 'uint256
|
|
1994
|
+
name: 'amount',
|
|
1995
|
+
internalType: 'uint256',
|
|
1996
|
+
type: 'uint256',
|
|
1912
1997
|
indexed: false,
|
|
1913
1998
|
},
|
|
1914
1999
|
],
|
|
1915
|
-
name: '
|
|
2000
|
+
name: 'ProtocolFeeTaken',
|
|
1916
2001
|
},
|
|
1917
2002
|
{
|
|
1918
2003
|
type: 'event',
|
|
1919
2004
|
anonymous: false,
|
|
1920
2005
|
inputs: [
|
|
1921
2006
|
{
|
|
1922
|
-
name: '
|
|
1923
|
-
internalType: '
|
|
1924
|
-
type: '
|
|
2007
|
+
name: 'poolId',
|
|
2008
|
+
internalType: 'bytes32',
|
|
2009
|
+
type: 'bytes32',
|
|
1925
2010
|
indexed: true,
|
|
1926
2011
|
},
|
|
2012
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2013
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2014
|
+
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1927
2015
|
{
|
|
1928
|
-
name: '
|
|
1929
|
-
internalType: '
|
|
1930
|
-
type: '
|
|
1931
|
-
indexed:
|
|
2016
|
+
name: 'shares',
|
|
2017
|
+
internalType: 'uint256',
|
|
2018
|
+
type: 'uint256',
|
|
2019
|
+
indexed: false,
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
name: 'dQuote',
|
|
2023
|
+
internalType: 'uint256',
|
|
2024
|
+
type: 'uint256',
|
|
2025
|
+
indexed: false,
|
|
2026
|
+
},
|
|
2027
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2028
|
+
{
|
|
2029
|
+
name: 'supply',
|
|
2030
|
+
internalType: 'uint256',
|
|
2031
|
+
type: 'uint256',
|
|
2032
|
+
indexed: false,
|
|
1932
2033
|
},
|
|
1933
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
1934
2034
|
],
|
|
1935
|
-
name: '
|
|
2035
|
+
name: 'SharesBurned',
|
|
1936
2036
|
},
|
|
1937
2037
|
{
|
|
1938
2038
|
type: 'event',
|
|
@@ -1944,31 +2044,30 @@ export const fPoolManagerAbi = [
|
|
|
1944
2044
|
type: 'bytes32',
|
|
1945
2045
|
indexed: true,
|
|
1946
2046
|
},
|
|
1947
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1948
2047
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1949
|
-
{ name: '
|
|
1950
|
-
|
|
1951
|
-
name: 'PolicyMigrated',
|
|
1952
|
-
},
|
|
1953
|
-
{
|
|
1954
|
-
type: 'event',
|
|
1955
|
-
anonymous: false,
|
|
1956
|
-
inputs: [
|
|
2048
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2049
|
+
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1957
2050
|
{
|
|
1958
|
-
name: '
|
|
1959
|
-
internalType: '
|
|
1960
|
-
type: '
|
|
1961
|
-
indexed:
|
|
2051
|
+
name: 'shares',
|
|
2052
|
+
internalType: 'uint256',
|
|
2053
|
+
type: 'uint256',
|
|
2054
|
+
indexed: false,
|
|
1962
2055
|
},
|
|
1963
|
-
{ name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
|
|
1964
2056
|
{
|
|
1965
|
-
name: '
|
|
2057
|
+
name: 'dQuote',
|
|
2058
|
+
internalType: 'uint256',
|
|
2059
|
+
type: 'uint256',
|
|
2060
|
+
indexed: false,
|
|
2061
|
+
},
|
|
2062
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2063
|
+
{
|
|
2064
|
+
name: 'supply',
|
|
1966
2065
|
internalType: 'uint256',
|
|
1967
2066
|
type: 'uint256',
|
|
1968
2067
|
indexed: false,
|
|
1969
2068
|
},
|
|
1970
2069
|
],
|
|
1971
|
-
name: '
|
|
2070
|
+
name: 'SharesMinted',
|
|
1972
2071
|
},
|
|
1973
2072
|
{
|
|
1974
2073
|
type: 'event',
|
|
@@ -2000,7 +2099,7 @@ export const fPoolManagerAbi = [
|
|
|
2000
2099
|
indexed: false,
|
|
2001
2100
|
},
|
|
2002
2101
|
],
|
|
2003
|
-
name: '
|
|
2102
|
+
name: 'SharesRedeemed',
|
|
2004
2103
|
},
|
|
2005
2104
|
{
|
|
2006
2105
|
type: 'event',
|
|
@@ -2012,112 +2111,119 @@ export const fPoolManagerAbi = [
|
|
|
2012
2111
|
type: 'bytes32',
|
|
2013
2112
|
indexed: true,
|
|
2014
2113
|
},
|
|
2015
|
-
|
|
2114
|
+
],
|
|
2115
|
+
name: 'Stamped',
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
type: 'event',
|
|
2119
|
+
anonymous: false,
|
|
2120
|
+
inputs: [
|
|
2016
2121
|
{
|
|
2017
|
-
name: '
|
|
2122
|
+
name: 'poolId',
|
|
2123
|
+
internalType: 'bytes32',
|
|
2124
|
+
type: 'bytes32',
|
|
2125
|
+
indexed: true,
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
name: 'sender',
|
|
2129
|
+
internalType: 'address',
|
|
2130
|
+
type: 'address',
|
|
2131
|
+
indexed: true,
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
name: 'taker',
|
|
2135
|
+
internalType: 'address',
|
|
2136
|
+
type: 'address',
|
|
2137
|
+
indexed: true,
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
name: 'tokenIn',
|
|
2018
2141
|
internalType: 'address',
|
|
2019
2142
|
type: 'address',
|
|
2020
2143
|
indexed: false,
|
|
2021
2144
|
},
|
|
2022
2145
|
{
|
|
2023
|
-
name: '
|
|
2146
|
+
name: 'tokenOut',
|
|
2147
|
+
internalType: 'address',
|
|
2148
|
+
type: 'address',
|
|
2149
|
+
indexed: false,
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
name: 'amountIn',
|
|
2024
2153
|
internalType: 'uint256',
|
|
2025
2154
|
type: 'uint256',
|
|
2026
2155
|
indexed: false,
|
|
2027
2156
|
},
|
|
2028
|
-
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2029
2157
|
{
|
|
2030
|
-
name: '
|
|
2158
|
+
name: 'amountOut',
|
|
2031
2159
|
internalType: 'uint256',
|
|
2032
2160
|
type: 'uint256',
|
|
2033
2161
|
indexed: false,
|
|
2034
2162
|
},
|
|
2163
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2035
2164
|
{
|
|
2036
|
-
name: '
|
|
2037
|
-
internalType: '
|
|
2038
|
-
type: '
|
|
2165
|
+
name: 'feeToken',
|
|
2166
|
+
internalType: 'address',
|
|
2167
|
+
type: 'address',
|
|
2039
2168
|
indexed: false,
|
|
2040
2169
|
},
|
|
2041
2170
|
],
|
|
2042
|
-
name: '
|
|
2171
|
+
name: 'Swap',
|
|
2043
2172
|
},
|
|
2044
2173
|
{
|
|
2045
2174
|
type: 'event',
|
|
2046
2175
|
anonymous: false,
|
|
2047
2176
|
inputs: [
|
|
2177
|
+
{ name: 'by', internalType: 'address', type: 'address', indexed: false },
|
|
2178
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2179
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2180
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2048
2181
|
{
|
|
2049
|
-
name: '
|
|
2050
|
-
internalType: 'bytes32',
|
|
2051
|
-
type: 'bytes32',
|
|
2052
|
-
indexed: true,
|
|
2053
|
-
},
|
|
2054
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2055
|
-
{
|
|
2056
|
-
name: 'supply',
|
|
2057
|
-
internalType: 'uint256',
|
|
2058
|
-
type: 'uint256',
|
|
2059
|
-
indexed: false,
|
|
2060
|
-
},
|
|
2061
|
-
{
|
|
2062
|
-
name: 'quote',
|
|
2182
|
+
name: 'amount',
|
|
2063
2183
|
internalType: 'uint256',
|
|
2064
2184
|
type: 'uint256',
|
|
2065
2185
|
indexed: false,
|
|
2066
2186
|
},
|
|
2067
2187
|
],
|
|
2068
|
-
name: '
|
|
2188
|
+
name: 'Transfer',
|
|
2069
2189
|
},
|
|
2070
2190
|
{
|
|
2071
2191
|
type: 'event',
|
|
2072
2192
|
anonymous: false,
|
|
2073
2193
|
inputs: [
|
|
2074
2194
|
{
|
|
2075
|
-
name: '
|
|
2076
|
-
internalType: '
|
|
2077
|
-
type: '
|
|
2195
|
+
name: 'previous',
|
|
2196
|
+
internalType: 'address',
|
|
2197
|
+
type: 'address',
|
|
2078
2198
|
indexed: true,
|
|
2079
2199
|
},
|
|
2080
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2081
|
-
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2082
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2083
2200
|
{
|
|
2084
|
-
name: '
|
|
2085
|
-
internalType: '
|
|
2086
|
-
type: '
|
|
2087
|
-
indexed:
|
|
2201
|
+
name: 'current',
|
|
2202
|
+
internalType: 'address',
|
|
2203
|
+
type: 'address',
|
|
2204
|
+
indexed: true,
|
|
2088
2205
|
},
|
|
2089
2206
|
],
|
|
2090
|
-
name: '
|
|
2207
|
+
name: 'TreasuryAccepted',
|
|
2091
2208
|
},
|
|
2092
2209
|
{
|
|
2093
2210
|
type: 'event',
|
|
2094
2211
|
anonymous: false,
|
|
2095
2212
|
inputs: [
|
|
2096
2213
|
{
|
|
2097
|
-
name: '
|
|
2098
|
-
internalType: '
|
|
2099
|
-
type: '
|
|
2214
|
+
name: 'current',
|
|
2215
|
+
internalType: 'address',
|
|
2216
|
+
type: 'address',
|
|
2100
2217
|
indexed: true,
|
|
2101
2218
|
},
|
|
2102
|
-
],
|
|
2103
|
-
name: 'Stamped',
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
type: 'event',
|
|
2107
|
-
anonymous: false,
|
|
2108
|
-
inputs: [
|
|
2109
|
-
{ name: 'by', internalType: 'address', type: 'address', indexed: false },
|
|
2110
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2111
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2112
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2113
2219
|
{
|
|
2114
|
-
name: '
|
|
2115
|
-
internalType: '
|
|
2116
|
-
type: '
|
|
2117
|
-
indexed:
|
|
2220
|
+
name: 'proposed',
|
|
2221
|
+
internalType: 'address',
|
|
2222
|
+
type: 'address',
|
|
2223
|
+
indexed: true,
|
|
2118
2224
|
},
|
|
2119
2225
|
],
|
|
2120
|
-
name: '
|
|
2226
|
+
name: 'TreasuryProposed',
|
|
2121
2227
|
},
|
|
2122
2228
|
{ type: 'error', inputs: [], name: 'AlreadySeeded' },
|
|
2123
2229
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
@@ -2142,11 +2248,13 @@ export const fPoolManagerAbi = [
|
|
|
2142
2248
|
},
|
|
2143
2249
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2144
2250
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2145
|
-
{ type: 'error', inputs: [], name: '
|
|
2251
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2146
2252
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2147
2253
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2148
2254
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2149
2255
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2256
|
+
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
2257
|
+
{ type: 'error', inputs: [], name: 'PadNeverRetires' },
|
|
2150
2258
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2151
2259
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2152
2260
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -2365,12 +2473,16 @@ export const logswapLensAbi = [
|
|
|
2365
2473
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2366
2474
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2367
2475
|
{
|
|
2368
|
-
name: '
|
|
2476
|
+
name: 'restructureTime',
|
|
2369
2477
|
internalType: 'uint32',
|
|
2370
2478
|
type: 'uint32',
|
|
2371
2479
|
},
|
|
2372
2480
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2373
|
-
{
|
|
2481
|
+
{
|
|
2482
|
+
name: 'lnCapOverFloor',
|
|
2483
|
+
internalType: 'uint24',
|
|
2484
|
+
type: 'uint24',
|
|
2485
|
+
},
|
|
2374
2486
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2375
2487
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2376
2488
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2460,9 +2572,9 @@ export const logswapLensAbi = [
|
|
|
2460
2572
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2461
2573
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2462
2574
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2463
|
-
{ name: '
|
|
2575
|
+
{ name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
|
|
2464
2576
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2465
|
-
{ name: '
|
|
2577
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
2466
2578
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2467
2579
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2468
2580
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2497,6 +2609,7 @@ export const logswapLensAbi = [
|
|
|
2497
2609
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
2498
2610
|
{ name: 'backstopFloor', internalType: 'int256', type: 'int256' },
|
|
2499
2611
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2612
|
+
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2500
2613
|
],
|
|
2501
2614
|
},
|
|
2502
2615
|
],
|
|
@@ -3660,7 +3773,8 @@ export const padPolicyAbi = [
|
|
|
3660
3773
|
internalType: 'contract FPoolManager',
|
|
3661
3774
|
type: 'address',
|
|
3662
3775
|
},
|
|
3663
|
-
{ name: '
|
|
3776
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3777
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
3664
3778
|
],
|
|
3665
3779
|
stateMutability: 'nonpayable',
|
|
3666
3780
|
},
|
|
@@ -3678,20 +3792,6 @@ export const padPolicyAbi = [
|
|
|
3678
3792
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3679
3793
|
stateMutability: 'view',
|
|
3680
3794
|
},
|
|
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
3795
|
{
|
|
3696
3796
|
type: 'function',
|
|
3697
3797
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3829,7 +3929,7 @@ export const padPolicyAbi = [
|
|
|
3829
3929
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3830
3930
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3831
3931
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3832
|
-
{ name: '
|
|
3932
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
3833
3933
|
],
|
|
3834
3934
|
},
|
|
3835
3935
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3888,7 +3988,6 @@ export const padPolicyAbi = [
|
|
|
3888
3988
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3889
3989
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3890
3990
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
3891
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
3892
3991
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3893
3992
|
],
|
|
3894
3993
|
},
|
|
@@ -3899,7 +3998,6 @@ export const padPolicyAbi = [
|
|
|
3899
3998
|
type: 'function',
|
|
3900
3999
|
inputs: [
|
|
3901
4000
|
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3902
|
-
{ name: 'burnShare', internalType: 'uint256', type: 'uint256' },
|
|
3903
4001
|
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3904
4002
|
],
|
|
3905
4003
|
name: 'pack',
|
|
@@ -4032,40 +4130,49 @@ export const padPolicyAbi = [
|
|
|
4032
4130
|
{
|
|
4033
4131
|
type: 'function',
|
|
4034
4132
|
inputs: [
|
|
4035
|
-
{ name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
|
|
4036
4133
|
{ name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
|
|
4037
4134
|
{ name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
|
|
4038
4135
|
{ name: '_creatorShareMin', internalType: 'uint256', type: 'uint256' },
|
|
4039
4136
|
{ name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
|
|
4040
|
-
{ name: '_burnMin', internalType: 'uint256', type: 'uint256' },
|
|
4041
|
-
{ name: '_burnMax', internalType: 'uint256', type: 'uint256' },
|
|
4042
4137
|
],
|
|
4043
4138
|
name: 'setSchedule',
|
|
4044
4139
|
outputs: [],
|
|
4045
4140
|
stateMutability: 'nonpayable',
|
|
4046
4141
|
},
|
|
4142
|
+
{
|
|
4143
|
+
type: 'function',
|
|
4144
|
+
inputs: [
|
|
4145
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4146
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
4147
|
+
],
|
|
4148
|
+
name: 'setThresholdBase',
|
|
4149
|
+
outputs: [],
|
|
4150
|
+
stateMutability: 'nonpayable',
|
|
4151
|
+
},
|
|
4047
4152
|
{
|
|
4048
4153
|
type: 'function',
|
|
4049
4154
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4050
4155
|
name: 'splitOf',
|
|
4051
4156
|
outputs: [
|
|
4052
4157
|
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
4053
|
-
{ name: 'burnShare', internalType: 'uint64', type: 'uint64' },
|
|
4054
4158
|
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
4055
4159
|
],
|
|
4056
4160
|
stateMutability: 'view',
|
|
4057
4161
|
},
|
|
4058
4162
|
{
|
|
4059
4163
|
type: 'function',
|
|
4060
|
-
inputs: [
|
|
4164
|
+
inputs: [
|
|
4165
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4166
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
4167
|
+
],
|
|
4061
4168
|
name: 'threshold',
|
|
4062
|
-
outputs: [{ name: '
|
|
4169
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4063
4170
|
stateMutability: 'view',
|
|
4064
4171
|
},
|
|
4065
4172
|
{
|
|
4066
4173
|
type: 'function',
|
|
4067
|
-
inputs: [],
|
|
4068
|
-
name: '
|
|
4174
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4175
|
+
name: 'thresholdBaseOf',
|
|
4069
4176
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4070
4177
|
stateMutability: 'view',
|
|
4071
4178
|
},
|
|
@@ -4076,6 +4183,23 @@ export const padPolicyAbi = [
|
|
|
4076
4183
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4077
4184
|
stateMutability: 'view',
|
|
4078
4185
|
},
|
|
4186
|
+
{
|
|
4187
|
+
type: 'function',
|
|
4188
|
+
inputs: [
|
|
4189
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4190
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
4191
|
+
],
|
|
4192
|
+
name: 'thresholdOf',
|
|
4193
|
+
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
4194
|
+
stateMutability: 'view',
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
type: 'function',
|
|
4198
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4199
|
+
name: 'thresholdSet',
|
|
4200
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4201
|
+
stateMutability: 'view',
|
|
4202
|
+
},
|
|
4079
4203
|
{
|
|
4080
4204
|
type: 'event',
|
|
4081
4205
|
anonymous: false,
|
|
@@ -4237,12 +4361,6 @@ export const padPolicyAbi = [
|
|
|
4237
4361
|
type: 'event',
|
|
4238
4362
|
anonymous: false,
|
|
4239
4363
|
inputs: [
|
|
4240
|
-
{
|
|
4241
|
-
name: 'thresholdBase',
|
|
4242
|
-
internalType: 'uint256',
|
|
4243
|
-
type: 'uint256',
|
|
4244
|
-
indexed: false,
|
|
4245
|
-
},
|
|
4246
4364
|
{
|
|
4247
4365
|
name: 'thresholdGrowth',
|
|
4248
4366
|
internalType: 'uint256',
|
|
@@ -4267,18 +4385,6 @@ export const padPolicyAbi = [
|
|
|
4267
4385
|
type: 'uint256',
|
|
4268
4386
|
indexed: false,
|
|
4269
4387
|
},
|
|
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
4388
|
],
|
|
4283
4389
|
name: 'ScheduleSet',
|
|
4284
4390
|
},
|
|
@@ -4299,19 +4405,32 @@ export const padPolicyAbi = [
|
|
|
4299
4405
|
indexed: false,
|
|
4300
4406
|
},
|
|
4301
4407
|
{
|
|
4302
|
-
name: '
|
|
4408
|
+
name: 'protocolShare',
|
|
4303
4409
|
internalType: 'uint256',
|
|
4304
4410
|
type: 'uint256',
|
|
4305
4411
|
indexed: false,
|
|
4306
4412
|
},
|
|
4413
|
+
],
|
|
4414
|
+
name: 'SplitSet',
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
type: 'event',
|
|
4418
|
+
anonymous: false,
|
|
4419
|
+
inputs: [
|
|
4307
4420
|
{
|
|
4308
|
-
name: '
|
|
4421
|
+
name: 'quote',
|
|
4422
|
+
internalType: 'address',
|
|
4423
|
+
type: 'address',
|
|
4424
|
+
indexed: true,
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
name: 'thresholdBase',
|
|
4309
4428
|
internalType: 'uint256',
|
|
4310
4429
|
type: 'uint256',
|
|
4311
4430
|
indexed: false,
|
|
4312
4431
|
},
|
|
4313
4432
|
],
|
|
4314
|
-
name: '
|
|
4433
|
+
name: 'ThresholdBaseSet',
|
|
4315
4434
|
},
|
|
4316
4435
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4317
4436
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
@@ -4331,9 +4450,14 @@ export const padPolicyAbi = [
|
|
|
4331
4450
|
name: 'MintFeeNotListed',
|
|
4332
4451
|
},
|
|
4333
4452
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4453
|
+
{
|
|
4454
|
+
type: 'error',
|
|
4455
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4456
|
+
name: 'NoThreshold',
|
|
4457
|
+
},
|
|
4334
4458
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4335
|
-
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4336
4459
|
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4460
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4337
4461
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4338
4462
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4339
4463
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
@@ -4521,7 +4645,7 @@ export const polPolicyAbi = [
|
|
|
4521
4645
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4522
4646
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4523
4647
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4524
|
-
{ name: '
|
|
4648
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
4525
4649
|
],
|
|
4526
4650
|
},
|
|
4527
4651
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4580,7 +4704,6 @@ export const polPolicyAbi = [
|
|
|
4580
4704
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4581
4705
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4582
4706
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
4583
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
4584
4707
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4585
4708
|
],
|
|
4586
4709
|
},
|
|
@@ -4886,7 +5009,7 @@ export const polPolicyAbi = [
|
|
|
4886
5009
|
},
|
|
4887
5010
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4888
5011
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4889
|
-
{ type: 'error', inputs: [], name: '
|
|
5012
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4890
5013
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4891
5014
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4892
5015
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
@@ -4906,13 +5029,15 @@ export const polPolicyAbi = [
|
|
|
4906
5029
|
export const policyRegistryAbi = [
|
|
4907
5030
|
{
|
|
4908
5031
|
type: 'constructor',
|
|
4909
|
-
inputs: [
|
|
5032
|
+
inputs: [
|
|
5033
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
5034
|
+
],
|
|
4910
5035
|
stateMutability: 'nonpayable',
|
|
4911
5036
|
},
|
|
4912
5037
|
{
|
|
4913
5038
|
type: 'function',
|
|
4914
5039
|
inputs: [],
|
|
4915
|
-
name: '
|
|
5040
|
+
name: 'acceptLogAuthority',
|
|
4916
5041
|
outputs: [],
|
|
4917
5042
|
stateMutability: 'nonpayable',
|
|
4918
5043
|
},
|
|
@@ -4952,6 +5077,13 @@ export const policyRegistryAbi = [
|
|
|
4952
5077
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4953
5078
|
stateMutability: 'view',
|
|
4954
5079
|
},
|
|
5080
|
+
{
|
|
5081
|
+
type: 'function',
|
|
5082
|
+
inputs: [],
|
|
5083
|
+
name: 'logAuthority',
|
|
5084
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5085
|
+
stateMutability: 'view',
|
|
5086
|
+
},
|
|
4955
5087
|
{
|
|
4956
5088
|
type: 'function',
|
|
4957
5089
|
inputs: [
|
|
@@ -4968,7 +5100,7 @@ export const policyRegistryAbi = [
|
|
|
4968
5100
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4969
5101
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4970
5102
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4971
|
-
{ name: '
|
|
5103
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
4972
5104
|
],
|
|
4973
5105
|
},
|
|
4974
5106
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -4980,14 +5112,7 @@ export const policyRegistryAbi = [
|
|
|
4980
5112
|
{
|
|
4981
5113
|
type: 'function',
|
|
4982
5114
|
inputs: [],
|
|
4983
|
-
name: '
|
|
4984
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4985
|
-
stateMutability: 'view',
|
|
4986
|
-
},
|
|
4987
|
-
{
|
|
4988
|
-
type: 'function',
|
|
4989
|
-
inputs: [],
|
|
4990
|
-
name: 'pendingOwner',
|
|
5115
|
+
name: 'pendingLogAuthority',
|
|
4991
5116
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4992
5117
|
stateMutability: 'view',
|
|
4993
5118
|
},
|
|
@@ -5001,7 +5126,7 @@ export const policyRegistryAbi = [
|
|
|
5001
5126
|
{
|
|
5002
5127
|
type: 'function',
|
|
5003
5128
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
5004
|
-
name: '
|
|
5129
|
+
name: 'proposeLogAuthority',
|
|
5005
5130
|
outputs: [],
|
|
5006
5131
|
stateMutability: 'nonpayable',
|
|
5007
5132
|
},
|
|
@@ -5033,7 +5158,7 @@ export const policyRegistryAbi = [
|
|
|
5033
5158
|
type: 'function',
|
|
5034
5159
|
inputs: [
|
|
5035
5160
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5036
|
-
{ name: '
|
|
5161
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
5037
5162
|
],
|
|
5038
5163
|
name: 'sunset',
|
|
5039
5164
|
outputs: [],
|
|
@@ -5058,6 +5183,34 @@ export const policyRegistryAbi = [
|
|
|
5058
5183
|
],
|
|
5059
5184
|
name: 'Approved',
|
|
5060
5185
|
},
|
|
5186
|
+
{
|
|
5187
|
+
type: 'event',
|
|
5188
|
+
anonymous: false,
|
|
5189
|
+
inputs: [
|
|
5190
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5191
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5192
|
+
],
|
|
5193
|
+
name: 'LogAuthorityAccepted',
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
type: 'event',
|
|
5197
|
+
anonymous: false,
|
|
5198
|
+
inputs: [
|
|
5199
|
+
{
|
|
5200
|
+
name: 'current',
|
|
5201
|
+
internalType: 'address',
|
|
5202
|
+
type: 'address',
|
|
5203
|
+
indexed: true,
|
|
5204
|
+
},
|
|
5205
|
+
{
|
|
5206
|
+
name: 'proposed',
|
|
5207
|
+
internalType: 'address',
|
|
5208
|
+
type: 'address',
|
|
5209
|
+
indexed: true,
|
|
5210
|
+
},
|
|
5211
|
+
],
|
|
5212
|
+
name: 'LogAuthorityProposed',
|
|
5213
|
+
},
|
|
5061
5214
|
{
|
|
5062
5215
|
type: 'event',
|
|
5063
5216
|
anonymous: false,
|
|
@@ -5090,34 +5243,6 @@ export const policyRegistryAbi = [
|
|
|
5090
5243
|
],
|
|
5091
5244
|
name: 'Migrated',
|
|
5092
5245
|
},
|
|
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
5246
|
{
|
|
5122
5247
|
type: 'event',
|
|
5123
5248
|
anonymous: false,
|
|
@@ -5156,7 +5281,7 @@ export const policyRegistryAbi = [
|
|
|
5156
5281
|
indexed: true,
|
|
5157
5282
|
},
|
|
5158
5283
|
{
|
|
5159
|
-
name: '
|
|
5284
|
+
name: 'untilTime',
|
|
5160
5285
|
internalType: 'uint64',
|
|
5161
5286
|
type: 'uint64',
|
|
5162
5287
|
indexed: false,
|
|
@@ -5169,7 +5294,7 @@ export const policyRegistryAbi = [
|
|
|
5169
5294
|
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
5170
5295
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
5171
5296
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
5172
|
-
{ type: 'error', inputs: [], name: '
|
|
5297
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5173
5298
|
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
5174
5299
|
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
5175
5300
|
] as const
|
|
@@ -5409,7 +5534,7 @@ export const privatePolicyAbi = [
|
|
|
5409
5534
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5410
5535
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5411
5536
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5412
|
-
{ name: '
|
|
5537
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
5413
5538
|
],
|
|
5414
5539
|
},
|
|
5415
5540
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -5468,7 +5593,6 @@ export const privatePolicyAbi = [
|
|
|
5468
5593
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5469
5594
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5470
5595
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
5471
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
5472
5596
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
5473
5597
|
],
|
|
5474
5598
|
},
|
|
@@ -5876,7 +6000,7 @@ export const privatePolicyAbi = [
|
|
|
5876
6000
|
},
|
|
5877
6001
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5878
6002
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5879
|
-
{ type: 'error', inputs: [], name: '
|
|
6003
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5880
6004
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5881
6005
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
5882
6006
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
@@ -5906,6 +6030,13 @@ export const publicPolicyAbi = [
|
|
|
5906
6030
|
],
|
|
5907
6031
|
stateMutability: 'nonpayable',
|
|
5908
6032
|
},
|
|
6033
|
+
{
|
|
6034
|
+
type: 'function',
|
|
6035
|
+
inputs: [],
|
|
6036
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
6037
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6038
|
+
stateMutability: 'view',
|
|
6039
|
+
},
|
|
5909
6040
|
{
|
|
5910
6041
|
type: 'function',
|
|
5911
6042
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -6084,7 +6215,10 @@ export const publicPolicyAbi = [
|
|
|
6084
6215
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6085
6216
|
],
|
|
6086
6217
|
name: 'onCInitialize',
|
|
6087
|
-
outputs: [
|
|
6218
|
+
outputs: [
|
|
6219
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6220
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
6221
|
+
],
|
|
6088
6222
|
stateMutability: 'nonpayable',
|
|
6089
6223
|
},
|
|
6090
6224
|
{
|
|
@@ -6103,7 +6237,7 @@ export const publicPolicyAbi = [
|
|
|
6103
6237
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6104
6238
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
6105
6239
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
6106
|
-
{ name: '
|
|
6240
|
+
{ name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
|
|
6107
6241
|
],
|
|
6108
6242
|
},
|
|
6109
6243
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
@@ -6162,7 +6296,6 @@ export const publicPolicyAbi = [
|
|
|
6162
6296
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
6163
6297
|
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
6164
6298
|
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
6165
|
-
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
6166
6299
|
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
6167
6300
|
],
|
|
6168
6301
|
},
|
|
@@ -6350,6 +6483,13 @@ export const publicPolicyAbi = [
|
|
|
6350
6483
|
outputs: [],
|
|
6351
6484
|
stateMutability: 'nonpayable',
|
|
6352
6485
|
},
|
|
6486
|
+
{
|
|
6487
|
+
type: 'function',
|
|
6488
|
+
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
6489
|
+
name: 'setSwapFeeTax',
|
|
6490
|
+
outputs: [],
|
|
6491
|
+
stateMutability: 'nonpayable',
|
|
6492
|
+
},
|
|
6353
6493
|
{
|
|
6354
6494
|
type: 'function',
|
|
6355
6495
|
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
@@ -6357,6 +6497,13 @@ export const publicPolicyAbi = [
|
|
|
6357
6497
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6358
6498
|
stateMutability: 'view',
|
|
6359
6499
|
},
|
|
6500
|
+
{
|
|
6501
|
+
type: 'function',
|
|
6502
|
+
inputs: [],
|
|
6503
|
+
name: 'swapFeeTax',
|
|
6504
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6505
|
+
stateMutability: 'view',
|
|
6506
|
+
},
|
|
6360
6507
|
{
|
|
6361
6508
|
type: 'event',
|
|
6362
6509
|
anonymous: false,
|
|
@@ -6572,6 +6719,14 @@ export const publicPolicyAbi = [
|
|
|
6572
6719
|
],
|
|
6573
6720
|
name: 'SpacingListed',
|
|
6574
6721
|
},
|
|
6722
|
+
{
|
|
6723
|
+
type: 'event',
|
|
6724
|
+
anonymous: false,
|
|
6725
|
+
inputs: [
|
|
6726
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
6727
|
+
],
|
|
6728
|
+
name: 'SwapFeeTaxSet',
|
|
6729
|
+
},
|
|
6575
6730
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
6576
6731
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6577
6732
|
{
|
|
@@ -6606,12 +6761,12 @@ export const publicPolicyAbi = [
|
|
|
6606
6761
|
},
|
|
6607
6762
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6608
6763
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6609
|
-
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
6610
6764
|
{
|
|
6611
6765
|
type: 'error',
|
|
6612
6766
|
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
6613
6767
|
name: 'NotListed',
|
|
6614
6768
|
},
|
|
6769
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6615
6770
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6616
6771
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6617
6772
|
{ type: 'error', inputs: [], name: 'OneBase' },
|