dop-stick
Version:
Source control tooling for versionable-upgradeable smart contracts
15 lines • 661 B
TypeScript
import { ethers } from 'ethers';
import { CacheManagerConfig } from '../types/cache';
export interface DiamondConfig {
rpcUrl?: string;
diamondAddress?: string;
network?: string;
}
export declare function getProvider(config?: Partial<DiamondConfig>): ethers.providers.Provider;
export declare function createProviderAndGetAddress(config: DiamondConfig): {
provider: ethers.providers.Provider;
diamondAddress: string;
};
export declare function getProviderForCacheConfig(config: CacheManagerConfig): Promise<ethers.providers.JsonRpcProvider>;
export declare function getSigner(): Promise<ethers.Signer>;
//# sourceMappingURL=provider.d.ts.map