@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
20 lines (19 loc) • 768 B
TypeScript
import { NetworksRegistry } from '@pinax/graph-networks-registry';
import ABI from '../protocols/ethereum/abi.js';
export declare class ContractService {
private registry;
constructor(registry: NetworksRegistry);
private fetchFromEtherscan;
private applyVars;
private getEtherscanUrls;
private getRpcUrls;
getABI(ABICtor: typeof ABI, networkId: string, address: string): Promise<ABI>;
getStartBlock(networkId: string, address: string): Promise<string>;
getContractName(networkId: string, address: string): Promise<string>;
getFromSourcify(ABICtor: typeof ABI, networkId: string, address: string): Promise<{
abi: ABI;
startBlock: string;
name: string;
} | null>;
private fetchTransactionByHash;
}