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 352 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.

dependabot bot and others added 30 commits January 31, 2024 01:07
….0 to 2.19.1 (#1782)

* 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.19.0 to 2.19.1.
- [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.19.0...v2.19.1)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  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: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
…hem (#1776)

* feat: make inflation params a collection and add commands to update them

* fix: more tests

* chore: changelog

* Update x/inflation/keeper/grpc_query.go

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

* Update x/inflation/keeper/grpc_query.go

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

* Update x/inflation/keeper/sudo.go

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

* fix: fix tests and improve function

* fix: add test for queryserver

---------

Co-authored-by: Unique Divine <[email protected]>
* fix: fix inflation start bug

* fix: fix off by 2 on inflation start

* fix: make test more random

* chore: changelog

* fix: use sdkmath.Int instead of sdk.Int

* comments + var names

---------

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

* chore(deps): Bump github.com/cosmos/ibc-go/v7 from 7.3.1 to 7.3.2

Bumps [github.com/cosmos/ibc-go/v7](https://github.com/cosmos/ibc-go) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/cosmos/ibc-go/releases)
- [Changelog](https://github.com/cosmos/ibc-go/blob/v7.3.2/CHANGELOG.md)
- [Commits](cosmos/ibc-go@v7.3.1...v7.3.2)

---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v7
  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: Unique Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* fix: fix inflation start bug

* chore(deps): Bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v4)

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

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

* fix: fix off by 2 on inflation start

* fix: make test more random

* chore: changelog

* fix: use sdkmath.Int instead of sdk.Int

* comments + var names

* Updated changelog - dependabot

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
* chore(deps): Bump golangci/golangci-lint-action from 3 to 4

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3...v4)

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

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

* Updated changelog - dependabot

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
* feat(inflation): add toggle-inflation cli command

* feat(inflation): add edit-params command and update validate-basic

* chore: update changelog
…inflation module (#1792)

* uncomment amino registering on register legacy amino codec

* add changelog entry

---------

Co-authored-by: Unique-Divine <[email protected]>
* fix: fix bug on inflation

* chore: changelog

* fix: add bool to see wether inflation ever started

* fix: epoch off by one error

* chore: unwire epochs keeper from inflation keeper

* fix: off by one tests

---------

Co-authored-by: Kevin Yang <[email protected]>
…fix CI (#1799)

* refactor,docs(inflation): Document everything + delete unused code

* changelog

* feat(localnet): make perp and spot modules optional features

* fix(e2e-wasm.yml-ci): Use consistent command runner

* wip! move nibid to path after downlaoding release

* wip! fix syntax error in localnet.sh

* wip!: what version is running?

* wip! try: simplify and use fresh build

* wip! fix param space

* wip!: fix source path in chaosnet and localnet

* wip!: fix source path in chaosnet and localnet

* wip!: fix source path in chaosnet and localnet

* fix(localent.sh): missing prices in oralce genesis

* wait a bit since localnet is fixed now

* fix(deploy-wasm): using wrong binary name

* ci: Runs well but needs a better name
* ci: fix chaosnet build

* fix(scripts): use better current absolute path directory fn

* refactor(e2e-localnet): remove unused script

* fix(justfile): handle case where stop is called without anything running

---------

Co-authored-by: Unique-Divine <[email protected]>
* chore: bump cosmos-sdk to v0.47.9

* chore: update changelog
* feat: update default inflation rate

* chore: changelog

* fix: fix rounding issue
* chore: bump grocksdb to v1.8.12

* add changelog entry
* fix wasm ibc transaction panic

* remove comment

* add changelog entry
* feat(inflation): add burn method

* Update CHANGELOG.md
* test(inflation): add negative burn tests

* test(inflation): add total supply check to burn tests
)

* chore(deps): Bump bufbuild/buf-setup-action from 1.29.0 to 1.30.0

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.29.0...v1.30.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: 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]>
* refactor: move Burn rpc method to x/tokenfactory

* Update tx_msgs.go

* feat: add burn native method to tokenfactory msg server

* feat: add cli cmd

* fix: validate msg

* feat: add v1.2.0 upgrade handler

* Update CHANGELOG.md

* fix: register codec for MsgBurnNative

* fix: test

---------

Co-authored-by: Unique-Divine <[email protected]>
* feat: rest in peace

* fix: fix e2e wasm test

* fix: fix justfile and deplyo-wasm

---------

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

* chore(deps): Bump bufbuild/buf-setup-action from 1.30.0 to 1.30.1

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.30.0 to 1.30.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.30.0...v1.30.1)

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

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

* Updated changelog - dependabot

---------

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]>
* feat(eth): protos, eth types, and evm module types

