diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 21:27:48 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 21:01:59 +0800 |
commit | e92d6ff84f781005eb01cc5e82eed29a244c9ee8 (patch) | |
tree | d20d2e5f8cbaf1a95c86ebd079fd92e41a08ce20 /packages/0x.js/src | |
parent | 0056c66d324ca4d8cee82a84ff64b4832ea360f9 (diff) | |
download | dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar.gz dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar.bz2 dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar.lz dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar.xz dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.tar.zst dexon-sol-tools-e92d6ff84f781005eb01cc5e82eed29a244c9ee8.zip |
Add EtherToken events to the ABI
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r-- | packages/0x.js/src/artifacts/EtherToken.json | 34 | ||||
-rw-r--r-- | packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 4 |
2 files changed, 36 insertions, 2 deletions
diff --git a/packages/0x.js/src/artifacts/EtherToken.json b/packages/0x.js/src/artifacts/EtherToken.json index de6946cf2..0a6c5644c 100644 --- a/packages/0x.js/src/artifacts/EtherToken.json +++ b/packages/0x.js/src/artifacts/EtherToken.json @@ -231,6 +231,40 @@ ], "name": "Approval", "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "name": "_value", + "type": "uint" + } + ], + "name": "Deposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "name": "_value", + "type": "uint" + } + ], + "name": "Withdrawal", + "type": "event" } ], "networks": { diff --git a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts index 1edc50cb0..b1d5a0ccc 100644 --- a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts @@ -104,7 +104,7 @@ export class EtherTokenWrapper extends ContractWrapper { assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); const logs = await this._getLogsAsync<ArgsType>( - etherTokenAddress, eventName, blockRange, indexFilterValues, artifacts.TokenArtifact.abi, + etherTokenAddress, eventName, blockRange, indexFilterValues, artifacts.EtherTokenArtifact.abi, ); return logs; } @@ -125,7 +125,7 @@ export class EtherTokenWrapper extends ContractWrapper { assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); assert.isFunction('callback', callback); const subscriptionToken = this._subscribe<ArgsType>( - etherTokenAddress, eventName, indexFilterValues, artifacts.TokenArtifact.abi, callback, + etherTokenAddress, eventName, indexFilterValues, artifacts.EtherTokenArtifact.abi, callback, ); return subscriptionToken; } |