mirror of https://gitlab.com/ecentrics/drizzle
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.
25 lines
564 B
25 lines
564 B
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[];
|
|
|