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.
- package/.editorconfig +23 -0
- package/.gitattributes +2 -0
- package/.github/FUNDING.yml +2 -0
- package/.travis.yml +10 -0
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +283 -0
- package/bin/ethereum_input_data_decoder +3 -0
- package/cli.js +85 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +396 -0
- package/example/bundle.js +33425 -0
- package/example/index.html +1213 -0
- package/example/main.js +35 -0
- package/example/style.css +28 -0
- package/index.d.ts +19 -0
- package/index.js +362 -0
- package/package.json +60 -0
- package/test/cli_test.js +1 -0
- package/test/data/0x_exchange.json +882 -0
- package/test/data/0x_exchange_data.txt +1 -0
- package/test/data/1inch_exchange_v2_abi.json +404 -0
- package/test/data/1inch_exchange_v2_abi_no_eth.txt +1 -0
- package/test/data/1inch_exchange_v2_abi_with_eth.txt +1 -0
- package/test/data/PayableProxyForSoloMargin_abi.json +134 -0
- package/test/data/PayableProxyForSoloMargin_tx_data.txt +1 -0
- package/test/data/abi1.json +1171 -0
- package/test/data/abi1_input_data.txt +1 -0
- package/test/data/abi2.json +1 -0
- package/test/data/abi3.json +1 -0
- package/test/data/abi3_data.txt +1 -0
- package/test/data/abi4.json +2 -0
- package/test/data/abi4_data.txt +1 -0
- package/test/data/abi5.json +1 -0
- package/test/data/abi5_data.txt +1 -0
- package/test/data/abi6.json +1 -0
- package/test/data/abi6_data.txt +1 -0
- package/test/data/abi7.json +1 -0
- package/test/data/abi7_data.txt +1 -0
- package/test/data/contract_creation_data.txt +2 -0
- package/test/data/erc721_abi.json +1 -0
- package/test/data/erc721_transferfrom_tx_data.txt +1 -0
- package/test/data/set_exchange_issuance_lib.json +195 -0
- package/test/data/set_issuance.txt +1 -0
- package/test/index.js +628 -0
- package/tsconfig.json +27 -0
@@ -0,0 +1,882 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"constant":true,
|
4
|
+
"inputs":[{"name":"","type":"bytes32"}],
|
5
|
+
"name":"filled",
|
6
|
+
"outputs":[{"name":"","type":"uint256"}],
|
7
|
+
"payable":false,
|
8
|
+
"stateMutability":"view",
|
9
|
+
"type":"function"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"constant":false,
|
13
|
+
"inputs":[
|
14
|
+
{
|
15
|
+
"components":[
|
16
|
+
{"name":"makerAddress","type":"address"},
|
17
|
+
{"name":"takerAddress","type":"address"},
|
18
|
+
{"name":"feeRecipientAddress","type":"address"},
|
19
|
+
{"name":"senderAddress","type":"address"},
|
20
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
21
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
22
|
+
{"name":"makerFee","type":"uint256"},
|
23
|
+
{"name":"takerFee","type":"uint256"},
|
24
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
25
|
+
{"name":"salt","type":"uint256"},
|
26
|
+
{"name":"makerAssetData","type":"bytes"},
|
27
|
+
{"name":"takerAssetData","type":"bytes"}
|
28
|
+
],
|
29
|
+
"name":"orders",
|
30
|
+
"type":"tuple[]"
|
31
|
+
},
|
32
|
+
{"name":"takerAssetFillAmounts","type":"uint256[]"},
|
33
|
+
{"name":"signatures","type":"bytes[]"}
|
34
|
+
],
|
35
|
+
"name":"batchFillOrders",
|
36
|
+
"outputs":[
|
37
|
+
{
|
38
|
+
"components":[
|
39
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
40
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
41
|
+
{"name":"makerFeePaid","type":"uint256"},
|
42
|
+
{"name":"takerFeePaid","type":"uint256"}
|
43
|
+
],
|
44
|
+
"name":"totalFillResults",
|
45
|
+
"type":"tuple"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"payable":false,
|
49
|
+
"stateMutability":"nonpayable",
|
50
|
+
"type":"function"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"constant":true,
|
54
|
+
"inputs":[{"name":"","type":"bytes32"}],
|
55
|
+
"name":"cancelled",
|
56
|
+
"outputs":[{"name":"","type":"bool"}],
|
57
|
+
"payable":false,
|
58
|
+
"stateMutability":"view",
|
59
|
+
"type":"function"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"constant":false,
|
63
|
+
"inputs":[
|
64
|
+
{"name":"hash","type":"bytes32"},
|
65
|
+
{"name":"signerAddress","type":"address"},
|
66
|
+
{"name":"signature","type":"bytes"}
|
67
|
+
],
|
68
|
+
"name":"preSign",
|
69
|
+
"outputs":[],
|
70
|
+
"payable":false,
|
71
|
+
"stateMutability":"nonpayable",
|
72
|
+
"type":"function"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"constant":false,
|
76
|
+
"inputs":[
|
77
|
+
{
|
78
|
+
"components":[
|
79
|
+
{"name":"makerAddress","type":"address"},
|
80
|
+
{"name":"takerAddress","type":"address"},
|
81
|
+
{"name":"feeRecipientAddress","type":"address"},
|
82
|
+
{"name":"senderAddress","type":"address"},
|
83
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
84
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
85
|
+
{"name":"makerFee","type":"uint256"},
|
86
|
+
{"name":"takerFee","type":"uint256"},
|
87
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
88
|
+
{"name":"salt","type":"uint256"},
|
89
|
+
{"name":"makerAssetData","type":"bytes"},
|
90
|
+
{"name":"takerAssetData","type":"bytes"}
|
91
|
+
],
|
92
|
+
"name":"leftOrder",
|
93
|
+
"type":"tuple"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"components":[
|
97
|
+
{"name":"makerAddress","type":"address"},
|
98
|
+
{"name":"takerAddress","type":"address"},
|
99
|
+
{"name":"feeRecipientAddress","type":"address"},
|
100
|
+
{"name":"senderAddress","type":"address"},
|
101
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
102
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
103
|
+
{"name":"makerFee","type":"uint256"},
|
104
|
+
{"name":"takerFee","type":"uint256"},
|
105
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
106
|
+
{"name":"salt","type":"uint256"},
|
107
|
+
{"name":"makerAssetData","type":"bytes"},
|
108
|
+
{"name":"takerAssetData","type":"bytes"}
|
109
|
+
],
|
110
|
+
"name":"rightOrder",
|
111
|
+
"type":"tuple"
|
112
|
+
},
|
113
|
+
{"name":"leftSignature","type":"bytes"},
|
114
|
+
{"name":"rightSignature","type":"bytes"}
|
115
|
+
],
|
116
|
+
"name":"matchOrders",
|
117
|
+
"outputs":[
|
118
|
+
{
|
119
|
+
"components":[
|
120
|
+
{
|
121
|
+
"components":[
|
122
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
123
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
124
|
+
{"name":"makerFeePaid","type":"uint256"},
|
125
|
+
{"name":"takerFeePaid","type":"uint256"}
|
126
|
+
],
|
127
|
+
"name":"left",
|
128
|
+
"type":"tuple"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"components":[
|
132
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
133
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
134
|
+
{"name":"makerFeePaid","type":"uint256"},
|
135
|
+
{"name":"takerFeePaid","type":"uint256"}
|
136
|
+
],
|
137
|
+
"name":"right",
|
138
|
+
"type":"tuple"
|
139
|
+
},
|
140
|
+
{"name":"leftMakerAssetSpreadAmount","type":"uint256"}
|
141
|
+
],
|
142
|
+
"name":"matchedFillResults",
|
143
|
+
"type":"tuple"
|
144
|
+
}
|
145
|
+
],
|
146
|
+
"payable":false,
|
147
|
+
"stateMutability":"nonpayable",
|
148
|
+
"type":"function"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"constant":false,
|
152
|
+
"inputs":[
|
153
|
+
{
|
154
|
+
"components":[
|
155
|
+
{"name":"makerAddress","type":"address"},
|
156
|
+
{"name":"takerAddress","type":"address"},
|
157
|
+
{"name":"feeRecipientAddress","type":"address"},
|
158
|
+
{"name":"senderAddress","type":"address"},
|
159
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
160
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
161
|
+
{"name":"makerFee","type":"uint256"},
|
162
|
+
{"name":"takerFee","type":"uint256"},
|
163
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
164
|
+
{"name":"salt","type":"uint256"},
|
165
|
+
{"name":"makerAssetData","type":"bytes"},
|
166
|
+
{"name":"takerAssetData","type":"bytes"}
|
167
|
+
],
|
168
|
+
"name":"order",
|
169
|
+
"type":"tuple"
|
170
|
+
},
|
171
|
+
{"name":"takerAssetFillAmount","type":"uint256"},
|
172
|
+
{"name":"signature","type":"bytes"}
|
173
|
+
],
|
174
|
+
"name":"fillOrderNoThrow",
|
175
|
+
"outputs":[
|
176
|
+
{
|
177
|
+
"components":[
|
178
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
179
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
180
|
+
{"name":"makerFeePaid","type":"uint256"},
|
181
|
+
{"name":"takerFeePaid","type":"uint256"}
|
182
|
+
],
|
183
|
+
"name":"fillResults",
|
184
|
+
"type":"tuple"
|
185
|
+
}
|
186
|
+
],
|
187
|
+
"payable":false,
|
188
|
+
"stateMutability":"nonpayable",
|
189
|
+
"type":"function"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"constant":true,
|
193
|
+
"inputs":[{"name":"","type":"bytes4"}],
|
194
|
+
"name":"assetProxies",
|
195
|
+
"outputs":[{"name":"","type":"address"}],
|
196
|
+
"payable":false,
|
197
|
+
"stateMutability":"view",
|
198
|
+
"type":"function"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"constant":false,
|
202
|
+
"inputs":[
|
203
|
+
{
|
204
|
+
"components":[
|
205
|
+
{"name":"makerAddress","type":"address"},
|
206
|
+
{"name":"takerAddress","type":"address"},
|
207
|
+
{"name":"feeRecipientAddress","type":"address"},
|
208
|
+
{"name":"senderAddress","type":"address"},
|
209
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
210
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
211
|
+
{"name":"makerFee","type":"uint256"},
|
212
|
+
{"name":"takerFee","type":"uint256"},
|
213
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
214
|
+
{"name":"salt","type":"uint256"},
|
215
|
+
{"name":"makerAssetData","type":"bytes"},
|
216
|
+
{"name":"takerAssetData","type":"bytes"}
|
217
|
+
],
|
218
|
+
"name":"orders",
|
219
|
+
"type":"tuple[]"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"name":"batchCancelOrders",
|
223
|
+
"outputs":[],
|
224
|
+
"payable":false,
|
225
|
+
"stateMutability":"nonpayable",
|
226
|
+
"type":"function"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"constant":false,
|
230
|
+
"inputs":[
|
231
|
+
{
|
232
|
+
"components":[
|
233
|
+
{"name":"makerAddress","type":"address"},
|
234
|
+
{"name":"takerAddress","type":"address"},
|
235
|
+
{"name":"feeRecipientAddress","type":"address"},
|
236
|
+
{"name":"senderAddress","type":"address"},
|
237
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
238
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
239
|
+
{"name":"makerFee","type":"uint256"},
|
240
|
+
{"name":"takerFee","type":"uint256"},
|
241
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
242
|
+
{"name":"salt","type":"uint256"},
|
243
|
+
{"name":"makerAssetData","type":"bytes"},
|
244
|
+
{"name":"takerAssetData","type":"bytes"}
|
245
|
+
],
|
246
|
+
"name":"orders",
|
247
|
+
"type":"tuple[]"
|
248
|
+
},
|
249
|
+
{"name":"takerAssetFillAmounts","type":"uint256[]"},
|
250
|
+
{"name":"signatures","type":"bytes[]"}
|
251
|
+
],
|
252
|
+
"name":"batchFillOrKillOrders",
|
253
|
+
"outputs":[
|
254
|
+
{
|
255
|
+
"components":[
|
256
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
257
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
258
|
+
{"name":"makerFeePaid","type":"uint256"},
|
259
|
+
{"name":"takerFeePaid","type":"uint256"}
|
260
|
+
],
|
261
|
+
"name":"totalFillResults",
|
262
|
+
"type":"tuple"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"payable":false,
|
266
|
+
"stateMutability":"nonpayable",
|
267
|
+
"type":"function"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"constant":false,
|
271
|
+
"inputs":[{"name":"targetOrderEpoch","type":"uint256"}],
|
272
|
+
"name":"cancelOrdersUpTo",
|
273
|
+
"outputs":[],
|
274
|
+
"payable":false,
|
275
|
+
"stateMutability":"nonpayable",
|
276
|
+
"type":"function"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"constant":false,
|
280
|
+
"inputs":[
|
281
|
+
{
|
282
|
+
"components":[
|
283
|
+
{"name":"makerAddress","type":"address"},
|
284
|
+
{"name":"takerAddress","type":"address"},
|
285
|
+
{"name":"feeRecipientAddress","type":"address"},
|
286
|
+
{"name":"senderAddress","type":"address"},
|
287
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
288
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
289
|
+
{"name":"makerFee","type":"uint256"},
|
290
|
+
{"name":"takerFee","type":"uint256"},
|
291
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
292
|
+
{"name":"salt","type":"uint256"},
|
293
|
+
{"name":"makerAssetData","type":"bytes"},
|
294
|
+
{"name":"takerAssetData","type":"bytes"}
|
295
|
+
],
|
296
|
+
"name":"orders",
|
297
|
+
"type":"tuple[]"
|
298
|
+
},
|
299
|
+
{"name":"takerAssetFillAmounts","type":"uint256[]"},
|
300
|
+
{"name":"signatures","type":"bytes[]"}
|
301
|
+
],
|
302
|
+
"name":"batchFillOrdersNoThrow",
|
303
|
+
"outputs":[
|
304
|
+
{
|
305
|
+
"components":[
|
306
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
307
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
308
|
+
{"name":"makerFeePaid","type":"uint256"},
|
309
|
+
{"name":"takerFeePaid","type":"uint256"}
|
310
|
+
],
|
311
|
+
"name":"totalFillResults",
|
312
|
+
"type":"tuple"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"payable":false,
|
316
|
+
"stateMutability":"nonpayable",
|
317
|
+
"type":"function"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"constant":true,
|
321
|
+
"inputs":[{"name":"assetProxyId","type":"bytes4"}],
|
322
|
+
"name":"getAssetProxy",
|
323
|
+
"outputs":[{"name":"","type":"address"}],
|
324
|
+
"payable":false,
|
325
|
+
"stateMutability":"view",
|
326
|
+
"type":"function"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"constant":true,
|
330
|
+
"inputs":[{"name":"","type":"bytes32"}],
|
331
|
+
"name":"transactions",
|
332
|
+
"outputs":[{"name":"","type":"bool"}],
|
333
|
+
"payable":false,
|
334
|
+
"stateMutability":"view",
|
335
|
+
"type":"function"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"constant":false,
|
339
|
+
"inputs":[
|
340
|
+
{
|
341
|
+
"components":[
|
342
|
+
{"name":"makerAddress","type":"address"},
|
343
|
+
{"name":"takerAddress","type":"address"},
|
344
|
+
{"name":"feeRecipientAddress","type":"address"},
|
345
|
+
{"name":"senderAddress","type":"address"},
|
346
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
347
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
348
|
+
{"name":"makerFee","type":"uint256"},
|
349
|
+
{"name":"takerFee","type":"uint256"},
|
350
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
351
|
+
{"name":"salt","type":"uint256"},
|
352
|
+
{"name":"makerAssetData","type":"bytes"},
|
353
|
+
{"name":"takerAssetData","type":"bytes"}
|
354
|
+
],
|
355
|
+
"name":"order",
|
356
|
+
"type":"tuple"
|
357
|
+
},
|
358
|
+
{"name":"takerAssetFillAmount","type":"uint256"},
|
359
|
+
{"name":"signature","type":"bytes"}
|
360
|
+
],
|
361
|
+
"name":"fillOrKillOrder",
|
362
|
+
"outputs":[
|
363
|
+
{
|
364
|
+
"components":[
|
365
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
366
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
367
|
+
{"name":"makerFeePaid","type":"uint256"},
|
368
|
+
{"name":"takerFeePaid","type":"uint256"}
|
369
|
+
],
|
370
|
+
"name":"fillResults",
|
371
|
+
"type":"tuple"
|
372
|
+
}
|
373
|
+
],
|
374
|
+
"payable":false,
|
375
|
+
"stateMutability":"nonpayable",
|
376
|
+
"type":"function"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"constant":false,
|
380
|
+
"inputs":[
|
381
|
+
{"name":"validatorAddress","type":"address"},
|
382
|
+
{"name":"approval","type":"bool"}
|
383
|
+
],
|
384
|
+
"name":"setSignatureValidatorApproval",
|
385
|
+
"outputs":[],
|
386
|
+
"payable":false,
|
387
|
+
"stateMutability":"nonpayable",
|
388
|
+
"type":"function"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"constant":true,
|
392
|
+
"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],
|
393
|
+
"name":"allowedValidators",
|
394
|
+
"outputs":[{"name":"","type":"bool"}],
|
395
|
+
"payable":false,
|
396
|
+
"stateMutability":"view",
|
397
|
+
"type":"function"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"constant":false,
|
401
|
+
"inputs":[
|
402
|
+
{
|
403
|
+
"components":[
|
404
|
+
{"name":"makerAddress","type":"address"},
|
405
|
+
{"name":"takerAddress","type":"address"},
|
406
|
+
{"name":"feeRecipientAddress","type":"address"},
|
407
|
+
{"name":"senderAddress","type":"address"},
|
408
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
409
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
410
|
+
{"name":"makerFee","type":"uint256"},
|
411
|
+
{"name":"takerFee","type":"uint256"},
|
412
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
413
|
+
{"name":"salt","type":"uint256"},
|
414
|
+
{"name":"makerAssetData","type":"bytes"},
|
415
|
+
{"name":"takerAssetData","type":"bytes"}
|
416
|
+
],
|
417
|
+
"name":"orders",
|
418
|
+
"type":"tuple[]"
|
419
|
+
},
|
420
|
+
{"name":"takerAssetFillAmount","type":"uint256"},
|
421
|
+
{"name":"signatures","type":"bytes[]"}
|
422
|
+
],
|
423
|
+
"name":"marketSellOrders",
|
424
|
+
"outputs":[
|
425
|
+
{
|
426
|
+
"components":[
|
427
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
428
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
429
|
+
{"name":"makerFeePaid","type":"uint256"},
|
430
|
+
{"name":"takerFeePaid","type":"uint256"}
|
431
|
+
],
|
432
|
+
"name":"totalFillResults",
|
433
|
+
"type":"tuple"
|
434
|
+
}
|
435
|
+
],
|
436
|
+
"payable":false,
|
437
|
+
"stateMutability":"nonpayable",
|
438
|
+
"type":"function"
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"constant":true,
|
442
|
+
"inputs":[
|
443
|
+
{
|
444
|
+
"components":[
|
445
|
+
{"name":"makerAddress","type":"address"},
|
446
|
+
{"name":"takerAddress","type":"address"},
|
447
|
+
{"name":"feeRecipientAddress","type":"address"},
|
448
|
+
{"name":"senderAddress","type":"address"},
|
449
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
450
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
451
|
+
{"name":"makerFee","type":"uint256"},
|
452
|
+
{"name":"takerFee","type":"uint256"},
|
453
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
454
|
+
{"name":"salt","type":"uint256"},
|
455
|
+
{"name":"makerAssetData","type":"bytes"},
|
456
|
+
{"name":"takerAssetData","type":"bytes"}
|
457
|
+
],
|
458
|
+
"name":"orders",
|
459
|
+
"type":"tuple[]"
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"name":"getOrdersInfo",
|
463
|
+
"outputs":[
|
464
|
+
{
|
465
|
+
"components":[
|
466
|
+
{"name":"orderStatus","type":"uint8"},
|
467
|
+
{"name":"orderHash","type":"bytes32"},
|
468
|
+
{"name":"orderTakerAssetFilledAmount","type":"uint256"}
|
469
|
+
],
|
470
|
+
"name":"",
|
471
|
+
"type":"tuple[]"
|
472
|
+
}
|
473
|
+
],
|
474
|
+
"payable":false,
|
475
|
+
"stateMutability":"view",
|
476
|
+
"type":"function"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"constant":true,
|
480
|
+
"inputs":[{"name":"","type":"bytes32"},{"name":"","type":"address"}],
|
481
|
+
"name":"preSigned",
|
482
|
+
"outputs":[{"name":"","type":"bool"}],
|
483
|
+
"payable":false,
|
484
|
+
"stateMutability":"view",
|
485
|
+
"type":"function"
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"constant":true,
|
489
|
+
"inputs":[],
|
490
|
+
"name":"owner",
|
491
|
+
"outputs":[{"name":"","type":"address"}],
|
492
|
+
"payable":false,
|
493
|
+
"stateMutability":"view",
|
494
|
+
"type":"function"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"constant":true,
|
498
|
+
"inputs":[
|
499
|
+
{"name":"hash","type":"bytes32"},
|
500
|
+
{"name":"signerAddress","type":"address"},
|
501
|
+
{"name":"signature","type":"bytes"}
|
502
|
+
],
|
503
|
+
"name":"isValidSignature",
|
504
|
+
"outputs":[{"name":"isValid","type":"bool"}],
|
505
|
+
"payable":false,
|
506
|
+
"stateMutability":"view",
|
507
|
+
"type":"function"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"constant":false,
|
511
|
+
"inputs":[
|
512
|
+
{
|
513
|
+
"components":[
|
514
|
+
{"name":"makerAddress","type":"address"},
|
515
|
+
{"name":"takerAddress","type":"address"},
|
516
|
+
{"name":"feeRecipientAddress","type":"address"},
|
517
|
+
{"name":"senderAddress","type":"address"},
|
518
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
519
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
520
|
+
{"name":"makerFee","type":"uint256"},
|
521
|
+
{"name":"takerFee","type":"uint256"},
|
522
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
523
|
+
{"name":"salt","type":"uint256"},
|
524
|
+
{"name":"makerAssetData","type":"bytes"},
|
525
|
+
{"name":"takerAssetData","type":"bytes"}
|
526
|
+
],
|
527
|
+
"name":"orders",
|
528
|
+
"type":"tuple[]"
|
529
|
+
},
|
530
|
+
{"name":"makerAssetFillAmount","type":"uint256"},
|
531
|
+
{"name":"signatures","type":"bytes[]"}
|
532
|
+
],
|
533
|
+
"name":"marketBuyOrdersNoThrow",
|
534
|
+
"outputs":[
|
535
|
+
{
|
536
|
+
"components":[
|
537
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
538
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
539
|
+
{"name":"makerFeePaid","type":"uint256"},
|
540
|
+
{"name":"takerFeePaid","type":"uint256"}
|
541
|
+
],
|
542
|
+
"name":"totalFillResults",
|
543
|
+
"type":"tuple"
|
544
|
+
}
|
545
|
+
],
|
546
|
+
"payable":false,
|
547
|
+
"stateMutability":"nonpayable",
|
548
|
+
"type":"function"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"constant":false,
|
552
|
+
"inputs":[
|
553
|
+
{
|
554
|
+
"components":[
|
555
|
+
{"name":"makerAddress","type":"address"},
|
556
|
+
{"name":"takerAddress","type":"address"},
|
557
|
+
{"name":"feeRecipientAddress","type":"address"},
|
558
|
+
{"name":"senderAddress","type":"address"},
|
559
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
560
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
561
|
+
{"name":"makerFee","type":"uint256"},
|
562
|
+
{"name":"takerFee","type":"uint256"},
|
563
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
564
|
+
{"name":"salt","type":"uint256"},
|
565
|
+
{"name":"makerAssetData","type":"bytes"},
|
566
|
+
{"name":"takerAssetData","type":"bytes"}
|
567
|
+
],
|
568
|
+
"name":"order",
|
569
|
+
"type":"tuple"
|
570
|
+
},
|
571
|
+
{"name":"takerAssetFillAmount","type":"uint256"},
|
572
|
+
{"name":"signature","type":"bytes"}
|
573
|
+
],
|
574
|
+
"name":"fillOrder",
|
575
|
+
"outputs":[
|
576
|
+
{
|
577
|
+
"components":[
|
578
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
579
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
580
|
+
{"name":"makerFeePaid","type":"uint256"},
|
581
|
+
{"name":"takerFeePaid","type":"uint256"}
|
582
|
+
],
|
583
|
+
"name":"fillResults",
|
584
|
+
"type":"tuple"
|
585
|
+
}
|
586
|
+
],
|
587
|
+
"payable":false,
|
588
|
+
"stateMutability":"nonpayable",
|
589
|
+
"type":"function"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"constant":false,
|
593
|
+
"inputs":[
|
594
|
+
{"name":"salt","type":"uint256"},
|
595
|
+
{"name":"signerAddress","type":"address"},
|
596
|
+
{"name":"data","type":"bytes"},
|
597
|
+
{"name":"signature","type":"bytes"}
|
598
|
+
],
|
599
|
+
"name":"executeTransaction",
|
600
|
+
"outputs":[],
|
601
|
+
"payable":false,
|
602
|
+
"stateMutability":"nonpayable",
|
603
|
+
"type":"function"
|
604
|
+
},
|
605
|
+
{
|
606
|
+
"constant":false,
|
607
|
+
"inputs":[{"name":"assetProxy","type":"address"}],
|
608
|
+
"name":"registerAssetProxy",
|
609
|
+
"outputs":[],
|
610
|
+
"payable":false,
|
611
|
+
"stateMutability":"nonpayable",
|
612
|
+
"type":"function"
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"constant":true,
|
616
|
+
"inputs":[
|
617
|
+
{
|
618
|
+
"components":[
|
619
|
+
{"name":"makerAddress","type":"address"},
|
620
|
+
{"name":"takerAddress","type":"address"},
|
621
|
+
{"name":"feeRecipientAddress","type":"address"},
|
622
|
+
{"name":"senderAddress","type":"address"},
|
623
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
624
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
625
|
+
{"name":"makerFee","type":"uint256"},
|
626
|
+
{"name":"takerFee","type":"uint256"},
|
627
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
628
|
+
{"name":"salt","type":"uint256"},
|
629
|
+
{"name":"makerAssetData","type":"bytes"},
|
630
|
+
{"name":"takerAssetData","type":"bytes"}
|
631
|
+
],
|
632
|
+
"name":"order",
|
633
|
+
"type":"tuple"
|
634
|
+
}
|
635
|
+
],
|
636
|
+
"name":"getOrderInfo",
|
637
|
+
"outputs":[
|
638
|
+
{
|
639
|
+
"components":[
|
640
|
+
{"name":"orderStatus","type":"uint8"},
|
641
|
+
{"name":"orderHash","type":"bytes32"},
|
642
|
+
{"name":"orderTakerAssetFilledAmount","type":"uint256"}
|
643
|
+
],
|
644
|
+
"name":"orderInfo",
|
645
|
+
"type":"tuple"
|
646
|
+
}
|
647
|
+
],
|
648
|
+
"payable":false,
|
649
|
+
"stateMutability":"view",
|
650
|
+
"type":"function"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"constant":false,
|
654
|
+
"inputs":[
|
655
|
+
{
|
656
|
+
"components":[
|
657
|
+
{"name":"makerAddress","type":"address"},
|
658
|
+
{"name":"takerAddress","type":"address"},
|
659
|
+
{"name":"feeRecipientAddress","type":"address"},
|
660
|
+
{"name":"senderAddress","type":"address"},
|
661
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
662
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
663
|
+
{"name":"makerFee","type":"uint256"},
|
664
|
+
{"name":"takerFee","type":"uint256"},
|
665
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
666
|
+
{"name":"salt","type":"uint256"},
|
667
|
+
{"name":"makerAssetData","type":"bytes"},
|
668
|
+
{"name":"takerAssetData","type":"bytes"}
|
669
|
+
],
|
670
|
+
"name":"order",
|
671
|
+
"type":"tuple"
|
672
|
+
}
|
673
|
+
],
|
674
|
+
"name":"cancelOrder",
|
675
|
+
"outputs":[],
|
676
|
+
"payable":false,
|
677
|
+
"stateMutability":"nonpayable",
|
678
|
+
"type":"function"
|
679
|
+
},
|
680
|
+
{
|
681
|
+
"constant":true,
|
682
|
+
"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],
|
683
|
+
"name":"orderEpoch",
|
684
|
+
"outputs":[{"name":"","type":"uint256"}],
|
685
|
+
"payable":false,
|
686
|
+
"stateMutability":"view",
|
687
|
+
"type":"function"
|
688
|
+
},
|
689
|
+
{
|
690
|
+
"constant":true,
|
691
|
+
"inputs":[],
|
692
|
+
"name":"ZRX_ASSET_DATA",
|
693
|
+
"outputs":[{"name":"","type":"bytes"}],
|
694
|
+
"payable":false,
|
695
|
+
"stateMutability":"view",
|
696
|
+
"type":"function"
|
697
|
+
},
|
698
|
+
{
|
699
|
+
"constant":false,
|
700
|
+
"inputs":[
|
701
|
+
{
|
702
|
+
"components":[
|
703
|
+
{"name":"makerAddress","type":"address"},
|
704
|
+
{"name":"takerAddress","type":"address"},
|
705
|
+
{"name":"feeRecipientAddress","type":"address"},
|
706
|
+
{"name":"senderAddress","type":"address"},
|
707
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
708
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
709
|
+
{"name":"makerFee","type":"uint256"},
|
710
|
+
{"name":"takerFee","type":"uint256"},
|
711
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
712
|
+
{"name":"salt","type":"uint256"},
|
713
|
+
{"name":"makerAssetData","type":"bytes"},
|
714
|
+
{"name":"takerAssetData","type":"bytes"}
|
715
|
+
],
|
716
|
+
"name":"orders",
|
717
|
+
"type":"tuple[]"
|
718
|
+
},
|
719
|
+
{"name":"takerAssetFillAmount","type":"uint256"},
|
720
|
+
{"name":"signatures","type":"bytes[]"}
|
721
|
+
],
|
722
|
+
"name":"marketSellOrdersNoThrow",
|
723
|
+
"outputs":[
|
724
|
+
{
|
725
|
+
"components":[
|
726
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
727
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
728
|
+
{"name":"makerFeePaid","type":"uint256"},
|
729
|
+
{"name":"takerFeePaid","type":"uint256"}
|
730
|
+
],
|
731
|
+
"name":"totalFillResults",
|
732
|
+
"type":"tuple"
|
733
|
+
}
|
734
|
+
],
|
735
|
+
"payable":false,
|
736
|
+
"stateMutability":"nonpayable",
|
737
|
+
"type":"function"
|
738
|
+
},
|
739
|
+
{
|
740
|
+
"constant":true,
|
741
|
+
"inputs":[],
|
742
|
+
"name":"EIP712_DOMAIN_HASH",
|
743
|
+
"outputs":[{"name":"","type":"bytes32"}],
|
744
|
+
"payable":false,
|
745
|
+
"stateMutability":"view",
|
746
|
+
"type":"function"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"constant":false,
|
750
|
+
"inputs":[
|
751
|
+
{
|
752
|
+
"components":[
|
753
|
+
{"name":"makerAddress","type":"address"},
|
754
|
+
{"name":"takerAddress","type":"address"},
|
755
|
+
{"name":"feeRecipientAddress","type":"address"},
|
756
|
+
{"name":"senderAddress","type":"address"},
|
757
|
+
{"name":"makerAssetAmount","type":"uint256"},
|
758
|
+
{"name":"takerAssetAmount","type":"uint256"},
|
759
|
+
{"name":"makerFee","type":"uint256"},
|
760
|
+
{"name":"takerFee","type":"uint256"},
|
761
|
+
{"name":"expirationTimeSeconds","type":"uint256"},
|
762
|
+
{"name":"salt","type":"uint256"},
|
763
|
+
{"name":"makerAssetData","type":"bytes"},
|
764
|
+
{"name":"takerAssetData","type":"bytes"}
|
765
|
+
],
|
766
|
+
"name":"orders",
|
767
|
+
"type":"tuple[]"
|
768
|
+
},
|
769
|
+
{"name":"makerAssetFillAmount","type":"uint256"},
|
770
|
+
{"name":"signatures","type":"bytes[]"}
|
771
|
+
],
|
772
|
+
"name":"marketBuyOrders",
|
773
|
+
"outputs":[
|
774
|
+
{
|
775
|
+
"components":[
|
776
|
+
{"name":"makerAssetFilledAmount","type":"uint256"},
|
777
|
+
{"name":"takerAssetFilledAmount","type":"uint256"},
|
778
|
+
{"name":"makerFeePaid","type":"uint256"},
|
779
|
+
{"name":"takerFeePaid","type":"uint256"}
|
780
|
+
],
|
781
|
+
"name":"totalFillResults",
|
782
|
+
"type":"tuple"
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"payable":false,
|
786
|
+
"stateMutability":"nonpayable",
|
787
|
+
"type":"function"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"constant":true,
|
791
|
+
"inputs":[],
|
792
|
+
"name":"currentContextAddress",
|
793
|
+
"outputs":[{"name":"","type":"address"}],
|
794
|
+
"payable":false,
|
795
|
+
"stateMutability":"view",
|
796
|
+
"type":"function"
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"constant":false,
|
800
|
+
"inputs":[{"name":"newOwner","type":"address"}],
|
801
|
+
"name":"transferOwnership",
|
802
|
+
"outputs":[],
|
803
|
+
"payable":false,
|
804
|
+
"stateMutability":"nonpayable",
|
805
|
+
"type":"function"
|
806
|
+
},
|
807
|
+
{
|
808
|
+
"constant":true,
|
809
|
+
"inputs":[],
|
810
|
+
"name":"VERSION",
|
811
|
+
"outputs":[{"name":"","type":"string"}],
|
812
|
+
"payable":false,
|
813
|
+
"stateMutability":"view",
|
814
|
+
"type":"function"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"inputs":[{"name":"_zrxAssetData","type":"bytes"}],
|
818
|
+
"payable":false,
|
819
|
+
"stateMutability":"nonpayable",
|
820
|
+
"type":"constructor"
|
821
|
+
},
|
822
|
+
{
|
823
|
+
"anonymous":false,
|
824
|
+
"inputs":[
|
825
|
+
{"indexed":true,"name":"signerAddress","type":"address"},
|
826
|
+
{"indexed":true,"name":"validatorAddress","type":"address"},
|
827
|
+
{"indexed":false,"name":"approved","type":"bool"}
|
828
|
+
],
|
829
|
+
"name":"SignatureValidatorApproval",
|
830
|
+
"type":"event"
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"anonymous":false,
|
834
|
+
"inputs":[
|
835
|
+
{"indexed":true,"name":"makerAddress","type":"address"},
|
836
|
+
{"indexed":true,"name":"feeRecipientAddress","type":"address"},
|
837
|
+
{"indexed":false,"name":"takerAddress","type":"address"},
|
838
|
+
{"indexed":false,"name":"senderAddress","type":"address"},
|
839
|
+
{"indexed":false,"name":"makerAssetFilledAmount","type":"uint256"},
|
840
|
+
{"indexed":false,"name":"takerAssetFilledAmount","type":"uint256"},
|
841
|
+
{"indexed":false,"name":"makerFeePaid","type":"uint256"},
|
842
|
+
{"indexed":false,"name":"takerFeePaid","type":"uint256"},
|
843
|
+
{"indexed":true,"name":"orderHash","type":"bytes32"},
|
844
|
+
{"indexed":false,"name":"makerAssetData","type":"bytes"},
|
845
|
+
{"indexed":false,"name":"takerAssetData","type":"bytes"}
|
846
|
+
],
|
847
|
+
"name":"Fill",
|
848
|
+
"type":"event"
|
849
|
+
},
|
850
|
+
{
|
851
|
+
"anonymous":false,
|
852
|
+
"inputs":[
|
853
|
+
{"indexed":true,"name":"makerAddress","type":"address"},
|
854
|
+
{"indexed":true,"name":"feeRecipientAddress","type":"address"},
|
855
|
+
{"indexed":false,"name":"senderAddress","type":"address"},
|
856
|
+
{"indexed":true,"name":"orderHash","type":"bytes32"},
|
857
|
+
{"indexed":false,"name":"makerAssetData","type":"bytes"},
|
858
|
+
{"indexed":false,"name":"takerAssetData","type":"bytes"}
|
859
|
+
],
|
860
|
+
"name":"Cancel",
|
861
|
+
"type":"event"
|
862
|
+
},
|
863
|
+
{
|
864
|
+
"anonymous":false,
|
865
|
+
"inputs":[
|
866
|
+
{"indexed":true,"name":"makerAddress","type":"address"},
|
867
|
+
{"indexed":true,"name":"senderAddress","type":"address"},
|
868
|
+
{"indexed":false,"name":"orderEpoch","type":"uint256"}
|
869
|
+
],
|
870
|
+
"name":"CancelUpTo",
|
871
|
+
"type":"event"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"anonymous":false,
|
875
|
+
"inputs":[
|
876
|
+
{"indexed":false,"name":"id","type":"bytes4"},
|
877
|
+
{"indexed":false,"name":"assetProxy","type":"address"}
|
878
|
+
],
|
879
|
+
"name":"AssetProxyRegistered",
|
880
|
+
"type":"event"
|
881
|
+
}
|
882
|
+
]
|