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.
36 lines
808 B
36 lines
808 B
import { Store } from 'redux';
|
|
import { IStoreConfig } from './generateStore';
|
|
import { IContract } from './IContract';
|
|
import { IContractConfig } from './contractStateUtils';
|
|
|
|
export interface IDrizzleOptions {
|
|
contracts: IContract[];
|
|
events?: {
|
|
[contractName: string]: any;
|
|
};
|
|
polls?: {
|
|
accounts?: number;
|
|
blocks?: number;
|
|
};
|
|
syncAlways?: any;
|
|
web3?: {
|
|
customProvider?: any;
|
|
fallback?: {
|
|
type: string;
|
|
url: string;
|
|
}
|
|
},
|
|
networkWhitelist?: number[];
|
|
}
|
|
|
|
export class Drizzle {
|
|
constructor(options?: IDrizzleOptions, store?: Store);
|
|
|
|
addContract(contractConfig: IContractConfig, events: any[]): void;
|
|
|
|
deleteContract(contractName: string): void;
|
|
|
|
findContractByAddress(address: string): IContract;
|
|
|
|
generateStore(options: IStoreConfig): Store;
|
|
}
|