Skip to content

Commit

Permalink
generate v2
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jul 30, 2024
1 parent 5da3ab1 commit 8ef73c3
Show file tree
Hide file tree
Showing 14 changed files with 4,467 additions and 5 deletions.
356 changes: 356 additions & 0 deletions v2/typechain-types/ERC20CustodyNewEchidnaTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
EventFragment,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedLogDescription,
TypedListener,
TypedContractMethod,
} from "./common";

export interface ERC20CustodyNewEchidnaTestInterface extends Interface {
getFunction(
nameOrSignature:
| "echidnaCaller"
| "gateway"
| "testERC20"
| "testWithdrawAndCall"
| "tssAddress"
| "withdraw"
| "withdrawAndCall"
| "withdrawAndRevert"
): FunctionFragment;

getEvent(
nameOrSignatureOrTopic: "Withdraw" | "WithdrawAndCall" | "WithdrawAndRevert"
): EventFragment;

encodeFunctionData(
functionFragment: "echidnaCaller",
values?: undefined
): string;
encodeFunctionData(functionFragment: "gateway", values?: undefined): string;
encodeFunctionData(functionFragment: "testERC20", values?: undefined): string;
encodeFunctionData(
functionFragment: "testWithdrawAndCall",
values: [AddressLike, BigNumberish, BytesLike]
): string;
encodeFunctionData(
functionFragment: "tssAddress",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "withdraw",
values: [AddressLike, AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "withdrawAndCall",
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
): string;
encodeFunctionData(
functionFragment: "withdrawAndRevert",
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
): string;

decodeFunctionResult(
functionFragment: "echidnaCaller",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "gateway", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "testERC20", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "testWithdrawAndCall",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "tssAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "withdrawAndCall",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "withdrawAndRevert",
data: BytesLike
): Result;
}

export namespace WithdrawEvent {
export type InputTuple = [
token: AddressLike,
to: AddressLike,
amount: BigNumberish
];
export type OutputTuple = [token: string, to: string, amount: bigint];
export interface OutputObject {
token: string;
to: string;
amount: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}

export namespace WithdrawAndCallEvent {
export type InputTuple = [
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
];
export type OutputTuple = [
token: string,
to: string,
amount: bigint,
data: string
];
export interface OutputObject {
token: string;
to: string;
amount: bigint;
data: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}

export namespace WithdrawAndRevertEvent {
export type InputTuple = [
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
];
export type OutputTuple = [
token: string,
to: string,
amount: bigint,
data: string
];
export interface OutputObject {
token: string;
to: string;
amount: bigint;
data: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}

export interface ERC20CustodyNewEchidnaTest extends BaseContract {
connect(runner?: ContractRunner | null): ERC20CustodyNewEchidnaTest;
waitForDeployment(): Promise<this>;

interface: ERC20CustodyNewEchidnaTestInterface;

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>;

echidnaCaller: TypedContractMethod<[], [string], "view">;

gateway: TypedContractMethod<[], [string], "view">;

testERC20: TypedContractMethod<[], [string], "view">;

testWithdrawAndCall: TypedContractMethod<
[to: AddressLike, amount: BigNumberish, data: BytesLike],
[void],
"nonpayable"
>;

tssAddress: TypedContractMethod<[], [string], "view">;

withdraw: TypedContractMethod<
[token: AddressLike, to: AddressLike, amount: BigNumberish],
[void],
"nonpayable"
>;

withdrawAndCall: TypedContractMethod<
[
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;

withdrawAndRevert: TypedContractMethod<
[
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;

getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;

getFunction(
nameOrSignature: "echidnaCaller"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "gateway"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "testERC20"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "testWithdrawAndCall"
): TypedContractMethod<
[to: AddressLike, amount: BigNumberish, data: BytesLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "tssAddress"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "withdraw"
): TypedContractMethod<
[token: AddressLike, to: AddressLike, amount: BigNumberish],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "withdrawAndCall"
): TypedContractMethod<
[
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "withdrawAndRevert"
): TypedContractMethod<
[
token: AddressLike,
to: AddressLike,
amount: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;

getEvent(
key: "Withdraw"
): TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;
getEvent(
key: "WithdrawAndCall"
): TypedContractEvent<
WithdrawAndCallEvent.InputTuple,
WithdrawAndCallEvent.OutputTuple,
WithdrawAndCallEvent.OutputObject
>;
getEvent(
key: "WithdrawAndRevert"
): TypedContractEvent<
WithdrawAndRevertEvent.InputTuple,
WithdrawAndRevertEvent.OutputTuple,
WithdrawAndRevertEvent.OutputObject
>;

filters: {
"Withdraw(address,address,uint256)": TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;
Withdraw: TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;

"WithdrawAndCall(address,address,uint256,bytes)": TypedContractEvent<
WithdrawAndCallEvent.InputTuple,
WithdrawAndCallEvent.OutputTuple,
WithdrawAndCallEvent.OutputObject
>;
WithdrawAndCall: TypedContractEvent<
WithdrawAndCallEvent.InputTuple,
WithdrawAndCallEvent.OutputTuple,
WithdrawAndCallEvent.OutputObject
>;

"WithdrawAndRevert(address,address,uint256,bytes)": TypedContractEvent<
WithdrawAndRevertEvent.InputTuple,
WithdrawAndRevertEvent.OutputTuple,
WithdrawAndRevertEvent.OutputObject
>;
WithdrawAndRevert: TypedContractEvent<
WithdrawAndRevertEvent.InputTuple,
WithdrawAndRevertEvent.OutputTuple,
WithdrawAndRevertEvent.OutputObject
>;
};
}
Loading

0 comments on commit 8ef73c3

Please sign in to comment.