UNPKG

randomness-js

Version:

A library for consuming, verifying and using randomness from the dcipher network

144 lines (143 loc) 7.34 kB
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "./common"; export interface LinkTokenInterfaceInterface extends Interface { getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "decreaseApproval" | "increaseApproval" | "name" | "symbol" | "totalSupply" | "transfer" | "transferAndCall" | "transferFrom"): FunctionFragment; encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "decreaseApproval", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "increaseApproval", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string; encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "transferAndCall", values: [AddressLike, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decreaseApproval", data: BytesLike): Result; decodeFunctionResult(functionFragment: "increaseApproval", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferAndCall", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result; } export interface LinkTokenInterface extends BaseContract { connect(runner?: ContractRunner | null): LinkTokenInterface; waitForDeployment(): Promise<this>; interface: LinkTokenInterfaceInterface; queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>; allowance: TypedContractMethod<[ owner: AddressLike, spender: AddressLike ], [ bigint ], "view">; approve: TypedContractMethod<[ spender: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">; decimals: TypedContractMethod<[], [bigint], "view">; decreaseApproval: TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; increaseApproval: TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ void ], "nonpayable">; name: TypedContractMethod<[], [string], "view">; symbol: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod<[ to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; transferAndCall: TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike ], [ boolean ], "nonpayable">; transferFrom: TypedContractMethod<[ from: AddressLike, to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "allowance"): TypedContractMethod<[ owner: AddressLike, spender: AddressLike ], [ bigint ], "view">; getFunction(nameOrSignature: "approve"): TypedContractMethod<[ spender: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "decreaseApproval"): TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "increaseApproval"): TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "transfer"): TypedContractMethod<[ to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "transferAndCall"): TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[ from: AddressLike, to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; filters: {}; }