UNPKG

@dethcrypto/eth-sdk

Version:

🛠 Generate type-safe, lightweight SDK for your Ethereum smart contracts

15 lines (14 loc) • 681 B
import { Address } from '../config'; import { Abi } from '../types'; import { RpcProvider } from './getRpcProvider'; export declare function detectProxy(address: Address, abi: Abi, provider: RpcProvider): Promise<DetectProxyResult>; export declare type DetectProxyResult = { implAddress: Address; isProxy: true; } | { isProxy: false; }; /** @internal */ export declare const EIP1967_IMPLEMENTATION_STORAGE_SLOT = "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"; export declare const ZEPPELIN_IMPLEMENTATION_STORAGE_SLOT = "0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3"; export declare const NUMBER_OF_KNOWN_STORAGE_SLOTS = 2;