UNPKG

@gateway.fm/gtw-dvf-client-js

Version:

DVF client js lib with gateway.fm rpc endpoints

40 lines (36 loc) 2.16 kB
// deposit error for no token balance const error = 'Error: Transaction has been reverted by the EVM:' const web3DepositFailure = { blockHash: '0x9ce805a3b290df33697a06b1a0f589ab162d76301e09b0ed017401bdf53ff957', blockNumber: 7774151, contractAddress: null, cumulativeGasUsed: 87847, from: '0x2052ee5906cd4281d44222cf57503025f47ae32b', gasUsed: 59011, logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', status: false, to: '0xa9f9cc1189b9d6051b26467b29629787c671905d', transactionHash: '0xbfc0dbbc1308ec2e2cd0d8c15c07d50687e9731ae486f5ba9e475848b745a949', transactionIndex: 1, events: {} } const web3DepositSuccess = { blockHash: '0x593704366c0f84c02fbfc93f2799978c3d2de03604c520fe203cf2244aa02a81', blockNumber: 7774183, contractAddress: null, cumulativeGasUsed: 68425, from: '0x2052ee5906cd4281d44222cf57503025f47ae32b', gasUsed: 68425, logsBloom: '0x80000000400100000200000001000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000200000080000800000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000010000000000000000000000000000000000000000020000000000000000000000000100000020000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000008200000000000000000000010800000000000000000001000000000000000000000000000000000000000', status: true, to: '0xa9f9cc1189b9d6051b26467b29629787c671905d', transactionHash: '0x63851308c2f14cb27e131e72400cc6b7a7c0f48b7daf5f85c68c2ef510ae8d3f', transactionIndex: 0, events: { '0': [Object], '1': [Object], LogDeposit: [Object] } }