A reactive data-store for web3 and smart contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
564 B

4 years ago
import { ABI } from "./IContract";
export interface IContractConfig {
contractName: string;
web3Contract?: {
options: {
jsonInterface: ABI;
}
};
abi?: ABI;
}
export interface IContractInitialState {
[key: string]: {};
initialized: boolean;
synced: boolean;
}
export interface IContractOptions {
contracts?: IContractConfig[];
}
export function generateContractInitialState(contractConfig: IContractConfig): IContractInitialState;
export function generateContractsInitialState(options: IContractOptions): IContractInitialState[];