@kehtus/proportion-sdk 0.1.0 → 0.1.2
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/arch.md +15 -8
- package/dist/__tests__/reads.test.js +0 -1
- package/dist/abi/factory.d.ts +14 -0
- package/dist/abi/factory.js +18 -0
- package/dist/abi/forwarder.d.ts +287 -0
- package/dist/abi/forwarder.js +373 -0
- package/dist/abi/fundedAccount.d.ts +38 -99
- package/dist/abi/fundedAccount.js +47 -124
- package/dist/abi/mainVault.d.ts +0 -10
- package/dist/abi/mainVault.js +0 -13
- package/dist/account.d.ts +1 -3
- package/dist/account.js +23 -36
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +6 -5
- package/dist/indexer.js +1 -1
- package/dist/types.d.ts +1 -6
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/src/__tests__/reads.test.ts +0 -1
- package/src/abi/factory.ts +18 -0
- package/src/abi/forwarder.ts +373 -0
- package/src/abi/fundedAccount.ts +47 -124
- package/src/abi/mainVault.ts +0 -13
- package/src/account.ts +26 -40
- package/src/constants.ts +6 -5
- package/src/indexer.ts +1 -1
- package/src/types.ts +1 -6
- package/src/utils.ts +1 -1
- package/SDK_IMPROVEMENT_PLAN.md +0 -197
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
export const forwarderAbi = [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"type": "constructor"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint48",
|
|
11
|
+
"name": "deadline",
|
|
12
|
+
"type": "uint48"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"name": "ERC2771ForwarderExpiredRequest",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "address",
|
|
22
|
+
"name": "signer",
|
|
23
|
+
"type": "address"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "from",
|
|
28
|
+
"type": "address"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"name": "ERC2771ForwarderInvalidSigner",
|
|
32
|
+
"type": "error"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"inputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256",
|
|
38
|
+
"name": "requestedValue",
|
|
39
|
+
"type": "uint256"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"internalType": "uint256",
|
|
43
|
+
"name": "msgValue",
|
|
44
|
+
"type": "uint256"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"name": "ERC2771ForwarderMismatchedValue",
|
|
48
|
+
"type": "error"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [
|
|
52
|
+
{
|
|
53
|
+
"internalType": "address",
|
|
54
|
+
"name": "target",
|
|
55
|
+
"type": "address"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "forwarder",
|
|
60
|
+
"type": "address"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "ERC2771UntrustfulTarget",
|
|
64
|
+
"type": "error"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputs": [],
|
|
68
|
+
"name": "FailedCall",
|
|
69
|
+
"type": "error"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"inputs": [
|
|
73
|
+
{
|
|
74
|
+
"internalType": "uint256",
|
|
75
|
+
"name": "balance",
|
|
76
|
+
"type": "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "uint256",
|
|
80
|
+
"name": "needed",
|
|
81
|
+
"type": "uint256"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "InsufficientBalance",
|
|
85
|
+
"type": "error"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"inputs": [
|
|
89
|
+
{
|
|
90
|
+
"internalType": "address",
|
|
91
|
+
"name": "account",
|
|
92
|
+
"type": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "currentNonce",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "InvalidAccountNonce",
|
|
101
|
+
"type": "error"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "InvalidShortString",
|
|
106
|
+
"type": "error"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"inputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "string",
|
|
112
|
+
"name": "str",
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"name": "StringTooLong",
|
|
117
|
+
"type": "error"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"anonymous": false,
|
|
121
|
+
"inputs": [],
|
|
122
|
+
"name": "EIP712DomainChanged",
|
|
123
|
+
"type": "event"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"anonymous": false,
|
|
127
|
+
"inputs": [
|
|
128
|
+
{
|
|
129
|
+
"indexed": true,
|
|
130
|
+
"internalType": "address",
|
|
131
|
+
"name": "signer",
|
|
132
|
+
"type": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"indexed": false,
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "nonce",
|
|
138
|
+
"type": "uint256"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"indexed": false,
|
|
142
|
+
"internalType": "bool",
|
|
143
|
+
"name": "success",
|
|
144
|
+
"type": "bool"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "ExecutedForwardRequest",
|
|
148
|
+
"type": "event"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"name": "eip712Domain",
|
|
153
|
+
"outputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "bytes1",
|
|
156
|
+
"name": "fields",
|
|
157
|
+
"type": "bytes1"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "string",
|
|
161
|
+
"name": "name",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "string",
|
|
166
|
+
"name": "version",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"internalType": "uint256",
|
|
171
|
+
"name": "chainId",
|
|
172
|
+
"type": "uint256"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "address",
|
|
176
|
+
"name": "verifyingContract",
|
|
177
|
+
"type": "address"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"internalType": "bytes32",
|
|
181
|
+
"name": "salt",
|
|
182
|
+
"type": "bytes32"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"internalType": "uint256[]",
|
|
186
|
+
"name": "extensions",
|
|
187
|
+
"type": "uint256[]"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"stateMutability": "view",
|
|
191
|
+
"type": "function"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [
|
|
195
|
+
{
|
|
196
|
+
"components": [
|
|
197
|
+
{
|
|
198
|
+
"internalType": "address",
|
|
199
|
+
"name": "from",
|
|
200
|
+
"type": "address"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"internalType": "address",
|
|
204
|
+
"name": "to",
|
|
205
|
+
"type": "address"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"internalType": "uint256",
|
|
209
|
+
"name": "value",
|
|
210
|
+
"type": "uint256"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"internalType": "uint256",
|
|
214
|
+
"name": "gas",
|
|
215
|
+
"type": "uint256"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"internalType": "uint48",
|
|
219
|
+
"name": "deadline",
|
|
220
|
+
"type": "uint48"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"internalType": "bytes",
|
|
224
|
+
"name": "data",
|
|
225
|
+
"type": "bytes"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"internalType": "bytes",
|
|
229
|
+
"name": "signature",
|
|
230
|
+
"type": "bytes"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"internalType": "struct ERC2771Forwarder.ForwardRequestData",
|
|
234
|
+
"name": "request",
|
|
235
|
+
"type": "tuple"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"name": "execute",
|
|
239
|
+
"outputs": [],
|
|
240
|
+
"stateMutability": "payable",
|
|
241
|
+
"type": "function"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"inputs": [
|
|
245
|
+
{
|
|
246
|
+
"components": [
|
|
247
|
+
{
|
|
248
|
+
"internalType": "address",
|
|
249
|
+
"name": "from",
|
|
250
|
+
"type": "address"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"internalType": "address",
|
|
254
|
+
"name": "to",
|
|
255
|
+
"type": "address"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"internalType": "uint256",
|
|
259
|
+
"name": "value",
|
|
260
|
+
"type": "uint256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"internalType": "uint256",
|
|
264
|
+
"name": "gas",
|
|
265
|
+
"type": "uint256"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"internalType": "uint48",
|
|
269
|
+
"name": "deadline",
|
|
270
|
+
"type": "uint48"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"internalType": "bytes",
|
|
274
|
+
"name": "data",
|
|
275
|
+
"type": "bytes"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"internalType": "bytes",
|
|
279
|
+
"name": "signature",
|
|
280
|
+
"type": "bytes"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"internalType": "struct ERC2771Forwarder.ForwardRequestData[]",
|
|
284
|
+
"name": "requests",
|
|
285
|
+
"type": "tuple[]"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"internalType": "address payable",
|
|
289
|
+
"name": "refundReceiver",
|
|
290
|
+
"type": "address"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"name": "executeBatch",
|
|
294
|
+
"outputs": [],
|
|
295
|
+
"stateMutability": "payable",
|
|
296
|
+
"type": "function"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"internalType": "address",
|
|
302
|
+
"name": "owner",
|
|
303
|
+
"type": "address"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "nonces",
|
|
307
|
+
"outputs": [
|
|
308
|
+
{
|
|
309
|
+
"internalType": "uint256",
|
|
310
|
+
"name": "",
|
|
311
|
+
"type": "uint256"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"stateMutability": "view",
|
|
315
|
+
"type": "function"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"components": [
|
|
321
|
+
{
|
|
322
|
+
"internalType": "address",
|
|
323
|
+
"name": "from",
|
|
324
|
+
"type": "address"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"internalType": "address",
|
|
328
|
+
"name": "to",
|
|
329
|
+
"type": "address"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"internalType": "uint256",
|
|
333
|
+
"name": "value",
|
|
334
|
+
"type": "uint256"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"internalType": "uint256",
|
|
338
|
+
"name": "gas",
|
|
339
|
+
"type": "uint256"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"internalType": "uint48",
|
|
343
|
+
"name": "deadline",
|
|
344
|
+
"type": "uint48"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"internalType": "bytes",
|
|
348
|
+
"name": "data",
|
|
349
|
+
"type": "bytes"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bytes",
|
|
353
|
+
"name": "signature",
|
|
354
|
+
"type": "bytes"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"internalType": "struct ERC2771Forwarder.ForwardRequestData",
|
|
358
|
+
"name": "request",
|
|
359
|
+
"type": "tuple"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"name": "verify",
|
|
363
|
+
"outputs": [
|
|
364
|
+
{
|
|
365
|
+
"internalType": "bool",
|
|
366
|
+
"name": "",
|
|
367
|
+
"type": "bool"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"stateMutability": "view",
|
|
371
|
+
"type": "function"
|
|
372
|
+
}
|
|
373
|
+
] as const;
|
package/src/abi/fundedAccount.ts
CHANGED
|
@@ -75,13 +75,13 @@ export const fundedAccountAbi = [
|
|
|
75
75
|
"anonymous": false,
|
|
76
76
|
"inputs": [
|
|
77
77
|
{
|
|
78
|
-
"indexed":
|
|
79
|
-
"internalType": "
|
|
80
|
-
"name": "
|
|
81
|
-
"type": "
|
|
78
|
+
"indexed": false,
|
|
79
|
+
"internalType": "uint64",
|
|
80
|
+
"name": "amount",
|
|
81
|
+
"type": "uint64"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"name": "
|
|
84
|
+
"name": "BridgedToEvm",
|
|
85
85
|
"type": "event"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
@@ -210,31 +210,6 @@ export const fundedAccountAbi = [
|
|
|
210
210
|
"name": "Initialized",
|
|
211
211
|
"type": "event"
|
|
212
212
|
},
|
|
213
|
-
{
|
|
214
|
-
"anonymous": false,
|
|
215
|
-
"inputs": [
|
|
216
|
-
{
|
|
217
|
-
"indexed": true,
|
|
218
|
-
"internalType": "address",
|
|
219
|
-
"name": "owner",
|
|
220
|
-
"type": "address"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"indexed": false,
|
|
224
|
-
"internalType": "uint64",
|
|
225
|
-
"name": "ntlPos",
|
|
226
|
-
"type": "uint64"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"indexed": false,
|
|
230
|
-
"internalType": "int64",
|
|
231
|
-
"name": "accountValue",
|
|
232
|
-
"type": "int64"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"name": "LeverageBreached",
|
|
236
|
-
"type": "event"
|
|
237
|
-
},
|
|
238
213
|
{
|
|
239
214
|
"anonymous": false,
|
|
240
215
|
"inputs": [
|
|
@@ -260,19 +235,6 @@ export const fundedAccountAbi = [
|
|
|
260
235
|
"name": "PositionLeverageBreached",
|
|
261
236
|
"type": "event"
|
|
262
237
|
},
|
|
263
|
-
{
|
|
264
|
-
"anonymous": false,
|
|
265
|
-
"inputs": [
|
|
266
|
-
{
|
|
267
|
-
"indexed": true,
|
|
268
|
-
"internalType": "address",
|
|
269
|
-
"name": "wallet",
|
|
270
|
-
"type": "address"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"name": "RiskEngineWalletSet",
|
|
274
|
-
"type": "event"
|
|
275
|
-
},
|
|
276
238
|
{
|
|
277
239
|
"anonymous": false,
|
|
278
240
|
"inputs": [
|
|
@@ -426,25 +388,6 @@ export const fundedAccountAbi = [
|
|
|
426
388
|
"name": "VaultReturnInitiated",
|
|
427
389
|
"type": "event"
|
|
428
390
|
},
|
|
429
|
-
{
|
|
430
|
-
"anonymous": false,
|
|
431
|
-
"inputs": [
|
|
432
|
-
{
|
|
433
|
-
"indexed": true,
|
|
434
|
-
"internalType": "address",
|
|
435
|
-
"name": "owner",
|
|
436
|
-
"type": "address"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"indexed": false,
|
|
440
|
-
"internalType": "uint256",
|
|
441
|
-
"name": "profit",
|
|
442
|
-
"type": "uint256"
|
|
443
|
-
}
|
|
444
|
-
],
|
|
445
|
-
"name": "WithdrawalCancelled",
|
|
446
|
-
"type": "event"
|
|
447
|
-
},
|
|
448
391
|
{
|
|
449
392
|
"anonymous": false,
|
|
450
393
|
"inputs": [
|
|
@@ -639,7 +582,7 @@ export const fundedAccountAbi = [
|
|
|
639
582
|
},
|
|
640
583
|
{
|
|
641
584
|
"inputs": [],
|
|
642
|
-
"name": "
|
|
585
|
+
"name": "PERP_DEX_COUNT",
|
|
643
586
|
"outputs": [
|
|
644
587
|
{
|
|
645
588
|
"internalType": "uint32",
|
|
@@ -715,19 +658,6 @@ export const fundedAccountAbi = [
|
|
|
715
658
|
"stateMutability": "view",
|
|
716
659
|
"type": "function"
|
|
717
660
|
},
|
|
718
|
-
{
|
|
719
|
-
"inputs": [],
|
|
720
|
-
"name": "WITHDRAWAL_TIMEOUT",
|
|
721
|
-
"outputs": [
|
|
722
|
-
{
|
|
723
|
-
"internalType": "uint256",
|
|
724
|
-
"name": "",
|
|
725
|
-
"type": "uint256"
|
|
726
|
-
}
|
|
727
|
-
],
|
|
728
|
-
"stateMutability": "view",
|
|
729
|
-
"type": "function"
|
|
730
|
-
},
|
|
731
661
|
{
|
|
732
662
|
"inputs": [],
|
|
733
663
|
"name": "accountSize",
|
|
@@ -769,20 +699,14 @@ export const fundedAccountAbi = [
|
|
|
769
699
|
},
|
|
770
700
|
{
|
|
771
701
|
"inputs": [],
|
|
772
|
-
"name": "
|
|
773
|
-
"outputs": [
|
|
774
|
-
|
|
775
|
-
"internalType": "address",
|
|
776
|
-
"name": "",
|
|
777
|
-
"type": "address"
|
|
778
|
-
}
|
|
779
|
-
],
|
|
780
|
-
"stateMutability": "view",
|
|
702
|
+
"name": "bridgeToEvm",
|
|
703
|
+
"outputs": [],
|
|
704
|
+
"stateMutability": "nonpayable",
|
|
781
705
|
"type": "function"
|
|
782
706
|
},
|
|
783
707
|
{
|
|
784
708
|
"inputs": [],
|
|
785
|
-
"name": "
|
|
709
|
+
"name": "builder",
|
|
786
710
|
"outputs": [
|
|
787
711
|
{
|
|
788
712
|
"internalType": "address",
|
|
@@ -806,13 +730,6 @@ export const fundedAccountAbi = [
|
|
|
806
730
|
"stateMutability": "view",
|
|
807
731
|
"type": "function"
|
|
808
732
|
},
|
|
809
|
-
{
|
|
810
|
-
"inputs": [],
|
|
811
|
-
"name": "cancelStuckWithdrawal",
|
|
812
|
-
"outputs": [],
|
|
813
|
-
"stateMutability": "nonpayable",
|
|
814
|
-
"type": "function"
|
|
815
|
-
},
|
|
816
733
|
{
|
|
817
734
|
"inputs": [],
|
|
818
735
|
"name": "cancelSubscription",
|
|
@@ -962,6 +879,19 @@ export const fundedAccountAbi = [
|
|
|
962
879
|
"stateMutability": "nonpayable",
|
|
963
880
|
"type": "function"
|
|
964
881
|
},
|
|
882
|
+
{
|
|
883
|
+
"inputs": [],
|
|
884
|
+
"name": "forwarder",
|
|
885
|
+
"outputs": [
|
|
886
|
+
{
|
|
887
|
+
"internalType": "address",
|
|
888
|
+
"name": "",
|
|
889
|
+
"type": "address"
|
|
890
|
+
}
|
|
891
|
+
],
|
|
892
|
+
"stateMutability": "view",
|
|
893
|
+
"type": "function"
|
|
894
|
+
},
|
|
965
895
|
{
|
|
966
896
|
"inputs": [],
|
|
967
897
|
"name": "getAllCheckpoints",
|
|
@@ -1066,6 +996,11 @@ export const fundedAccountAbi = [
|
|
|
1066
996
|
"name": "_builder",
|
|
1067
997
|
"type": "address"
|
|
1068
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"internalType": "address",
|
|
1001
|
+
"name": "_forwarder",
|
|
1002
|
+
"type": "address"
|
|
1003
|
+
},
|
|
1069
1004
|
{
|
|
1070
1005
|
"internalType": "uint96",
|
|
1071
1006
|
"name": "_accountSize",
|
|
@@ -1139,6 +1074,25 @@ export const fundedAccountAbi = [
|
|
|
1139
1074
|
"stateMutability": "view",
|
|
1140
1075
|
"type": "function"
|
|
1141
1076
|
},
|
|
1077
|
+
{
|
|
1078
|
+
"inputs": [
|
|
1079
|
+
{
|
|
1080
|
+
"internalType": "address",
|
|
1081
|
+
"name": "_forwarder",
|
|
1082
|
+
"type": "address"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"name": "isTrustedForwarder",
|
|
1086
|
+
"outputs": [
|
|
1087
|
+
{
|
|
1088
|
+
"internalType": "bool",
|
|
1089
|
+
"name": "",
|
|
1090
|
+
"type": "bool"
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
"stateMutability": "view",
|
|
1094
|
+
"type": "function"
|
|
1095
|
+
},
|
|
1142
1096
|
{
|
|
1143
1097
|
"inputs": [],
|
|
1144
1098
|
"name": "lastCheckpointDay",
|
|
@@ -1186,11 +1140,6 @@ export const fundedAccountAbi = [
|
|
|
1186
1140
|
"internalType": "uint256",
|
|
1187
1141
|
"name": "profit",
|
|
1188
1142
|
"type": "uint256"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"internalType": "uint48",
|
|
1192
|
-
"name": "requestedAt",
|
|
1193
|
-
"type": "uint48"
|
|
1194
1143
|
}
|
|
1195
1144
|
],
|
|
1196
1145
|
"stateMutability": "view",
|
|
@@ -1236,19 +1185,6 @@ export const fundedAccountAbi = [
|
|
|
1236
1185
|
"stateMutability": "view",
|
|
1237
1186
|
"type": "function"
|
|
1238
1187
|
},
|
|
1239
|
-
{
|
|
1240
|
-
"inputs": [],
|
|
1241
|
-
"name": "riskEngineWallet",
|
|
1242
|
-
"outputs": [
|
|
1243
|
-
{
|
|
1244
|
-
"internalType": "address",
|
|
1245
|
-
"name": "",
|
|
1246
|
-
"type": "address"
|
|
1247
|
-
}
|
|
1248
|
-
],
|
|
1249
|
-
"stateMutability": "view",
|
|
1250
|
-
"type": "function"
|
|
1251
|
-
},
|
|
1252
1188
|
{
|
|
1253
1189
|
"inputs": [
|
|
1254
1190
|
{
|
|
@@ -1262,19 +1198,6 @@ export const fundedAccountAbi = [
|
|
|
1262
1198
|
"stateMutability": "nonpayable",
|
|
1263
1199
|
"type": "function"
|
|
1264
1200
|
},
|
|
1265
|
-
{
|
|
1266
|
-
"inputs": [
|
|
1267
|
-
{
|
|
1268
|
-
"internalType": "address",
|
|
1269
|
-
"name": "_wallet",
|
|
1270
|
-
"type": "address"
|
|
1271
|
-
}
|
|
1272
|
-
],
|
|
1273
|
-
"name": "setRiskEngineWallet",
|
|
1274
|
-
"outputs": [],
|
|
1275
|
-
"stateMutability": "nonpayable",
|
|
1276
|
-
"type": "function"
|
|
1277
|
-
},
|
|
1278
1201
|
{
|
|
1279
1202
|
"inputs": [],
|
|
1280
1203
|
"name": "state",
|
package/src/abi/mainVault.ts
CHANGED
|
@@ -812,19 +812,6 @@ export const mainVaultAbi = [
|
|
|
812
812
|
"stateMutability": "view",
|
|
813
813
|
"type": "function"
|
|
814
814
|
},
|
|
815
|
-
{
|
|
816
|
-
"inputs": [],
|
|
817
|
-
"name": "HYPERCORE_NEW_ACCOUNT_FEE",
|
|
818
|
-
"outputs": [
|
|
819
|
-
{
|
|
820
|
-
"internalType": "uint256",
|
|
821
|
-
"name": "",
|
|
822
|
-
"type": "uint256"
|
|
823
|
-
}
|
|
824
|
-
],
|
|
825
|
-
"stateMutability": "view",
|
|
826
|
-
"type": "function"
|
|
827
|
-
},
|
|
828
815
|
{
|
|
829
816
|
"inputs": [],
|
|
830
817
|
"name": "MAX_ACCOUNT_SIZE",
|