Commit Graph

1467 Commits

Author SHA1 Message Date
264aa45492 cleanup 2022-05-16 22:22:26 +08:00
00814e2714 TxExtensionOptionI for ExtensionOptionsEthereumTx 2022-05-16 22:22:20 +08:00
3f946920ad middleware refactor 2022-05-16 22:22:17 +08:00
d9c6ab8740 ethereum needs "index events middleware" 2022-05-14 03:02:24 +08:00
075978b906 misc cleanup 2022-05-13 18:51:55 +08:00
3f77c8886a [dev] debug stuff 2022-05-13 18:48:39 +08:00
21026234fb test script cleanup 2022-05-13 17:53:48 +08:00
8beea8811d fix gas limit panic 2022-05-13 00:38:19 +08:00
75763bf1c4 [wip] cleanup 2022-05-12 20:26:04 +08:00
d1c4da99b9 [wip] TxExtensionOptionI for ExtensionOptionsEthereumTx 2022-05-12 19:45:01 +08:00
dda48584a5 [wip] middleware refactor 2022-05-12 19:28:21 +08:00
Daniel Burckhardt
e856bf57d5
release: merge release branch changes back to main (#1079)
* release: update CHANGELOG (#1078)

* add unreleased section to changelog
2022-05-09 13:40:12 +02:00
yihuang
93d15db4d0
ante: check EnableCreate/EnableCall in ante handler (#1060)
* Check EnableCreate/EnableCall in ante handler

WIP: #1045

Reject tx early in ante handler, avoid deduct user fee for vain.

* add unit tests

* update changelog

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-03 19:51:02 +02:00
Federico Kunze Küllmer
6b1b936c64
ci: bump simulations timeout (#1073) 2022-05-03 12:25:17 +02:00
Nick DeLuca
a4b8816f4a
remove unused bank keeper dependency from account verification decorator (#1074)
The account verification decorator uses the evm keeper methods which
already use the bank keeper, leaving the dependency unused.

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-05-02 16:48:40 +00: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
dependabot[bot]
fb13fd4835
build(deps): bump github.com/btcsuite/btcd from 0.22.0-beta to 0.22.1 (#1069) 2022-04-29 10:24:00 +00:00
Sai Kumar
760cddf698 fix: fix the cli test cases for modules 2022-04-29 09:50:27 +05:30
Sai Kumar
752fb3944f test: add test cases for middleware 2022-04-28 23:04:20 +05:30
Sai Kumar
eb1af33649 fix: fix the rpc test cases 2022-04-28 13:13:39 +05:30
Sai Kumar
63b66c1ffc fix: fix the make build issue 2022-04-26 20:07:50 +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
fde19d25ad Merge branch 'sai/upgrade_cosmos_v0.46' of github.com:vulcanize/chiba-clonk into sai/upgrade_cosmos_v0.46 2022-04-26 19:04:47 +05:30
Sai Kumar
8ae41eb7cc WIP: fixing the test cases 2022-04-26 19:02:26 +05:30
Sai Kumar
19b1635e00
Merge branch 'main' into sai/upgrade_cosmos_v0.46 2022-04-26 17:28:34 +05:30
dependabot[bot]
ead4208480
build(deps): bump github/codeql-action from 1 to 2 (#1064)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 11:03:36 +00:00
dependabot[bot]
825d3930c6
build(deps): bump github.com/cosmos/cosmos-sdk from 0.45.3 to 0.45.4 (#1065)
Bumps [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) from 0.45.3 to 0.45.4.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/CHANGELOG.md)
- [Commits](https://github.com/cosmos/cosmos-sdk/compare/v0.45.3...v0.45.4)

---
updated-dependencies:
- dependency-name: github.com/cosmos/cosmos-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 13:02:16 +02:00
Sai Kumar
de5fc87573
Merge pull request #36 from deep-stack/ng-gql-get-status
Fix GQL query getStatus
2022-04-26 16:29:16 +05:30
Sai Kumar
e6d416db7f WIP: fixing the test cases 2022-04-26 16:22:19 +05:30
Sai Kumar
694d4c667d WIP: fixing the test cases 2022-04-26 16:09:18 +05:30
e20e7c24c8 fix: GQL getStatus query 2022-04-26 15:30:21 +05:30
Sai Kumar
e8b0e2cf30 fix: fix the build issue 2022-04-26 10:30:05 +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
Sai Kumar
9d7333d4fb fix : fix the chain start 2022-04-23 20:07:00 +05:30
Federico Kunze Küllmer
a121224dbc docs: update EVM spec 2022-04-22 14:57:48 +02:00
Sai Kumar
feae504ff8 WIP: fix the start cmd 2022-04-22 18:25:14 +05:30
Ashwin Phatak
cfeeece6bd
Merge pull request #34 from deep-stack/ng-gql-get-accounts
Fix GQL query getAccounts
2022-04-22 15:59:39 +05:30
e3f97b1df9 fix: gql query getAccounts for high balances 2022-04-22 15:42:31 +05:30
A. F. Dudley
a7f8611858
Delete stale.yml
Getting rid of this insane workflow.
2022-04-21 22:09:12 -04:00
Ashwin Phatak
de7c0558c9
Merge pull request #33 from deep-stack/ng-client-set-record
Fixes to nameservice message types and GQL queries
2022-04-21 10:08:41 +05:30
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
yihuang
0543a28941
rpc: make json-rpc API namespaces extensible (#1056)
* make jsonrpc api namespaces extensible

Closes: #1052, #1037

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-04-19 12:49:05 +00:00
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