randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
200 lines (178 loc) • 5.49 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BytesLike,
FunctionFragment,
Result,
Interface,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "../common";
export interface StdErrorInterface extends Interface {
getFunction(
nameOrSignature:
| "arithmeticError"
| "assertionError"
| "divisionError"
| "encodeStorageError"
| "enumConversionError"
| "indexOOBError"
| "memOverflowError"
| "popError"
| "zeroVarError"
): FunctionFragment;
encodeFunctionData(
functionFragment: "arithmeticError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "assertionError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "divisionError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "encodeStorageError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "enumConversionError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "indexOOBError",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "memOverflowError",
values?: undefined
): string;
encodeFunctionData(functionFragment: "popError", values?: undefined): string;
encodeFunctionData(
functionFragment: "zeroVarError",
values?: undefined
): string;
decodeFunctionResult(
functionFragment: "arithmeticError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "assertionError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "divisionError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "encodeStorageError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "enumConversionError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "indexOOBError",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "memOverflowError",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "popError", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "zeroVarError",
data: BytesLike
): Result;
}
export interface StdError extends BaseContract {
connect(runner?: ContractRunner | null): StdError;
waitForDeployment(): Promise<this>;
interface: StdErrorInterface;
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>;
arithmeticError: TypedContractMethod<[], [string], "view">;
assertionError: TypedContractMethod<[], [string], "view">;
divisionError: TypedContractMethod<[], [string], "view">;
encodeStorageError: TypedContractMethod<[], [string], "view">;
enumConversionError: TypedContractMethod<[], [string], "view">;
indexOOBError: TypedContractMethod<[], [string], "view">;
memOverflowError: TypedContractMethod<[], [string], "view">;
popError: TypedContractMethod<[], [string], "view">;
zeroVarError: TypedContractMethod<[], [string], "view">;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "arithmeticError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "assertionError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "divisionError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "encodeStorageError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "enumConversionError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "indexOOBError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "memOverflowError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "popError"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "zeroVarError"
): TypedContractMethod<[], [string], "view">;
filters: {};
}