Skip to content

Instantly share code, notes, and snippets.

@epheph
Created March 12, 2018 20:20
Show Gist options
  • Save epheph/1065178f24cd6b35d6a196bb151fbbad to your computer and use it in GitHub Desktop.
Save epheph/1065178f24cd6b35d6a196bb151fbbad to your computer and use it in GitHub Desktop.
publicCreateOrder sent: 0xaac996a6d53b2b78052c7c1f6031effcf13aca82f2edef78c265d65dba522086 {"shares":"0.001","price":"750"}
publicCreateOrder sent: 0x87de6f37af6b0df052b1c123cf96a74f29bf2470e585478d1f481594c61b2a4d {"shares":"0.001","price":"500"}
publicCreateOrder sent: 0xfd75d88050d8c00e434630fec5b45d9594e8afa3eba87fd28e8a007d4e314dfe {"shares":"0.001","price":"1000"}
publicCreateOrder success: null {"shares":"0.15","price":"0.1"}
publicCreateOrder success: null {"shares":"0.2","price":"0.12"}
transaction failed: { callReturn: null,
blockHash: '0xcb4a9a25561f7df8ddf5842438e0a110cbc57ac63a8869ea17cf03d537ed88e4',
blockNumber: '0x141',
from: '0x913da4198e6be1d5f5e4a40d0667f70c0b5430eb',
gas: '0x5b8d80',
gasPrice: '0x3b9aca00',
hash: '0x19b948c5d5afa8afa51e333d197e2c6074a7084db4176e2734051b60eb2c4579',
input: '0x3ae4ce0a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000036600000000000000000000000034ee753171d168c56a319e56612a7bb575a3fa0c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d126bf625e86eb9e28ad4929afaa6f68e956feba5a495dc56f78f418e76a100f',
nonce: '0xdb',
to: '0x257b56115544e9519fb2de5b7b99c3c2150528fb',
transactionIndex: '0x2',
value: '0x2d3078626138343738636162353430303030',
v: '0x1c',
r: '0xd0b0af5a5e6aa2b898470f6118bfa06336649a8df053dea0cc61d16e5b7b6e2d',
s: '0x5e0155c1b6b193120a84dc8e73767421c2669e7b5d9941ca9875a13811d5ae81',
timestamp: 1520885324,
gasFees: '0.000121869' } { constant: false,
name: 'publicCreateOrder',
inputs:
[ '_type',
'_attoshares',
'_displayPrice',
'_market',
'_outcome',
'_betterOrderId',
'_worseOrderId',
'_tradeGroupId' ],
signature:
[ 'uint8',
'uint256',
'uint256',
'address',
'uint256',
'bytes32',
'bytes32',
'bytes32' ],
returns: 'null',
from: '0x913da4198e6be1d5f5e4a40d0667f70c0b5430eb',
to: '0x257b56115544e9519fb2de5b7b99c3c2150528fb',
params:
[ 1,
'0x00000000000000000000000000000000000000000000000000038d7ea4c68000',
'0x0000000000000000000000000000000000000000000000000000000000000366',
'0x34ee753171d168c56a319e56612a7bb575a3fa0c',
'0x0000000000000000000000000000000000000000000000000000000000000001',
'0x0000000000000000000000000000000000000000000000000000000000000000',
'0x0000000000000000000000000000000000000000000000000000000000000000',
'0xd126bf625e86eb9e28ad4929afaa6f68e956feba5a495dc56f78f418e76a100f' ],
value: '-0xba8478cab540000',
gas: '0x5b8d80',
uuid: '9e5338a5-3ba0-46b8-8f44-260ebe912c2f',
send: true } 0x19b948c5d5afa8afa51e333d197e2c6074a7084db4176e2734051b60eb2c4579 0x19b948c5d5afa8afa51e333d197e2c6074a7084db4176e2734051b60eb2c4579
publicCreateOrder failed: { Error: TRANSACTION_FAILED
at RPCError.get (/Users/epheph/augur/augur.js/node_modules/ethrpc/src/errors/rpc-error.js:16:14)
at formatError (util.js:639:16)
at formatValue (util.js:541:18)
at inspect (util.js:321:10)
at format (util.js:250:18)
at Console.warn (console.js:139:21)
at onFailed (/Users/epheph/augur/augur.js/scripts/dp/lib/create-order.js:63:21)
at Object.onFailed (/Users/epheph/augur/augur.js/node_modules/ethrpc/src/transact/wrap-on-failed-callback.js:14:5)
at unlockTransaction (/Users/epheph/augur/augur.js/node_modules/ethrpc/src/transact/update-transaction.js:12:21)
at /Users/epheph/augur/augur.js/node_modules/ethrpc/src/transact/update-sealed-transaction.js:31:11
message: 'Transaction failed',
callReturn: null,
blockHash: '0xcb4a9a25561f7df8ddf5842438e0a110cbc57ac63a8869ea17cf03d537ed88e4',
blockNumber: '0x141',
from: '0x913da4198e6be1d5f5e4a40d0667f70c0b5430eb',
gas: '0x5b8d80',
gasPrice: '0x3b9aca00',
hash: '0x19b948c5d5afa8afa51e333d197e2c6074a7084db4176e2734051b60eb2c4579',
input: '0x3ae4ce0a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000036600000000000000000000000034ee753171d168c56a319e56612a7bb575a3fa0c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d126bf625e86eb9e28ad4929afaa6f68e956feba5a495dc56f78f418e76a100f',
nonce: '0xdb',
to: '0x257b56115544e9519fb2de5b7b99c3c2150528fb',
transactionIndex: '0x2',
value: '0x2d3078626138343738636162353430303030',
v: '0x1c',
r: '0xd0b0af5a5e6aa2b898470f6118bfa06336649a8df053dea0cc61d16e5b7b6e2d',
s: '0x5e0155c1b6b193120a84dc8e73767421c2669e7b5d9941ca9875a13811d5ae81',
timestamp: 1520885324,
gasFees: '0.000121869' } {"shares":"0.001","price":"29"}
Failure!
Transaction failed
-------- BACKTRACE ------
Error: TRANSACTION_FAILED
at RPCError.get (/Users/epheph/augur/augur.js/node_modules/ethrpc/src/errors/rpc-error.js:16:14)
at showError (/Users/epheph/augur/augur.js/scripts/dp/index.js:172:23)
at /Users/epheph/augur/augur.js/scripts/dp/index.js:192:27
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:52:16
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:322:29
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:44:16
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:52:16
at done (/Users/epheph/augur/augur.js/node_modules/async/lib/async.js:241:17)
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:44:16
at /Users/epheph/augur/augur.js/node_modules/async/lib/async.js:52:16
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment