Move our contract templates to accept Provider instead of Web3Wrapper

This commit is contained in:
Leonid Logvinov
2018-04-03 16:19:38 +03:00
parent 674e56cea6
commit 249bf0163d
85 changed files with 791 additions and 719 deletions

View File

@@ -1,4 +1,13 @@
[
{
"version": "0.6.0",
"changes": [
{
"note": "Add Provider type",
"pr": 501
}
]
},
{
"version": "0.5.0",
"changes": [

View File

@@ -1,5 +1,9 @@
import { BigNumber } from 'bignumber.js';
export interface Provider {
sendAsync(payload: JSONRPCRequestPayload, callback: (err: Error, result: JSONRPCResponsePayload) => void): void;
}
export type ContractAbi = AbiDefinition[];
export type AbiDefinition = FunctionAbi | EventAbi;