Add EtherToken events to the ABI

This commit is contained in:
Leonid Logvinov 2017-12-19 14:27:48 +01:00
parent 0056c66d32
commit e92d6ff84f
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4
2 changed files with 36 additions and 2 deletions

View File

@ -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": {

View File

@ -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;
}