Austin Chandra
cb632c6bef
Refactor EIP-712 signature verification ( #1397 )
...
* [WIP] EIP-712 Signature Refactor
* Debug and add ante tests
* Add tests for failure cases
* Add changelog entry
* Code cleanup
* Add tests for MsgDelegate and MsgWithdrawDelegationReward
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Code cleanup
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Minor codefix
* Update ethereum/eip712/encoding.go
* Minor code revision updates
* Refactor EIP712 unit tests to use test suite
* Address import cycle and implement minor refactors
* Fix lint issues
* Add EIP712 unit suite test function
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update ethereum/eip712/encoding.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Add minor refactors; increase test coverage
* Correct ante_test for change in payload
* Add single-signer util and tests
* Update ethereum/eip712/encoding.go
* Update ethereum/eip712/encoding.go
* fix build
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
2022-11-07 16:50:25 +00:00
Vladislav Varadinov
83e509bc57
refactor: optimize AnteHandler gas consumption ( #1388 )
...
* refactor: antehandler order and params optimization
* removed additional individual params for the feemarket module
* typo fix
* Apply suggestions from code review - Fede
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* typo fix
* formatted using gofumpt
* typo fix - missed negate operator
* missed to negate conditions
* added unit tests for the new param getter methods
* updated changelog
* Apply suggestions from code review
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* moved to improvements
* Converted unit tests into table-driven tests
* added Require().Equal() to test case
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-10-19 18:21:59 +02:00
Ramiro Carlucho
cae7c4d270
!fix(erc712): support MsgCreateValidator
( #1346 )
...
* fix for create validator msg and tests
* changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-09-17 13:37:47 +00:00
Austin Chandra
723443abc7
feat(eip712): Create LedgerPreprocessHook to reformat EIP-712 payloads ( #1277 )
...
* Create ReformatLedgerTx to reformat EIP-712 payloads
* Fix issue with public key; minor refactors
* Refactor naming; add test case
* Update preprocess_test
* Add tests and fix lint
* Refactor preprocess test
* Implement minor fix and add changelog entry
Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-09-13 16:56:35 +02:00
Ramiro Carlucho
c9fe1d1913
fixes for 19.0.1 ( #1305 )
...
* fixes for 19.0.1
* changelog
* changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-26 20:25:12 +02:00
Jacob Gadikian
524e25c038
chore: Gofumpt ( #1298 )
...
* fumpt
* golangci
* Update keeper_test.go
* Update keeper_test.go
* Update handler_test.go
* Update rpc_pending_test.go
* lll
* line length limits
* Update CHANGELOG.md
2022-08-26 10:30:55 +00:00
yihuang
29d3abcf09
!feat(deps): Upgrade cosmos-sdk to v0.46.0
( #1168 )
...
* Reuse cosmos-sdk client library to create keyring
Extracted from https://github.com/evmos/ethermint/pull/1168
Cleanup cmd code for easier to migration to cosmos-sdk 0.46
* Update cosmos-sdk v0.46
prepare for implementing cosmos-sdk feemarket and tx prioritization
changelog
refactor cmd
use sdkmath
fix lint
fix unit tests
fix unit test genesis
fix unit tests
fix unit test env setup
fix unit tests
fix unit tests
register PrivKey impl
fix extension options
fix lint
fix unit tests
make HandlerOption.Validate private
gofumpt
fix msg response decoding
fix sim test
bump cosmos-sdk version
fix sim test
sdk 46
fix unit test
fix unit tests
update ibc-go
2022-07-28 15:43:49 +02:00
Federico Kunze Küllmer
3ac8b93a1c
evm: cleanup, remove atlas/ ( #1152 )
...
* evm: cleanup, remove atlas/
* rm tparse action
* fix lint issue
* use cases.NoLower
* tidy
2022-06-27 11:58:44 +02:00
Guillermo Paoletti
3bea3fa1ef
ante: EIP712 support ( #950 )
...
* code migrated
* signed_data ported to avoid conficting dependency
* correct payload
* eip712 working with evmos.me
* use geth TypedData types
* fix linter
* minor refactor
* test first try
* fix test
* fix tests
* enforce fee delegated eip712
* verify signature refactor
* SignedTypedData api refactor
* add AnteHandler test for EIP712
* remove comment
* code clean up
* return more detailed error messages
* fix linter
* remove unnecesary global vars
* Update app/ante/eip712.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* fix pr comments
* remove hardcoded value
* add more tests
* add changelog
* use sdk errors
* add MsgDelegate test
Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com>
Co-authored-by: Federico Kunze Küllmer <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: crypto-facs <84574577+crypto-facs@users.noreply.github.com>
2022-02-26 16:34:43 +00:00