@dhedge/v2-sdk 1.9.7 → 1.9.9

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,364 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "owner",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "ethOracle",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "oracleModule",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "assetToPayWith",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "profitMarginUSD",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "profitMarginPercent",
32
+ "type": "uint256"
33
+ },
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "keeperFeeUpperBound",
37
+ "type": "uint256"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "keeperFeeLowerBound",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "gasUnitsL1",
47
+ "type": "uint256"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "gasUnitsL2",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "internalType": "uint256",
56
+ "name": "stalenessPeriod",
57
+ "type": "uint256"
58
+ }
59
+ ],
60
+ "stateMutability": "nonpayable",
61
+ "type": "constructor"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "ETHPriceInvalid",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "ETHPriceStale",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [
75
+ {
76
+ "internalType": "uint256",
77
+ "name": "fee",
78
+ "type": "uint256"
79
+ }
80
+ ],
81
+ "name": "InvalidFee",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "MathOverflowedMulDiv",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [
91
+ {
92
+ "internalType": "address",
93
+ "name": "owner",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "OwnableInvalidOwner",
98
+ "type": "error"
99
+ },
100
+ {
101
+ "inputs": [
102
+ {
103
+ "internalType": "address",
104
+ "name": "account",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "name": "OwnableUnauthorizedAccount",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
113
+ {
114
+ "internalType": "enum FlatcoinErrors.PriceSource",
115
+ "name": "priceSource",
116
+ "type": "uint8"
117
+ }
118
+ ],
119
+ "name": "PriceInvalid",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "enum FlatcoinErrors.PriceSource",
126
+ "name": "priceSource",
127
+ "type": "uint8"
128
+ }
129
+ ],
130
+ "name": "PriceStale",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "string",
137
+ "name": "variableName",
138
+ "type": "string"
139
+ }
140
+ ],
141
+ "name": "ZeroAddress",
142
+ "type": "error"
143
+ },
144
+ {
145
+ "inputs": [
146
+ {
147
+ "internalType": "string",
148
+ "name": "variableName",
149
+ "type": "string"
150
+ }
151
+ ],
152
+ "name": "ZeroValue",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "anonymous": false,
157
+ "inputs": [
158
+ {
159
+ "indexed": true,
160
+ "internalType": "address",
161
+ "name": "previousOwner",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "indexed": true,
166
+ "internalType": "address",
167
+ "name": "newOwner",
168
+ "type": "address"
169
+ }
170
+ ],
171
+ "name": "OwnershipTransferred",
172
+ "type": "event"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "MODULE_KEY",
177
+ "outputs": [
178
+ {
179
+ "internalType": "bytes32",
180
+ "name": "",
181
+ "type": "bytes32"
182
+ }
183
+ ],
184
+ "stateMutability": "view",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "getConfig",
190
+ "outputs": [
191
+ {
192
+ "internalType": "address",
193
+ "name": "gasPriceOracle",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "profitMarginUSD",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "profitMarginPercent",
204
+ "type": "uint256"
205
+ },
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "keeperFeeUpperBound",
209
+ "type": "uint256"
210
+ },
211
+ {
212
+ "internalType": "uint256",
213
+ "name": "keeperFeeLowerBound",
214
+ "type": "uint256"
215
+ },
216
+ {
217
+ "internalType": "uint256",
218
+ "name": "gasUnitsL1",
219
+ "type": "uint256"
220
+ },
221
+ {
222
+ "internalType": "uint256",
223
+ "name": "gasUnitsL2",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "inputs": [],
232
+ "name": "getKeeperFee",
233
+ "outputs": [
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "keeperFeeCollateral",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "stateMutability": "view",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [
245
+ {
246
+ "internalType": "uint256",
247
+ "name": "baseFee",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "getKeeperFee",
252
+ "outputs": [
253
+ {
254
+ "internalType": "uint256",
255
+ "name": "keeperFeeCollateral",
256
+ "type": "uint256"
257
+ }
258
+ ],
259
+ "stateMutability": "view",
260
+ "type": "function"
261
+ },
262
+ {
263
+ "inputs": [],
264
+ "name": "owner",
265
+ "outputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "stateMutability": "view",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [],
277
+ "name": "renounceOwnership",
278
+ "outputs": [],
279
+ "stateMutability": "nonpayable",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "address",
286
+ "name": "gasPriceOracle",
287
+ "type": "address"
288
+ }
289
+ ],
290
+ "name": "setGasPriceOracle",
291
+ "outputs": [],
292
+ "stateMutability": "nonpayable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "profitMarginUSD",
300
+ "type": "uint256"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "profitMarginPercent",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "keeperFeeUpperBound",
310
+ "type": "uint256"
311
+ },
312
+ {
313
+ "internalType": "uint256",
314
+ "name": "keeperFeeLowerBound",
315
+ "type": "uint256"
316
+ },
317
+ {
318
+ "internalType": "uint256",
319
+ "name": "gasUnitsL1",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "gasUnitsL2",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "name": "setParameters",
329
+ "outputs": [],
330
+ "stateMutability": "nonpayable",
331
+ "type": "function"
332
+ },
333
+ {
334
+ "inputs": [
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "keeperFeeUpperBound",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "keeperFeeLowerBound",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "name": "setParameters",
347
+ "outputs": [],
348
+ "stateMutability": "nonpayable",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [
353
+ {
354
+ "internalType": "address",
355
+ "name": "newOwner",
356
+ "type": "address"
357
+ }
358
+ ],
359
+ "name": "transferOwnership",
360
+ "outputs": [],
361
+ "stateMutability": "nonpayable",
362
+ "type": "function"
363
+ }
364
+ ]