Skip to content
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

fix: trace tx/block gas meter to make it consistent with execution #1676

Merged
merged 13 commits into from
Aug 4, 2023

Conversation

GAtom22
Copy link
Contributor

@GAtom22 GAtom22 commented Aug 2, 2023

Description


Closes ENG-1942

@linear
Copy link

linear bot commented Aug 2, 2023

ENG-1942 Precompile Txs: Inconsistent response on `debug_traceTransaction`

Reported by: VictorTrustyDev (escan team)

This happens in txs to precompiled contracts

The information returned on the debug_traceTransaction method of the JSON-RPC API is inconsistent with the tx information returned on the cosmos API.

It was reported that when calling the debug_traceTransaction of a successful transaction, the response shows an out of gas error and the gasUsed == gasWanted. This information is not consistent to the information returned when querying as cosmos transaction.

Example:

https://testnet.mintscan.io/evmos-testnet/txs/75520684066CDFFF0784C0DA88C343CFF7435BA6F748EF9A9955A091C3379E3E?height=15264861

Ethereum TX Hash 0xbc8f8009488ea61f62f96fd527e83857fb359f631b742c5f50d5c59c8fdee36b
Success Yes
Gas Used 176,914 | 56.39 %
curl https://eth.bd.evmos.dev:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceTransaction","params":["0xbc8f8009488ea61f62f96fd527e83857fb359f631b742c5f50d5c59c8fdee36b", {"tracer": "callTracer" } ], "id":1,"jsonrpc":"2.0"}' | jq

{
 "jsonrpc": "2.0",
 "id": 1,
 "result": {
 "error": "out of gas",
 "from": "0x21310d53e6d828ba8e9570c7dccfc0c28795b182",
 "gas": "0x47121",
 "gasUsed": "0x47121",
 "input": "0xb6039895000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000094596e300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000232f636f736d6f732e7374616b696e672e763162657461312e4d736744656c65676174650000000000000000000000000000000000000000000000000000000000",
 "to": "0x0000000000000000000000000000000000000800",
 "type": "CALL",
 "value": "0x0"
 }
}

Other txs reported with this issue:

15762891    0x63ea782d0f204bd2ab64a3f797e607f4c9f6ea65764dcf6413179c58014ffd61 call to 0x0000000000000000000000000000000000000802
15399327    0x4c0752fb38f4684eae694d2925ee0d0d854ab465f594f7681d566a8ca958b4f4 call to 0x0000000000000000000000000000000000000802
15390158    0x770b6ad1586a5770e485402d8c66e1fb83eaa07bc35c58892818b8cc3e46ce2f call to 0x0000000000000000000000000000000000000801
15264880    0x90d5e8cd6079975b11ddca485197e6fbd57d63988fc9104d25031d946cdf498d call to 0x0000000000000000000000000000000000000800
15264861    0xbc8f8009488ea61f62f96fd527e83857fb359f631b742c5f50d5c59c8fdee36b call to 0x0000000000000000000000000000000000000800
15264852    0xd7f97dcfaec014a7fb81eaa00953f275b72757fe379af4ffd02185664fd23bf3 call to 0x0000000000000000000000000000000000000800
15225439    0x6c7bec2e3ad459ffba1ecd85787fd44458b5a4232c6a8e93ede99ade1a224800 call to 0x4C3c09c59ce5B9FAa1314ee2D8860129346edE52 which invoke 0x0000000000000000000000000000000000000800
15167475    0xb72a78d1ee6be2c6073db0669b8a0e344bc20b5febd12c3358977b8d48a26ce2 call to 0x0000000000000000000000000000000000000800
15160604    0xc44de19910be2cd4b21cf69e1818a216e31c9e4e97308e435b255d07ecf8a132 call to 0xb45Cc7BB5Edd3e93E499a9E58f5db82e998664F5 which invoke 0x0000000000000000000000000000000000000800
15159890    0x3bd4075750a1afd55db53c919faf406236e6496aa40e4eaba3b07d5a96f4b0fc call to 0xb45Cc7BB5Edd3e93E499a9E58f5db82e998664F5 which invoke 0x0000000000000000000000000000000000000800
15027197    0xc35a71d3d1ac71a22198756fd978ab307148dd2bdcdef3f8a9cc548d25f41de4 call to 0xE926a257816E1B7083F71074Dd8A02CcF1eBb27C which invoke 0x0000000000000000000000000000000000000801
15026802    0x2fdbd576aa40240f28c3e60f699285aafa7e2aab9fc93ed2066001ca688a5062 call to 0xE926a257816E1B7083F71074Dd8A02CcF1eBb27C which invoke 0x0000000000000000000000000000000000000801
14958053    0xd2d8ad456bca0203b9949f0fbc585e068d6d3c3503eca7caeb07aabfd85b4eb9 call to 0xa2354A026DfE759082e286097baDFFBe94b28974 which invoke 0x0000000000000000000000000000000000000800
14904147    0xcf8a37a9a87ae0e68d10c7e5a69f41d6bc47dc08dce1de1aad7447dc447c7b59 call to 0x314675FA5ce801c1181c5F52e1b4a841642D671c which invoke 0x0000000000000000000000000000000000000800

