2019-05-14 18:48:48 -04:00
|
|
|
import { BigNumber } from "@ethersproject/bignumber";
|
|
|
|
export interface JsonFragmentType {
|
2021-03-30 15:22:45 -04:00
|
|
|
readonly name?: string;
|
|
|
|
readonly indexed?: boolean;
|
|
|
|
readonly type?: string;
|
|
|
|
readonly components?: ReadonlyArray<JsonFragmentType>;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
|
|
|
export interface JsonFragment {
|
2021-03-30 15:22:45 -04:00
|
|
|
readonly name?: string;
|
|
|
|
readonly type?: string;
|
|
|
|
readonly anonymous?: boolean;
|
|
|
|
readonly payable?: boolean;
|
|
|
|
readonly constant?: boolean;
|
|
|
|
readonly stateMutability?: string;
|
|
|
|
readonly inputs?: ReadonlyArray<JsonFragmentType>;
|
|
|
|
readonly outputs?: ReadonlyArray<JsonFragmentType>;
|
|
|
|
readonly gas?: string;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
2019-07-20 20:13:00 -03:00
|
|
|
export declare const FormatTypes: {
|
|
|
|
[name: string]: string;
|
|
|
|
};
|
2019-05-14 18:48:48 -04:00
|
|
|
export declare class ParamType {
|
|
|
|
readonly name: string;
|
|
|
|
readonly type: string;
|
|
|
|
readonly baseType: string;
|
|
|
|
readonly indexed: boolean;
|
|
|
|
readonly components: Array<ParamType>;
|
|
|
|
readonly arrayLength: number;
|
|
|
|
readonly arrayChildren: ParamType;
|
2019-06-11 17:57:04 -04:00
|
|
|
readonly _isParamType: boolean;
|
2019-05-14 18:48:48 -04:00
|
|
|
constructor(constructorGuard: any, params: any);
|
2019-07-20 20:13:00 -03:00
|
|
|
format(format?: string): string;
|
2019-05-14 18:48:48 -04:00
|
|
|
static from(value: string | JsonFragmentType | ParamType, allowIndexed?: boolean): ParamType;
|
|
|
|
static fromObject(value: JsonFragmentType | ParamType): ParamType;
|
|
|
|
static fromString(value: string, allowIndexed?: boolean): ParamType;
|
2019-06-11 17:57:04 -04:00
|
|
|
static isParamType(value: any): value is ParamType;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
|
|
|
export declare abstract class Fragment {
|
|
|
|
readonly type: string;
|
|
|
|
readonly name: string;
|
|
|
|
readonly inputs: Array<ParamType>;
|
2019-06-11 17:57:04 -04:00
|
|
|
readonly _isFragment: boolean;
|
2019-05-14 18:48:48 -04:00
|
|
|
constructor(constructorGuard: any, params: any);
|
2019-07-20 20:13:00 -03:00
|
|
|
abstract format(format?: string): string;
|
2019-05-14 18:48:48 -04:00
|
|
|
static from(value: Fragment | JsonFragment | string): Fragment;
|
|
|
|
static fromObject(value: Fragment | JsonFragment): Fragment;
|
|
|
|
static fromString(value: string): Fragment;
|
2019-06-11 17:57:04 -04:00
|
|
|
static isFragment(value: any): value is Fragment;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
|
|
|
export declare class EventFragment extends Fragment {
|
|
|
|
readonly anonymous: boolean;
|
2019-07-20 20:13:00 -03:00
|
|
|
format(format?: string): string;
|
2019-05-14 18:48:48 -04:00
|
|
|
static from(value: EventFragment | JsonFragment | string): EventFragment;
|
|
|
|
static fromObject(value: JsonFragment | EventFragment): EventFragment;
|
|
|
|
static fromString(value: string): EventFragment;
|
2019-06-11 17:57:04 -04:00
|
|
|
static isEventFragment(value: any): value is EventFragment;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
|
|
|
export declare class ConstructorFragment extends Fragment {
|
|
|
|
stateMutability: string;
|
|
|
|
payable: boolean;
|
|
|
|
gas?: BigNumber;
|
2019-07-20 20:13:00 -03:00
|
|
|
format(format?: string): string;
|
2019-05-14 18:48:48 -04:00
|
|
|
static from(value: ConstructorFragment | JsonFragment | string): ConstructorFragment;
|
|
|
|
static fromObject(value: ConstructorFragment | JsonFragment): ConstructorFragment;
|
|
|
|
static fromString(value: string): ConstructorFragment;
|
2019-06-11 17:57:04 -04:00
|
|
|
static isConstructorFragment(value: any): value is ConstructorFragment;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
|
|
|
export declare class FunctionFragment extends ConstructorFragment {
|
|
|
|
constant: boolean;
|
|
|
|
outputs?: Array<ParamType>;
|
2019-07-20 20:13:00 -03:00
|
|
|
format(format?: string): string;
|
2019-05-14 18:48:48 -04:00
|
|
|
static from(value: FunctionFragment | JsonFragment | string): FunctionFragment;
|
|
|
|
static fromObject(value: FunctionFragment | JsonFragment): FunctionFragment;
|
|
|
|
static fromString(value: string): FunctionFragment;
|
2019-06-11 17:57:04 -04:00
|
|
|
static isFunctionFragment(value: any): value is FunctionFragment;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
2021-05-17 16:19:36 -04:00
|
|
|
export declare class ErrorFragment extends Fragment {
|
|
|
|
format(format?: string): string;
|
|
|
|
static from(value: ErrorFragment | JsonFragment | string): ErrorFragment;
|
|
|
|
static fromObject(value: ErrorFragment | JsonFragment): ErrorFragment;
|
|
|
|
static fromString(value: string): ErrorFragment;
|
|
|
|
static isErrorFragment(value: any): value is ErrorFragment;
|
|
|
|
}
|
2021-01-19 05:22:54 -05:00
|
|
|
//# sourceMappingURL=fragments.d.ts.map
|