ethereum-input-data-decode 0.4.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.

Potentially problematic release.


This version of ethereum-input-data-decode might be problematic. Click here for more details.

Files changed (46) hide show
  1. package/.editorconfig +23 -0
  2. package/.gitattributes +2 -0
  3. package/.github/FUNDING.yml +2 -0
  4. package/.travis.yml +10 -0
  5. package/CHANGELOG.md +5 -0
  6. package/LICENSE +21 -0
  7. package/README.md +283 -0
  8. package/bin/ethereum_input_data_decoder +3 -0
  9. package/cli.js +85 -0
  10. package/dist/index.d.ts +19 -0
  11. package/dist/index.js +396 -0
  12. package/example/bundle.js +33425 -0
  13. package/example/index.html +1213 -0
  14. package/example/main.js +35 -0
  15. package/example/style.css +28 -0
  16. package/index.d.ts +19 -0
  17. package/index.js +362 -0
  18. package/package.json +60 -0
  19. package/test/cli_test.js +1 -0
  20. package/test/data/0x_exchange.json +882 -0
  21. package/test/data/0x_exchange_data.txt +1 -0
  22. package/test/data/1inch_exchange_v2_abi.json +404 -0
  23. package/test/data/1inch_exchange_v2_abi_no_eth.txt +1 -0
  24. package/test/data/1inch_exchange_v2_abi_with_eth.txt +1 -0
  25. package/test/data/PayableProxyForSoloMargin_abi.json +134 -0
  26. package/test/data/PayableProxyForSoloMargin_tx_data.txt +1 -0
  27. package/test/data/abi1.json +1171 -0
  28. package/test/data/abi1_input_data.txt +1 -0
  29. package/test/data/abi2.json +1 -0
  30. package/test/data/abi3.json +1 -0
  31. package/test/data/abi3_data.txt +1 -0
  32. package/test/data/abi4.json +2 -0
  33. package/test/data/abi4_data.txt +1 -0
  34. package/test/data/abi5.json +1 -0
  35. package/test/data/abi5_data.txt +1 -0
  36. package/test/data/abi6.json +1 -0
  37. package/test/data/abi6_data.txt +1 -0
  38. package/test/data/abi7.json +1 -0
  39. package/test/data/abi7_data.txt +1 -0
  40. package/test/data/contract_creation_data.txt +2 -0
  41. package/test/data/erc721_abi.json +1 -0
  42. package/test/data/erc721_transferfrom_tx_data.txt +1 -0
  43. package/test/data/set_exchange_issuance_lib.json +195 -0
  44. package/test/data/set_issuance.txt +1 -0
  45. package/test/index.js +628 -0
  46. package/tsconfig.json +27 -0