Additional comments from Victor:

The error comes from the RunSetupfunction

image.png

Seems to be related on how the gas is estimated:

Setup New gas meter: contract.Gas=143336 and consume initialGas=298823

image.png

about consume 298823 when gas only 143336

https://testnet.mintscan.io/evmos-testnet/txs/0x4c0752fb38f4684eae694d2925ee0d0d854ab465f594f7681d566a8ca958b4f4
Gas (used / wanted) 83,680 / 167,360

somehow initial gas already greater than gas limit

Could be related to the logic in the TraceTx , there it seems to stack the gas from the predecessors
Tracing iterator and apply previous messages, thus consume gas
thus gas meter in the sdk context got stacked

image.png

@github-actions github-actions bot added the proto label Aug 2, 2023
@GAtom22 GAtom22 changed the title fix: trace tx gas meter to make it consistent with execution fix: trace tx/block gas meter to make it consistent with execution Aug 2, 2023
x/evm/keeper/grpc_query.go Fixed Show fixed Hide fixed
x/evm/keeper/grpc_query.go Fixed Show fixed Hide fixed
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #1676 (d3316d1) into main (99c577e) will increase coverage by 0.02%.
The diff coverage is 72.00%.

❗ Current head d3316d1 differs from pull request most recent head 01e16f2. Consider uploading reports for the commit 01e16f2 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1676      +/-   ##
==========================================
+ Coverage   70.22%   70.24%   +0.02%     
==========================================
  Files         296      296              
  Lines       22059    22096      +37     
==========================================
+ Hits        15491    15522      +31     
- Misses       5818     5820       +2     
- Partials      750      754       +4     
Files Changed Coverage Δ
x/feemarket/keeper/params.go 60.00% <20.00%> (-5.00%) ⬇️
rpc/backend/tracing.go 61.02% <40.00%> (-1.67%) ⬇️
x/evm/keeper/grpc_query.go 86.69% <100.00%> (+0.79%) ⬆️
x/evm/keeper/keeper.go 88.88% <100.00%> (+1.95%) ⬆️

@VictorTrustyDev
Copy link
Contributor

VictorTrustyDev commented Aug 2, 2023

@GAtom22, On legacy blocks, the params MinGasPrice of x/feemarket is nil, thus panic here when tracing.

#1670

@GAtom22 GAtom22 marked this pull request as ready for review August 3, 2023 00:36
@GAtom22 GAtom22 requested a review from a team as a code owner August 3, 2023 00:36
@GAtom22 GAtom22 requested review from Vvaradinov and 0xstepit and removed request for a team August 3, 2023 00:36
@GAtom22 GAtom22 marked this pull request as draft August 3, 2023 12:45
@GAtom22 GAtom22 marked this pull request as ready for review August 3, 2023 14:17
Copy link
Contributor

@facs95 facs95 left a comment

Choose a reason for hiding this comment

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

Great work @GAtom22! LGTM

x/evm/keeper/grpc_query.go Show resolved Hide resolved
Copy link
Contributor

