forked from tornadocash/nova-ui
407 lines
12 KiB
TypeScript
407 lines
12 KiB
TypeScript
/* Autogenerated file. Do not edit manually. */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
import {
|
|
ethers,
|
|
EventFilter,
|
|
Signer,
|
|
BigNumber,
|
|
BigNumberish,
|
|
PopulatedTransaction,
|
|
BaseContract,
|
|
ContractTransaction,
|
|
Overrides,
|
|
PayableOverrides,
|
|
CallOverrides,
|
|
} from "ethers";
|
|
import { BytesLike } from "@ethersproject/bytes";
|
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";
|
|
|
|
interface BscBridgeHelperInterface extends ethers.utils.Interface {
|
|
functions: {
|
|
"WETH()": FunctionFragment;
|
|
"bridge()": FunctionFragment;
|
|
"claimTokens(address,address)": FunctionFragment;
|
|
"onTokenBridged(address,uint256,bytes)": FunctionFragment;
|
|
"owner()": FunctionFragment;
|
|
"register(tuple)": FunctionFragment;
|
|
"transferOwnership(address)": FunctionFragment;
|
|
"wrapAndRelayTokens()": FunctionFragment;
|
|
};
|
|
|
|
encodeFunctionData(functionFragment: "WETH", values?: undefined): string;
|
|
encodeFunctionData(functionFragment: "bridge", values?: undefined): string;
|
|
encodeFunctionData(
|
|
functionFragment: "claimTokens",
|
|
values: [string, string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "onTokenBridged",
|
|
values: [string, BigNumberish, BytesLike]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
encodeFunctionData(
|
|
functionFragment: "register",
|
|
values: [{ owner: string; publicKey: BytesLike }]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "transferOwnership",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "wrapAndRelayTokens",
|
|
values?: undefined
|
|
): string;
|
|
|
|
decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result;
|
|
decodeFunctionResult(functionFragment: "bridge", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "claimTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "onTokenBridged",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
decodeFunctionResult(functionFragment: "register", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "transferOwnership",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "wrapAndRelayTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
|
|
events: {
|
|
"PublicKey(address,bytes)": EventFragment;
|
|
};
|
|
|
|
getEvent(nameOrSignatureOrTopic: "PublicKey"): EventFragment;
|
|
}
|
|
|
|
export type PublicKeyEvent = TypedEvent<
|
|
[string, string] & { owner: string; key: string }
|
|
>;
|
|
|
|
export class BscBridgeHelper extends BaseContract {
|
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
attach(addressOrName: string): this;
|
|
deployed(): Promise<this>;
|
|
|
|
listeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
|
|
off<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
on<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
once<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
|
|
listeners(eventName?: string): Array<Listener>;
|
|
off(eventName: string, listener: Listener): this;
|
|
on(eventName: string, listener: Listener): this;
|
|
once(eventName: string, listener: Listener): this;
|
|
removeListener(eventName: string, listener: Listener): this;
|
|
removeAllListeners(eventName?: string): this;
|
|
|
|
queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
event: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
fromBlockOrBlockhash?: string | number | undefined,
|
|
toBlock?: string | number | undefined
|
|
): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;
|
|
|
|
interface: BscBridgeHelperInterface;
|
|
|
|
functions: {
|
|
WETH(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
bridge(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
onTokenBridged(
|
|
_token: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
register(
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
transferOwnership(
|
|
_newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens()"(
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes)"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes,(address,bytes))"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address)"(
|
|
_receiver: string,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
};
|
|
|
|
WETH(overrides?: CallOverrides): Promise<string>;
|
|
|
|
bridge(overrides?: CallOverrides): Promise<string>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
onTokenBridged(
|
|
_token: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<string>;
|
|
|
|
register(
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
transferOwnership(
|
|
_newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens()"(
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes)"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes,(address,bytes))"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"wrapAndRelayTokens(address)"(
|
|
_receiver: string,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
callStatic: {
|
|
WETH(overrides?: CallOverrides): Promise<string>;
|
|
|
|
bridge(overrides?: CallOverrides): Promise<string>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
onTokenBridged(
|
|
_token: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<string>;
|
|
|
|
register(
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
transferOwnership(
|
|
_newOwner: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"wrapAndRelayTokens()"(overrides?: CallOverrides): Promise<void>;
|
|
|
|
"wrapAndRelayTokens(address,bytes)"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"wrapAndRelayTokens(address,bytes,(address,bytes))"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"wrapAndRelayTokens(address)"(
|
|
_receiver: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
};
|
|
|
|
filters: {
|
|
"PublicKey(address,bytes)"(
|
|
owner?: string | null,
|
|
key?: null
|
|
): TypedEventFilter<[string, string], { owner: string; key: string }>;
|
|
|
|
PublicKey(
|
|
owner?: string | null,
|
|
key?: null
|
|
): TypedEventFilter<[string, string], { owner: string; key: string }>;
|
|
};
|
|
|
|
estimateGas: {
|
|
WETH(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
bridge(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
onTokenBridged(
|
|
_token: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
register(
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
transferOwnership(
|
|
_newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
"wrapAndRelayTokens()"(
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
"wrapAndRelayTokens(address,bytes)"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
"wrapAndRelayTokens(address,bytes,(address,bytes))"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
"wrapAndRelayTokens(address)"(
|
|
_receiver: string,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
};
|
|
|
|
populateTransaction: {
|
|
WETH(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
bridge(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
onTokenBridged(
|
|
_token: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
register(
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
transferOwnership(
|
|
_newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"wrapAndRelayTokens()"(
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes)"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"wrapAndRelayTokens(address,bytes,(address,bytes))"(
|
|
_receiver: string,
|
|
_data: BytesLike,
|
|
_account: { owner: string; publicKey: BytesLike },
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"wrapAndRelayTokens(address)"(
|
|
_receiver: string,
|
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
};
|
|
}
|