8000 evmhooks and tests by ramacarlucho · Pull Request #68 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

evmhooks and tests #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Oct 27, 2021
Merged

evmhooks and tests #68

merged 21 commits into from
Oct 27, 2021

Conversation

ramacarlucho
Copy link
Contributor

Closes: #XXX

Description

Evm hooks fixes and initial test.


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@ramacarlucho ramacarlucho changed the title Rama/evmhooks evmhooks and tests Oct 26, 2021
Copy link
Collaborator
@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, few comments

ramacarlucho and others added 2 commits October 27, 2021 11:39
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
@fedekunze fedekunze merged commit 5aaeb0b into fedekunze/irm Oct 27, 2021
@fedekunze fedekunze deleted the rama/evmhooks branch October 27, 2021 14:41
fedekunze added a commit that referenced this pull request Nov 17, 2021
* irm

* events and comments

* tests wip

* comments & genesis

* grpc queries

* mint test

* abi added

* Add TestGetTokenPairID

* testing: irm type tests (#57)

* Validate genesis fix. genesis and params tests

* initial structure for msg and proposal tests

* testing: proposal tests addeds

* testing: update token pair erc20 with invalid addresses

* token pair and msgs test

Co-authored-by: ramacarlucho <ramirocarlucho@gmail.com>

* WIP TestGetAllTokenPairs

* Testing (TokenPairs): Add tests for full coverage and fix GrpcQuery test

* WIP Keepertests(TestRegisterTokenPair)

* add missing fields for metadata

* Add Keepertests(TestRegisterTokenPair)

* add Keepertests(TestEnabledRelay)

* add Keepertests(UpdateTokenPairERC20)

* WIP goc_hooks tests

* gov hooks tests wip

* WIP Keeper tests(AfterProposalDeposit)

* wip: refactor 2

* hook wip

* fix ABI and integrations (#66)

* merge irms branchs

* Fix pack method

* removed valid test from TestRegisterTokenPair, this should be tested on TestRegisterTokenPairWithContract

* using ethermint CompiledContract

* removed unused import

* unpacking using interfaces

* Update x/intrarelayer/types/contracts/erc20.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* moved evm types to types folder

* feemarket enabled by default on test suite

* contracts function and test setup moved to keeper_test

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* WIP(Keeper tests): gov_hooks_test, msg_server_test, proposals_test

* vbank module verification after token pair creation

* EnableRelay test added

* wip update token function

* WIP (Keepertests) msg_server tests

* fix panic on test

* Add SetDenomMap and SetERC20Map to RegisterTokenPair

* force dynamic fee

* wip update token pair

* keeper: evm hooks and tests (#68)

* merge irms branchs

* Fix pack method

* removed valid test from TestRegisterTokenPair, this should be tested on TestRegisterTokenPairWithContract

* using ethermint CompiledContract

* removed unused import

* unpacking using interfaces

* wip evmhooks tests

* evmhooks working

* Update x/intrarelayer/types/contracts/erc20.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* moved evm types to types folder

* feemarket enabled by default on test suite

* contracts function and test setup moved to keeper_test

* check correct execution

* more test cases

* pr suggestions

* pr suggestions

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

Co-authored-by: Hanchon <guillermo.paoletti@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* force dynamic fee

* merge rama changes

* proposal tests green

* proposal tests updated

* add setupNewTokenPair to msg_server_test

* dynamic fee fix

* WIP(Intrarelayer): TestUpdateTokenPairERC20

* WIP(Intrarelayer): TestUpdateTokenPairERC20 delete non TDD test

* WIP(Intrarelayer): Refactor TestRegisterTokenPair to use TDD and add all missing  cases

* WIP(Intrarelayer): Refactor TestToggleRelay to use TDD and add all missing cases

* share

* fixes to minting from module

* cleanup keeper test suite

* tests: irm proposal tests  (#69)

* vbank module verification after token pair creation

* EnableRelay test added

* wip update token function

* force dynamic fee

* wip update token pair

* force dynamic fee

* merge rama changes

* proposal tests green

* proposal tests updated

* dynamic fee fix

* WIP(Intrarelayer): TestUpdateTokenPairERC20

* WIP(Intrarelayer): TestUpdateTokenPairERC20 delete non TDD test

* WIP(Intrarelayer): Refactor TestRegisterTokenPair to use TDD and add all missing  cases

* pr changes

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* enable to toggle rename

Co-authored-by: ramacarlucho <ramirocarlucho@gmail.com>
Co-authored-by: Daniel Burckhardt <daniel.m.burckhardt@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fail early

* burn and mint fixes. Send tx module address as burn test

* calling evm directly

* sending evm transactions using module address

* transfering tokens using evmcall

* Wip: Refactor Coin/Token proposal

* wip: tests compiling, not working

* Wip: register coin and register token proposals

* wip: missing contract deployment and tests

* wip evmhooks working

* escrow fix on converterc20

* initial msg_server_tests working

* tests fixes

* changed erc20 metadata. RegisterErc20 token tests working

* wip deploy contract

* IRM(new Specs): Split EventRegiesterTokenPair into two Events Coin & ERC20

* IRM(new Specs): Refactor with isNativeCoin() and isNavtiveERC20() methods

* IRM(new Specs): Add tests for  isNativeCoin() and isNavtiveERC20() methods

* deployment first approach working

* Intrarelayer(Tests): Add TestRegisterCoin

* moduleAccount nonce. ConvertToken fixes

* cleanup

* rm nonce key

* rm nonce key.go

* validate genesis state

* err

* IRM(new Specs): Add tests for token_pairs delete methods

* SDK fork

* fix log read on hook. Use simple call to deploy contract

* delete unnecessary functions. cleanup

* convert coins/tokens cases

* evm hooks register coin case

* Intrarelayer(new Specs): Add more types tests

* Intrarelayer(new Specs): Add EnableEVMHook Parameter with default true

* Intrarelayer(new Specs): Add types msg tests

* Intrarelayer(new Specs): Add evm & genesis tests

* Intrarelayer(new Specs): Add last types/proposal tests

* gov hooks fixes and testing

* minor changes

* linter fixes

* Intrarelayer(new Specs): Refactor Msg_server methods

* nolint

* Intrarelayer(new Specs): Refactor msg_server tests

* convert erc20 event

* missing Evm executions checks

* Intrarelayer(new Specs): Add keeper/evm tests

* function comments added

* use ERC20 with custom burn

Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: jolube <64335177+jolube@users.noreply.github.com>
Co-authored-by: Daniel Burckhardt <daniel.m.burckhardt@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Guillermo Paoletti <guillermo.paoletti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0