UNPKG

@holographxyz/cli

Version:
32 lines (31 loc) 1.17 kB
import { Command } from '@oclif/core'; import { ethers } from 'ethers'; import { ConfigFile } from '../../utils/config'; import { Environment } from '@holographxyz/environment'; export default class Nft extends Command { static LAST_BLOCKS_FILE_NAME: string; static description: string; static examples: string[]; static flags: { address: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; output: import("@oclif/core/lib/interfaces").OptionFlag<string>; }; tokenId: string; contractAddress: string; registryAddress: string; supportedNetworks: string[]; providers: { [key: string]: ethers.providers.JsonRpcProvider | ethers.providers.WebSocketProvider; }; holograph: ethers.Contract; registryContract: ethers.Contract; erc721Contract: ethers.Contract; initializeEthers(configFile: ConfigFile, environment: Environment): Promise<void>; validateContractAddress(): Promise<void>; validateTokenId(): Promise<void>; /** * Command Entry Point */ run(): Promise<void>; }