@VictorTrustyDev VictorTrustyDev left a comment

Choose a reason for hiding this comment

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

Please shorten the NewInfiniteGasMeterWithLimit lines to increase readability

x/evm/keeper/grpc_query.go Outdated Show resolved Hide resolved
x/evm/keeper/grpc_query.go Outdated Show resolved Hide resolved
Co-authored-by: Victor Pham <me@victortrusty.dev>
@GAtom22 GAtom22 enabled auto-merge (squash) August 4, 2023 12:18
@GAtom22 GAtom22 merged commit acc28fa into main Aug 4, 2023
27 of 28 checks passed
@GAtom22 GAtom22 deleted the GAtom22/trace-tx branch August 4, 2023 12:27
MalteHerrmann added a commit that referenced this pull request Aug 17, 2023
* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* WIP merge conflicts and other updates

* WIP fix tests

* address linter

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>
MalteHerrmann added a commit that referenced this pull request Aug 21, 2023
…0-rc2 (#1710)

* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* build(deps): bump golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18 (#1690)

Bumps golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @openzeppelin/contracts from 4.9.2 to 4.9.3 in /contracts (#1697)

build(deps): bump @openzeppelin/contracts in /contracts

Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.3/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v4.9.2...v4.9.3)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore: update gas adjustment factor (#1706)

* chore: update gas adjustment factor

* add changelog entry

* build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#1705)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* build(deps): bump bufbuild/buf-setup-action from 1.26.0 to 1.26.1 (#1704)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* fix panic on uint64 conversion in evm ApplyMessageWithConfig function (#1703)

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* fix(staking): change names of owner / spender to grantee / granter to be consistent (#1702)

* fix: change names of owner / spender to grantee / granter to be consistent

* fix: remove spender references from queries and txs

* fix: fix tests in StakingCaller.sol and position of params in allowance query

* fix: types tests for CheckAllowance

* tests(upgrade): remove version mapping in E2E tests (#1643)

* update version mapping in E2E tests to v12.1.6

* remove version map altogether

* run gofumpt

* refactor(config): use squash tag unmarshal embedded struct (#1666)

* refactor(config): use squash tag unmarshal embedded struct

* fix test

* fix import

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* remove unused function

* upgrade ginkgo

* run go mod tidy

* fix: add missing CHANGELOG entries

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>
MalteHerrmann added a commit that referenced this pull request Aug 22, 2023
* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* build(deps): bump golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18 (#1690)

Bumps golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @openzeppelin/contracts from 4.9.2 to 4.9.3 in /contracts (#1697)

build(deps): bump @openzeppelin/contracts in /contracts

Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.3/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v4.9.2...v4.9.3)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore: update gas adjustment factor (#1706)

* chore: update gas adjustment factor

* add changelog entry

* build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#1705)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* build(deps): bump bufbuild/buf-setup-action from 1.26.0 to 1.26.1 (#1704)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* fix panic on uint64 conversion in evm ApplyMessageWithConfig function (#1703)

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* fix(staking): change names of owner / spender to grantee / granter to be consistent (#1702)

* fix: change names of owner / spender to grantee / granter to be consistent

* fix: remove spender references from queries and txs

* fix: fix tests in StakingCaller.sol and position of params in allowance query

* fix: types tests for CheckAllowance

* tests(upgrade): remove version mapping in E2E tests (#1643)

* update version mapping in E2E tests to v12.1.6

* remove version map altogether

* run gofumpt

* refactor(config): use squash tag unmarshal embedded struct (#1666)

* refactor(config): use squash tag unmarshal embedded struct

* fix test

* fix import

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(lint): fix linter (#1719)

fix linter

* chore: set default value to empty string to get chain-id from genesis (backport #1714) (#1720)

* chore: set default value to empty string to get chain-id from genesis (#1714)

* chore: set default value to empty string to get chain-id from genesis

* add changelog entry

* fix lint issues

* Update CHANGELOG.md

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit d7d7cd5)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore: update rosetta import (#1718)

* chore: update rosetta import

* fix lint issues

* add changelog entry

* run go mod tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
MalteHerrmann added a commit that referenced this pull request Sep 20, 2023
* Merge pull request from GHSA-m99c-q26r-m7m7

* add v2 vesting proto folder

* update to v2 in Msg service

* update protos to add FundVestingAccount message and adjust creating accounts

* execute make proto-all

* adjust msg.go and corresponding tests

* adjust msg_server.go (tx execution)

* update cmd commands

* update tests so that they can compile

* adjust msg_server_test.go to fix test for funding clawback vesting accounts

* fix msg_server.go to expect an EthAccount to already exist

* fix TestMsgFundVestingAccountNew

* fix TestMsgCreateClawbackVestingAccount

* fix TestBalances

* rework TestMsgClawback

* enhance addGrant to check if account was only initialized before

* fix TestMsgUpdateVestingFunder

* fix integration tests

* remove unused variables

* address linters

* fix: add telemetry, fix for Clwaback if empty periods and test

* fix: remove merge param and add zero addresses checks in ValidateBasic

* fix: add CHANGELOG

* fix: add codec and handler

* fix: add additional tests and a more efficient comparison for the zero address in ValidateBasic

* Apply suggestions from code review

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* Update x/vesting/keeper/integration_test.go

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* Update x/vesting/keeper/msg_server_test.go

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* apply changes from code review

* fix: remove TODO

* fix: add comments describing the checks done in ValidateBasic

* fix: add precompiles to blocked addresses

* fix: add the DefaultPrecompilesBech32

* fix: no need to convert to acc address

* add upgrade handler

* bump vesting module consensus version

* register migration

* test: add migration code

* fix: include the old v1 impl

* add test for migrations

* address review comments

* remove comment

* fix expected error in msg_server_test.go

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* Merge pull request from GHSA-7hrh-v6wp-53vw

* fix: add fix in vesting ante handler and tests to confirm

* apply changes from code review

* fix: add back Barberry bug tests

* fix: add the correct tests

* fix: remove new line

* feat(vesting): Add precompile support (#1667)

* add vesting precompile support

* fix: format and lint

* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* adjust imports in precompiles.go

---------

Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* feat(vesting): Include vesting precompile code and use correct DeliverEthTx (#1672)

* feat: add vesting precompile and update integration tests to check for err

* fix: add licenses

* CHANGELOG

* CHANGELOG

* fix: format and lint

* fix: renamed receivers

* chore: prepare v14.0.0-rc1 release (#1673)

* adjust upgrade constants

* adjust changelog

* disable markdown link check for sec advisories

* fix(tests): fix Dockerfile and init script for e2e tests (#1678)

* fix Dockerfile and init script for e2e tests

* address review comment

* add changelog entry

* docs: update vesting v2 cli (#1677)

* remove un-used flags "merge" and "delay"

* removed wrong "use" desc of cli tx fund-vesting-account

* add change doc

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix: re-generate protos and cleanup tests (#1679)

* fix: changelog

* changelog

* fix: changelog1

* apply changes

* fix

* refactor

* refactor

* remove unnecessary import

* fix lint issues

* refactor

* add type check in unit test

* refactor int tests

* refactor dupl code

* remove unused event

* refactor

* remove unnecessary address check

* remove unused var

* refactor codec

* refactor

* refactor tests

* refactor

* fixes

* fix

* push proto fixes

* fix

* cleanup tests

* push more fixes

* reafctor more tests

* format and lint

* proto cleanup

* add vesting query to e2e tests

* update proto comments

* update comment

* fix

* fix

* fix

* fix

* fix

* format

---------

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* chore: update mod version to v14 (#1674)

* chore: update mod version to v14

* add changelog entry

* update imports on new files

* chore: adjust changelog (#1685)

adjust changelog

* chore: migrate evmos-ledger-go to evmos repo (backport #1682) (#1683)

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
(cherry picked from commit 32e76bd)

# Conflicts:
#	crypto/keyring/options.go
#	go.sum

* update imports version

* update chlog

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore: update proto with v14 (#1684)

* update proto with v14

* add changelog entry

* revert changes in consensus warn flow

* Revert "revert changes in consensus warn flow"

This reverts commit 322f282.

* chore: fix more changelog (#1694)

* add rc2 upgrade handler

* add test setup

* fix

* fix

* fix wip

* fix wip 2

* fix wip 3

* commit WIP

* commit WIP

* commit WIP

* remove prints

* commit WIP

* commit WIP

* update WIP

* move files

* commit WIP

* commit WIP

* more verbosity

* move tests

* imp

* fix versions

* address lic check

* address linters

* address linters 2

* chore: proto cleanup (#1691)

* cleanup protos

* fix doc comment

* address review comments

* address buf linter

* remove unused genesis proto

* remove unused genesis proto

* fix doc comment

* reorder checks to save gas if not vesting account

* change error message to make it more informative

* commit WIP1

* adjust WIP

* change error message

* adjust WIP 2

* fix wrong error message

* quick fix

* fix tests

* fix doc comment

* fix doc comment

* remove outdated query from CLI txs

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(cmd): fix flags on create-clawback-vesting-account cli cmd (#1701)

* fix flags on create-clawback-vesting-account cli cmd

* add chain ids to evmosd start commands

* chore: merge main into release branch (#1700)

* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* WIP merge conflicts and other updates

* WIP fix tests

* address linter

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>

* chore(vesting): miscellaneous clean up in vesting module (#1708)

* adjust comment on handleClawbackProposal

* adjust comment on NewHandler

* move gov clawback functions to own file

* fix some comments

* refactor checking vesting account

* fix: redundant checks for amounts, no need to automatically convert back to EthAccount after clawback and general nits

* remove unnecessary comment

* remove unused key

* update comments

* apply refactored account validation in convert vesting account method

* add error types and rework some error messages

* update example for cli cmd

* run make proto-all

* add missing lics

* fix: re-add the conversion to ETH account

* fix: integration tests to return correct error

* add note explaining logic

* remove check for clawback before start time

* fix some tests

* fix more tests

* fix use of CoinEq and export it

* add changelog entry

* run gofumpt

* fix clawback before start time

* avoid shadowing err var

* improve clawback method structure

* improve error message

* avoid multiple function calls

* remove unnecessary redefinition of query helper

* add unit tests

* enhance grpc_query_test.go

* add keeper test

* add missing tests for fundVestingAccount

* add missing test for blocked addr in clawback

* imp(vesting): add clawed back coins to response for clawback method (#1709)

* add response for clawed back coins to clawback method

* adjust changelog

* address linters

* fix

* add tests for handleProposalClawback

* update vesting test helpers for sdk 47

* remove unused pack functions

* address TODO

* address TODO

* remove type for MsgUpdateParams

* add test for convert vesting account getters

* escape linter

* Update x/vesting/keeper/integration_test.go

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* docs: fix comment (#1689)

* docs: fix comment for NewClawbackProposal

* fix typo on module name in comment

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore: merge recent state of main into release branch ahead of v14.0.0-rc2 (#1710)

* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* build(deps): bump golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18 (#1690)

Bumps golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @openzeppelin/contracts from 4.9.2 to 4.9.3 in /contracts (#1697)

build(deps): bump @openzeppelin/contracts in /contracts

Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.3/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v4.9.2...v4.9.3)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore: update gas adjustment factor (#1706)

* chore: update gas adjustment factor

* add changelog entry

* build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#1705)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* build(deps): bump bufbuild/buf-setup-action from 1.26.0 to 1.26.1 (#1704)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* fix panic on uint64 conversion in evm ApplyMessageWithConfig function (#1703)

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* fix(staking): change names of owner / spender to grantee / granter to be consistent (#1702)

* fix: change names of owner / spender to grantee / granter to be consistent

* fix: remove spender references from queries and txs

* fix: fix tests in StakingCaller.sol and position of params in allowance query

* fix: types tests for CheckAllowance

* tests(upgrade): remove version mapping in E2E tests (#1643)

* update version mapping in E2E tests to v12.1.6

* remove version map altogether

* run gofumpt

* refactor(config): use squash tag unmarshal embedded struct (#1666)

* refactor(config): use squash tag unmarshal embedded struct

* fix test

* fix import

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* remove unused function

* upgrade ginkgo

* run go mod tidy

* fix: add missing CHANGELOG entries

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>

* chore: prepare v14.0.0-rc2 release (#1711)

adjust changelog

* fix(tests): enable all APIs on local node script (#1715)

update dev node scripts

* fix(tests): reenable metrics on local node (#1716)

reenable metrics on local node

* fix (proto): add missing proto file - vesting v1 (#1713)

* fix: add missing proto file

* add changelog entry

* fix lint issues

* only escape specific gosec warnings

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore: set default value to empty string to get chain-id from genesis (#1714)

* chore: set default value to empty string to get chain-id from genesis

* add changelog entry

* fix lint issues

* Update CHANGELOG.md

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore: merge main to release branch (#1721)

* update curl version (#1671)

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

* [Snyk] Security upgrade golang from 1.20.3-bullseye to 1.20.5-bullseye (#1669)

fix: tests/e2e/Dockerfile.repo to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-3368735
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291773
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5291777
- https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-5661566

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* build(deps): bump golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18 (#1675)

Bumps golang from 1.20.6-alpine3.18 to 1.20.7-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  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>

* build(deps): bump bufbuild/buf-setup-action from 1.25.0 to 1.25.1 (#1680)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.0 to 1.25.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.0...v1.25.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* chore: add bootstrap state command (#1681)

* fix: trace tx/block gas meter to make it consistent with execution (#1676)

* add block max gas for gas meter in tracing

* tests: register consensus params in mock client

* fix: zero the nil feemarket params on legacy blocks of feemarket

* remove unnecessary block gas meter

* add changelog entry

* fix lint issue in proto file

* remove unnecessary block gas meter

* changes based on review comments

* refactor and add gas meter check in tests

* add gas wanted to the reseted gas meter

* Apply suggestions from code review

Co-authored-by: Victor Pham <me@victortrusty.dev>

---------

Co-authored-by: Victor Pham <me@victortrusty.dev>

* chore: migrate evmos-ledger-go to evmos repo (#1682)

* chore: migrate evmos-ledger-go to evmos repo

* add licenses

* add changelog entry

* rename pkg

* rename pkg

* Update CHANGELOG.md

---------

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

* chore: update evmos version to v14 (#1687)

* update evmos version to v14

* add changelog entry

* add gitleaks ignore file to remove false positive

* build(deps): bump bufbuild/buf-setup-action from 1.25.1 to 1.26.0 (#1692)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ics20): Refactor authorization to be consistent with SDK names grantee and granter (#1688)

* fix(ics20): Refactor authorization params to be consistent with SDK grantee / granter

* remove duplicate event definitions and align type with Solidity event

* align event names

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix panic bug "Int64() out of bound" in ante handler (#1693)

* fix panic bug "Int64() out of bound" in ante handler

* update CHANGELOG.md

* chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 (#1662)

* update go.mod & fix some issues

* fix some more issues

* fix some more issues on app and root

* more issues fixed

* add more fixes

* some more fixes

* more fixes

* fix some deps

* fix more deps

* fix some lint issues

* make proto-all

* add chain ID on NewEvmos calls

* remove deprecated RandomizedParams

* remove empty AppModule.ProposalContents

* replace /gogo/protobuf with /cosmos/gogoproto import in files

* add store upgrade for crisis mod

* add consensus mod upgrade logic

* add consensus appModule to module manager

* add missing chain ID on test_helper.Setup func

* change govGenState params

* update implements_interface with corresponding replacement

* fix lint issues

* remove broken link

* fix staking keeper hooks

* add chain ID to Setup test helper func

* fix lint issues

* fix check events func on precompiles test suite

* fix vesting account test suite

* add legacy router in gov keeper

* remove chain ID param in test util func

* fix TestRejectMsgsInAuthz in ante tests

* update ibc-go dep to fix ante handler tests

* fix md lint issues

* add ibc-go v7 upgrade logic

* add tm light client registration

* fix fees in SignAndDeliver test helper func

* fix chainID setup in ibc tests

* fix erc20 integration test setup

* remove unnecessary const in rpc backend test

* fix rpc backend conditional

* fix lint issues

* fix vesting tests

* update changelog

* add error handling

* update deps based on review ci flow

* add back proto-lint command

* add ll to protogen

* fix comment with local cmd

* update buf.gen yaml

* add -o flag to proto gen script

* Revert "add -o flag to proto gen script"

This reverts commit b6c59e8.

* add sudo to make proto-gen in gh actions

* remove echo file in protogen script

* fix curl version in dockerfile

* add some changes to fix e2e tests

* fix lint issues

* remove ibc transfer from module migration on upgrade

* ibc-transfer: register app migration from v2 to v3

* check if block params are nil in consensus param

* fix makefile localnet cmds

* enable APIs on e2e test nodes

* fix gitleaks lint

* fix clients and types on new files

* fix lint issues

* update init-node.sh to replace localhost in config file

* clean up unnecessary funcs in module.go files

* fix missing imports

* make proto-all

* use root on proto make cmds

* remove dependency from regen-network gogoproto

* nit: combine related comments

---------

Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* build(deps): bump golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18 (#1690)

Bumps golang from 1.20.7-alpine3.18 to 1.21.0-alpine3.18.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @openzeppelin/contracts from 4.9.2 to 4.9.3 in /contracts (#1697)

build(deps): bump @openzeppelin/contracts in /contracts

Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.3/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v4.9.2...v4.9.3)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore: update gas adjustment factor (#1706)

* chore: update gas adjustment factor

* add changelog entry

* build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#1705)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* build(deps): bump bufbuild/buf-setup-action from 1.26.0 to 1.26.1 (#1704)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  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>

* fix panic on uint64 conversion in evm ApplyMessageWithConfig function (#1703)

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* fix(staking): change names of owner / spender to grantee / granter to be consistent (#1702)

* fix: change names of owner / spender to grantee / granter to be consistent

* fix: remove spender references from queries and txs

* fix: fix tests in StakingCaller.sol and position of params in allowance query

* fix: types tests for CheckAllowance

* tests(upgrade): remove version mapping in E2E tests (#1643)

* update version mapping in E2E tests to v12.1.6

* remove version map altogether

* run gofumpt

* refactor(config): use squash tag unmarshal embedded struct (#1666)

* refactor(config): use squash tag unmarshal embedded struct

* fix test

* fix import

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(lint): fix linter (#1719)

fix linter

* chore: set default value to empty string to get chain-id from genesis (backport #1714) (#1720)

* chore: set default value to empty string to get chain-id from genesis (#1714)

* chore: set default value to empty string to get chain-id from genesis

* add changelog entry

* fix lint issues

* Update CHANGELOG.md

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit d7d7cd5)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore: update rosetta import (#1718)

* chore: update rosetta import

* fix lint issues

* add changelog entry

* run go mod tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: cui <523516579@qq.com>
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* chore(changelog): prepare v14.0.0-rc3 release (#1722)

adjust changelog

* fix(vesting): add return type modifier to clawback function interface (#1724)

* fix: modifier in clawback function

* fix: update function comment

* Update precompiles/vesting/Vesting.sol

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix(vesting): remove smart contract conversion to ClawbackVestingAccount (#1730)

* fix: remove conversion of SC to a vesting account and check for codehash

* fix: remove test that checks for SC as a vesting account

* add CHANGELOG entry

* fix: remove contract reference

* fix: remove contract from transaction

* fix: remove contract reference from unit tests

* Update CHANGELOG.md

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* chore(precompiles): return error when extension is not enabled (#1727)

* add args to helper function for CVA creation

* add test for already existing CVA

* add integration test for disabled precompile

* fix test setup

* return error when sending to inactive precompile

* address linter

* run gofumpt

* remove unnecessary util type

* update license checker

* fix nil pointer error

* Apply suggestions from code review

* use golang.org import for slices package

* adjust changelog

* add test calling from smart contract

* chore(deps) bump ibc (backport #1732) (#1733)

* chore(deps) bump ibc (#1732)

* chore(deps) bump ibc

* add changelog entry

(cherry picked from commit 147bfa0)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>

* tests(vesting): add integration tests for converting smart contracts (#1731)

* add integration tests for converting

* use contract native method to create account

* Update x/vesting/keeper/integration_test.go

* chore: prepare v14.0.0 rc4 (#1735)

* adjust changelog

* adjust changelog 2

* add upgrade logic for rc4

* address linter

* add logic to disable vesting extension in testnet upgrade

* tests(staking): add batch tx precompile tests (#1738)

* improve error message when validating expected events in integration tests

* add testing method to StakingCaller contract

* add integration tests to check batched transactions

* fix passing test

* address linter

* fix whitespace changes

* more whitespace stuff

* Update precompiles/staking/integration_test.go

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>

* imp(vesting): module refactors (#1754)

* add integration test case for specified behaviour

* add GovKeeper interface

* add store logic

* add hooks logic

* wire hooks into multi gov hooks

* add check to clawback function

* add test for update vesting funder

* add check to update vesting funder method

* fix KVstore error

* update min deposit with evmos denom

* fix

* add fixme

* add vote util

* add voting to integration test for gov clawback

* commit WIP

* fix proposal not passing

* only use vesting address to store active gov proposals

* add test for case where deposit is not made

* switch logic to store when min deposit is made

* adjust tests

* finish test

* address linter and remove unused function

* remove print statements

* change logic to go over all msgs in proposal content

* submit another proposal to simulate chain state where not only clawback proposals are found

* Update x/vesting/keeper/gov.go

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* update comment

* add note to implementation

* address review comments

* Update x/vesting/keeper/integration_test.go

* add changelog entry

---------

Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>

* chore(vesting): add some nit fixes (#1764)

* adjust error msg

* adjust var name

* Upgrade the github.com/rjeczalik/notify version (backport #1751) (#1767)

Upgrade the github.com/rjeczalik/notify version (#1751)

* Upgrade the github.com/rjeczalik/notify version

* feta(notify): Upgrade the github.com/rjeczalik/notify version go.sum

Signed-off-by: Jchicode <qianggeek@gmail.com>

---------

Signed-off-by: Jchicode <qianggeek@gmail.com>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit 498ae16)

Co-authored-by: Oct <qianggeek@gmail.com>

* imp(vesting): store empty byte array instead of "true" bytes (#1788)

store empty byte array instead of "true" bytes

* prepare v14.0.0 rc5 upgrade handler (#1766)

* rename upgrade handler

* update changelog

* chore(cli): add cmd to query latest block in db (backport #1786) (#1790)

* chore(cli): add cmd to query latest block in db (#1786)

* chore: add last block query cli cmd

* update cmd name

* update cmd short description

* refactor

* refactor cmd and db opener

* add comment

* rename cmd

* fix lint issues

* add changelog entry

* refactor

* update err msg

* add tests

* fix lint issues

* refactor

* changes based on review comments

* use cmd.Print instead of fmt

* fix descr

* update test val

(cherry picked from commit c472de5)

# Conflicts:
#	CHANGELOG.md

* remove nix test file

* fix changelog conflicts

---------

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>

* chore(release): adjust changelog + disable distribution extension on upgrade (#1789)

* adjust changelog with today's date

* add test to rc5 upgrade logic as best practice

* Update app/upgrades/v14rc5/upgrades.go

* Update CHANGELOG.md

* chore: update gov config (backport #1791) (#1795)

chore: update gov config (#1791)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
(cherry picked from commit 8c968be)

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>

* chore(release): prepare v14.0.0 release (#1794)

* move all upgrade logic from rc1, rc2, and rc5 into v14.0.0 handler

* add logic to enable vesting extension during upgrade

* update changelog

* add assertion to test

* update release date in changelog

* recompile StakingCaller.json

* fix solidity tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: devops-evmos <133777505+devops-evmos@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Victor Pham <me@victortrusty.dev>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cui <523516579@qq.com>
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>
Co-authored-by: Oct <qianggeek@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants