Move our contract templates to accept Provider instead of Web3Wrapper
This commit is contained in:
		@@ -1,4 +1,13 @@
 | 
			
		||||
[
 | 
			
		||||
    {
 | 
			
		||||
        "version": "0.6.0",
 | 
			
		||||
        "changes": [
 | 
			
		||||
            {
 | 
			
		||||
                "note": "Add Provider type",
 | 
			
		||||
                "pr": 501
 | 
			
		||||
            }
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "version": "0.5.0",
 | 
			
		||||
        "changes": [
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user