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

v2.0.0 release diff against v1.5.0 #2011

Draft
wants to merge 312 commits into
base: releases/v1.5.0
Choose a base branch
from
Draft

Conversation

k-yang
Copy link
Member

@k-yang k-yang commented Aug 19, 2024

DO NOT MERGE. For illustration purposes only.

Unique-Divine and others added 30 commits December 18, 2023 15:49
* ci(e2e-wasm.yml): rm unused workflow

* changelog
* chore(deps): Bump google.golang.org/grpc from 1.59.0 to 1.60.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.59.0 to 1.60.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.59.0...v1.60.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* ci: add goreleaser-latest workflow

* ci: use dist folder in goreleaser-latest workflow
* chore(deps): Bump golang.org/x/crypto from 0.15.0 to 0.17.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.17.0.
- [Commits](golang/crypto@v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* wip

* feat: have a dirty funny looking solution

* chore: changelog

* fix: fix replace usage

* Update cmd/nibid/cmd/decode_base64.go

Co-authored-by: Kevin Yang <[email protected]>

* fix: turns out InterfaceRegistry.Resolve does the trick

* chore: changelog

* fix: remove unused import

---------

Co-authored-by: Kevin Yang <[email protected]>
* chore(deps): Bump github.com/holiman/uint256 from 1.2.3 to 1.2.4

Bumps [github.com/holiman/uint256](https://github.com/holiman/uint256) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/holiman/uint256/releases)
- [Commits](holiman/uint256@v1.2.3...v1.2.4)

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

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Gimeno <[email protected]>
Co-authored-by: jgimeno <[email protected]>
…#1733)

* chore(deps): Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0

Bumps [github.com/dvsekhvalnov/jose2go](https://github.com/dvsekhvalnov/jose2go) from 1.5.0 to 1.6.0.
- [Commits](dvsekhvalnov/jose2go@v1.5...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/dvsekhvalnov/jose2go
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* test(devgas-cli): CLI tests for devgas txs

* test(cli_test): test for specific errors rather than boolean checks
* test(simulation): fix non-determinism sim test

* fix: CLI flags and app params

* refactor: clean up TestAppStateDeterminism

* test(sim): fix TestFullAppSimulation

* refactor: make ModuleManager public

* test(sim): add TestAppImportExport

* test(sim): add TestAppSimulationAfterImport

* chore: update changelog

* ci: add GHA workflow to run sim tests

* ci: update workflow name

* docs: add simulation tests readme

* Update CHANGELOG.md

* fix: remove println

---------

Co-authored-by: Unique Divine <[email protected]>
…1.18.0 (#1750)

* chore(deps): Bump github.com/prometheus/client_golang

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Unique-Divine <[email protected]>
In order to  keep module docs in sync between this repo and the official docs site
* feat: add more events to the oracle

* chore: changelog
…1756)

Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
* test(sim): add randomized inflation genesis state

* test(sim): add tokenfactory random genesis state

* test(sim): add tokenfactory random genesis state

* test(sim): update sudo random genesis

* test(sim): add devgas random genesis

* test(sim): add perp random genesis

* test(sim): wire spot sim genesis

* chore: update changelog
* feat(perp): MsgDonateToPerpFund

* changelog

* linter

* test assertiong

* test(perp-cli_test): Grab module acc addr programatically

* consistent naming with #1752
…#1760)

* chore(deps): Bump github.com/cometbft/cometbft-db from 0.9.0 to 0.9.1

Bumps [github.com/cometbft/cometbft-db](https://github.com/cometbft/cometbft-db) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/cometbft/cometbft-db/releases)
- [Changelog](https://github.com/cometbft/cometbft-db/blob/main/CHANGELOG.md)
- [Commits](cometbft/cometbft-db@v0.9.0...v0.9.1)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
…part of #1642 (#1749)

* remove mentions of bindings for closing the market.

* create new message for Closing a Market

* temp commit

* add permissions to call the CloseMarket

* make lint

* it fails when closing market with other user

* update changelog
* feat(perp): MsgDonateToPerpFund

* changelog

* linter

* test assertiong

* Squashed commit of the following:

commit e43672a
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:27:28 2023 -0600

    test assertiong

commit 0090d2f
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:17:30 2023 -0600

    linter

commit 5121341
Merge: 596a840 68bddeb
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:12:10 2023 -0600

    Merge branch 'main' into realu/sg-perp

commit 596a840
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:10:15 2023 -0600

    changelog

commit 240dffe
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:07:46 2023 -0600

    feat(perp): MsgDonateToPerpFund

* test(perp-cli_test): Grab module acc addr programatically

* impl wip! keeper version without msg server or protos

* quicksave wip! - add protos and msg server + todos

* test(oracle): verify that params before are not equal

* refactor: sudo and admin name consistency + docs + remove struct
embedding

* Squashed commit of the following:

commit d3f0ce3
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:47:35 2023 -0600

    test(perp-cli_test): Grab module acc addr programatically

commit e43672a
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:27:28 2023 -0600

    test assertiong

commit 0090d2f
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:17:30 2023 -0600

    linter

commit 5121341
Merge: 596a840 68bddeb
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:12:10 2023 -0600

    Merge branch 'main' into realu/sg-perp

commit 596a840
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:10:15 2023 -0600

    changelog

commit 240dffe
Author: Unique-Divine <[email protected]>
Date:   Wed Dec 27 23:07:46 2023 -0600

    feat(perp): MsgDonateToPerpFund

* PR comments fix

* test(oracle): fix unit test case with invalid slash window
* quicksave wip!

* format

* add adr 1 proposal in the docs

* append potential concerns

* docs: file path for adrs in docs folder

---------

Co-authored-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Matthias <[email protected]>
* chore(deps): Bump google.golang.org/grpc from 1.60.0 to 1.60.1

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.60.0 to 1.60.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.60.0...v1.60.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
….1 to 2.19.0 (#1767)

* chore(deps): Bump github.com/grpc-ecosystem/grpc-gateway/v2

Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.18.1 to 2.19.0.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/main/.goreleaser.yml)
- [Commits](grpc-ecosystem/grpc-gateway@v2.18.1...v2.19.0)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* feat: add error handling for updateSwapInvariant reducing base below total short

* chore: changelog

* fix: fix tests

---------

Co-authored-by: Unique Divine <[email protected]>
* feat: remove wasmbinding entirely

* fix: remove comments

* chore: changelog

* fix: correct changelog + move CosmosMsg::Stargate queries to app/wasmext

* refactor(wasmext): remove unnecessary perp imports

---------

Co-authored-by: Unique-Divine <[email protected]>
Unique-Divine and others added 30 commits October 24, 2024 14:48
…emming from uncommitted, dirty journal entries in the EVM StateDB (#2086)
… 4.0.3 to 4.0.4 in /x/evm/embeds (#2087)

* chore(deps): bump secp256k1 from 4.0.3 to 4.0.4 in /x/evm/embeds

Bumps [secp256k1](https://github.com/cryptocoinjs/secp256k1-node) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/cryptocoinjs/secp256k1-node/releases)
- [Commits](cryptocoinjs/secp256k1-node@v4.0.3...v4.0.4)

---
updated-dependencies:
- dependency-name: secp256k1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: changelog

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* feat: add simple validation for fun token fee in set params

* chore: changelog

* linting changelog

* lint: fix lint issues

---------

Co-authored-by: Unique-Divine <[email protected]>
)

* chore(deps): bump bufbuild/buf-setup-action from 1.44.0 to 1.45.0

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.44.0 to 1.45.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.44.0...v1.45.0)

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

Signed-off-by: dependabot[bot] <[email protected]>

* Updated changelog - dependabot

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
* chore(deps): bump github.com/btcsuite/btcd from 0.24.0 to 0.24.2

Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd) from 0.24.0 to 0.24.2.
- [Release notes](https://github.com/btcsuite/btcd/releases)
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES)
- [Commits](btcsuite/btcd@v0.24.0...v0.24.2)

---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
  dependency-type: direct:production
...

* Updated changelog - dependabot

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
…le (#2098)

* test(evm): statedb tests for race conditions within funtoken precompile

* chore: changelog update
…er Nibiru bank keeper that respects the EVM (#2094)

* statedb: add cacheing for multistore before precompile runs

* messy, working first version that allows for precompile reversion

* wip!: Save checkpoint.
1. Created NibiruBankKeeper with safety around NIBI transfers inside of
   EthereumTx.
2. The "PrecompileCalled" JournalChange now has a propery implementation
   and a strong test case to show that reverting the precompile calls
   works as intended.
3. Remove unneeded functions created for testing with low-level struct
   fields.

* chore: changelog

* finalize bank keeper changes

* revert to previous commit 7f904a0

* fix strange ignored file issue

* remove new bank keeper

* chore: comments from self-review
* feat: fix transfer for native to erc20

* chore: changelog

* feat: check transfer occurred by ensuring new balance is higher than previous one

* feat: fix the 0 check

* fix: fix error message

* feat: move transfer logic to erc20.go

* chore: changelog

* fix: make the FunToken precompile return the sent amount

---------

Co-authored-by: Unique-Divine <[email protected]>
* feat: add validation for multi message execution wasm

* chore: changelog

* merge conflicts + simplify

---------

Co-authored-by: Unique-Divine <[email protected]>
…al (#2100)

* statedb: add cacheing for multistore before precompile runs

* messy, working first version that allows for precompile reversion

* wip!: Save checkpoint.
1. Created NibiruBankKeeper with safety around NIBI transfers inside of
   EthereumTx.
2. The "PrecompileCalled" JournalChange now has a propery implementation
   and a strong test case to show that reverting the precompile calls
   works as intended.
3. Remove unneeded functions created for testing with low-level struct
   fields.

* chore: changelog

* finalize bank keeper changes

* revert to previous commit 7f904a0

* fix strange ignored file issue

* remove new bank keeper

* chore: comments from self-review

* refactor: clean up test code

* refactor: clean up parse fund args

* refactor: clean up common precompile functions

* refactor: clean up precompile onrunstart

* refactor: clean up precompile onrunstart

* refactor: clean up oracle precompile

* fix: import

* Delete .gitignore

* Update CHANGELOG.md

* refactor: replace interface{} with any

* refactor: add ABI() precompile fn

* refactor: replace assertNotReadonlyTx

---------

Co-authored-by: Unique-Divine <[email protected]>
* fix(evm): tx receipt proper marshalling

* test(evm): e2e for tx receipt

* chore: justfile cleanup

* fix: justfile

* fix: minor timeout fix
* feat: enable wasm light clients on IBC (08-wasm)

* chore: check if wasm client is already on params

* chore(changelog): move to before evm audit

---------

Co-authored-by: Kevin Yang <[email protected]>
…e changes on the StateDB journal (#2095)

* statedb: add cacheing for multistore before precompile runs

* messy, working first version that allows for precompile reversion

* wip!: Save checkpoint.
1. Created NibiruBankKeeper with safety around NIBI transfers inside of
   EthereumTx.
2. The "PrecompileCalled" JournalChange now has a propery implementation
   and a strong test case to show that reverting the precompile calls
   works as intended.
3. Remove unneeded functions created for testing with low-level struct
   fields.

* chore: changelog

* finalize bank keeper changes

* chore changelog

* reset cache

* finalize bank keeper changes

* revert to previous commit 7f904a0

* fix strange ignored file issue

* fix strange ignored file issue

* remove new bank keeper

* chore: comments from self-review

* chore: changelo g

* fix(deps): update bank module to remove concrete type assertion on AppModule.RegisterServices

This makes it possible to plug in an alternative bankkeeper.Keeper
implementation instead of bankkeeper.BaseKeeper.

* chore: merge conflicts

* revert experiment

* finishing touch

* fix incorrect arugmetn

* feat(evmtest-erc20: Add optional descriptions to the assertions
* feat: add new query for dated prices

* feat: use ctx to get timestamp for query

* chore: changelog

* lint: remove dead code

* field rename to include block

---------

Co-authored-by: Unique-Divine <[email protected]>
)

* chore(deps): bump bufbuild/buf-setup-action from 1.45.0 to 1.46.0

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.45.0 to 1.46.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.45.0...v1.46.0)

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

* Updated changelog - dependabot

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* test(evm): precompile call with revert

* chore: changelog update
* feat(evm): gas usage in precompiles: limits, local gas meters

* fix: local precompile gas meters

* test(precompile): tests for precompile local gas meters

* fix: increased funtoken precompile gas limit in favor to heavy user contracts

* chore: moved evm grpc calls back to msg_server.go

* cleanup

* test: added sad test for precompile local gas

* fix: duplicate import

* chore: cleanup

* refactor: clean up imports

* fix: bad merge

* fix: force switched precompile ctx gas configs

* cleanup

* fix: gas used discrepancy in estimate gas vs actual execution gas

* chore: cleaned up solidity contracts calling bankSend precompile

* refactor(gas): simplify estimate gas error handling

* refactor(gas): simplify EstimateGasForEvmCallType

* fix: comment on HandleOutOfGasPanic

* fix: missing gas limit call

* test: add WasmGasLimitQuery

* refactor: update CallContractWIthInput

* refactor(evm): prefer CallContract over CallContractWithInput

* refactor: add clarifying context to error messages

* fix: eth api test

---------

Co-authored-by: Kevin Yang <[email protected]>
…2108)

* fix(evm): removed deprecated root key from eth_getTransactionReceipt

* chore: changelog update
* chore: scheduled basic e2e tests for evm testnet endpoint

* chore: changelog update

* Update and rename e2e-evm-basic-testnet.yml to e2e-evm-cron.yml

---------

Co-authored-by: Unique Divine <[email protected]>
* fix: typo

* fix: return to old StateDB pointer in BankKeeper after ApplyEvmMsg

* Update CHANGELOG.md
* fix: e2e-evm-cron.yml

* Update e2e-evm-cron.yml

* chore(e2e-evm-cron.yml): correct the GH secret name to MNEMONIC_TESTNET1_VALIDATOR

* chore: changelog update

---------

Co-authored-by: Oleg Nikonychev <[email protected]>
* fix(evm): make conditional balance check free in gas cost

* chore: update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ do not merge On hold for merge or not desired
Projects
None yet
Development

Successfully merging this pull request may close these issues.