@lavarage/sdk 6.6.0 → 6.7.1

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.
@@ -1,248 +1 @@
1
- export const borrowerOperationsAbi = [
2
- { inputs: [], name: "InvalidInitialization", type: "error" },
3
- { inputs: [], name: "NotInitializing", type: "error" },
4
- { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
5
- {
6
- anonymous: false,
7
- inputs: [
8
- {
9
- indexed: true,
10
- internalType: "address",
11
- name: "buyer",
12
- type: "address",
13
- },
14
- {
15
- indexed: true,
16
- internalType: "address",
17
- name: "tokenCollateral",
18
- type: "address",
19
- },
20
- {
21
- indexed: true,
22
- internalType: "uint256",
23
- name: "loanId",
24
- type: "uint256",
25
- },
26
- {
27
- indexed: false,
28
- internalType: "uint256",
29
- name: "openingPositionSize",
30
- type: "uint256",
31
- },
32
- {
33
- indexed: false,
34
- internalType: "uint256",
35
- name: "collateralAmount",
36
- type: "uint256",
37
- },
38
- {
39
- indexed: false,
40
- internalType: "uint256",
41
- name: "initialMargin",
42
- type: "uint256",
43
- },
44
- ],
45
- name: "Buy",
46
- type: "event",
47
- },
48
- {
49
- anonymous: false,
50
- inputs: [
51
- {
52
- indexed: false,
53
- internalType: "uint64",
54
- name: "version",
55
- type: "uint64",
56
- },
57
- ],
58
- name: "Initialized",
59
- type: "event",
60
- },
61
- {
62
- anonymous: false,
63
- inputs: [
64
- {
65
- indexed: true,
66
- internalType: "address",
67
- name: "borrower",
68
- type: "address",
69
- },
70
- {
71
- indexed: true,
72
- internalType: "address",
73
- name: "tokenCollateral",
74
- type: "address",
75
- },
76
- {
77
- indexed: true,
78
- internalType: "uint256",
79
- name: "loanId",
80
- type: "uint256",
81
- },
82
- {
83
- indexed: false,
84
- internalType: "uint256",
85
- name: "closingPositionSize",
86
- type: "uint256",
87
- },
88
- {
89
- indexed: false,
90
- internalType: "uint256",
91
- name: "liquidatorRepaidAmount",
92
- type: "uint256",
93
- },
94
- ],
95
- name: "Liquidation",
96
- type: "event",
97
- },
98
- {
99
- anonymous: false,
100
- inputs: [
101
- {
102
- indexed: true,
103
- internalType: "address",
104
- name: "buyer",
105
- type: "address",
106
- },
107
- {
108
- indexed: true,
109
- internalType: "address",
110
- name: "tokenCollateral",
111
- type: "address",
112
- },
113
- {
114
- indexed: true,
115
- internalType: "uint256",
116
- name: "loanId",
117
- type: "uint256",
118
- },
119
- {
120
- indexed: false,
121
- internalType: "uint256",
122
- name: "closingPositionSize",
123
- type: "uint256",
124
- },
125
- {
126
- indexed: false,
127
- internalType: "uint256",
128
- name: "profit",
129
- type: "uint256",
130
- },
131
- ],
132
- name: "Sell",
133
- type: "event",
134
- },
135
- {
136
- inputs: [],
137
- name: "admin",
138
- outputs: [{ internalType: "address", name: "", type: "address" }],
139
- stateMutability: "view",
140
- type: "function",
141
- },
142
- {
143
- inputs: [
144
- { internalType: "bytes", name: "buyingCode", type: "bytes" },
145
- {
146
- internalType: "contract IERC20",
147
- name: "tokenCollateral",
148
- type: "address",
149
- },
150
- { internalType: "uint256", name: "borrowAmount", type: "uint256" },
151
- {
152
- internalType: "contract TokenHolder",
153
- name: "tokenHolder",
154
- type: "address",
155
- },
156
- { internalType: "address", name: "inchRouter", type: "address" },
157
- {
158
- internalType: "address",
159
- name: "integratorFeeAddress",
160
- type: "address",
161
- },
162
- ],
163
- name: "buy",
164
- outputs: [],
165
- stateMutability: "payable",
166
- type: "function",
167
- },
168
- {
169
- inputs: [
170
- { internalType: "contract IERC20", name: "_weth", type: "address" },
171
- ],
172
- name: "initialize",
173
- outputs: [],
174
- stateMutability: "nonpayable",
175
- type: "function",
176
- },
177
- {
178
- inputs: [
179
- { internalType: "uint256", name: "loanId", type: "uint256" },
180
- {
181
- internalType: "contract TokenHolder",
182
- name: "tokenHolder",
183
- type: "address",
184
- },
185
- { internalType: "uint256", name: "closingPositionSize", type: "uint256" },
186
- ],
187
- name: "liquidate",
188
- outputs: [],
189
- stateMutability: "nonpayable",
190
- type: "function",
191
- },
192
- {
193
- inputs: [],
194
- name: "openingFee",
195
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
196
- stateMutability: "view",
197
- type: "function",
198
- },
199
- {
200
- inputs: [],
201
- name: "profitFee",
202
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
203
- stateMutability: "view",
204
- type: "function",
205
- },
206
- {
207
- inputs: [
208
- { internalType: "uint256", name: "loanId", type: "uint256" },
209
- { internalType: "bytes", name: "sellingCode", type: "bytes" },
210
- {
211
- internalType: "contract TokenHolder",
212
- name: "tokenHolder",
213
- type: "address",
214
- },
215
- { internalType: "address", name: "inchRouter", type: "address" },
216
- {
217
- internalType: "address",
218
- name: "integratorFeeAddress",
219
- type: "address",
220
- },
221
- ],
222
- name: "sell",
223
- outputs: [],
224
- stateMutability: "nonpayable",
225
- type: "function",
226
- },
227
- {
228
- inputs: [{ internalType: "address", name: "_admin", type: "address" }],
229
- name: "setAdmin",
230
- outputs: [],
231
- stateMutability: "nonpayable",
232
- type: "function",
233
- },
234
- {
235
- inputs: [{ internalType: "uint256", name: "_openingFee", type: "uint256" }],
236
- name: "setOpeningFee",
237
- outputs: [],
238
- stateMutability: "nonpayable",
239
- type: "function",
240
- },
241
- {
242
- inputs: [{ internalType: "uint256", name: "_profitFee", type: "uint256" }],
243
- name: "setProfitFee",
244
- outputs: [],
245
- stateMutability: "nonpayable",
246
- type: "function",
247
- },
248
- ];
1
+ export const borrowerOperationsAbi = [{"type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"buy","inputs":[{"name":"buyingCode","type":"bytes","internalType":"bytes"},{"name":"tokenCollateral","type":"address","internalType":"contract IERC20"},{"name":"borrowAmount","type":"uint256","internalType":"uint256"},{"name":"tokenHolder","type":"address","internalType":"contract TokenHolder"},{"name":"inchRouter","type":"address","internalType":"address"},{"name":"integratorFeeAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"initialize","inputs":[{"name":"_weth","type":"address","internalType":"contract IERC20"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"liquidate","inputs":[{"name":"loanId","type":"uint256","internalType":"uint256"},{"name":"tokenHolder","type":"address","internalType":"contract TokenHolder"},{"name":"closingPositionSize","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"loanRecords","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"id","type":"uint256","internalType":"uint256"},{"name":"tokenHolder","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"openingFee","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"profitFee","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"sell","inputs":[{"name":"loanId","type":"uint256","internalType":"uint256"},{"name":"sellingCode","type":"bytes","internalType":"bytes"},{"name":"tokenHolder","type":"address","internalType":"contract TokenHolder"},{"name":"inchRouter","type":"address","internalType":"address"},{"name":"integratorFeeAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setAdmin","inputs":[{"name":"_admin","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setOpeningFee","inputs":[{"name":"_openingFee","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setProfitFee","inputs":[{"name":"_profitFee","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"Buy","inputs":[{"name":"buyer","type":"address","indexed":true,"internalType":"address"},{"name":"tokenHolder","type":"address","indexed":true,"internalType":"address"},{"name":"tokenCollateral","type":"address","indexed":true,"internalType":"address"},{"name":"loanId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"openingPositionSize","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"collateralAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"initialMargin","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"type":"event","name":"Liquidation","inputs":[{"name":"borrower","type":"address","indexed":true,"internalType":"address"},{"name":"tokenHolder","type":"address","indexed":true,"internalType":"address"},{"name":"tokenCollateral","type":"address","indexed":true,"internalType":"address"},{"name":"loanId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"closingPositionSize","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"liquidatorRepaidAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Sell","inputs":[{"name":"buyer","type":"address","indexed":true,"internalType":"address"},{"name":"tokenHolder","type":"address","indexed":true,"internalType":"address"},{"name":"tokenCollateral","type":"address","indexed":true,"internalType":"address"},{"name":"loanId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"closingPositionSize","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"profit","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"InvalidInitialization","inputs":[]},{"type":"error","name":"NotInitializing","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]}]