Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

tests(filters) add/improve integration tests for JSON-RPC methods #1480

Merged
merged 27 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e10f0c6
tests(filters) add block hash check on newBlock filter
GAtom22 Nov 21, 2022
39414eb
tests(filters) add getLogs test cases
GAtom22 Nov 21, 2022
54195fe
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 21, 2022
5597c4a
tests(filters) add eth_newFilter multiple filters test cases
GAtom22 Nov 21, 2022
f07a4be
tests(filters) add eth_newFilter and eth_eth_uninstallFilter test case
GAtom22 Nov 22, 2022
b805dfc
tests(filters) fix linting errors
GAtom22 Nov 22, 2022
35324bb
tests(filters) fix linting error on imports
GAtom22 Nov 22, 2022
c9f9294
tests(filters) add test case: register filter before contract deploy
GAtom22 Nov 22, 2022
a14e5e3
tests(filters) refactor logs topics assertion
GAtom22 Nov 22, 2022
b2f79e3
tests(filters) add topics filter test cases
GAtom22 Nov 24, 2022
5222ca0
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 24, 2022
1d97b49
tests(filters) fix linting errors
GAtom22 Nov 24, 2022
0db9edb
Merge branch 'GAtom22/filter-integration-tests' of github.com:evmos/e…
GAtom22 Nov 24, 2022
fccccb2
Merge branch 'main' into GAtom22/filter-integration-tests
fedekunze Nov 28, 2022
ba64b00
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 28, 2022
d4f932d
tests(filters) remove unnecessary package.json file
GAtom22 Nov 28, 2022
9ec0753
tests(filters) update based on PR comments
GAtom22 Nov 28, 2022
51a22bf
tests(filters) separate getNewBlocks failing test to a separate PR
GAtom22 Nov 28, 2022
017bf70
tests(filters) add retry on send_tx to avoid Timeout error
GAtom22 Nov 28, 2022
c95f572
tests(filters) add logs by topic and block range test case
GAtom22 Nov 28, 2022
2bf879f
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 28, 2022
8586698
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 29, 2022
718e180
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 29, 2022
41f6877
Merge branch 'main' into GAtom22/filter-integration-tests
GAtom22 Nov 30, 2022
36b5a4f
Merge branch 'main' into GAtom22/filter-integration-tests
fedekunze Nov 30, 2022
39ea27c
update gomod2nix
facs95 Nov 30, 2022
b974353
tests(filters) remove test elapsed time log
GAtom22 Nov 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gomod2nix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ schema = 3
version = "v1.0.0-beta.7"
hash = "sha256-XblGvIx6Wvvq6wggXjp+KbeJGXoe7AZH7hXEdauCezU="
[mod."cosmossdk.io/math"]
version = "v1.0.0-beta.3"
hash = "sha256-lTQ27ZlL+kWlc+S//sJmyiOwaf9qS+YLv61I4OXi9XE="
version = "v1.0.0-beta.4"
hash = "sha256-UYdq/46EubyjxkldGike8FlwJLWGCB576VB7th285ao="
[mod."filippo.io/edwards25519"]
version = "v1.0.0-rc.1"
hash = "sha256-3DboBqby2ejRU33FG96Z8JF5AJ8HP2rC/v++VyoQ2LQ="
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$(dirname "$0")"
export TMPDIR=/tmp

echo "build test contracts"
cd ../tests/integration_tests/contracts
cd ../tests/integration_tests/hardhat
HUSKY_SKIP_INSTALL=1 npm install
npm run typechain
cd ..
Expand Down
9 changes: 0 additions & 9 deletions tests/integration_tests/contracts/contracts/TestERC20A.sol

This file was deleted.

25 changes: 25 additions & 0 deletions tests/integration_tests/hardhat/contracts/Mars.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";

contract Mars is Initializable, ERC20Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
function initialize() public initializer {
__ERC20_init("Mars", "MRS");
__Ownable_init();
_mint(msg.sender, 1000000 * 10 ** decimals());
}

function _authorizeUpgrade(address newImplementation) internal
override
onlyOwner {}
}

contract MarsV2 is Mars {
function version() pure public returns (string memory) {
return "v2";
}
}
10 changes: 10 additions & 0 deletions tests/integration_tests/hardhat/contracts/TestERC20A.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract TestERC20A is ERC20 {
constructor() public ERC20("TestERC20", "Test") {
_mint(msg.sender, 100000000000000000000000000);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { HardhatUserConfig } from "hardhat/config";
import type { HardhatUserConfig } from "hardhat/config";
import "hardhat-typechain";
import "@openzeppelin/hardhat-upgrades";
import "@nomiclabs/hardhat-ethers";

const config: HardhatUserConfig = {
solidity: {
Expand Down
Loading