@levrbet/shared 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +103 -0
- package/dist/core/contracts/abis/LevrConfigProvider.js +63 -0
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +16 -0
- package/dist/core/contracts/abis/LevrOrderbook.js +9 -0
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbookLens.d.ts +71 -71
- package/dist/core/contracts/abis/LevrOrderbookLens.js +52 -122
- package/dist/core/contracts/abis/LevrOrderbookLens.js.map +1 -1
- package/dist/core/contracts/abis/index.d.ts +190 -71
- package/dist/core/types/oracle/market/positions.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -135,6 +135,10 @@ export declare const abis: {
|
|
|
135
135
|
readonly inputs: readonly [];
|
|
136
136
|
readonly name: "LMC_INVALID_FEE_BPS";
|
|
137
137
|
readonly type: "error";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly name: "LMC_INVALID_LIQUIDATION_BUFFER_BPS";
|
|
141
|
+
readonly type: "error";
|
|
138
142
|
}, {
|
|
139
143
|
readonly inputs: readonly [];
|
|
140
144
|
readonly name: "LMC_INVALID_MERKLE_ROOT";
|
|
@@ -611,6 +615,51 @@ export declare const abis: {
|
|
|
611
615
|
}];
|
|
612
616
|
readonly name: "LevrTreasuryUpdated";
|
|
613
617
|
readonly type: "event";
|
|
618
|
+
}, {
|
|
619
|
+
readonly anonymous: false;
|
|
620
|
+
readonly inputs: readonly [{
|
|
621
|
+
readonly indexed: false;
|
|
622
|
+
readonly internalType: "uint16";
|
|
623
|
+
readonly name: "oldBps";
|
|
624
|
+
readonly type: "uint16";
|
|
625
|
+
}, {
|
|
626
|
+
readonly indexed: false;
|
|
627
|
+
readonly internalType: "uint16";
|
|
628
|
+
readonly name: "newBps";
|
|
629
|
+
readonly type: "uint16";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "LiquidationBufferBps2WayUpdated";
|
|
632
|
+
readonly type: "event";
|
|
633
|
+
}, {
|
|
634
|
+
readonly anonymous: false;
|
|
635
|
+
readonly inputs: readonly [{
|
|
636
|
+
readonly indexed: false;
|
|
637
|
+
readonly internalType: "uint16";
|
|
638
|
+
readonly name: "oldBps";
|
|
639
|
+
readonly type: "uint16";
|
|
640
|
+
}, {
|
|
641
|
+
readonly indexed: false;
|
|
642
|
+
readonly internalType: "uint16";
|
|
643
|
+
readonly name: "newBps";
|
|
644
|
+
readonly type: "uint16";
|
|
645
|
+
}];
|
|
646
|
+
readonly name: "LiquidationBufferBps3WayUpdated";
|
|
647
|
+
readonly type: "event";
|
|
648
|
+
}, {
|
|
649
|
+
readonly anonymous: false;
|
|
650
|
+
readonly inputs: readonly [{
|
|
651
|
+
readonly indexed: false;
|
|
652
|
+
readonly internalType: "uint16";
|
|
653
|
+
readonly name: "oldBps";
|
|
654
|
+
readonly type: "uint16";
|
|
655
|
+
}, {
|
|
656
|
+
readonly indexed: false;
|
|
657
|
+
readonly internalType: "uint16";
|
|
658
|
+
readonly name: "newBps";
|
|
659
|
+
readonly type: "uint16";
|
|
660
|
+
}];
|
|
661
|
+
readonly name: "LiquidationBufferBpsOverUnderUpdated";
|
|
662
|
+
readonly type: "event";
|
|
614
663
|
}, {
|
|
615
664
|
readonly anonymous: false;
|
|
616
665
|
readonly inputs: readonly [{
|
|
@@ -1559,6 +1608,30 @@ export declare const abis: {
|
|
|
1559
1608
|
}];
|
|
1560
1609
|
readonly stateMutability: "view";
|
|
1561
1610
|
readonly type: "function";
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly inputs: readonly [{
|
|
1613
|
+
readonly internalType: "bool";
|
|
1614
|
+
readonly name: "isThreeWayMarket";
|
|
1615
|
+
readonly type: "bool";
|
|
1616
|
+
}];
|
|
1617
|
+
readonly name: "getLiquidationBufferBps";
|
|
1618
|
+
readonly outputs: readonly [{
|
|
1619
|
+
readonly internalType: "uint16";
|
|
1620
|
+
readonly name: "bufferBps";
|
|
1621
|
+
readonly type: "uint16";
|
|
1622
|
+
}];
|
|
1623
|
+
readonly stateMutability: "view";
|
|
1624
|
+
readonly type: "function";
|
|
1625
|
+
}, {
|
|
1626
|
+
readonly inputs: readonly [];
|
|
1627
|
+
readonly name: "getLiquidationBufferBpsOverUnder";
|
|
1628
|
+
readonly outputs: readonly [{
|
|
1629
|
+
readonly internalType: "uint16";
|
|
1630
|
+
readonly name: "bufferBps";
|
|
1631
|
+
readonly type: "uint16";
|
|
1632
|
+
}];
|
|
1633
|
+
readonly stateMutability: "view";
|
|
1634
|
+
readonly type: "function";
|
|
1562
1635
|
}, {
|
|
1563
1636
|
readonly inputs: readonly [];
|
|
1564
1637
|
readonly name: "getMvpVaultAssets";
|
|
@@ -2697,6 +2770,36 @@ export declare const abis: {
|
|
|
2697
2770
|
readonly outputs: readonly [];
|
|
2698
2771
|
readonly stateMutability: "nonpayable";
|
|
2699
2772
|
readonly type: "function";
|
|
2773
|
+
}, {
|
|
2774
|
+
readonly inputs: readonly [{
|
|
2775
|
+
readonly internalType: "uint16";
|
|
2776
|
+
readonly name: "newBps";
|
|
2777
|
+
readonly type: "uint16";
|
|
2778
|
+
}];
|
|
2779
|
+
readonly name: "updateLiquidationBufferBps2Way";
|
|
2780
|
+
readonly outputs: readonly [];
|
|
2781
|
+
readonly stateMutability: "nonpayable";
|
|
2782
|
+
readonly type: "function";
|
|
2783
|
+
}, {
|
|
2784
|
+
readonly inputs: readonly [{
|
|
2785
|
+
readonly internalType: "uint16";
|
|
2786
|
+
readonly name: "newBps";
|
|
2787
|
+
readonly type: "uint16";
|
|
2788
|
+
}];
|
|
2789
|
+
readonly name: "updateLiquidationBufferBps3Way";
|
|
2790
|
+
readonly outputs: readonly [];
|
|
2791
|
+
readonly stateMutability: "nonpayable";
|
|
2792
|
+
readonly type: "function";
|
|
2793
|
+
}, {
|
|
2794
|
+
readonly inputs: readonly [{
|
|
2795
|
+
readonly internalType: "uint16";
|
|
2796
|
+
readonly name: "newBps";
|
|
2797
|
+
readonly type: "uint16";
|
|
2798
|
+
}];
|
|
2799
|
+
readonly name: "updateLiquidationBufferBpsOverUnder";
|
|
2800
|
+
readonly outputs: readonly [];
|
|
2801
|
+
readonly stateMutability: "nonpayable";
|
|
2802
|
+
readonly type: "function";
|
|
2700
2803
|
}, {
|
|
2701
2804
|
readonly inputs: readonly [{
|
|
2702
2805
|
readonly internalType: "uint16";
|
|
@@ -10943,6 +11046,22 @@ export declare const abis: {
|
|
|
10943
11046
|
}];
|
|
10944
11047
|
readonly name: "LO_BUYER_CANNOT_BE_SELLER";
|
|
10945
11048
|
readonly type: "error";
|
|
11049
|
+
}, {
|
|
11050
|
+
readonly inputs: readonly [{
|
|
11051
|
+
readonly internalType: "bytes32";
|
|
11052
|
+
readonly name: "positionId";
|
|
11053
|
+
readonly type: "bytes32";
|
|
11054
|
+
}, {
|
|
11055
|
+
readonly internalType: "uint256";
|
|
11056
|
+
readonly name: "liqPrice";
|
|
11057
|
+
readonly type: "uint256";
|
|
11058
|
+
}, {
|
|
11059
|
+
readonly internalType: "uint256";
|
|
11060
|
+
readonly name: "marketPrice";
|
|
11061
|
+
readonly type: "uint256";
|
|
11062
|
+
}];
|
|
11063
|
+
readonly name: "LO_BUYER_LIQ_PRICE_EXCEEDS_MARKET_PRICE";
|
|
11064
|
+
readonly type: "error";
|
|
10946
11065
|
}, {
|
|
10947
11066
|
readonly inputs: readonly [{
|
|
10948
11067
|
readonly internalType: "bytes32";
|
|
@@ -11581,170 +11700,170 @@ export declare const abis: {
|
|
|
11581
11700
|
readonly type: "function";
|
|
11582
11701
|
}];
|
|
11583
11702
|
readonly levrOrderbookLens: readonly [{
|
|
11584
|
-
readonly type: "constructor";
|
|
11585
11703
|
readonly inputs: readonly [{
|
|
11704
|
+
readonly internalType: "address";
|
|
11586
11705
|
readonly name: "_levrConfigProvider";
|
|
11587
11706
|
readonly type: "address";
|
|
11588
|
-
readonly internalType: "address";
|
|
11589
11707
|
}];
|
|
11590
11708
|
readonly stateMutability: "nonpayable";
|
|
11709
|
+
readonly type: "constructor";
|
|
11710
|
+
}, {
|
|
11711
|
+
readonly inputs: readonly [];
|
|
11712
|
+
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
11713
|
+
readonly type: "error";
|
|
11714
|
+
}, {
|
|
11715
|
+
readonly inputs: readonly [];
|
|
11716
|
+
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
11717
|
+
readonly type: "error";
|
|
11718
|
+
}, {
|
|
11719
|
+
readonly inputs: readonly [];
|
|
11720
|
+
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
11721
|
+
readonly type: "error";
|
|
11722
|
+
}, {
|
|
11723
|
+
readonly anonymous: false;
|
|
11724
|
+
readonly inputs: readonly [{
|
|
11725
|
+
readonly indexed: true;
|
|
11726
|
+
readonly internalType: "address";
|
|
11727
|
+
readonly name: "prevProvider";
|
|
11728
|
+
readonly type: "address";
|
|
11729
|
+
}, {
|
|
11730
|
+
readonly indexed: true;
|
|
11731
|
+
readonly internalType: "address";
|
|
11732
|
+
readonly name: "newProvider";
|
|
11733
|
+
readonly type: "address";
|
|
11734
|
+
}];
|
|
11735
|
+
readonly name: "LevrConfigProviderUpdated";
|
|
11736
|
+
readonly type: "event";
|
|
11591
11737
|
}, {
|
|
11592
|
-
readonly type: "function";
|
|
11593
|
-
readonly name: "levrConfigProvider";
|
|
11594
11738
|
readonly inputs: readonly [];
|
|
11739
|
+
readonly name: "levrConfigProvider";
|
|
11595
11740
|
readonly outputs: readonly [{
|
|
11741
|
+
readonly internalType: "address";
|
|
11596
11742
|
readonly name: "";
|
|
11597
11743
|
readonly type: "address";
|
|
11598
|
-
readonly internalType: "address";
|
|
11599
11744
|
}];
|
|
11600
11745
|
readonly stateMutability: "view";
|
|
11601
|
-
}, {
|
|
11602
11746
|
readonly type: "function";
|
|
11603
|
-
|
|
11747
|
+
}, {
|
|
11604
11748
|
readonly inputs: readonly [{
|
|
11605
|
-
readonly name: "input";
|
|
11606
|
-
readonly type: "tuple";
|
|
11607
|
-
readonly internalType: "struct AsksToBidInput";
|
|
11608
11749
|
readonly components: readonly [{
|
|
11609
|
-
readonly name: "asks";
|
|
11610
|
-
readonly type: "tuple[]";
|
|
11611
|
-
readonly internalType: "struct Ask[]";
|
|
11612
11750
|
readonly components: readonly [{
|
|
11751
|
+
readonly internalType: "bytes32";
|
|
11613
11752
|
readonly name: "positionId";
|
|
11614
11753
|
readonly type: "bytes32";
|
|
11615
|
-
readonly internalType: "bytes32";
|
|
11616
11754
|
}, {
|
|
11755
|
+
readonly internalType: "uint256";
|
|
11617
11756
|
readonly name: "tradePrice";
|
|
11618
11757
|
readonly type: "uint256";
|
|
11619
|
-
readonly internalType: "uint256";
|
|
11620
11758
|
}, {
|
|
11759
|
+
readonly internalType: "uint256";
|
|
11621
11760
|
readonly name: "tokenAmount";
|
|
11622
11761
|
readonly type: "uint256";
|
|
11623
|
-
readonly internalType: "uint256";
|
|
11624
11762
|
}];
|
|
11763
|
+
readonly internalType: "struct Ask[]";
|
|
11764
|
+
readonly name: "asks";
|
|
11765
|
+
readonly type: "tuple[]";
|
|
11625
11766
|
}, {
|
|
11767
|
+
readonly internalType: "bytes32";
|
|
11626
11768
|
readonly name: "gameMarketId";
|
|
11627
11769
|
readonly type: "bytes32";
|
|
11628
|
-
readonly internalType: "bytes32";
|
|
11629
11770
|
}, {
|
|
11771
|
+
readonly internalType: "enum Side";
|
|
11630
11772
|
readonly name: "side";
|
|
11631
11773
|
readonly type: "uint8";
|
|
11632
|
-
readonly internalType: "enum Side";
|
|
11633
11774
|
}, {
|
|
11775
|
+
readonly internalType: "address";
|
|
11634
11776
|
readonly name: "buyer";
|
|
11635
11777
|
readonly type: "address";
|
|
11636
|
-
readonly internalType: "address";
|
|
11637
11778
|
}, {
|
|
11779
|
+
readonly internalType: "uint8";
|
|
11638
11780
|
readonly name: "leverage";
|
|
11639
11781
|
readonly type: "uint8";
|
|
11640
|
-
readonly internalType: "uint8";
|
|
11641
11782
|
}, {
|
|
11783
|
+
readonly internalType: "bytes16";
|
|
11642
11784
|
readonly name: "levrMarketId";
|
|
11643
11785
|
readonly type: "bytes16";
|
|
11644
|
-
readonly internalType: "bytes16";
|
|
11645
11786
|
}];
|
|
11787
|
+
readonly internalType: "struct AsksToBidInput";
|
|
11788
|
+
readonly name: "input";
|
|
11789
|
+
readonly type: "tuple";
|
|
11646
11790
|
}];
|
|
11791
|
+
readonly name: "previewMatchAsksToBid";
|
|
11647
11792
|
readonly outputs: readonly [];
|
|
11648
11793
|
readonly stateMutability: "nonpayable";
|
|
11649
|
-
}, {
|
|
11650
11794
|
readonly type: "function";
|
|
11651
|
-
|
|
11795
|
+
}, {
|
|
11652
11796
|
readonly inputs: readonly [{
|
|
11653
|
-
readonly name: "input";
|
|
11654
|
-
readonly type: "tuple";
|
|
11655
|
-
readonly internalType: "struct BidsToAskInput";
|
|
11656
11797
|
readonly components: readonly [{
|
|
11657
|
-
readonly name: "bids";
|
|
11658
|
-
readonly type: "tuple[]";
|
|
11659
|
-
readonly internalType: "struct Bid[]";
|
|
11660
11798
|
readonly components: readonly [{
|
|
11799
|
+
readonly internalType: "uint256";
|
|
11661
11800
|
readonly name: "tradePrice";
|
|
11662
11801
|
readonly type: "uint256";
|
|
11663
|
-
readonly internalType: "uint256";
|
|
11664
11802
|
}, {
|
|
11803
|
+
readonly internalType: "uint256";
|
|
11665
11804
|
readonly name: "tokenAmount";
|
|
11666
11805
|
readonly type: "uint256";
|
|
11667
|
-
readonly internalType: "uint256";
|
|
11668
11806
|
}, {
|
|
11807
|
+
readonly internalType: "address";
|
|
11669
11808
|
readonly name: "buyer";
|
|
11670
11809
|
readonly type: "address";
|
|
11671
|
-
readonly internalType: "address";
|
|
11672
11810
|
}, {
|
|
11811
|
+
readonly internalType: "uint8";
|
|
11673
11812
|
readonly name: "leverage";
|
|
11674
11813
|
readonly type: "uint8";
|
|
11675
|
-
readonly internalType: "uint8";
|
|
11676
11814
|
}];
|
|
11815
|
+
readonly internalType: "struct Bid[]";
|
|
11816
|
+
readonly name: "bids";
|
|
11817
|
+
readonly type: "tuple[]";
|
|
11677
11818
|
}, {
|
|
11819
|
+
readonly internalType: "bytes32";
|
|
11678
11820
|
readonly name: "positionId";
|
|
11679
11821
|
readonly type: "bytes32";
|
|
11680
|
-
readonly internalType: "bytes32";
|
|
11681
11822
|
}, {
|
|
11823
|
+
readonly internalType: "bytes32";
|
|
11682
11824
|
readonly name: "gameMarketId";
|
|
11683
11825
|
readonly type: "bytes32";
|
|
11684
|
-
readonly internalType: "bytes32";
|
|
11685
11826
|
}, {
|
|
11827
|
+
readonly internalType: "enum Side";
|
|
11686
11828
|
readonly name: "side";
|
|
11687
11829
|
readonly type: "uint8";
|
|
11688
|
-
readonly internalType: "enum Side";
|
|
11689
11830
|
}, {
|
|
11831
|
+
readonly internalType: "bytes16";
|
|
11690
11832
|
readonly name: "levrMarketId";
|
|
11691
11833
|
readonly type: "bytes16";
|
|
11692
|
-
readonly internalType: "bytes16";
|
|
11693
11834
|
}];
|
|
11835
|
+
readonly internalType: "struct BidsToAskInput";
|
|
11836
|
+
readonly name: "input";
|
|
11837
|
+
readonly type: "tuple";
|
|
11694
11838
|
}];
|
|
11839
|
+
readonly name: "previewMatchBidsToAsk";
|
|
11695
11840
|
readonly outputs: readonly [];
|
|
11696
11841
|
readonly stateMutability: "nonpayable";
|
|
11697
|
-
}, {
|
|
11698
11842
|
readonly type: "function";
|
|
11699
|
-
|
|
11843
|
+
}, {
|
|
11700
11844
|
readonly inputs: readonly [{
|
|
11845
|
+
readonly internalType: "bytes4";
|
|
11701
11846
|
readonly name: "interfaceId";
|
|
11702
11847
|
readonly type: "bytes4";
|
|
11703
|
-
readonly internalType: "bytes4";
|
|
11704
11848
|
}];
|
|
11849
|
+
readonly name: "supportsInterface";
|
|
11705
11850
|
readonly outputs: readonly [{
|
|
11851
|
+
readonly internalType: "bool";
|
|
11706
11852
|
readonly name: "";
|
|
11707
11853
|
readonly type: "bool";
|
|
11708
|
-
readonly internalType: "bool";
|
|
11709
11854
|
}];
|
|
11710
11855
|
readonly stateMutability: "view";
|
|
11711
|
-
}, {
|
|
11712
11856
|
readonly type: "function";
|
|
11713
|
-
|
|
11857
|
+
}, {
|
|
11714
11858
|
readonly inputs: readonly [{
|
|
11859
|
+
readonly internalType: "address";
|
|
11715
11860
|
readonly name: "newLevrConfigProvider";
|
|
11716
11861
|
readonly type: "address";
|
|
11717
|
-
readonly internalType: "address";
|
|
11718
11862
|
}];
|
|
11863
|
+
readonly name: "updateLevrConfigProvider";
|
|
11719
11864
|
readonly outputs: readonly [];
|
|
11720
11865
|
readonly stateMutability: "nonpayable";
|
|
11721
|
-
|
|
11722
|
-
readonly type: "event";
|
|
11723
|
-
readonly name: "LevrConfigProviderUpdated";
|
|
11724
|
-
readonly inputs: readonly [{
|
|
11725
|
-
readonly name: "prevProvider";
|
|
11726
|
-
readonly type: "address";
|
|
11727
|
-
readonly indexed: true;
|
|
11728
|
-
readonly internalType: "address";
|
|
11729
|
-
}, {
|
|
11730
|
-
readonly name: "newProvider";
|
|
11731
|
-
readonly type: "address";
|
|
11732
|
-
readonly indexed: true;
|
|
11733
|
-
readonly internalType: "address";
|
|
11734
|
-
}];
|
|
11735
|
-
readonly anonymous: false;
|
|
11736
|
-
}, {
|
|
11737
|
-
readonly type: "error";
|
|
11738
|
-
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
11739
|
-
readonly inputs: readonly [];
|
|
11740
|
-
}, {
|
|
11741
|
-
readonly type: "error";
|
|
11742
|
-
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
11743
|
-
readonly inputs: readonly [];
|
|
11744
|
-
}, {
|
|
11745
|
-
readonly type: "error";
|
|
11746
|
-
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
11747
|
-
readonly inputs: readonly [];
|
|
11866
|
+
readonly type: "function";
|
|
11748
11867
|
}];
|
|
11749
11868
|
readonly levrOverUnderMarket: readonly [{
|
|
11750
11869
|
readonly inputs: readonly [{
|