|
|
@ -20,6 +20,7 @@ import { ContractStatus } from './utils/status'; |
|
|
|
export class Contract { |
|
|
|
export class Contract { |
|
|
|
methods: any; |
|
|
|
methods: any; |
|
|
|
events: any; |
|
|
|
events: any; |
|
|
|
|
|
|
|
abi: any = []; |
|
|
|
abiModel: any | AbiModel; |
|
|
|
abiModel: any | AbiModel; |
|
|
|
abiCoder: AbiCoderClass; |
|
|
|
abiCoder: AbiCoderClass; |
|
|
|
options: ContractOptions | any; |
|
|
|
options: ContractOptions | any; |
|
|
@ -38,6 +39,7 @@ export class Contract { |
|
|
|
status: ContractStatus = ContractStatus.INITIALISED, |
|
|
|
status: ContractStatus = ContractStatus.INITIALISED, |
|
|
|
) { |
|
|
|
) { |
|
|
|
// super();
|
|
|
|
// super();
|
|
|
|
|
|
|
|
this.abi = abi; |
|
|
|
this.abiCoder = AbiCoder(); |
|
|
|
this.abiCoder = AbiCoder(); |
|
|
|
this.abiModel = abiMapper(abi, this.abiCoder); |
|
|
|
this.abiModel = abiMapper(abi, this.abiCoder); |
|
|
|
this.options = options; |
|
|
|
this.options = options; |
|
|
|