From 84c63b66e17e6d99ef117661608529e6e2ffc041 Mon Sep 17 00:00:00 2001 From: Oleg Nikonychev Date: Thu, 31 Oct 2024 21:27:05 +0400 Subject: [PATCH] cleanup --- evm-e2e/package.json | 32 ++ .../InfiniteLoopGasCompiled.ts | 91 +++++ .../ethers-contracts/ReceiveNibiCompiled.ts | 87 ++++ .../ethers-contracts/SendNibiCompiled.ts | 119 ++++++ .../ethers-contracts/TestERC20Compiled.ts | 286 +++++++++++++ evm-e2e/types/ethers-contracts/common.ts | 131 ++++++ .../InfiniteLoopGasCompiled__factory.ts | 93 +++++ .../factories/ReceiveNibiCompiled__factory.ts | 94 +++++ .../factories/SendNibiCompiled__factory.ts | 106 +++++ .../factories/TestERC20Compiled__factory.ts | 380 ++++++++++++++++++ .../types/ethers-contracts/factories/index.ts | 7 + evm-e2e/types/ethers-contracts/index.ts | 12 + 12 files changed, 1438 insertions(+) create mode 100644 evm-e2e/package.json create mode 100644 evm-e2e/types/ethers-contracts/InfiniteLoopGasCompiled.ts create mode 100644 evm-e2e/types/ethers-contracts/ReceiveNibiCompiled.ts create mode 100644 evm-e2e/types/ethers-contracts/SendNibiCompiled.ts create mode 100644 evm-e2e/types/ethers-contracts/TestERC20Compiled.ts create mode 100644 evm-e2e/types/ethers-contracts/common.ts create mode 100644 evm-e2e/types/ethers-contracts/factories/InfiniteLoopGasCompiled__factory.ts create mode 100644 evm-e2e/types/ethers-contracts/factories/ReceiveNibiCompiled__factory.ts create mode 100644 evm-e2e/types/ethers-contracts/factories/SendNibiCompiled__factory.ts create mode 100644 evm-e2e/types/ethers-contracts/factories/TestERC20Compiled__factory.ts create mode 100644 evm-e2e/types/ethers-contracts/factories/index.ts create mode 100644 evm-e2e/types/ethers-contracts/index.ts diff --git a/evm-e2e/package.json b/evm-e2e/package.json new file mode 100644 index 000000000..f1ed51dac --- /dev/null +++ b/evm-e2e/package.json @@ -0,0 +1,32 @@ +{ + "name": "nibiru-evm-test", + "version": "0.0.1", + "description": "Nibiru EVM tests", + "keywords": [], + "author": "Nibiru Team", + "license": "ISC", + "engines": { + "node": ">=0.18.0" + }, + "devDependencies": { + "@jest/globals": "^29.7.0", + "@typechain/ethers-v6": "^0.5.1", + "@types/jest": "^29.5.12", + "bun": "^1.1.30", + "bun-types": "^1.0.3", + "dotenv": "^16.4.5", + "eslint": "^8.0.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-prettier": "^5.1.3", + "ethers": "^6.12.1", + "jest": "^29.7.0", + "ts-jest": "^29.2.4" + }, + "scripts": { + "test": "jest", + "gen-types": "typechain --target=ethers-v6 contracts/*Compiled.json" + } +} diff --git a/evm-e2e/types/ethers-contracts/InfiniteLoopGasCompiled.ts b/evm-e2e/types/ethers-contracts/InfiniteLoopGasCompiled.ts new file mode 100644 index 000000000..e28ceee72 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/InfiniteLoopGasCompiled.ts @@ -0,0 +1,91 @@ +/* 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 InfiniteLoopGasCompiledInterface extends Interface { + getFunction(nameOrSignature: "counter" | "forever"): FunctionFragment; + + encodeFunctionData(functionFragment: "counter", values?: undefined): string; + encodeFunctionData(functionFragment: "forever", values?: undefined): string; + + decodeFunctionResult(functionFragment: "counter", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "forever", data: BytesLike): Result; +} + +export interface InfiniteLoopGasCompiled extends BaseContract { + connect(runner?: ContractRunner | null): InfiniteLoopGasCompiled; + waitForDeployment(): Promise; + + interface: InfiniteLoopGasCompiledInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + counter: TypedContractMethod<[], [bigint], "view">; + + forever: TypedContractMethod<[], [void], "nonpayable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "counter" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "forever" + ): TypedContractMethod<[], [void], "nonpayable">; + + filters: {}; +} diff --git a/evm-e2e/types/ethers-contracts/ReceiveNibiCompiled.ts b/evm-e2e/types/ethers-contracts/ReceiveNibiCompiled.ts new file mode 100644 index 000000000..7583a12c5 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/ReceiveNibiCompiled.ts @@ -0,0 +1,87 @@ +/* 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 ReceiveNibiCompiledInterface extends Interface { + getFunction(nameOrSignature: "getBalance"): FunctionFragment; + + encodeFunctionData( + functionFragment: "getBalance", + values?: undefined + ): string; + + decodeFunctionResult(functionFragment: "getBalance", data: BytesLike): Result; +} + +export interface ReceiveNibiCompiled extends BaseContract { + connect(runner?: ContractRunner | null): ReceiveNibiCompiled; + waitForDeployment(): Promise; + + interface: ReceiveNibiCompiledInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + getBalance: TypedContractMethod<[], [bigint], "view">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "getBalance" + ): TypedContractMethod<[], [bigint], "view">; + + filters: {}; +} diff --git a/evm-e2e/types/ethers-contracts/SendNibiCompiled.ts b/evm-e2e/types/ethers-contracts/SendNibiCompiled.ts new file mode 100644 index 000000000..9a5814c57 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/SendNibiCompiled.ts @@ -0,0 +1,119 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "./common"; + +export interface SendNibiCompiledInterface extends Interface { + getFunction( + nameOrSignature: "sendViaCall" | "sendViaSend" | "sendViaTransfer" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "sendViaCall", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "sendViaSend", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "sendViaTransfer", + values: [AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "sendViaCall", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "sendViaSend", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "sendViaTransfer", + data: BytesLike + ): Result; +} + +export interface SendNibiCompiled extends BaseContract { + connect(runner?: ContractRunner | null): SendNibiCompiled; + waitForDeployment(): Promise; + + interface: SendNibiCompiledInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + sendViaCall: TypedContractMethod<[_to: AddressLike], [void], "payable">; + + sendViaSend: TypedContractMethod<[_to: AddressLike], [void], "payable">; + + sendViaTransfer: TypedContractMethod<[_to: AddressLike], [void], "payable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "sendViaCall" + ): TypedContractMethod<[_to: AddressLike], [void], "payable">; + getFunction( + nameOrSignature: "sendViaSend" + ): TypedContractMethod<[_to: AddressLike], [void], "payable">; + getFunction( + nameOrSignature: "sendViaTransfer" + ): TypedContractMethod<[_to: AddressLike], [void], "payable">; + + filters: {}; +} diff --git a/evm-e2e/types/ethers-contracts/TestERC20Compiled.ts b/evm-e2e/types/ethers-contracts/TestERC20Compiled.ts new file mode 100644 index 000000000..2cc91e2c0 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/TestERC20Compiled.ts @@ -0,0 +1,286 @@ +/* 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 TestERC20CompiledInterface extends Interface { + getFunction( + nameOrSignature: + | "allowance" + | "approve" + | "balanceOf" + | "decimals" + | "name" + | "symbol" + | "totalSupply" + | "transfer" + | "transferFrom" + ): FunctionFragment; + + getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; + + 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: "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: "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: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "totalSupply", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; +} + +export namespace ApprovalEvent { + export type InputTuple = [ + owner: AddressLike, + spender: AddressLike, + value: BigNumberish + ]; + export type OutputTuple = [owner: string, spender: string, value: bigint]; + export interface OutputObject { + owner: string; + spender: string; + value: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace TransferEvent { + export type InputTuple = [ + from: AddressLike, + to: AddressLike, + value: BigNumberish + ]; + export type OutputTuple = [from: string, to: string, value: bigint]; + export interface OutputObject { + from: string; + to: string; + value: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface TestERC20Compiled extends BaseContract { + connect(runner?: ContractRunner | null): TestERC20Compiled; + waitForDeployment(): Promise; + + interface: TestERC20CompiledInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + allowance: TypedContractMethod< + [owner: AddressLike, spender: AddressLike], + [bigint], + "view" + >; + + approve: TypedContractMethod< + [spender: AddressLike, value: BigNumberish], + [boolean], + "nonpayable" + >; + + balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; + + decimals: TypedContractMethod<[], [bigint], "view">; + + name: TypedContractMethod<[], [string], "view">; + + symbol: TypedContractMethod<[], [string], "view">; + + totalSupply: TypedContractMethod<[], [bigint], "view">; + + transfer: TypedContractMethod< + [to: AddressLike, value: BigNumberish], + [boolean], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [from: AddressLike, to: AddressLike, value: BigNumberish], + [boolean], + "nonpayable" + >; + + getFunction( + 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<[account: AddressLike], [bigint], "view">; + getFunction( + nameOrSignature: "decimals" + ): TypedContractMethod<[], [bigint], "view">; + 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: "transferFrom" + ): TypedContractMethod< + [from: AddressLike, to: AddressLike, value: BigNumberish], + [boolean], + "nonpayable" + >; + + getEvent( + key: "Approval" + ): TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + getEvent( + key: "Transfer" + ): TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + + filters: { + "Approval(address,address,uint256)": TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + Approval: TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + + "Transfer(address,address,uint256)": TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + Transfer: TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + }; +} diff --git a/evm-e2e/types/ethers-contracts/common.ts b/evm-e2e/types/ethers-contracts/common.ts new file mode 100644 index 000000000..56b5f21e9 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/common.ts @@ -0,0 +1,131 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription, +} from "ethers"; + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + (...args: Partial): TypedDeferredTopicFilter< + TypedContractEvent + >; + name: string; + fragment: EventFragment; + getFragment(...args: Partial): EventFragment; +} + +type __TypechainAOutputTuple = T extends TypedContractEvent< + infer _U, + infer W +> + ? W + : never; +type __TypechainOutputObject = T extends TypedContractEvent< + infer _U, + infer _W, + infer V +> + ? V + : never; + +export interface TypedEventLog + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject; +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject; +} + +export type TypedListener = ( + ...listenerArg: [ + ...__TypechainAOutputTuple, + TypedEventLog, + ...undefined[] + ] +) => void; + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise; +}; + +export type GetContractTypeFromFactory = F extends MinEthersFactory< + infer C, + any +> + ? C + : never; +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never; + +export type StateMutability = "nonpayable" | "payable" | "view"; + +export type BaseOverrides = Omit; +export type NonPayableOverrides = Omit< + BaseOverrides, + "value" | "blockTag" | "enableCcipRead" +>; +export type PayableOverrides = Omit< + BaseOverrides, + "blockTag" | "enableCcipRead" +>; +export type ViewOverrides = Omit; +export type Overrides = S extends "nonpayable" + ? NonPayableOverrides + : S extends "payable" + ? PayableOverrides + : ViewOverrides; + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides]; +export type ContractMethodArgs< + A extends Array, + S extends StateMutability +> = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>; + +export type DefaultReturnType = R extends Array ? R[0] : R; + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = "payable" +> { + (...args: ContractMethodArgs): S extends "view" + ? Promise> + : Promise; + + name: string; + + fragment: FunctionFragment; + + getFragment(...args: ContractMethodArgs): FunctionFragment; + + populateTransaction( + ...args: ContractMethodArgs + ): Promise; + staticCall( + ...args: ContractMethodArgs + ): Promise>; + send(...args: ContractMethodArgs): Promise; + estimateGas(...args: ContractMethodArgs): Promise; + staticCallResult(...args: ContractMethodArgs): Promise; +} diff --git a/evm-e2e/types/ethers-contracts/factories/InfiniteLoopGasCompiled__factory.ts b/evm-e2e/types/ethers-contracts/factories/InfiniteLoopGasCompiled__factory.ts new file mode 100644 index 000000000..f5f1e13b7 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/factories/InfiniteLoopGasCompiled__factory.ts @@ -0,0 +1,93 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../common"; +import type { + InfiniteLoopGasCompiled, + InfiniteLoopGasCompiledInterface, +} from "../InfiniteLoopGasCompiled"; + +const _abi = [ + { + inputs: [], + name: "counter", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "forever", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040526000805534801561001457600080fd5b5061015e806100246000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806361bc221a1461003b5780639ff9a60314610059575b600080fd5b610043610063565b60405161005091906100aa565b60405180910390f35b610061610069565b005b60005481565b5b60011561008f57600160008082825461008391906100f4565b9250508190555061006a565b565b6000819050919050565b6100a481610091565b82525050565b60006020820190506100bf600083018461009b565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006100ff82610091565b915061010a83610091565b9250828201905080821115610122576101216100c5565b5b9291505056fea2646970667358221220946d430ff7d8c16c5401d4156ff1b5d75c112460fbba0fb343581bd3c86cfe1c64736f6c63430008180033"; + +type InfiniteLoopGasCompiledConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: InfiniteLoopGasCompiledConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class InfiniteLoopGasCompiled__factory extends ContractFactory { + constructor(...args: InfiniteLoopGasCompiledConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + InfiniteLoopGasCompiled & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect( + runner: ContractRunner | null + ): InfiniteLoopGasCompiled__factory { + return super.connect(runner) as InfiniteLoopGasCompiled__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): InfiniteLoopGasCompiledInterface { + return new Interface(_abi) as InfiniteLoopGasCompiledInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): InfiniteLoopGasCompiled { + return new Contract( + address, + _abi, + runner + ) as unknown as InfiniteLoopGasCompiled; + } +} diff --git a/evm-e2e/types/ethers-contracts/factories/ReceiveNibiCompiled__factory.ts b/evm-e2e/types/ethers-contracts/factories/ReceiveNibiCompiled__factory.ts new file mode 100644 index 000000000..ae1a161f0 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/factories/ReceiveNibiCompiled__factory.ts @@ -0,0 +1,94 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../common"; +import type { + ReceiveNibiCompiled, + ReceiveNibiCompiledInterface, +} from "../ReceiveNibiCompiled"; + +const _abi = [ + { + stateMutability: "payable", + type: "fallback", + }, + { + inputs: [], + name: "getBalance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b5060bb8061001f6000396000f3fe608060405260043610601f5760003560e01c806312065fe0146027576025565b36602557005b005b348015603257600080fd5b506039604d565b60405160449190606c565b60405180910390f35b600047905090565b6000819050919050565b6066816055565b82525050565b6000602082019050607f6000830184605f565b9291505056fea2646970667358221220f4ee193ceac7d6ffbf8d62d675a1d21fed9c154b8e9407c7aba0f7301ef0db6b64736f6c63430008180033"; + +type ReceiveNibiCompiledConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ReceiveNibiCompiledConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ReceiveNibiCompiled__factory extends ContractFactory { + constructor(...args: ReceiveNibiCompiledConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + ReceiveNibiCompiled & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect( + runner: ContractRunner | null + ): ReceiveNibiCompiled__factory { + return super.connect(runner) as ReceiveNibiCompiled__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ReceiveNibiCompiledInterface { + return new Interface(_abi) as ReceiveNibiCompiledInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): ReceiveNibiCompiled { + return new Contract( + address, + _abi, + runner + ) as unknown as ReceiveNibiCompiled; + } +} diff --git a/evm-e2e/types/ethers-contracts/factories/SendNibiCompiled__factory.ts b/evm-e2e/types/ethers-contracts/factories/SendNibiCompiled__factory.ts new file mode 100644 index 000000000..403cf7010 --- /dev/null +++ b/evm-e2e/types/ethers-contracts/factories/SendNibiCompiled__factory.ts @@ -0,0 +1,106 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../common"; +import type { + SendNibiCompiled, + SendNibiCompiledInterface, +} from "../SendNibiCompiled"; + +const _abi = [ + { + inputs: [ + { + internalType: "address payable", + name: "_to", + type: "address", + }, + ], + name: "sendViaCall", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_to", + type: "address", + }, + ], + name: "sendViaSend", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_to", + type: "address", + }, + ], + name: "sendViaTransfer", + outputs: [], + stateMutability: "payable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b50610390806100206000396000f3fe6080604052600436106100345760003560e01c8063636e082b1461003957806374be480614610055578063830c29ae14610071575b600080fd5b610053600480360381019061004e919061026a565b61008d565b005b61006f600480360381019061006a919061026a565b6100d7565b005b61008b6004803603810190610086919061026a565b610154565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156100d3573d6000803e3d6000fd5b5050565b60008173ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050905080610150576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610147906102f4565b60405180910390fd5b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163460405161017b90610345565b60006040518083038185875af1925050503d80600081146101b8576040519150601f19603f3d011682016040523d82523d6000602084013e6101bd565b606091505b509150915081610202576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101f9906102f4565b60405180910390fd5b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102378261020c565b9050919050565b6102478161022c565b811461025257600080fd5b50565b6000813590506102648161023e565b92915050565b6000602082840312156102805761027f610207565b5b600061028e84828501610255565b91505092915050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64204e69626900000000000000000000000000600082015250565b60006102de601383610297565b91506102e9826102a8565b602082019050919050565b6000602082019050818103600083015261030d816102d1565b9050919050565b600081905092915050565b50565b600061032f600083610314565b915061033a8261031f565b600082019050919050565b600061035082610322565b915081905091905056fea26469706673582212201fcd9f47953315963ca2a2687073914cbb3f29161100cec83979926b96714b2b64736f6c63430008180033"; + +type SendNibiCompiledConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SendNibiCompiledConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SendNibiCompiled__factory extends ContractFactory { + constructor(...args: SendNibiCompiledConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + SendNibiCompiled & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): SendNibiCompiled__factory { + return super.connect(runner) as SendNibiCompiled__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SendNibiCompiledInterface { + return new Interface(_abi) as SendNibiCompiledInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): SendNibiCompiled { + return new Contract(address, _abi, runner) as unknown as SendNibiCompiled; + } +} diff --git a/evm-e2e/types/ethers-contracts/factories/TestERC20Compiled__factory.ts b/evm-e2e/types/ethers-contracts/factories/TestERC20Compiled__factory.ts new file mode 100644 index 000000000..c7fac001e --- /dev/null +++ b/evm-e2e/types/ethers-contracts/factories/TestERC20Compiled__factory.ts @@ -0,0 +1,380 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../common"; +import type { + TestERC20Compiled, + TestERC20CompiledInterface, +} from "../TestERC20Compiled"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "allowance", + type: "uint256", + }, + { + internalType: "uint256", + name: "needed", + type: "uint256", + }, + ], + name: "ERC20InsufficientAllowance", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "uint256", + name: "balance", + type: "uint256", + }, + { + internalType: "uint256", + name: "needed", + type: "uint256", + }, + ], + name: "ERC20InsufficientBalance", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "approver", + type: "address", + }, + ], + name: "ERC20InvalidApprover", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "receiver", + type: "address", + }, + ], + name: "ERC20InvalidReceiver", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "ERC20InvalidSender", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "ERC20InvalidSpender", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [ + { + internalType: "uint8", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040523480156200001157600080fd5b506040518060400160405280600881526020017f46756e546f6b656e0000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f46554e000000000000000000000000000000000000000000000000000000000081525081600390816200008f9190620005fd565b508060049081620000a19190620005fd565b505050620000c03369d3c21bcecceda1000000620000c660201b60201c565b6200081b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200013b5760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000132919062000729565b60405180910390fd5b6200014f600083836200015360201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620001a95780600260008282546200019c919062000775565b925050819055506200027f565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101562000238578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016200022f93929190620007c1565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002ca578060026000828254039250508190555062000317565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620003769190620007fe565b60405180910390a3505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200040557607f821691505b6020821081036200041b576200041a620003bd565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000446565b62000491868362000446565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004de620004d8620004d284620004a9565b620004b3565b620004a9565b9050919050565b6000819050919050565b620004fa83620004bd565b620005126200050982620004e5565b84845462000453565b825550505050565b600090565b620005296200051a565b62000536818484620004ef565b505050565b5b818110156200055e57620005526000826200051f565b6001810190506200053c565b5050565b601f821115620005ad57620005778162000421565b620005828462000436565b8101602085101562000592578190505b620005aa620005a18562000436565b8301826200053b565b50505b505050565b600082821c905092915050565b6000620005d260001984600802620005b2565b1980831691505092915050565b6000620005ed8383620005bf565b9150826002028217905092915050565b620006088262000383565b67ffffffffffffffff8111156200062457620006236200038e565b5b620006308254620003ec565b6200063d82828562000562565b600060209050601f83116001811462000675576000841562000660578287015190505b6200066c8582620005df565b865550620006dc565b601f198416620006858662000421565b60005b82811015620006af5784890151825560018201915060208501945060208101905062000688565b86831015620006cf5784890151620006cb601f891682620005bf565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200071182620006e4565b9050919050565b620007238162000704565b82525050565b600060208201905062000740600083018462000718565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200078282620004a9565b91506200078f83620004a9565b9250828201905080821115620007aa57620007a962000746565b5b92915050565b620007bb81620004a9565b82525050565b6000606082019050620007d8600083018662000718565b620007e76020830185620007b0565b620007f66040830184620007b0565b949350505050565b6000602082019050620008156000830184620007b0565b92915050565b610e55806200082b6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461013457806370a082311461015257806395d89b4114610182578063a9059cbb146101a0578063dd62ed3e146101d057610093565b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100e657806323b872dd14610104575b600080fd5b6100a0610200565b6040516100ad9190610aa9565b60405180910390f35b6100d060048036038101906100cb9190610b64565b610292565b6040516100dd9190610bbf565b60405180910390f35b6100ee6102b5565b6040516100fb9190610be9565b60405180910390f35b61011e60048036038101906101199190610c04565b6102bf565b60405161012b9190610bbf565b60405180910390f35b61013c6102ee565b6040516101499190610c73565b60405180910390f35b61016c60048036038101906101679190610c8e565b6102f7565b6040516101799190610be9565b60405180910390f35b61018a61033f565b6040516101979190610aa9565b60405180910390f35b6101ba60048036038101906101b59190610b64565b6103d1565b6040516101c79190610bbf565b60405180910390f35b6101ea60048036038101906101e59190610cbb565b6103f4565b6040516101f79190610be9565b60405180910390f35b60606003805461020f90610d2a565b80601f016020809104026020016040519081016040528092919081815260200182805461023b90610d2a565b80156102885780601f1061025d57610100808354040283529160200191610288565b820191906000526020600020905b81548152906001019060200180831161026b57829003601f168201915b5050505050905090565b60008061029d61047b565b90506102aa818585610483565b600191505092915050565b6000600254905090565b6000806102ca61047b565b90506102d7858285610495565b6102e2858585610529565b60019150509392505050565b60006012905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606004805461034e90610d2a565b80601f016020809104026020016040519081016040528092919081815260200182805461037a90610d2a565b80156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b5050505050905090565b6000806103dc61047b565b90506103e9818585610529565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b610490838383600161061d565b505050565b60006104a184846103f4565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146105235781811015610513578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161050a93929190610d6a565b60405180910390fd5b6105228484848403600061061d565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361059b5760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016105929190610da1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361060d5760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016106049190610da1565b60405180910390fd5b6106188383836107f4565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361068f5760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016106869190610da1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107015760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016106f89190610da1565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156107ee578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516107e59190610be9565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361084657806002600082825461083a9190610deb565b92505081905550610919565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156108d2578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016108c993929190610d6a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361096257806002600082825403925050819055506109af565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a0c9190610be9565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610a53578082015181840152602081019050610a38565b60008484015250505050565b6000601f19601f8301169050919050565b6000610a7b82610a19565b610a858185610a24565b9350610a95818560208601610a35565b610a9e81610a5f565b840191505092915050565b60006020820190508181036000830152610ac38184610a70565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610afb82610ad0565b9050919050565b610b0b81610af0565b8114610b1657600080fd5b50565b600081359050610b2881610b02565b92915050565b6000819050919050565b610b4181610b2e565b8114610b4c57600080fd5b50565b600081359050610b5e81610b38565b92915050565b60008060408385031215610b7b57610b7a610acb565b5b6000610b8985828601610b19565b9250506020610b9a85828601610b4f565b9150509250929050565b60008115159050919050565b610bb981610ba4565b82525050565b6000602082019050610bd46000830184610bb0565b92915050565b610be381610b2e565b82525050565b6000602082019050610bfe6000830184610bda565b92915050565b600080600060608486031215610c1d57610c1c610acb565b5b6000610c2b86828701610b19565b9350506020610c3c86828701610b19565b9250506040610c4d86828701610b4f565b9150509250925092565b600060ff82169050919050565b610c6d81610c57565b82525050565b6000602082019050610c886000830184610c64565b92915050565b600060208284031215610ca457610ca3610acb565b5b6000610cb284828501610b19565b91505092915050565b60008060408385031215610cd257610cd1610acb565b5b6000610ce085828601610b19565b9250506020610cf185828601610b19565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610d4257607f821691505b602082108103610d5557610d54610cfb565b5b50919050565b610d6481610af0565b82525050565b6000606082019050610d7f6000830186610d5b565b610d8c6020830185610bda565b610d996040830184610bda565b949350505050565b6000602082019050610db66000830184610d5b565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610df682610b2e565b9150610e0183610b2e565b9250828201905080821115610e1957610e18610dbc565b5b9291505056fea26469706673582212200260074039b179ca88933aa33752c910c15aa2062c21e8c76d09940bd406048b64736f6c63430008180033"; + +type TestERC20CompiledConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: TestERC20CompiledConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class TestERC20Compiled__factory extends ContractFactory { + constructor(...args: TestERC20CompiledConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + TestERC20Compiled & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): TestERC20Compiled__factory { + return super.connect(runner) as TestERC20Compiled__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): TestERC20CompiledInterface { + return new Interface(_abi) as TestERC20CompiledInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): TestERC20Compiled { + return new Contract(address, _abi, runner) as unknown as TestERC20Compiled; + } +} diff --git a/evm-e2e/types/ethers-contracts/factories/index.ts b/evm-e2e/types/ethers-contracts/factories/index.ts new file mode 100644 index 000000000..f45fe35ae --- /dev/null +++ b/evm-e2e/types/ethers-contracts/factories/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { InfiniteLoopGasCompiled__factory } from "./InfiniteLoopGasCompiled__factory"; +export { ReceiveNibiCompiled__factory } from "./ReceiveNibiCompiled__factory"; +export { SendNibiCompiled__factory } from "./SendNibiCompiled__factory"; +export { TestERC20Compiled__factory } from "./TestERC20Compiled__factory"; diff --git a/evm-e2e/types/ethers-contracts/index.ts b/evm-e2e/types/ethers-contracts/index.ts new file mode 100644 index 000000000..567e7e58c --- /dev/null +++ b/evm-e2e/types/ethers-contracts/index.ts @@ -0,0 +1,12 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { InfiniteLoopGasCompiled } from "./InfiniteLoopGasCompiled"; +export type { ReceiveNibiCompiled } from "./ReceiveNibiCompiled"; +export type { SendNibiCompiled } from "./SendNibiCompiled"; +export type { TestERC20Compiled } from "./TestERC20Compiled"; +export * as factories from "./factories"; +export { InfiniteLoopGasCompiled__factory } from "./factories/InfiniteLoopGasCompiled__factory"; +export { ReceiveNibiCompiled__factory } from "./factories/ReceiveNibiCompiled__factory"; +export { SendNibiCompiled__factory } from "./factories/SendNibiCompiled__factory"; +export { TestERC20Compiled__factory } from "./factories/TestERC20Compiled__factory";