Vladislav Varadinov
157f188b91
imp(ante): refactor for increased AnteHandler
performance ( #1393 )
2022-10-20 13:40:25 +02: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
JayT106
5879750b30
fix(evm): skip hash check when the code has been deleted ( #1320 )
...
* evm.InitGenesis skip codehash check when the code has been deleted in the evm state
* fix lint
* just ignore all the codehash check when the evm account code is empty
* update changelog
* nit
* add test
* add test
Co-authored-by: Daniel Burckhardt <daniel.m.burckhardt@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-10-19 12:29:24 +00:00
0xmuralik
24fad163b2
ignore gosec
2022-10-18 15:36:34 +05:30
0xmuralik
670dc398e4
nosec G705
2022-10-18 12:14:29 +05:30
0xmuralik
906ec2a06c
use cosmos/goces
2022-10-18 11:40:03 +05:30
0xmuralik
d965f6fbb9
lint
2022-10-17 17:14:21 +05:30
0xmuralik
482d597318
lint
2022-10-17 16:33:31 +05:30
0xmuralik
74ed0f7e0f
lint
2022-10-17 12:45:01 +05:30
0xmuralik
a4f2cb5731
gofumpt and ignore duplicates
2022-10-17 12:17:56 +05:30
0xmuralik
ec3e8f7ce3
lint
2022-10-17 11:55:19 +05:30
0xmuralik
d35d3c0716
evmos/ethermint -> cerc-io/laconicd
2022-10-13 11:46:53 +05:30
0xmuralik
051ef3fd2a
ethermintd->laconicd
2022-10-13 11:23:17 +05:30
0xmuralik
995405d204
ignore solidity test
2022-10-12 17:24:07 +05:30
0xmuralik
4202addde4
flags fix
2022-10-12 14:32:09 +05:30
0xmuralik
8d29064d08
add gql
2022-10-12 13:04:44 +05:30
0xmuralik
c57b8fd29f
fix auction keeper and flags
2022-10-11 14:01:42 +05:30
0xmuralik
56d59feaa0
update fork
2022-10-10 16:08:33 +05:30
0xmuralik
01fbfc6c38
changes for tendermint v0.34.21
2022-09-30 12:11:39 +05:30
yihuang
35850e620d
fix(rpc): fix gRPC query failure on legacy blocks ( #1354 )
...
* Problem: grpc query fail on legacy blocks
`BaseFee` and `EthCall`.
Solution:
- since grpc query handlers are used for all versions of the blocks, it need to be compatible with legacy formats.
debug
fix basefee fetch
Revert "debug"
This reverts commit 50ebaf697fc06b0d6e26abd8de8f89717e8a219d.
update gomod2nix
Update CHANGELOG.md
debug
fix panic
Revert "debug"
This reverts commit e08af04b0776bd390c42706cc9ec978e00bcb3bb.
* add upgrade integration test
* Update tests/integration_tests/configs/upgrade-test-package.nix
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-09-23 18:06:25 +02:00
yihuang
65740193f9
imp(rpc,server): concurrent gRPC queries ( #1352 )
...
* Problem: grpc query is not run concurrently
Solution:
- Initiate the GRPCClient introduced in [sdk 0.46](https://github.com/cosmos/cosmos-sdk/pull/11234 ).
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update server/start.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* wrap error
* Update server/start.go
* more complete copy
* fix grpc crash
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-09-20 15:00:36 +02:00
Federico Kunze Küllmer
acf15474e7
imp(evm): stateless custom precompiles ( #1272 )
...
* release: v0.17.0 changelog (#1153 )
* release: v0.17.0 changelog
* rm newline
* update link
* imp(evm): EVM interface
* fixes
* fix lint
* fix lint pt 2
* initial wiring for stateful contracts
* Apply suggestions from code review
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
* changelog
* comments from review
* lint
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
2022-09-15 13:54:02 +02:00
SpideyPool192
09d81e4d66
changed binary names and source repos in docker files and readmes
2022-09-07 12:56:51 +05:30
SpideyPool192
a57e5f4fd9
changed package name from tharsis/ethermint to cerc-io/laconicd
2022-09-07 12:06:11 +05:30
Adi Saravanan
3e4544d818
tests: improve x/evm/types coverage ( #1302 )
...
* modifying x/evm/types tests v1
* modifying x/evm/types tests v2
* modifying x/evm/types test v3
Co-authored-by: Freddy Caceres <facs95@gmail.com>
2022-09-01 07:59:01 -07: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
SpideyPool192
e8b3ca8cae
use ipdl prime in 'helpers.go/GetCid'
2022-08-18 15:02:53 +05:30
Freddy Caceres
737c1de694
Merge pull request from GHSA-f92v-grc2-w2fg ( #1234 )
2022-08-11 07:07:38 +02:00
yihuang
b1cd16e5bf
feat!: Apply feemarket to native cosmos tx ( #1194 )
...
* Problem: feemarket's query cli has redundant height parameter
Soluton:
- remove the positional height parameter, since there's a flag already.
Update CHANGELOG.md
* Apply feemarket to native cosmos tx
- add tx extension option for user to input tip price
- apply feemarket's base fee to native tx
comments and cleanup
fallback to default sdk logic when london hardfork not enabled
integration test
cleanup feemarket query cli commands
Update CHANGELOG.md
update unit tests
disable feemarket in simulation tests for now
fix lint
Update app/simulation_test.go
fix python lint
fix lint
Update x/evm/types/extension_option.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
address review suggestions
* fix unit tests
* fix integration test
* improve unit test coverage
* fix go lint
* refactor
* fix integration test
* fix simulation tests
* fix go linter
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-10 18:33:38 -04:00
yihuang
b3242ea982
Problem: feemarket's query cli has redundant height parameter ( #1230 )
2022-08-10 08:51:39 +02:00
Freddy Caceres
ccbaf1fe05
imp(tests): prune node integration tests ( #1212 )
...
* first pass
* extra comment
* fixed pruned node tests. Fix getBalance on pruned. Fix BaseFee on pruned.
* fix tests execution
* check logs on tests
* address pr comments
* address comments
* Update rpc/namespaces/ethereum/eth/api.go
* update error msg check
* fix lint
* fix linter
* fix linter
* fix py lint
* test lint
* fix lint
* pin golangcli version
* pin golanci version
* pin lint to version 0.48
* fix linter
* fix last linter last file
Co-authored-by: ramacarlucho <ramirocarlucho@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-08 10:17:10 +02:00
yihuang
e1560849dd
feat(ante, evm): set priority for eth transactions ( #1214 )
...
* Set priority for eth transactions
Set the tx priority to the lowest priority in the messages.
fix unit tests
code cleanup and spec
update spec
fix go lint
add priority integration test
add python linter job
add access list tx type
fix gas limit
remove ledger tag, so no need to replace hid dependency
fix earlier check
ibc-go v5.0.0-beta1
* fix pruned node integration test
* Update x/feemarket/spec/09_antehandlers.md
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-05 15:00:31 +02:00
Daniel Burckhardt
ee806fc41f
ENG 119 json rpc unit tests ( #1189 )
...
* tests(json-rpc): wip evm_backend unit test setup
* tests(json-rpc): wip evm_backend unit test setup
* fix viper
* wip query client mock
* fix first backend test except error message
* clean up
* wip Context with Height
* fix JSON RPC backend test setup
* typo
* refactor folder structure
* tests(json-rpc):add BlockBloom tests
* tests(json-rpc): remove unused malleate
* tests(json-rpc): add BaseFee tests
* refactor query tests
* add client mock
* add GetTendermintBlockByNumber tests
* refactor mock tests
* refactor
* wip backend EthBlockFromTendermint test
* wip backend EthBlockFromTendermint test
* refactor backend EthBlockFromTendermint test
* add TestGetTendermintBlockResultByNumber
* add GetBlockByNumber tests
* refactor mocks
* fix spelling
* add more tests and address comments
2022-07-29 10:35:07 +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
Victor Pham
cd41c48075
fix(evm): TxIndex
is wrong when trace is the first tx of a block ( #1187 )
...
* Fix TxIndex wrongly when trace first Tx of a block
If `Predecessors` is empty, `txConfig.TxIndex` originally = 0 and when it reachs line 401 `txConfig.TxIndex++`, it will becomes 1. It should be 0
* apply suggestion and add change-log
* fix comment
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-20 16:48:50 +02:00
yihuang
ffe78da36e
!fix(evm): Fix eth tx hashes in json-rpc responses ( #1176 )
...
* Fix eth tx hashes in json-rpc responses
Closes : #1175
- Remove Size_ field
- Validate From/Hash fields in ante handler
- Recompute tx hashes in json-rpc apis to cope with old blocks
Update CHANGELOG.md
remove Size_, validate Hash/From, add unit tests
update spec
Update CHANGELOG.md
Update app/ante/eth.go
populate From in SendRawTransaction
Apply suggestions from code review
keep Size_ field to avoid breaking tx format
* move some validation to ValidateBasic
* move validation to ValidateBasic
* make ToTransaction returns a valid msg
* restructure the protoTxProvider check
* add comment
* workaround tx hash issue in event parsing
* fix integration test
* fix unit test
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-19 15:12:48 +00:00
Federico Kunze Küllmer
73c9ea218e
fix(rpc): fix panic on breaking EVM and feemarket params ( #1188 )
...
* release: v0.17.0 changelog (#1153 )
* release: v0.17.0 changelog
* rm newline
* update link
* fix(rpc): fix panic on breaking EVM and feemarket params
* changelog
* fix gosec
2022-07-19 17:00:43 +02:00
Daniel Burckhardt
969794c5b4
impr(evm): add check msg.Validate check to prevent 0 gas txs ( #1174 )
...
* impr(evm): add check msg.Validate check to prevent 0 gas txs
* add changelog
* impr(evm): add integration tests for zero gas txs
* go mod tidy and proto swagger
* fix comment
* move changelog to state machine breaking
* add ReadHeaderTimeout`
* revert ReadHeaderTimeout config change
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-18 22:21:04 +02:00
yihuang
b74b37f5f0
fix: traceTransaction returns zero gas used ( #1179 )
...
* Problem: traceTransaction returns zero gas used
Solution:
- call CaptureTxStart and CaptureTxEnd
* fix trace unit tests
* add overflow check
* add comment
* check gas used is positive
* Update x/evm/keeper/state_transition.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-18 22:16:28 +02:00
yihuang
b7c85beba3
imp(all): setup a validator in the test genesis ( #1171 )
...
It's disabled in cosmos-sdk 0.46's InitGenesis to have zero validators,
prepare for the upgrade of cosmos-sdk 0.46.
2022-07-11 14:42:59 +02:00
crypto-facs
4a6f4fd6e0
imp(deps): Geth upgrade v1.10.19 ( #1159 )
...
* upgrade geth and fix build
* add support for
* update EIPs
* fix keeper tests
* update traceTx function with latest geth changes
* remove unnecessary comments
* fix tests
* update proto
* add migrations
* update module version
* fix grpc test
* fix lint
* fix lint
* update changelog
* fix typo
* remove unnecessary format logs
* Update proto/ethermint/evm/v1/evm.proto
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* remove debug true on default
* update comments
* fixing ante tests
* fixed cycle imports on migrate_test
* fix wrong naming
* update comment
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-08 10:58:04 +00:00
Daniel Burckhardt
4a66ff95d9
feemarket(specs): add hint on different gas terminology for gas in Cosmos and Ethereum ( #1165 )
2022-07-01 13:55:19 +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
Daniel Burckhardt
d3333418c5
bug(feemarket): set lower bound of base fee to min gas price param ( #1135 )
...
* bug(feemarket): set lower bound of base fee to min gas price param)
* fix
* bug(feemarket): flag necessary improvement to integration tests, as the baseFee changes for every test
* bug(feemarket): add unit tests for CalculateBaseFee
* bug(feemarket): move integration test setup out of Describe block
* wip fix tests
* bug(feemarket): fix integration tests
* bug(feemarket): wip improve specs
* bug(feemarket): add spec concepts
* bug(feemarket): remove todo
* bug(feemarket): remove changes used for debugging in params
* bug(feemarket): remove todo in integration test
* add changelog
* address PR comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-22 12:57:16 +02:00
Federico Kunze Küllmer
8e2c65295f
imp(evm): rename RejectUnprotectedTx
to AllowUnprotectedTxs
( #1142 )
...
* imp(evm): rename RejectUnprotectedTx to AllowUnprotectedTxs
* changelog
2022-06-22 12:51:14 +02:00
yihuang
6cf2b9fdd3
fix(evm): clear logs if tx failed in post processing hooks ( #1128 )
...
* Problem: clear logs if tx failed in post processing hooks
* Update x/evm/keeper/state_transition.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-21 13:21:52 +02:00
Federico Kunze Küllmer
ec8e93b319
all: rename go module to evmos/ethermint ( #1137 )
2022-06-19 11:43:41 +02:00
yihuang
8f932ddc6a
!feat(evm): Reject not replay-protected tx to prevent replay attack ( #1124 )
...
* Reject not replay-protected tx to prevent replay attack
Closes : #1122
- reject such txs in ante handler
* add reject unprotected parameter
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* pr suggestions
* add unit test case
* Reject not replay-protected tx to prevent replay attack
Closes : #1122
- reject such txs in ante handler
add reject unprotected parameter
Update CHANGELOG.md
Apply suggestions from code review
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
pr suggestions
add unit test case
use var
* add migrations
* Apply suggestions from code review
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* rename
* update comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-13 09:41:53 +00:00
yihuang
82835307c7
imp(feemarket): min-gas-multiplier parameter should accept zero value ( #1120 )
...
* min-gas-multiplier parameter should accept zero value
update min-gas-multiplier validation logic
* fix unit test
* changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-09 11:20:50 +02:00
Federico Kunze Küllmer
b567624d6a
tests: update consensus params ( #1117 )
...
* tests: update consensus params
* fix
2022-06-08 15:21:51 +02:00
Sai Kumar
f89c866f50
fix: fix the test cases
2022-06-07 08:56:26 -05:00
Sai Kumar
fc06fbfb48
refactor: updated to ante handlers support
2022-06-07 08:56:18 -05:00
crypto-facs
620f6a6770
imp(feemarket): update BaseFee
based on GasWanted
( #1105 )
...
* add gasWanted transient store keys
* add gasWanted transient store keeper functions
* add gasWanted transient store tracker
* add comment
* remove unncesary comment
* remove unnecesary function
* fix tests
* fix bad comment
* remove unnecesary comment
* update comment
* update changelog
* Update CHANGELOG.md
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* add GasWantedDecorator
* remove unnecesary comments
* gasWanted decorator test
* fix tests
* fix tests and build
* fix lint
* updated end block event
* Update app/ante/fee_market.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* fix undeclared variable
* Update app/ante/fee_market_test.go
* remove unnecesary line
* migrate MinGasMultiplier to FeeMarket module
* set limited gas wanted
* remove old newKeeper param
* update proto comment
* fix test
* update comments
* Update x/feemarket/keeper/abci.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* address comments from review
* tidy
* tests
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-06-05 09:22:33 +00:00
Daniel Burckhardt
cad7ff66b0
analytics(app): update telemetry to Ethermint modules ( #1106 )
...
* analytics(evm): replace telemetry gauges with counters and add gasUsed counter
* analytics(feemarket): add telemetry gauges for base fee and block gas
* analytics(feemarket): add telemetry gauges for gas_used per gas_limit
* analytics(feemarket): remove refund telemetry
* analytics(app): update CHANGELOG
* remove unwanted change
* address PR comments
* update comment
2022-06-02 15:04:33 +02:00
Loredana Cirstea
046cd00174
feemarket: global MinGasPrice
parameter ( #1104 )
...
* Add min_gas_price to feemarket params
* Add MinGasPriceDecorators
* feemarket integration tests for MinGasPrice
* Restructure integration tests
* Simplify integration tests context
We use DeliverTx context to set up the app, otherwise not all settings are initialized.
We test CheckTx with `s.app.BaseApp.CheckTx(req)`, which uses the `CheckTx` mode and context.
* Update MinGasPrice spec in feemarket module
* reorder ethermint module order for initializing genesis
* feemarket migrations for adding MinGasPrice param
* update changelog
* Additional unit tests for MinGasPrice = 0, tx gas price > 0 (PR review)
https://github.com/tharsis/ethermint/pull/1104#discussion_r884991661
* Use 0 MinGasPrice for transaction simulations
* Fix duplicate registration of feemarket GenesisState and Params (PR review)
https://github.com/tharsis/ethermint/pull/1104#issuecomment-1141893712
2022-05-31 18:28:46 +02:00
Daniel Burckhardt
928e018aa9
impr(evm): add tx_type, gas and counter telemetry for ethereum txs ( #1101 )
...
* impr(evm): add tx_type, gas and counter telemetry for ethereum txs
* impr(evm): Add CHANGELOG
2022-05-30 10:24:29 +02:00
Daniel Burckhardt
d23fb0c37d
specs(evm): Add concepts ( #1095 )
...
* specs(evm): Add concepts
* specs(evm): Add geth and bytecode concepts
* specs(evm): little fixes
* fix typo
* add CHANGELOG
2022-05-26 15:04:19 +00:00
crypto-facs
d5598932a7
imp(evm): add query params to CLI ( #1091 )
...
* add query params to evm
* update changelog
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-05-25 14:02:01 +00:00
crypto-facs
c4417713fa
imp(evm): define minimum GasUsed proportional to GasLimit ( #1087 )
...
* min gas denominator implementation
* update changelog
* modify MinGasDenominator type to sdk.Dec
* fix typo in comments
* add comments
* update comment
* refactor logic
* remove unnecesary test
* fix typo on proto
* rename param
* fix tests
* use truncate and run mod tidy
* comment to default value
* update changelog
* rename temporary gas used
* integration tests
* add migrations
* add default as var
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-05-25 13:52:34 +00:00
Thomas Nguy
9edc87d114
fix: append Log
in tx post processing response ( #1088 )
...
* fix post processing log
* update changelog
2022-05-19 12:11:26 +02:00
Sai Kumar
1bbb2d7f42
chore: small fix
2022-05-18 12:55:06 +05:30
Sai Kumar
b34e83a29a
chore: address the pr comments
2022-05-18 11:27:11 +05:30
Sai Kumar
f705908614
fix : fix the unit test for modules
2022-05-17 07:20:21 +05:30
Sai Kumar
49cd996e80
Merge branch 'roy/upgrade-to-v0.46' of github.com:vulcanize/chiba-clonk into roy/upgrade-to-v0.46
2022-05-16 20:18:06 +05:30
2c9d18fd93
misc clean up
2022-05-16 22:22:29 +08:00
bfb702009a
fix tx response decoding
2022-05-16 22:22:29 +08:00
00814e2714
TxExtensionOptionI for ExtensionOptionsEthereumTx
2022-05-16 22:22:20 +08:00
d1c4da99b9
[wip] TxExtensionOptionI for ExtensionOptionsEthereumTx
2022-05-12 19:45:01 +08:00
Adu
4ea9b6dc6d
imp, ci: address pending issues from EVM simulation ( #1063 )
...
* add note
fix note
* add TestAppStateFn TestRandomAccounts
* marshal int slice to json
* add paramschange for enableCreate and enableCall
* AppStateFn -> StateFn
* add TestDecodeStore
* update github actions to run evm simulation
* add TestParamChanges
* add TestRandomizedGenState
* use go install for runsim
* resolve conflict
* use random gasCap to estimate gas
* use estimateGas to calculate max transferableAmount
* update godoc
* TestAppStateFn -> TestStateFn
* Update x/evm/simulation/genesis.go
* comment
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <federico.kunze94@gmail.com>
2022-05-02 15:27:43 +02:00
Federico Kunze Küllmer
c25669c761
rpc: refactor rpc packages and backend to support cosmos namespace ( #1070 )
...
* rpc: refactor rpc packages and backend to support cosmos namespace
* changelog
* typo
2022-05-02 06:26:24 +00:00
yihuang
556c2cc8a3
fix!: london hardfork check logic in json-rpc apis ( #1068 )
2022-04-30 18:11:28 +02:00
Sai Kumar
760cddf698
fix: fix the cli test cases for modules
2022-04-29 09:50:27 +05:30
Sai Kumar
eb1af33649
fix: fix the rpc test cases
2022-04-28 13:13:39 +05:30
Federico Kunze Küllmer
0f0996432a
fix: update BaseFee JSON-RPC ( #1059 )
...
* release: v0.14.0 changelog (#1057 )
* fix: update BaseFee JSON-RPC
* typo
* changelog
2022-04-26 14:24:32 +00:00
Sai Kumar
8ae41eb7cc
WIP: fixing the test cases
2022-04-26 19:02:26 +05:30
Sai Kumar
694d4c667d
WIP: fixing the test cases
2022-04-26 16:09:18 +05:30
Sai Kumar
fd59a37798
fix : fix the conflicts
2022-04-23 21:23:51 +05:30
Sai Kumar
cf0be98f9b
Merge branch 'main' into sai/upgrade_cosmos_v0.46
2022-04-23 21:23:06 +05:30
Federico Kunze Küllmer
a121224dbc
docs: update EVM spec
2022-04-22 14:57:48 +02:00
9d4c381e1a
fix: increase timers for nameservice tests
2022-04-21 00:45:52 +05:30
2ea883bc50
nameservice: return record id in setRecord message response
2022-04-20 17:21:52 +05:30
Sai Kumar
92791d5f9d
WIP: trying to migrate auth handlers to middlewares
2022-04-20 17:20:55 +05:30
92f07873f4
chore: replace with wrn
with crn
2022-04-20 13:19:07 +05:30
7f70108a4a
nameservice: implement processing record and authority expiry
2022-04-19 15:51:37 +05:30
Adu
eaca3e09e2
fix: simulations don't generate EVM transactions ( #996 )
...
* use SimAppChainId instead of the default cosmos-sdk simulation chainid
* implement custom RandomGenesisAccounts for auth module simulation
* use customized RandomGenesisAccounts
* generate random ethereum txs operations
* use sdk.DefaultBondDenom
* implement WeightedOperations
* fix self assignment
* use customized RandomAccounts to generate accounts with ethsecp256k1 private key
* RandomAccounts generate random accounts with ethsecp256k1 private key
* implement SimulateEthSimpleTransfer
* implement SimulateEthCreateContract
* refactor and implement operationSimulateEthCallContract as future operations of SimulateEthCreateContract
* Update app/app.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update app/test_helpers.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update app/test_helpers.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* fix r.Read return only 1 result
* fix linter errors
* change SimulateContext to private
* return transferable amount immediately
* fix linter errors
* fix linter errors: append assign to different slice
* fix linter error: remove else block
* use gofumpt
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Update x/evm/simulation/operations.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* fix recipient typo
* add nosec comment to escape Potential hardcoded credentials check
* add comments
* use SimAppChainID as valid chainID
* do not specify genesis.json to create random genesis state for simulation
* sub estimateGas to avoid overflow
* correct RandomGenesisAccounts comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* correct app/test_helpers.go comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* remove NewTxConfig
* implement RegisterStoreDecoder
* remove WeightMsgEthCallContract and adjust weights
* use gofmt
* update godoc
* use types.DefaultEVMDenom in evm genesis params
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* use types.DefaultEVMDenom
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* update godoc
* Update x/evm/simulation/genesis.go
* replace evmdenom with bonddenom in AppStateFn
* fix AppStateFn
* fix lint error
* add ParamChanges for RandomizedParams
* rename app/test_helpers.go -> app/utils.go
* testing for RandomGenesisAccounts
* use cdc for marshaling
* lint
* changelog
* changelog 2
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>
Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com>
Co-authored-by: Federico Kunze Küllmer <federico.kunze94@gmail.com>
2022-04-19 09:50:00 +00:00
8477b3d9cb
Implement float, boolean and reference types for attributes keyValueInput
2022-04-19 08:58:10 +05:30
f7623b26f9
nameservice: return names with records query
2022-04-18 14:44:32 +05:30
crypto-facs
bc4b018b60
Context block height fix on TraceTx
( #1051 )
2022-04-16 19:31:30 +02:00
d762ce98b3
nameservice: queryRecords filter by attributes
2022-04-13 17:33:42 +05:30
MalteHerrmann
4d63238ab0
tests: Increase coverage for msg.go and access_list_tx.go ( #1044 )
...
* tests: Add tests for MsgEthereumTx getter methods
* tests: Add nil data test for MsgEthereumTx buildTx
* tests: Removed unnecessary sdk>big.Int conversions
in MsgEthereumTx ValidateBasic test
* tests: Replace deprecated ethtypes.NewTransaction
* tests: Add AccessListTx tests
* tests: Fix dropped LegacyTx coverage
* Address PR comments
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-04-12 23:08:14 +02:00
Federico Kunze Küllmer
1e03c0c603
deps: bump SDK to v0.45.3 ( #1046 )
...
* release: v0.13.0 (#1030 )
* release: v0.12.0 changelog
* changelog: v0.12.1 (#1019 )
* evm: update empty hash check for storage state (#1016 )
* v0.12.1: changelog
* changelog: v0.12.2 (#1022 )
* changelog: v0.12.2
* fix
* fix
* update changelog
* deps: bump SDK to v0.45.3
* changelog
* fixes
2022-04-12 15:31:25 +02:00
Sai Kumar
a0e2858d4f
WIP: upgrade cosmos-sdk from 0.45 to SMT 0.46
2022-04-11 13:39:39 +05:30
555934b799
nameservice: change Record message types for chiba-clonk-client
2022-04-08 13:03:58 +05:30
MalteHerrmann
c70701e785
tests: add more dynamic fee tx tests ( #1032 )
2022-04-06 19:54:41 +02:00
Nick DeLuca
ea3c16ed7a
fix: remove proto message registration from legacy v09 types to fix conflict ( #1023 )
...
with existing types
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-04-05 15:51:56 +00:00
Thomas Nguy
56c4a31f10
evm: allow to append logs after a post processing hook ( #1025 )
...
* add log after tx post processing hook
add changelog
fix tests
rename variable
minimum change version
* Update x/evm/keeper/state_transition.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-04-05 15:38:18 +00:00
Sai Kumar
4aef5ff22a
Merge branch 'main' into sai/rename_ethermint_chibaclonk
2022-04-05 21:02:33 +05:30
Sai Kumar
548f2a7b92
chore: rename the ethermint
to chibaclonk
...
1. rename `ethermint` to `chiba-clonk`
2. fix the `make localnet-start`
2022-04-05 21:00:20 +05:30
nikugogoi
401e351080
fix: gql query lookupAuthorities and bond module messages ( #25 )
2022-04-05 19:23:49 +05:30
Thomas Nguy
8202a097f2
fix: lint workflow ( #1028 )
...
* fix lint workflow
* fix comment
* remove format
* change checkout with setup-go
* update comment
* add checkout
* add lint issue
* revert lint error
2022-04-05 15:00:54 +02:00