Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Oct 31, 2024
1 parent 6845613 commit 84c63b6
Show file tree
Hide file tree
Showing 12 changed files with 1,438 additions and 0 deletions.
32 changes: 32 additions & 0 deletions evm-e2e/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
91 changes: 91 additions & 0 deletions evm-e2e/types/ethers-contracts/InfiniteLoopGasCompiled.ts
Original file line number Diff line number Diff line change
@@ -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<this>;

interface: InfiniteLoopGasCompiledInterface;

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

counter: TypedContractMethod<[], [bigint], "view">;

forever: TypedContractMethod<[], [void], "nonpayable">;

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

getFunction(
nameOrSignature: "counter"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "forever"
): TypedContractMethod<[], [void], "nonpayable">;

filters: {};
}
87 changes: 87 additions & 0 deletions evm-e2e/types/ethers-contracts/ReceiveNibiCompiled.ts
Original file line number Diff line number Diff line change
@@ -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<this>;

interface: ReceiveNibiCompiledInterface;

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

getBalance: TypedContractMethod<[], [bigint], "view">;

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

getFunction(
nameOrSignature: "getBalance"
): TypedContractMethod<[], [bigint], "view">;

filters: {};
}
119 changes: 119 additions & 0 deletions evm-e2e/types/ethers-contracts/SendNibiCompiled.ts
Original file line number Diff line number Diff line change
@@ -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<this>;

interface: SendNibiCompiledInterface;

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

sendViaCall: TypedContractMethod<[_to: AddressLike], [void], "payable">;

sendViaSend: TypedContractMethod<[_to: AddressLike], [void], "payable">;

sendViaTransfer: TypedContractMethod<[_to: AddressLike], [void], "payable">;

getFunction<T extends ContractMethod = ContractMethod>(
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: {};
}
Loading

0 comments on commit 84c63b6

Please sign in to comment.