-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6845613
commit 84c63b6
Showing
12 changed files
with
1,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}; | ||
} |
Oops, something went wrong.