@@ -0,0 +1 @@
1
+ 0x7e1d98080000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000006f02e6d47147b4448fe2f2eb25b4f534cf110c230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a258b39954cef5cb142fd567a46cddb31a67012400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000410d586a20a4bffff50000000000000000000000000000000000000000000000005e05647aedbbd45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005d7872020000000000000000000000000000000000000000000000000000016d1e79ae50000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000024f47261b000000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a23260359000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024f47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000421b82e97aa18170e6b81ce3a829d77b7067cf3644c8706e97e7c96d5a92de61eb0c5c5aeb4fbfadca6b9fbc5adff91bfb32964aa9e1bf8309dad7e1bd3e45f0b44c03000000000000000000000000000000000000000000000000000000000000
@@ -0,0 +1,404 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": false,
7
+ "internalType": "string",
8
+ "name": "reason",
9
+ "type": "string"
10
+ }
11
+ ],
12
+ "name": "Error",
13
+ "type": "event"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "previousOwner",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "newOwner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "OwnershipTransferred",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": false,
39
+ "internalType": "address",
40
+ "name": "account",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "Paused",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "sender",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "indexed": true,
58
+ "internalType": "contract IERC20",
59
+ "name": "srcToken",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": true,
64
+ "internalType": "contract IERC20",
65
+ "name": "dstToken",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "address",
71
+ "name": "dstReceiver",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "uint256",
77
+ "name": "amount",
78
+ "type": "uint256"
79
+ },
80
+ {
81
+ "indexed": false,
82
+ "internalType": "uint256",
83
+ "name": "spentAmount",
84
+ "type": "uint256"
85
+ },
86
+ {
87
+ "indexed": false,
88
+ "internalType": "uint256",
89
+ "name": "returnAmount",
90
+ "type": "uint256"
91
+ },
92
+ {
93
+ "indexed": false,
94
+ "internalType": "uint256",
95
+ "name": "minReturnAmount",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "indexed": false,
100
+ "internalType": "uint256",
101
+ "name": "guaranteedAmount",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "indexed": false,
106
+ "internalType": "address",
107
+ "name": "referrer",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "Swapped",
112
+ "type": "event"
113
+ },
114
+ {
115
+ "anonymous": false,
116
+ "inputs": [
117
+ {
118
+ "indexed": false,
119
+ "internalType": "address",
120
+ "name": "account",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "Unpaused",
125
+ "type": "event"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "internalType": "contract IOneInchCaller",
131
+ "name": "caller",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "components": [
136
+ {
137
+ "internalType": "contract IERC20",
138
+ "name": "srcToken",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "internalType": "contract IERC20",
143
+ "name": "dstToken",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "address",
148
+ "name": "srcReceiver",
149
+ "type": "address"
150
+ },
151
+ {
152
+ "internalType": "address",
153
+ "name": "dstReceiver",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "amount",
159
+ "type": "uint256"
160
+ },
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "minReturnAmount",
164
+ "type": "uint256"
165
+ },
166
+ {
167
+ "internalType": "uint256",
168
+ "name": "guaranteedAmount",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "internalType": "uint256",
173
+ "name": "flags",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "internalType": "address",
178
+ "name": "referrer",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "internalType": "bytes",
183
+ "name": "permit",
184
+ "type": "bytes"
185
+ }
186
+ ],
187
+ "internalType": "struct OneInchExchange.SwapDescription",
188
+ "name": "desc",
189
+ "type": "tuple"
190
+ },
191
+ {
192
+ "components": [
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "targetWithMandatory",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "internalType": "uint256",
200
+ "name": "gasLimit",
201
+ "type": "uint256"
202
+ },
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "value",
206
+ "type": "uint256"
207
+ },
208
+ {
209
+ "internalType": "bytes",
210
+ "name": "data",
211
+ "type": "bytes"
212
+ }
213
+ ],
214
+ "internalType": "struct IOneInchCaller.CallDescription[]",
215
+ "name": "calls",
216
+ "type": "tuple[]"
217
+ }
218
+ ],
219
+ "name": "discountedSwap",
220
+ "outputs": [
221
+ {
222
+ "internalType": "uint256",
223
+ "name": "returnAmount",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "stateMutability": "payable",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "inputs": [],
232
+ "name": "owner",
233
+ "outputs": [
234
+ {
235
+ "internalType": "address",
236
+ "name": "",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "stateMutability": "view",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "pause",
246
+ "outputs": [],
247
+ "stateMutability": "nonpayable",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "paused",
253
+ "outputs": [
254
+ {
255
+ "internalType": "bool",
256
+ "name": "",
257
+ "type": "bool"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "renounceOwnership",
266
+ "outputs": [],
267
+ "stateMutability": "nonpayable",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [
272
+ {
273
+ "internalType": "contract IERC20",
274
+ "name": "token",
275
+ "type": "address"
276
+ },
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "amount",
280
+ "type": "uint256"
281
+ }
282
+ ],
283
+ "name": "rescueFunds",
284
+ "outputs": [],
285
+ "stateMutability": "nonpayable",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "contract IOneInchCaller",
292
+ "name": "caller",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "components": [
297
+ {
298
+ "internalType": "contract IERC20",
299
+ "name": "srcToken",
300
+ "type": "address"
301
+ },
302
+ {
303
+ "internalType": "contract IERC20",
304
+ "name": "dstToken",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "internalType": "address",
309
+ "name": "srcReceiver",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "internalType": "address",
314
+ "name": "dstReceiver",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "internalType": "uint256",
319
+ "name": "amount",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "minReturnAmount",
325
+ "type": "uint256"
326
+ },
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "guaranteedAmount",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "internalType": "uint256",
334
+ "name": "flags",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "internalType": "address",
339
+ "name": "referrer",
340
+ "type": "address"
341
+ },
342
+ {
343
+ "internalType": "bytes",
344
+ "name": "permit",
345
+ "type": "bytes"
346
+ }
347
+ ],
348
+ "internalType": "struct OneInchExchange.SwapDescription",
349
+ "name": "desc",
350
+ "type": "tuple"
351
+ },
352
+ {
353
+ "components": [
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "targetWithMandatory",
357
+ "type": "uint256"
358
+ },
359
+ {
360
+ "internalType": "uint256",
361
+ "name": "gasLimit",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "value",
367
+ "type": "uint256"
368
+ },
369
+ {
370
+ "internalType": "bytes",
371
+ "name": "data",
372
+ "type": "bytes"
373
+ }
374
+ ],
375
+ "internalType": "struct IOneInchCaller.CallDescription[]",
376
+ "name": "calls",
377
+ "type": "tuple[]"
378
+ }
379
+ ],
380
+ "name": "swap",
381
+ "outputs": [
382
+ {
383
+ "internalType": "uint256",
384
+ "name": "returnAmount",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "stateMutability": "payable",
389
+ "type": "function"
390
+ },
391
+ {
392
+ "inputs": [
393
+ {
394
+ "internalType": "address",
395
+ "name": "newOwner",
396
+ "type": "address"
397
+ }
398
+ ],
399
+ "name": "transferOwnership",
400
+ "outputs": [],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ }
404
+ ]
@@ -0,0 +1 @@
1
+ 0x90411a32000000000000000000000000e069cb01d06ba617bcdf789bf2ff0d5e5ca20c71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a6000000000000000000000000e069cb01d06ba617bcdf789bf2ff0d5e5ca20c710000000000000000000000002c38b7622241958dc0a097d405c468a9176418a30000000000000000000000000000000000000000000000000000000129c8e900000000000000000000000000000000000000000000000b8cfc3e036ef2502538000000000000000000000000000000000000000000000be8703fee6d197a363500000000000000000000000000000000000000000000000000000000000000040000000000000000000000006884249c226f1443f2b7040a3d6143c170df34f600000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000008600000000000000000000000000000000000000000000000000000000000000b8080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb00000000000000000000000000000000000000000000000000000000129c8e900000000000000000000000000000000000000000000000000000000008000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104c98fefed00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000129c8e9000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e069cb01d06ba617bcdf789bf2ff0d5e5ca20c710000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000005365b5bc56493f08a38e5eb08e36cbbe6fcc83060000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000042483f1291f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c000000000000000000000000000000500000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c0000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000008000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104c98fefed000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e069cb01d06ba617bcdf789bf2ff0d5e5ca20c7100000000000000000000000000000000000000000000000000000000000000030000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c000000000000000000000000f7b9fa01098f22527db205ff9bb6fdf7c7d9f1c5000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000044800000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002647f8fe7a000000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000e069cb01d06ba617bcdf789bf2ff0d5e5ca20c7100000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a405971224000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a60000000000000000000000006884249c226f1443f2b7040a3d6143c170df34f600000000000000000000000000000000000000000000000000000000000000010000000000000000042b4998f6b3b8f500000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000004df804219786f1d7f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004470bdb947000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a6000000000000000000000000000000000000000000000be8703fee6d197a3635000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000184b3af37c000000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000024000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a60000000000000000000000000000000100000000000000000000000000000001000000000000000000000000f970b8e36e23f7fc3fd752eea86f8be8d83375a60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000002c38b7622241958dc0a097d405c468a9176418a300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@@ -0,0 +1 @@
1
+ 0x90411a32000000000000000000000000b3c9669a5706477a2b237d98edb9b57678926f04000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000b3c9669a5706477a2b237d98edb9b57678926f0400000000000000000000000083b97790c7da251fafb24d6cbfc481cfa4afc4f6000000000000000000000000000000000000000000000000000000010642ac00000000000000000000000000000000000000000000000034e551bf0ab692275a000000000000000000000000000000000000000000000035f9ac3b1a9af32d620000000000000000000000000000000000000000000000000000000000000004000000000000000000000000382ffce2287252f930e1c8dc9328dac5bf282ba100000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000076000000000000000000000000000000000000000000000000000000000000008c00000000000000000000000000000000000000000000000000000000000000be080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb0000000000000000000000000000000000000000000000000000000010642ac00000000000000000000000000000000000000000000000000000000008000000000000000000000002f9ec37d6ccfff1cab21733bdadede11c823ccb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104c98fefed0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000010642ac000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b3c9669a5706477a2b237d98edb9b57678926f040000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000874d8de5b26c9d9f6aa8d7bab283f9a9c6f777f40000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c0000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000184b3af37c0000000000000000000000000000000000000000000000000000000000000008080000000000000000000000000000000000000000000000000000000000000240000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c00000000000000000000000000000014000000000000000000000000000000140000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000003fd4cf9303c4bc9e13772618828712c8eac7dd2f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a4c9f12e9d0000000000000000000000003fd4cf9303c4bc9e13772618828712c8eac7dd2f0000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000326aad2da94c59524ac0d93f6d6cbf9071d7086f2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a4c9f12e9d00000000000000000000000026aad2da94c59524ac0d93f6d6cbf9071d7086f2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000003b3c9669a5706477a2b237d98edb9b57678926f04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002647f8fe7a000000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000b3c9669a5706477a2b237d98edb9b57678926f0400000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a405971224000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000382ffce2287252f930e1c8dc9328dac5bf282ba10000000000000000000000000000000000000000000000000000000000000001000000000000000002b79a9b4d8a5c9300000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000fbc539a31bdf05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004470bdb947000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000000000000000000000000035f9ac3b1a9af32d620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a4b3af37c000000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000000000010000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000111111111117dc0aa78b770fa6a738034120c30200000000000000000000000083b97790c7da251fafb24d6cbfc481cfa4afc4f600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@@ -0,0 +1,134 @@
1
+ [
2
+ {
3
+ "constant": true,
4
+ "inputs": [],
5
+ "name": "SOLO_MARGIN",
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "payable": false,
13
+ "stateMutability": "view",
14
+ "type": "function"
15
+ },
16
+ {
17
+ "constant": true,
18
+ "inputs": [],
19
+ "name": "WETH",
20
+ "outputs": [
21
+ {
22
+ "name": "",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "payable": false,
27
+ "stateMutability": "view",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "constant": false,
32
+ "inputs": [
33
+ {
34
+ "components": [
35
+ {
36
+ "name": "owner",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "name": "number",
41
+ "type": "uint256"
42
+ }
43
+ ],
44
+ "name": "accounts",
45
+ "type": "tuple[]"
46
+ },
47
+ {
48
+ "components": [
49
+ {
50
+ "name": "actionType",
51
+ "type": "uint8"
52
+ },
53
+ {
54
+ "name": "accountId",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "components": [
59
+ {
60
+ "name": "sign",
61
+ "type": "bool"
62
+ },
63
+ {
64
+ "name": "denomination",
65
+ "type": "uint8"
66
+ },
67
+ {
68
+ "name": "ref",
69
+ "type": "uint8"
70
+ },
71
+ {
72
+ "name": "value",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "name": "amount",
77
+ "type": "tuple"
78
+ },
79
+ {
80
+ "name": "primaryMarketId",
81
+ "type": "uint256"
82
+ },
83
+ {
84
+ "name": "secondaryMarketId",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "name": "otherAddress",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "name": "otherAccountId",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "name": "data",
97
+ "type": "bytes"
98
+ }
99
+ ],
100
+ "name": "actions",
101
+ "type": "tuple[]"
102
+ },
103
+ {
104
+ "name": "sendEthTo",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "name": "operate",
109
+ "outputs": [],
110
+ "payable": true,
111
+ "stateMutability": "payable",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "name": "soloMargin",
118
+ "type": "address"
119
+ },
120
+ {
121
+ "name": "weth",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "payable": false,
126
+ "stateMutability": "nonpayable",
127
+ "type": "constructor"
128
+ },
129
+ {
130
+ "payable": true,
131
+ "stateMutability": "payable",
132
+ "type": "fallback"
133
+ }
134
+ ]
@@ -0,0 +1 @@
1
+ 0xf319142a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b929044af6a7b7ae12ef0e653acc59f73cf9577b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b929044af6a7b7ae12ef0e653acc59f73cf9577b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006c46038fa803f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a8b39829ce2246f89b31c013b8cde15506fb9a76000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000