@levrbet/shared 0.1.130 → 0.1.132
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/config/urls.d.ts +0 -32
- package/dist/core/config/urls.js +0 -32
- package/dist/core/config/urls.js.map +1 -1
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +2125 -1913
- package/dist/core/contracts/abis/LevrConfigProvider.js +1165 -2010
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrFeeCollector.d.ts +259 -0
- package/dist/core/contracts/abis/LevrFeeCollector.js +143 -0
- package/dist/core/contracts/abis/LevrFeeCollector.js.map +1 -0
- package/dist/core/contracts/abis/{LevrBaseMarket.d.ts → LevrFulltimeMarket.d.ts} +726 -685
- package/dist/core/contracts/abis/LevrFulltimeMarket.js +462 -0
- package/dist/core/contracts/abis/LevrFulltimeMarket.js.map +1 -0
- package/dist/core/contracts/abis/LevrFundManager.d.ts +369 -50
- package/dist/core/contracts/abis/LevrFundManager.js +180 -1
- package/dist/core/contracts/abis/LevrFundManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrLiquidationEngine.d.ts +153 -163
- package/dist/core/contracts/abis/LevrLiquidationEngine.js +81 -182
- package/dist/core/contracts/abis/LevrLiquidationEngine.js.map +1 -1
- package/dist/core/contracts/abis/LevrManager.d.ts +987 -947
- package/dist/core/contracts/abis/LevrManager.js +453 -835
- package/dist/core/contracts/abis/LevrManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketFeed.d.ts +516 -516
- package/dist/core/contracts/abis/LevrMarketFeed.js +272 -620
- package/dist/core/contracts/abis/LevrMarketFeed.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketMaker.d.ts +175 -0
- package/dist/core/contracts/abis/LevrMarketMaker.js +108 -0
- package/dist/core/contracts/abis/LevrMarketMaker.js.map +1 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.d.ts +682 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.js +323 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.js.map +1 -0
- package/dist/core/contracts/abis/LevrMarketRouter.d.ts +289 -159
- package/dist/core/contracts/abis/LevrMarketRouter.js +133 -188
- package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrMvpDepository.d.ts +766 -0
- package/dist/core/contracts/abis/LevrMvpDepository.js +396 -0
- package/dist/core/contracts/abis/LevrMvpDepository.js.map +1 -0
- package/dist/core/contracts/abis/LevrMvpRouter.d.ts +414 -160
- package/dist/core/contracts/abis/LevrMvpRouter.js +194 -227
- package/dist/core/contracts/abis/LevrMvpRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrMvpStaker.d.ts +746 -0
- package/dist/core/contracts/abis/LevrMvpStaker.js +386 -0
- package/dist/core/contracts/abis/LevrMvpStaker.js.map +1 -0
- package/dist/core/contracts/abis/LevrMvpToken.d.ts +341 -0
- package/dist/core/contracts/abis/LevrMvpToken.js +183 -0
- package/dist/core/contracts/abis/LevrMvpToken.js.map +1 -0
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +551 -356
- package/dist/core/contracts/abis/LevrOrderbook.js +256 -409
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbookLens.d.ts +167 -0
- package/dist/core/contracts/abis/LevrOrderbookLens.js +103 -0
- package/dist/core/contracts/abis/LevrOrderbookLens.js.map +1 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.d.ts +1054 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.js +463 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.js.map +1 -0
- package/dist/core/contracts/abis/LevrPythFeed.d.ts +225 -0
- package/dist/core/contracts/abis/LevrPythFeed.js +131 -0
- package/dist/core/contracts/abis/LevrPythFeed.js.map +1 -0
- package/dist/core/contracts/abis/LevrUtil.d.ts +485 -0
- package/dist/core/contracts/abis/LevrUtil.js +226 -0
- package/dist/core/contracts/abis/LevrUtil.js.map +1 -0
- package/dist/core/contracts/abis/index.d.ts +11663 -4619
- package/dist/core/contracts/abis/index.js +28 -10
- package/dist/core/contracts/abis/index.js.map +1 -1
- package/dist/core/contracts/addresses.d.ts +104 -80
- package/dist/core/contracts/addresses.js +88 -64
- package/dist/core/contracts/addresses.js.map +1 -1
- package/dist/core/contracts/chains.js +0 -2
- package/dist/core/contracts/chains.js.map +1 -1
- package/dist/core/contracts/clients/publicClients.js +1 -5
- package/dist/core/contracts/clients/publicClients.js.map +1 -1
- package/dist/core/contracts/constants.d.ts +2 -3
- package/dist/core/contracts/constants.js +3 -5
- package/dist/core/contracts/constants.js.map +1 -1
- package/dist/core/contracts/instances.d.ts +0 -16
- package/dist/core/contracts/instances.js +0 -36
- package/dist/core/contracts/instances.js.map +1 -1
- package/dist/core/types/blockchain/chains.types.d.ts +0 -2
- package/dist/core/types/blockchain/chains.types.js +0 -2
- package/dist/core/types/blockchain/chains.types.js.map +1 -1
- package/dist/core/types/blockchain/oz.relayer.types.d.ts +2 -1
- package/dist/core/types/blockchain/oz.relayer.types.js +1 -0
- package/dist/core/types/blockchain/oz.relayer.types.js.map +1 -1
- package/dist/core/types/oracle/market/markets.types.d.ts +0 -1
- package/dist/core/types/oracle/market/markets.types.js +0 -1
- package/dist/core/types/oracle/market/markets.types.js.map +1 -1
- package/dist/core/types/oracle/market/odds.types.d.ts +6 -10
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/hooks/contracts/useContracts.d.ts +95 -41
- package/dist/react/hooks/contracts/useContracts.js +15 -1
- package/dist/react/hooks/contracts/useContracts.js.map +1 -1
- package/dist/server/config/urls.d.ts +0 -32
- package/dist/server/contracts/clients/ozRelayerService.js +1 -0
- package/dist/server/contracts/clients/ozRelayerService.js.map +1 -1
- package/dist/server/contracts/instances.d.ts +1 -16
- package/dist/server/contracts/instances.js +0 -22
- package/dist/server/contracts/instances.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/contracts/abis/LevrBaseMarket.js +0 -976
- package/dist/core/contracts/abis/LevrBaseMarket.js.map +0 -1
- package/dist/core/contracts/abis/Storage.d.ts +0 -34
- package/dist/core/contracts/abis/Storage.js +0 -47
- package/dist/core/contracts/abis/Storage.js.map +0 -1
- package/dist/server/test-relayers.d.ts +0 -1
- package/dist/server/test-relayers.js +0 -17
- package/dist/server/test-relayers.js.map +0 -1
|
@@ -2,261 +2,206 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = [
|
|
4
4
|
{
|
|
5
|
+
inputs: [{ internalType: "address", name: "_levrConfigProvider", type: "address" }],
|
|
6
|
+
stateMutability: "nonpayable",
|
|
5
7
|
type: "constructor",
|
|
8
|
+
},
|
|
9
|
+
{ inputs: [], name: "LB_CONFIG_INVALID_INTERFACE", type: "error" },
|
|
10
|
+
{ inputs: [], name: "LB_CONFIG_PROVIDER_NOT_CONTRACT", type: "error" },
|
|
11
|
+
{ inputs: [], name: "LB_NOT_LEVR_ADMIN", type: "error" },
|
|
12
|
+
{ inputs: [], name: "LMR_ARRAY_INPUT_LENGTH_MISMATCH", type: "error" },
|
|
13
|
+
{
|
|
14
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
15
|
+
name: "LMR_BAD_MARKET_DATA_FOR_GAME",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{ inputs: [], name: "LMR_INVALID_LEVR_MARKET_ID", type: "error" },
|
|
19
|
+
{ inputs: [], name: "LMR_INVALID_USER", type: "error" },
|
|
20
|
+
{ inputs: [], name: "LMR_NOT_POSITION_HANDLER", type: "error" },
|
|
21
|
+
{ inputs: [], name: "LMR_NOT_POSITION_LIQUIDATOR", type: "error" },
|
|
22
|
+
{ inputs: [], name: "LMR_NO_POSITIONS_TO_LIQUIDATE", type: "error" },
|
|
23
|
+
{ inputs: [], name: "LMR_NO_POSITIONS_TO_OPEN", type: "error" },
|
|
24
|
+
{ inputs: [], name: "LMR_NO_POSITIONS_TO_REDEEM", type: "error" },
|
|
25
|
+
{
|
|
26
|
+
anonymous: false,
|
|
6
27
|
inputs: [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
type: "address",
|
|
10
|
-
internalType: "address",
|
|
11
|
-
},
|
|
28
|
+
{ indexed: true, internalType: "address", name: "prevProvider", type: "address" },
|
|
29
|
+
{ indexed: true, internalType: "address", name: "newProvider", type: "address" },
|
|
12
30
|
],
|
|
13
|
-
|
|
31
|
+
name: "LevrConfigProviderUpdated",
|
|
32
|
+
type: "event",
|
|
14
33
|
},
|
|
15
34
|
{
|
|
16
|
-
type: "function",
|
|
17
|
-
name: "levrConfigProvider",
|
|
18
35
|
inputs: [],
|
|
19
|
-
|
|
36
|
+
name: "levrConfigProvider",
|
|
37
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
20
38
|
stateMutability: "view",
|
|
39
|
+
type: "function",
|
|
21
40
|
},
|
|
22
41
|
{
|
|
23
|
-
type: "function",
|
|
24
|
-
name: "openPosition",
|
|
25
42
|
inputs: [
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
type: "bytes16",
|
|
34
|
-
internalType: "bytes16",
|
|
35
|
-
},
|
|
36
|
-
{ name: "assetAmount", type: "uint256", internalType: "uint256" },
|
|
37
|
-
{
|
|
38
|
-
name: "minTokenPrice",
|
|
39
|
-
type: "uint256",
|
|
40
|
-
internalType: "uint256",
|
|
41
|
-
},
|
|
42
|
-
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
43
|
-
{ name: "leverage", type: "uint8", internalType: "uint8" },
|
|
44
|
-
{
|
|
45
|
-
name: "whitelistProof",
|
|
46
|
-
type: "bytes32[]",
|
|
47
|
-
internalType: "bytes32[]",
|
|
48
|
-
},
|
|
43
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
44
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
45
|
+
{ internalType: "uint256", name: "assetAmount", type: "uint256" },
|
|
46
|
+
{ internalType: "uint256", name: "minTokenPrice", type: "uint256" },
|
|
47
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
48
|
+
{ internalType: "uint8", name: "leverage", type: "uint8" },
|
|
49
|
+
{ internalType: "bytes32[]", name: "whitelistProof", type: "bytes32[]" },
|
|
49
50
|
],
|
|
51
|
+
name: "openPosition",
|
|
50
52
|
outputs: [],
|
|
51
53
|
stateMutability: "nonpayable",
|
|
54
|
+
type: "function",
|
|
52
55
|
},
|
|
53
56
|
{
|
|
54
|
-
type: "function",
|
|
55
|
-
name: "openPositions",
|
|
56
57
|
inputs: [
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
internalType: "bytes16[]",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: "assetAmounts",
|
|
69
|
-
type: "uint256[]",
|
|
70
|
-
internalType: "uint256[]",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "minTokenPrices",
|
|
74
|
-
type: "uint256[]",
|
|
75
|
-
internalType: "uint256[]",
|
|
76
|
-
},
|
|
77
|
-
{ name: "sides", type: "uint8[]", internalType: "enum Side[]" },
|
|
78
|
-
{ name: "leverages", type: "uint8[]", internalType: "uint8[]" },
|
|
79
|
-
{
|
|
80
|
-
name: "whitelistProofs",
|
|
81
|
-
type: "bytes32[][]",
|
|
82
|
-
internalType: "bytes32[][]",
|
|
83
|
-
},
|
|
58
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
59
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
60
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
61
|
+
{ internalType: "uint256", name: "assetAmount", type: "uint256" },
|
|
62
|
+
{ internalType: "uint256", name: "minTokenPrice", type: "uint256" },
|
|
63
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
64
|
+
{ internalType: "uint8", name: "leverage", type: "uint8" },
|
|
65
|
+
{ internalType: "bytes32[]", name: "whitelistProof", type: "bytes32[]" },
|
|
84
66
|
],
|
|
67
|
+
name: "openPositionFor",
|
|
85
68
|
outputs: [],
|
|
86
69
|
stateMutability: "nonpayable",
|
|
70
|
+
type: "function",
|
|
87
71
|
},
|
|
88
72
|
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{ internalType: "bytes32[]", name: "gameMarketIds", type: "bytes32[]" },
|
|
75
|
+
{ internalType: "bytes16[]", name: "levrMarketIds", type: "bytes16[]" },
|
|
76
|
+
{ internalType: "uint256[]", name: "assetAmounts", type: "uint256[]" },
|
|
77
|
+
{ internalType: "uint256[]", name: "minTokensOut", type: "uint256[]" },
|
|
78
|
+
{ internalType: "enum Side[]", name: "sides", type: "uint8[]" },
|
|
79
|
+
{ internalType: "uint8[]", name: "leverages", type: "uint8[]" },
|
|
80
|
+
{ internalType: "bytes32[][]", name: "whitelistProofs", type: "bytes32[][]" },
|
|
81
|
+
],
|
|
82
|
+
name: "openPositions",
|
|
83
|
+
outputs: [],
|
|
84
|
+
stateMutability: "nonpayable",
|
|
89
85
|
type: "function",
|
|
90
|
-
name: "paused",
|
|
91
|
-
inputs: [],
|
|
92
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
93
|
-
stateMutability: "view",
|
|
94
86
|
},
|
|
95
87
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
inputs: [
|
|
89
|
+
{ internalType: "bytes32[]", name: "gameMarketIds", type: "bytes32[]" },
|
|
90
|
+
{ internalType: "bytes16[]", name: "levrMarketIds", type: "bytes16[]" },
|
|
91
|
+
{ internalType: "uint256[]", name: "assetAmounts", type: "uint256[]" },
|
|
92
|
+
{ internalType: "uint256[]", name: "minTokensOut", type: "uint256[]" },
|
|
93
|
+
{ internalType: "enum Side[]", name: "sides", type: "uint8[]" },
|
|
94
|
+
{ internalType: "uint8[]", name: "leverages", type: "uint8[]" },
|
|
95
|
+
{ internalType: "bytes32[][]", name: "whitelistProofs", type: "bytes32[][]" },
|
|
96
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
97
|
+
],
|
|
98
|
+
name: "openPositionsFor",
|
|
99
99
|
outputs: [],
|
|
100
100
|
stateMutability: "nonpayable",
|
|
101
|
+
type: "function",
|
|
101
102
|
},
|
|
102
103
|
{
|
|
103
|
-
type: "function",
|
|
104
|
-
name: "redeemAllPositionsInMarket",
|
|
105
104
|
inputs: [
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
{
|
|
105
|
+
{ internalType: "address[]", name: "users", type: "address[]" },
|
|
106
|
+
{ internalType: "bytes32[]", name: "gameMarketIds", type: "bytes32[]" },
|
|
107
|
+
{ internalType: "bytes16[]", name: "levrMarketIds", type: "bytes16[]" },
|
|
108
|
+
{ internalType: "uint256[]", name: "assetAmounts", type: "uint256[]" },
|
|
109
|
+
{ internalType: "uint256[]", name: "minTokensOut", type: "uint256[]" },
|
|
110
|
+
{ internalType: "enum Side[]", name: "sides", type: "uint8[]" },
|
|
111
|
+
{ internalType: "uint8[]", name: "leverages", type: "uint8[]" },
|
|
112
|
+
{ internalType: "bytes32[][]", name: "whitelistProofs", type: "bytes32[][]" },
|
|
112
113
|
],
|
|
114
|
+
name: "previewOpenPosition",
|
|
113
115
|
outputs: [],
|
|
114
116
|
stateMutability: "nonpayable",
|
|
117
|
+
type: "function",
|
|
115
118
|
},
|
|
116
119
|
{
|
|
117
|
-
type: "function",
|
|
118
|
-
name: "redeemPosition",
|
|
119
120
|
inputs: [
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "levrMarketId",
|
|
127
|
-
type: "bytes16",
|
|
128
|
-
internalType: "bytes16",
|
|
129
|
-
},
|
|
130
|
-
{ name: "positionId", type: "bytes32", internalType: "bytes32" },
|
|
121
|
+
{ internalType: "address[]", name: "users", type: "address[]" },
|
|
122
|
+
{ internalType: "bytes32[]", name: "gameMarketIds", type: "bytes32[]" },
|
|
123
|
+
{ internalType: "bytes16[]", name: "levrMarketIds", type: "bytes16[]" },
|
|
124
|
+
{ internalType: "bytes32[]", name: "positionIds", type: "bytes32[]" },
|
|
131
125
|
],
|
|
126
|
+
name: "previewRedeemPositions",
|
|
132
127
|
outputs: [],
|
|
133
128
|
stateMutability: "nonpayable",
|
|
129
|
+
type: "function",
|
|
134
130
|
},
|
|
135
131
|
{
|
|
132
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
133
|
+
name: "redeemAllPositionsInGame",
|
|
134
|
+
outputs: [],
|
|
135
|
+
stateMutability: "nonpayable",
|
|
136
136
|
type: "function",
|
|
137
|
-
name: "supportsInterface",
|
|
138
|
-
inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
|
|
139
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
140
|
-
stateMutability: "view",
|
|
141
137
|
},
|
|
142
138
|
{
|
|
143
|
-
type: "function",
|
|
144
|
-
name: "updateLevrConfigProvider",
|
|
145
139
|
inputs: [
|
|
146
|
-
{
|
|
147
|
-
|
|
148
|
-
type: "address",
|
|
149
|
-
internalType: "address",
|
|
150
|
-
},
|
|
140
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
141
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
151
142
|
],
|
|
143
|
+
name: "redeemAllPositionsInGameFor",
|
|
152
144
|
outputs: [],
|
|
153
145
|
stateMutability: "nonpayable",
|
|
146
|
+
type: "function",
|
|
154
147
|
},
|
|
155
148
|
{
|
|
156
|
-
type: "event",
|
|
157
|
-
name: "LevrConfigProviderUpdated",
|
|
158
149
|
inputs: [
|
|
159
|
-
{
|
|
160
|
-
|
|
161
|
-
type: "address",
|
|
162
|
-
indexed: true,
|
|
163
|
-
internalType: "address",
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: "newProvider",
|
|
167
|
-
type: "address",
|
|
168
|
-
indexed: true,
|
|
169
|
-
internalType: "address",
|
|
170
|
-
},
|
|
150
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
151
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
171
152
|
],
|
|
172
|
-
|
|
153
|
+
name: "redeemAllPositionsInMarket",
|
|
154
|
+
outputs: [],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
type: "function",
|
|
173
157
|
},
|
|
174
158
|
{
|
|
175
|
-
type: "event",
|
|
176
|
-
name: "LiquidationFailed",
|
|
177
159
|
inputs: [
|
|
178
|
-
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
indexed: true,
|
|
182
|
-
internalType: "bytes32",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
name: "positionId",
|
|
186
|
-
type: "bytes32",
|
|
187
|
-
indexed: true,
|
|
188
|
-
internalType: "bytes32",
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name: "liquidator",
|
|
192
|
-
type: "address",
|
|
193
|
-
indexed: true,
|
|
194
|
-
internalType: "address",
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: "levrMarketId",
|
|
198
|
-
type: "bytes16",
|
|
199
|
-
indexed: false,
|
|
200
|
-
internalType: "bytes16",
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: "reason",
|
|
204
|
-
type: "bytes",
|
|
205
|
-
indexed: false,
|
|
206
|
-
internalType: "bytes",
|
|
207
|
-
},
|
|
160
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
161
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
162
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
208
163
|
],
|
|
209
|
-
|
|
164
|
+
name: "redeemAllPositionsInMarketFor",
|
|
165
|
+
outputs: [],
|
|
166
|
+
stateMutability: "nonpayable",
|
|
167
|
+
type: "function",
|
|
210
168
|
},
|
|
211
169
|
{
|
|
212
|
-
type: "event",
|
|
213
|
-
name: "Paused",
|
|
214
170
|
inputs: [
|
|
215
|
-
{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
indexed: false,
|
|
219
|
-
internalType: "address",
|
|
220
|
-
},
|
|
171
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
172
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
173
|
+
{ internalType: "bytes32", name: "positionId", type: "bytes32" },
|
|
221
174
|
],
|
|
222
|
-
|
|
175
|
+
name: "redeemPosition",
|
|
176
|
+
outputs: [],
|
|
177
|
+
stateMutability: "nonpayable",
|
|
178
|
+
type: "function",
|
|
223
179
|
},
|
|
224
180
|
{
|
|
225
|
-
type: "event",
|
|
226
|
-
name: "Unpaused",
|
|
227
181
|
inputs: [
|
|
228
|
-
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
internalType: "address",
|
|
233
|
-
},
|
|
182
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
183
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
184
|
+
{ internalType: "bytes32", name: "positionId", type: "bytes32" },
|
|
185
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
234
186
|
],
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
{ type: "error", name: "LB_CONFIG_INVALID_INTERFACE", inputs: [] },
|
|
240
|
-
{
|
|
241
|
-
type: "error",
|
|
242
|
-
name: "LB_CONFIG_PROVIDER_NOT_CONTRACT",
|
|
243
|
-
inputs: [],
|
|
187
|
+
name: "redeemPositionFor",
|
|
188
|
+
outputs: [],
|
|
189
|
+
stateMutability: "nonpayable",
|
|
190
|
+
type: "function",
|
|
244
191
|
},
|
|
245
|
-
{ type: "error", name: "LB_NOT_LEVR_ADMIN", inputs: [] },
|
|
246
192
|
{
|
|
247
|
-
type: "
|
|
248
|
-
name: "
|
|
249
|
-
|
|
193
|
+
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
|
|
194
|
+
name: "supportsInterface",
|
|
195
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
196
|
+
stateMutability: "view",
|
|
197
|
+
type: "function",
|
|
250
198
|
},
|
|
251
199
|
{
|
|
252
|
-
type: "
|
|
253
|
-
name: "
|
|
254
|
-
|
|
200
|
+
inputs: [{ internalType: "address", name: "newLevrConfigProvider", type: "address" }],
|
|
201
|
+
name: "updateLevrConfigProvider",
|
|
202
|
+
outputs: [],
|
|
203
|
+
stateMutability: "nonpayable",
|
|
204
|
+
type: "function",
|
|
255
205
|
},
|
|
256
|
-
{ type: "error", name: "LMR_INVALID_LEVR_MARKET_ID", inputs: [] },
|
|
257
|
-
{ type: "error", name: "LMR_NOT_POSITION_LIQUIDATOR", inputs: [] },
|
|
258
|
-
{ type: "error", name: "LMR_NO_POSITIONS_TO_LIQUIDATE", inputs: [] },
|
|
259
|
-
{ type: "error", name: "LMR_NO_POSITIONS_TO_OPEN", inputs: [] },
|
|
260
|
-
{ type: "error", name: "LMR_NO_POSITIONS_TO_REDEEM", inputs: [] },
|
|
261
206
|
];
|
|
262
207
|
//# sourceMappingURL=LevrMarketRouter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LevrMarketRouter.js","sourceRoot":"","sources":["../../../../src/core/contracts/abis/LevrMarketRouter.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;QACI,
|
|
1
|
+
{"version":3,"file":"LevrMarketRouter.js","sourceRoot":"","sources":["../../../../src/core/contracts/abis/LevrMarketRouter.ts"],"names":[],"mapp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