* chore: changelog

* feat(eth): unit tests for types, crypto, encoding (#1838)

* feat(eth): unit tests for types, crypto, encoding

## Impl `go-ethereum`

Adds `go-ethereum` fork with an `Interpreter` interface for running smart
contracts in integration tests.

```go
type Interpreter interface {
	// Run loops and evaluates the contract's code with the given input data and returns
	// the return byte-slice and an error if one occurred.
	Run(contract *Contract, input []byte, static bool) ([]byte, error)
}
```

An `Interpreter` is used to run Ethereum based contracts and will utilize the
passed environment to query external sources for state information.
The Interpreter will run the byte code VM based on the passed
configuration.

Changes from go-ethereum v1.11:

* Set `callcode` to use `readOnly` mode for precompiled calls.
* Remove `IsStateful` function from the `PrecompiledContract` interface, as this remains unused.
* Support stateful precompiled contracts.
* Add `Address` function to `PrecompiledContract` interface.
* Implement custom active precompiles for the EVM.
* Define `Interpreter` interface for the EVM.
* Move the `JumpTable` defaults to a separate function.
* Refactor `Stack` implementation

* chore: linter

* docs(sample.go): PrivKeyEth

* refactor: fix copyright lines and LICENSE entity

* feat(eth): Collections encoders for bytes, Ethereum addresses, and Ethereum hashes (#1841)
* fix(docker-chaosnet): add copy step for geth dependency

* chore: changelog

* ci: conditional workflows should account for other go.mod and go.sum files

* ci: changing docker changes the build, so it should be a dep

* fix(docker): test builds locally with 'docker build -d nibi-test .'
Unique-Divine and others added 30 commits November 25, 2024 19:26
Bumps [bun](https://github.com/oven-sh/bun) from 1.1.21 to 1.1.30.
- [Release notes](https://github.com/oven-sh/bun/releases)
- [Commits](oven-sh/bun@bun-v1.1.21...bun-v1.1.30)

---

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]>
…2129)

* fix(evm): issue with infinite recursion in erc20 funtoken contracts

* fix(evm): issue with infinite recursion in erc20 funtoken contracts

* chore: changelog update

* fix: flooring 1/64 of the gas limit
…nts that occur outside the EVM to make sure that block explorers and indexers can find indexed ABCI event information. (#2125)

* test(evm): more bank extension tests

* chrore: changelog

* chore: TODO comments and revert blockGasMeter changes

* start ABCI event solidity

* feat(evm-precompile):Emit EVM events created to reflect the ABCI events that occur outside the EVM to make sure that block explorers and indexers can find indexed ABCI event information.

* fix: use event log parsing rules from geth/.../abi/bind Go bindings and fix msg_server gas

* wip!: checkpoint on ABI-less data field in event log

* fix: use event log parsing rules from geth/.../abi/bind Go bindings
* fix(evm): query of NIBI should use bank state, not the StateDB

* chore: changelog
…c with StateDB (#2142)

* fix(bank): add additional missing bank keeper method overrides to sync with stateDB

* chore: update changelog
* refactor: simplify account retrieval

* Update CHANGELOG.md

* test: fix tests

---------

Co-authored-by: Oleg Nikonychev <[email protected]>
* fix(bank): update gas invariant to actually charge gas

* test: fix tests

* chore: satisfy linter

* chore: update changelog

* test: add non zero check

---------

Co-authored-by: Unique Divine <[email protected]>
* fix: disabled built in auth/vesting module functionality

* chore: changelog update

---------

Co-authored-by: Kevin Yang <[email protected]>
* feat: add precompile for calling bank to evm from evm

* chore: changelog

* chore: cleanup

* wip

* fix: fix test

* fix: add burn method when coin is made from evm side

* fix: fix tests

---------

Co-authored-by: Kevin Yang <[email protected]>
…and generation command (#2144)

* wip!: checkpoint

* fix(evm): query of NIBI should use bank state, not the StateDB

* add jSON save behavior to token registry

* feat: Generate the Nibiru Token Registry files

* chore: changelog

* refactor: linter and fmt

* chore: more tests and address PR comments

* one more PR comment
* fix(evm): proper nonce management in statedb

* chore: changelog update

* test: fixed statedb journal test

* fix: text comment

---------

Co-authored-by: Unique Divine <[email protected]>
* chore(token-registry): add xNIBI Astrovault LST to registry

* chore: change log
…dec in simulation tests since they are expected by default (#2147)
…gistry.

1. Add missing "address" field for the xNIBI token with type_asset "cw20"
2. Generate raw.githubusercontent URIs pointing to cosmos/chain-registry
* fix(precompile): consume gas before returning error

* chore: update changelog
* feat(evm): randao support for evm

* test: checked that random changes with block time

---------

Co-authored-by: Kevin Yang <[email protected]>
… Nibiru Oracle in the ChainLink interface (#2149)

* feat(evm-oracle): add Solidity contract that we can use to expose the Nibiru Oracle in the ChainLink interface

* chore: change log

* feat(evm-oracle): add decimals to the consturctor for NibiruOracleChainLinkLike

* feat: make solidity available on npm (@nibiruchain/solidity)

* chore: formatter and linter

* (evm-contracts): add require statement  for pair to constructor
…the Go conventions and needed to include double quotes around the hexadecimal string. (#2154)
…2156)

* test(evm-e2e): add E2E test using the Nibiru Oracle's ChainLink impl

* chore: changelog
…ee (#2157)

* fix(evm): Fix unit inconsistency related to AuthInfo.Fee and txData.Fee using effective fee

* chore: change log
…bankMsgSend (#2160)

* fix(evm-precompile): use bank.MsgServer Send in precompile IFunToken.bankMsgSend

* chore: changelog
* test(testutil): try retrying for 'panic: pebbledb: closed'

* chore: changelog
* fix(evm): proper block gas calculation in precompile calls

* chore: changelog update

* fix(evm): proper tx gas refund

* fix: moved gas comsumption from call_contract to msg_server

* test: fixed test for funtoken created from coin

* chore: lint

* Apply suggestions from code review

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: cleanup

* fix: minor test fix

* fix: getting current nonce for a specified address

---------

Co-authored-by: Kevin Yang <[email protected]>
Co-authored-by: Unique Divine <[email protected]>
…y docs (#2168)

* docs(evm-embeds): Move Nibiru repo hacking docs to separate file so they
won't be published on npm for @nibiruchain/solidity

* chore(evm-embeds): just gen-embeds + more docs

* chore(CHANGELOG): move old upgrades to legacy changelog

* chore(evm-embeds): just gen-embeds
* refactor(evm): removed blockGasUsed transient variable

* chore: changelog update

* fix: added testutil retry for backend test suite

* fix: lint

---------

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

* cleanup

* cleanup

* partial refactor

* fix: compilation errors

* refactor: remove CallContract completely

* refactor: mintOrUnescrowERC20

* refactor: use simpler evmObj creation pattern

* fix: empty gas price in gethcore Message

* fix: contract address collision error

* fix: TestPrecompileSelfCallRevert

* fix: unnecessary stateDB creation

* fix: ensure stateDB singleton

* fix: balance check

* fix: balance transfer check had wrong direction

* fix: deploy contract args

* fix: use a new StateDB before CallContractWithInput

* Update CHANGELOG.md

* fix: clear StateDB between txs

* Update account_info_test.go

* Update account_info_test.go

* Update app/evmante/evmante_can_transfer.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix base fee wei

* refactor: funtoken tests

* refactor: simplify NewEVM() object creation in tests

* fix: stateDB should not commit on ERC20 calls

* fix: commit after minting funtokens

* fix: erc20 burn was committing when it shouldn't be

* fix: linter

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Unique-Divine <[email protected]>
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.

9 participants