@bouncetech/contracts 1.0.4 → 1.1.0

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.
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.factoryAbi = void 0;
4
+ exports.factoryAbi = [
5
+ {
6
+ type: "constructor",
7
+ inputs: [
8
+ {
9
+ name: "globalStorage_",
10
+ type: "address",
11
+ internalType: "address",
12
+ },
13
+ ],
14
+ stateMutability: "nonpayable",
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "createLt",
19
+ inputs: [
20
+ {
21
+ name: "marketId_",
22
+ type: "uint32",
23
+ internalType: "uint32",
24
+ },
25
+ {
26
+ name: "targetLeverage_",
27
+ type: "uint256",
28
+ internalType: "uint256",
29
+ },
30
+ {
31
+ name: "isLong_",
32
+ type: "bool",
33
+ internalType: "bool",
34
+ },
35
+ ],
36
+ outputs: [
37
+ {
38
+ name: "",
39
+ type: "address",
40
+ internalType: "address",
41
+ },
42
+ ],
43
+ stateMutability: "nonpayable",
44
+ },
45
+ {
46
+ type: "function",
47
+ name: "lt",
48
+ inputs: [
49
+ {
50
+ name: "",
51
+ type: "uint32",
52
+ internalType: "uint32",
53
+ },
54
+ {
55
+ name: "",
56
+ type: "uint256",
57
+ internalType: "uint256",
58
+ },
59
+ {
60
+ name: "",
61
+ type: "bool",
62
+ internalType: "bool",
63
+ },
64
+ ],
65
+ outputs: [
66
+ {
67
+ name: "",
68
+ type: "address",
69
+ internalType: "address",
70
+ },
71
+ ],
72
+ stateMutability: "view",
73
+ },
74
+ {
75
+ type: "function",
76
+ name: "ltExists",
77
+ inputs: [
78
+ {
79
+ name: "",
80
+ type: "address",
81
+ internalType: "address",
82
+ },
83
+ ],
84
+ outputs: [
85
+ {
86
+ name: "",
87
+ type: "bool",
88
+ internalType: "bool",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ },
93
+ {
94
+ type: "function",
95
+ name: "lts",
96
+ inputs: [],
97
+ outputs: [
98
+ {
99
+ name: "",
100
+ type: "address[]",
101
+ internalType: "address[]",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ },
106
+ {
107
+ type: "function",
108
+ name: "redeployLt",
109
+ inputs: [
110
+ {
111
+ name: "ltAddress_",
112
+ type: "address",
113
+ internalType: "address",
114
+ },
115
+ ],
116
+ outputs: [],
117
+ stateMutability: "nonpayable",
118
+ },
119
+ {
120
+ type: "event",
121
+ name: "CreateLeveragedToken",
122
+ inputs: [
123
+ {
124
+ name: "creator",
125
+ type: "address",
126
+ indexed: true,
127
+ internalType: "address",
128
+ },
129
+ {
130
+ name: "token",
131
+ type: "address",
132
+ indexed: true,
133
+ internalType: "address",
134
+ },
135
+ {
136
+ name: "marketId",
137
+ type: "uint32",
138
+ indexed: true,
139
+ internalType: "uint32",
140
+ },
141
+ {
142
+ name: "targetLeverage",
143
+ type: "uint256",
144
+ indexed: false,
145
+ internalType: "uint256",
146
+ },
147
+ {
148
+ name: "isLong",
149
+ type: "bool",
150
+ indexed: false,
151
+ internalType: "bool",
152
+ },
153
+ ],
154
+ anonymous: false,
155
+ },
156
+ {
157
+ type: "error",
158
+ name: "AlreadyCreated",
159
+ inputs: [],
160
+ },
161
+ {
162
+ type: "error",
163
+ name: "InvalidLeverage",
164
+ inputs: [],
165
+ },
166
+ {
167
+ type: "error",
168
+ name: "NotLeveragedToken",
169
+ inputs: [],
170
+ },
171
+ {
172
+ type: "error",
173
+ name: "NotOwner",
174
+ inputs: [],
175
+ },
176
+ {
177
+ type: "error",
178
+ name: "PrecompileLib__PerpAssetInfoPrecompileFailed",
179
+ inputs: [],
180
+ },
181
+ {
182
+ type: "error",
183
+ name: "SafeERC20FailedOperation",
184
+ inputs: [
185
+ {
186
+ name: "token",
187
+ type: "address",
188
+ internalType: "address",
189
+ },
190
+ ],
191
+ },
192
+ {
193
+ type: "error",
194
+ name: "StillHasMargin",
195
+ inputs: [],
196
+ },
197
+ ];