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

feat: Canto v8 #129

Merged
merged 227 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
56013ce
feat: canto cosmos-sdk v0.50.1 bump up - 1
dudong2 Dec 4, 2023
f066fec
feat: fix protobuf
dudong2 Dec 4, 2023
0e79cef
fix: simulation for coinswap module
poorphd Dec 5, 2023
5af5df3
build: fix app
dudong2 Dec 6, 2023
8294ab2
build: fix ibc
dudong2 Dec 6, 2023
2349d1c
chore: fix csr, epochs modules begin/endblcoker
dudong2 Dec 7, 2023
ef9937b
wip: error fix in Canto modules
poorphd Dec 7, 2023
20a1287
wip: error fix in Canto modules
poorphd Dec 15, 2023
da1936f
chore: fix staking keeper in app.go, fix proto files
dudong2 Dec 18, 2023
bd97a70
chore: add chainid for test_helper newcanto func
dudong2 Dec 18, 2023
e04433c
test: fix consensus params store type in app.go
dudong2 Dec 18, 2023
2e7a553
test: fix account number, finalize block in suite.commit
dudong2 Dec 18, 2023
f01ad22
feat: match begin block func with interface
dudong2 Dec 18, 2023
c9aef01
wip: error fix in Canto modules
poorphd Dec 19, 2023
f2ad9c5
wip: error fix in Canto modules
poorphd Dec 20, 2023
a1990b3
test: fix tests(finalize block, chain id, check inv)
dudong2 Dec 22, 2023
f173484
feat: fix msgs, proto, swagger
dudong2 Dec 22, 2023
d684e37
revert: feat: msgs
dudong2 Dec 22, 2023
8076ae1
test: fix integration test - remove deliver tx
dudong2 Dec 22, 2023
4f9b600
wip: error fix in Canto modules
poorphd Jan 3, 2024
3fbe31a
chore: remove ante test tx fee checker
dudong2 Jan 3, 2024
a996e68
wip: error fix in Canto modules
poorphd Jan 4, 2024
942369b
wip: error fix in Canto modules
poorphd Jan 5, 2024
40cf33e
fix: fix ibc middleware register from app.go
dudong2 Jan 8, 2024
1bf8d5a
fix: modify SignAndDeliver for ProposalAddress
dudong2 Jan 8, 2024
b02883a
test: fix ibc module test error string
dudong2 Jan 8, 2024
703e989
wip: error fix in Canto modules
poorphd Jan 8, 2024
1f19e00
test: modify epoch compared info
dudong2 Jan 8, 2024
fdfb629
test: fix x/inflation CommitAfter for epoch
dudong2 Jan 8, 2024
8c4da07
feat: fix chain id
dudong2 Jan 9, 2024
bf78867
feat: update ethermint
dudong2 Jan 9, 2024
6c7b232
feat: add tx, query module command
dudong2 Jan 10, 2024
b77f117
wip: MsgUpdateParams for coinswap module
poorphd Jan 12, 2024
e050c96
feat: MsgUpdateParams for erc20 module
poorphd Jan 15, 2024
55bb101
wip: proposals for erc20 module
poorphd Jan 15, 2024
183fe43
feat: proposals for erc20 module
poorphd Jan 16, 2024
9cd30c9
chore: fix consensus_params
dudong2 Jan 16, 2024
9c374c1
chore: ethermint update
dudong2 Jan 23, 2024
d0b8d53
wip: fuzz test determinism
poorphd Jan 25, 2024
c16284e
chore: remove todo comments, implements upgrade codes
dudong2 Jan 26, 2024
52b2753
test: fix setAnteHandler(pass appCodec, simulation args)
dudong2 Jan 26, 2024
c4df33d
fix: TestDeterminism simulation
poorphd Jan 26, 2024
f06e025
chore: remove swagger check todo comment
dudong2 Jan 26, 2024
e4dd4ac
refactor: use KVStoreService in x/coinswap
dudong2 Jan 26, 2024
f419b72
refactor: use KVStoreService in x/inflation
dudong2 Jan 26, 2024
ba522ce
refactor: use KVStoreService in x/erc20
dudong2 Jan 26, 2024
263b960
refactor: use KVStoreService in x/govshuttle
dudong2 Jan 26, 2024
8aa615c
refactor: use KVStoreService in x/csr
dudong2 Jan 26, 2024
f8cef06
test: fix AppStateFromGenesisFileFn
dudong2 Jan 26, 2024
676ff72
chore: add config, purning, snapshot commands
dudong2 Jan 26, 2024
5c9651c
test: fix sim-custom-genesis-fast
dudong2 Jan 26, 2024
3ce6388
wip: TestAppExportImport simulation
poorphd Jan 26, 2024
265ed92
feat: TestAppExportImport & TestAppSimulationAfterImport simulation
poorphd Jan 29, 2024
3f2d25f
wip: upgrade handler
poorphd Jan 31, 2024
99267ee
wip: upgrade handler
poorphd Feb 2, 2024
a72ac05
feat: upgrade handler for v8.0.0
poorphd Feb 2, 2024
a23d849
feat: set ibc fee keeper in app.go
dudong2 Feb 4, 2024
2cfa973
chore: remove x/nft, x/group, x/circuit
dudong2 Feb 7, 2024
4d5c921
feat: legacy proposal
poorphd Feb 7, 2024
f1eaf61
fix: govshuttle proposal
poorphd Feb 7, 2024
81ac177
fix: upgrade handler
poorphd Feb 7, 2024
d6d1b64
fix: proposal
poorphd Feb 8, 2024
8f1c7bf
feat: bump up cosmos-sdk v0.50.5
dudong2 Mar 26, 2024
4c1059c
feat: Add update params for csr, inflation, onboarding modules
dudong2 Apr 22, 2024
27731d7
test: Bump go version from 1.18 to 1.21
dudong2 Apr 22, 2024
2ac54ac
chore: Update gov config - MaxMetadataLen from default value(255) to …
dudong2 Apr 22, 2024
833ee79
docs: update swagger docs for cosmos, ethermint
dudong2 Apr 24, 2024
21d14f9
feat: Move ValidateBasic logic from method func of msg to msg handler
dudong2 Apr 26, 2024
9af7a83
chore: Revert Network/****/genesis.json
dudong2 Apr 26, 2024
8d49df1
test: Fix sim test to not run on normal test
dudong2 Apr 26, 2024
3ec4b10
feat: Apply ethermint changes(remove cutsom GetSignerFunc from MsgUpd…
dudong2 Apr 29, 2024
722fb25
chore: Revert Network/****/genesis.json
dudong2 Apr 30, 2024
9cafddf
test: Add MsgUpdateParams test
dudong2 May 9, 2024
44cef59
chore: bump cosmos-sdk v0.50.6
dudong2 May 9, 2024
62ea35b
feat: remove ibcfee module
dudong2 May 9, 2024
79c99d1
feat: add new vesting account msg to disabled authz msgs
dudong2 May 9, 2024
23516e5
feat: enable gov module to receive external tokens
dudong2 May 9, 2024
5afc5c9
test: fix TestHandleMsgTransfer
dudong2 May 9, 2024
354fb4c
test: Add prooposal test
dudong2 May 9, 2024
a263595
test: Add update params test for coinswap module
dudong2 May 9, 2024
fad4908
feat: Apply autocli
dudong2 May 9, 2024
aa940e9
chore: bump up ethermint
dudong2 May 10, 2024
c786515
feat: Remove UpdateParams from govshuttle module
dudong2 May 10, 2024
df065d9
feat: Block all module addr to receive external tokens
dudong2 May 10, 2024
02e21b1
feat: Bump up ibc-go v8.2.1feat: Add ibc-go upgrade handler codes
dudong2 May 10, 2024
9ef58a0
chore: Remove unnecessary comments and fix ide warnings
dudong2 May 12, 2024
36053ab
chore: Bump up ethermint
dudong2 May 12, 2024
38a6092
feat: Remove NewValidatorCommissionDecorator and set min_commission_r…
dudong2 May 13, 2024
e2b7df2
test: Add v7 -> v8 upgrade unit test
dudong2 May 13, 2024
37b9b93
Revert "feat: Apply autocli"
dudong2 May 13, 2024
08a4022
fix: Upgrade handler bug fix
dudong2 May 21, 2024
cf253a9
feat: bump up ethermint
dudong2 May 21, 2024
12b84ac
Merge branch 'main' into dudong2/feat/[email protected]
dudong2 May 21, 2024
eb41c9f
docs: changelog
dudong2 May 22, 2024
f579193
docs: changelog
dudong2 May 22, 2024
f982413
test: Fix sim_test using TestFullAppSimulation func
dudong2 May 30, 2024
868b183
Merge pull request #53 from b-harvest/dudong2/feat/canto-main-cosmos-…
dongsam Jul 1, 2024
8772522
refactor: Remove deprecated sdk.WrapSDKContext
poorphd Jul 1, 2024
925b909
chore: Remove useless Makefile execution
dudong2 Jul 1, 2024
ccda4ab
feat: Check interface of all modules
dudong2 Jul 2, 2024
1b6ee57
chore: Replace "github.com/gogo/protobuf" to "github.com/cosmos/gogop…
dudong2 Jul 2, 2024
ee925dc
refactor: removed simapp imports
poorphd Jul 2, 2024
4d8fbbf
refactor: Remove redundant EventTypeMessage emission in custom modules
poorphd Jul 2, 2024
7517098
refactor: Remove redundant EventTypeMessage emission in custom modules
poorphd Jul 2, 2024
f42f7c7
fix: Auth module bech32prefix for query
dudong2 Jun 27, 2024
eee15ca
chore: Modify init.sh to change denom to acanto from stake
dudong2 Jun 27, 2024
53e87c5
fix: Register msg server for govshuttle module
dudong2 Jun 27, 2024
caf37b9
fix: Add authority check to proposal handler of Govshuttle
dudong2 Jun 27, 2024
e97a039
feat: Add port contracr address to genesis
dudong2 Jun 28, 2024
e9bc112
feat: Add cli cmds(NewLendingMarketProposalCmd, NewTreasuryProposalCmd)
dudong2 Jun 28, 2024
444aa53
refactor: Modify msg_server implementation to use msg type instead of…
dudong2 Jun 28, 2024
e622bd8
chore: Add MsgLendingMarketProposal, MsgTreasuryProposal to codec.go
dudong2 Jun 28, 2024
4ef4878
fix: Genesis port address import if address is not empty string
dudong2 Jul 1, 2024
317c540
fix: Remove interface check not applicable
dudong2 Jul 3, 2024
09035bd
refactor: remove simapp imports
poorphd Jul 3, 2024
61f8492
refactor: `CustomGetSigners` for `MsgSwapOrder`
poorphd Jul 3, 2024
3508ec6
refactor: `CustomGetSigners` for `MsgSwapOrder`
poorphd Jul 3, 2024
39dfb33
test: Proposal msg execution test
dudong2 Jul 4, 2024
06bc4c5
refactor: CustomGetSigners for MsgSwapOrder
poorphd Jul 4, 2024
94cd738
fix: Export if port contract address exist
dudong2 Jul 4, 2024
c1422aa
feat: simulation for `coinswap` module
poorphd Jul 4, 2024
683e130
feat: simulation for `csr` module
poorphd Jul 4, 2024
d41595f
feat: simulation for `epochs` module
poorphd Jul 4, 2024
4f222ea
WIP: simulation for `erc20` module
poorphd Jul 4, 2024
c7742e3
WIP: simulation for `govshuttle` module
poorphd Jul 4, 2024
adb6bb4
feat: simulation for `inflation` module
poorphd Jul 4, 2024
25d9a53
feat: proposal simulation for `erc20` module
poorphd Jul 5, 2024
e4cf1a8
feat: proposal simulation for `govshuttle` module
poorphd Jul 5, 2024
5c91ae9
feat: Add cli cmds(NewRegisterCoinProposalCmd, NewRegisterERC20Propos…
dudong2 Jul 8, 2024
16f9957
test: Add authority check for proposal execution
dudong2 Jul 8, 2024
5397893
fix: Add tx flags to cmd
dudong2 Jul 8, 2024
88b89d1
fix: Add tx flags to cmd
dudong2 Jul 8, 2024
c9021b2
WIP: proposal simulation for `erc20` module
poorphd Jul 8, 2024
3686ca7
fix: Rename amino.name for Params, MsgUpdateParams
dudong2 Jul 8, 2024
afe7b7c
chore: Create tx.go to prevent autocli from automatically generating …
dudong2 Jul 8, 2024
5ee4cc3
fix: Rename amino.name for Params, MsgUpdateParams
dudong2 Jul 8, 2024
2d65e23
WIP: proposal simulation for `erc20` module
poorphd Jul 8, 2024
f1af21c
feat: proposal simulation for `erc20` module
poorphd Jul 8, 2024
cce1043
chore: missing methods for mock keepers
poorphd Jul 9, 2024
a7ab6ee
test: Add genesis port test refactor: proposal msg execution test
dudong2 Jul 9, 2024
447a4d7
refactor: Remove RandomizedParams from AppModuleSimulation interface
poorphd Jul 9, 2024
fe7b5b8
fix: NoOpMsg for disabled pair
poorphd Jul 9, 2024
df52384
fix: NoOpMsg types
poorphd Jul 9, 2024
23c9603
Merge pull request #56 from b-harvest/patch/issue-NC-03,L-18
dudong2 Jul 9, 2024
f75ccb3
Merge pull request #58 from b-harvest/patch/issue-L-11
dudong2 Jul 9, 2024
d72f2af
Merge branch 'v8/develop' into patch/govshuttle
dudong2 Jul 9, 2024
c1c8622
Merge branch 'v8/develop' into patch/erc20
dudong2 Jul 9, 2024
9c8ad99
Merge remote-tracking branch 'refs/remotes/origin/v8/develop' into pa…
poorphd Jul 10, 2024
de0451f
Merge pull request #54 from b-harvest/patch/issue-L-1
poorphd Jul 10, 2024
95b582c
Merge pull request #57 from b-harvest/patch/issue-L-4
poorphd Jul 10, 2024
6e90965
Merge pull request #59 from b-harvest/patch/issue-L-9
poorphd Jul 10, 2024
e2bc3bc
refactor: change the custom GetSigner to use `StringToBytes` instead …
poorphd Jul 10, 2024
5e3c64d
refactor: change the custom GetSigner to use `StringToBytes` instead …
poorphd Jul 10, 2024
5ad9d88
refactor: test function modified
poorphd Jul 10, 2024
211687d
refactor: test function modified
poorphd Jul 10, 2024
ca83081
Fix: fix default home dir for client.toml
dudong2 Jul 10, 2024
c68de59
fix: test function modified
poorphd Jul 10, 2024
200a4ef
test: Add erc20/MsgConvertERC20 test
dudong2 Jul 10, 2024
627adce
test: Add "amino.dont_omitempty = true" to proto
dudong2 Jul 11, 2024
9c0001e
test: Add amino test
dudong2 Jul 11, 2024
10a5ce8
test: remove unused func
dudong2 Jul 11, 2024
5b9e51a
Merge pull request #64 from b-harvest/patch/coinswap,src,inflation,on…
dudong2 Jul 11, 2024
0a7aad4
refactor: Replace deprecated simapp.MakeTestEncodingConfig with modul…
poorphd Jul 1, 2024
fe4c431
Merge pull request #66 from b-harvest/patch/configclient
dudong2 Jul 11, 2024
44d163a
Merge branch 'v8/develop' into patch/govshuttle
dudong2 Jul 11, 2024
c7ac2c4
Merge pull request #60 from b-harvest/patch/govshuttle
dudong2 Jul 11, 2024
b19f8b5
Merge branch 'v8/develop' into patch/erc20
dudong2 Jul 11, 2024
90b0536
Merge pull request #63 from b-harvest/patch/erc20
dudong2 Jul 11, 2024
dac065a
fix: genesis import/export for csr module
poorphd Jul 12, 2024
b3103b4
fix: genesis import/export for csr
poorphd Jul 15, 2024
c0f23eb
Merge pull request #67 from b-harvest/patch/csr_genesis
poorphd Jul 15, 2024
a8a02a4
bug: Add legacy validate basic logic to govshuttle msgs
dudong2 Jul 17, 2024
8e287a1
chore: Remove minttypes from app.go
dudong2 Jul 17, 2024
3a78be0
Merge pull request #62 from b-harvest/patch/issue-27
poorphd Jul 17, 2024
e2dc217
test: Specify submit error and proposal error
dudong2 Jul 17, 2024
ec67abb
feat: add indexes as genesis state
zsystm Jul 15, 2024
a0a57af
tmp: disable genesis validation
zsystm Jul 15, 2024
fffb1c5
chore: update keyname
zsystm Jul 16, 2024
8dcc1d0
chore: revert Makefile change
zsystm Jul 16, 2024
dc680ae
chore: add comments
zsystm Jul 16, 2024
7bf145a
fix: import genesis logic
zsystm Jul 17, 2024
d9997d6
chore: fix comment
zsystm Jul 17, 2024
c0e742f
chore: remove comments
zsystm Jul 17, 2024
1d05cfb
fix: wrong test cases
zsystm Jul 17, 2024
54b2ea3
Update x/erc20/genesis_test.go
zsystm Jul 18, 2024
c2369a0
bug: fix ibc transfer from canto to external chain (#71)
dudong2 Jul 18, 2024
b0d7bc8
feat: Add cli pagination cmd to query "cantod q csr csrs"
dudong2 Jul 18, 2024
778d29f
chore: change standard coin name
poorphd Jul 19, 2024
ca7a7f8
Merge pull request #69 from b-harvest/patch/govshuttle_msg_validatebasic
dudong2 Jul 19, 2024
6614d96
Merge pull request #70 from b-harvest/patch/remove_mint
dudong2 Jul 19, 2024
724d674
Merge pull request #72 from b-harvest/patch/csr-pagination
dudong2 Jul 19, 2024
849407a
feat: bump up ethermint
dudong2 Jul 19, 2024
74d808f
Merge pull request #74 from b-harvest/patch/bump-up-ethermint
dudong2 Jul 19, 2024
f3619c5
fix: remove consensus param migration from finalizeBlock
poorphd Jul 22, 2024
1200c1c
Merge pull request #75 from b-harvest/patch/upgrade
poorphd Jul 24, 2024
9e696e8
Merge branch 'v8/develop' into patch/simulation
poorphd Jul 24, 2024
45ac147
fix: msg route registeration
poorphd Jul 24, 2024
3ac5f6e
feat: bump up iavl v1.1.4
dudong2 Jul 24, 2024
d4c9382
Merge pull request #77 from b-harvest/patch/apphash
dudong2 Jul 24, 2024
66d4aea
fix: key prefix name
poorphd Jul 24, 2024
1e4dd7e
fix: coinswap module's operation simulation
poorphd Jul 25, 2024
542ac82
chore: make MintCoins to use variable amount instead of int value
poorphd Jul 25, 2024
1089c9b
fix: panic on division by zero
poorphd Jul 25, 2024
4923125
Merge pull request #73 from b-harvest/patch/coinswap
poorphd Jul 25, 2024
0bc699e
feat: bump up cosmos-sdk v0.50.7, cometbft v0.38.7, ibc-go v8.3.2
dudong2 Jul 25, 2024
8f127e1
feat: Remove un-necessary files from ibc/testing
dudong2 Jul 26, 2024
13fdf4f
test: Sync ibc/testing with ibc-go v8.3.2
dudong2 Jul 26, 2024
203a8a6
feat: bump up cosmos-sdk v0.50.8, cometbft v0.38.9
dudong2 Jul 26, 2024
ed9eef0
fix: commnets
poorphd Jul 26, 2024
6d15af1
feat: implement RegisterStoreDecoder for canto modules
poorphd Jul 26, 2024
096d7d1
chore: interface chack for module.AppModuleSimulation
poorphd Jul 26, 2024
332ff06
fix: add liquidity operation
poorphd Jul 26, 2024
1c5079b
fix: swap operation
poorphd Jul 26, 2024
471c41a
Merge pull request #65 from b-harvest/patch/simulation
poorphd Jul 26, 2024
874a1a9
Merge pull request #79 from b-harvest/patch/bump-versions
dudong2 Jul 26, 2024
0b18ceb
Fix: wrong denom check at RegisterCoin (#78)
zsystm Jul 27, 2024
cacd0d2
feat: wait-tx query cmd
dudong2 Jul 29, 2024
23734e1
Merge pull request #81 from b-harvest/wait-tx_cmd
dudong2 Jul 29, 2024
7143ed4
feat: Bump up ethermint v0.22.0-sdk50-1
dudong2 Jul 29, 2024
880cb13
Merge pull request #82 from b-harvest/patch/bump-ethermint
dudong2 Jul 29, 2024
3e05f76
add tc for working hash (#83)
zsystm Jul 29, 2024
3f96d88
fix: VersionMap from upgrade handler
dudong2 Jul 29, 2024
4dd371d
chore: Change return val
dudong2 Jul 29, 2024
ad273f6
Merge pull request #84 from b-harvest/patch/upgrade-handler
dudong2 Jul 29, 2024
db34839
chore: Update swagger docs
dudong2 Aug 1, 2024
14d4840
test: Fix TestWorkingHash
dudong2 Aug 1, 2024
1856a00
Merge pull request #85 from b-harvest/patch/swagger-docs
dudong2 Aug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "^1.18"
go-version: "^1.21"
- uses: technote-space/[email protected]
id: git_diff
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- name: Display go version
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21
- name: Display go version
run: go version
- uses: technote-space/get-diff-action@v4
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21
- name: Display go version
run: go version
- uses: technote-space/get-diff-action@v4
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21
- name: Display go version
run: go version
- uses: technote-space/get-diff-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- name: display go version
run: go version
- name: test & coverage report creation
Expand Down
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!--
Guiding Principles:

Changelogs are for humans, not machines.
There should be an entry for every single version.
The same types of changes should be grouped.
Versions and sections should be linkable.
The latest version comes first.
The release date of each version is displayed.
Mention whether you follow Semantic Versioning.

Usage:

Change log entries are to be added to the Unreleased section under the
appropriate stanza (see below). Each entry should ideally include a tag and
the Github issue reference in the following format:

* (<tag>) \#<issue-number> message

The issue numbers will later be link-ified during the release process so you do
not have to worry about including a link manually, but you can if you wish.

Types of changes (Stanzas):

"Features" for new features.
"Improvements" for changes in existing functionality.
"Deprecated" for soon-to-be removed features.
"Bug Fixes" for any bug fixes.
"Client Breaking" for breaking CLI commands and REST routes used by end-users.
"API Breaking" for breaking exported APIs used by developers building on SDK.
"State Machine Breaking" for any changes that result in a different AppState given same genesisState and txList.

Ref: https://keepachangelog.com/en/1.0.0/
-->

# CHANGELOG

## Unreleased

### State Machine Breaking

- (deps) [#126](https://github.com/Canto-Network/Canto/pull/126) Bump Comsos-SDK to v0.50.6, CometBFT to v0.38.6, ibc-go to v8.2.1
<!-- add ethermint bump up info after release -->

### Improvements

- (ante) [#126](https://github.com/Canto-Network/Canto/pull/126) Remove NewValidatorCommissionDecorator because its logic is duplicated with the logic implemented in the staking module's msg server.
- (x/*) [#126](https://github.com/Canto-Network/Canto/pull/126) Apply Cosmos-SDK improvements.
- Remove `Type()` and `Route()` methods from all msgs
- Remove `GetSigner()` methods from all msgs, move their logic to protobuf and define a custom GetSigner func if needed.
- `authority` has been added to the required module to execute proposal msgs.

### Client Breaking

- (x/*) [#126](https://github.com/Canto-Network/Canto/pull/126) module-specific proposal and update params is moved to msg levelto to support msgs-based gov proposals.

<!-- Release links -->
81 changes: 22 additions & 59 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
DIFF_TAG=$(shell git rev-list --tags="v*" --max-count=1 --not $(shell git rev-list --tags="v*" "HEAD..origin"))
DEFAULT_TAG=$(shell git rev-list --tags="v*" --max-count=1)
VERSION ?= $(shell echo $(shell git describe --tags $(or $(DIFF_TAG), $(DEFAULT_TAG))) | sed 's/^v//')
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
TMVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
GOPATH ?= $(shell $(GO) env GOPATH)
Expand Down Expand Up @@ -91,7 +91,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=canto \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TMVERSION)
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TMVERSION)

# DB backend selection
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
Expand Down Expand Up @@ -478,74 +478,37 @@ format:
### Protobuf ###
###############################################################################

containerProtoVer=v0.2
containerProtoImage=tendermintdev/sdk-proto-gen:$(containerProtoVer)
containerProtoGen=cosmos-sdk-proto-gen-$(containerProtoVer)
containerProtoGenSwagger=cosmos-sdk-proto-gen-swagger-$(containerProtoVer)
containerProtoFmt=cosmos-sdk-proto-fmt-$(containerProtoVer)
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

proto-all: proto-format proto-gen proto-swagger-gen update-swagger-docs
# ------
# NOTE: If you are experiencing problems running these commands, try deleting
# the docker images and execute the desired command again.
#
proto-all: proto-format proto-lint proto-gen

proto-gen:
@echo "Generating Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) \
sh ./scripts/protocgen.sh; fi
$(protoImage) sh ./scripts/protocgen.sh
proto-lint:
@echo "Linting Protobuf files"
@$(protoImage) buf lint --error-format=json

proto-check-breaking:
@echo "Checking Protobuf files for breaking changes"
@$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main

# TODO: Rethink API docs generation
proto-swagger-gen:
@echo "Generating Protobuf Swagger"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) \
sh ./scripts/protoc-swagger-gen.sh; fi
$(protoImage) sh ./scripts/protoc-swagger-gen.sh

proto-format:
@echo "Formatting Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \
find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi

proto-lint:
@$(DOCKER_BUF) lint --error-format=json

.PHONY: proto-all proto-gen proto-swagger-gen proto-format


TM_URL = https://raw.githubusercontent.com/tendermint/tendermint/v0.34.15/proto/tendermint
GOGO_PROTO_URL = https://raw.githubusercontent.com/regen-network/protobuf/cosmos
COSMOS_SDK_URL = https://raw.githubusercontent.com/cosmos/cosmos-sdk/v0.45.1
ETHERMINT_URL = https://raw.githubusercontent.com/Canto-Network/ethermint-v2/v0.10.0
IBC_GO_URL = https://raw.githubusercontent.com/cosmos/ibc-go/v3.0.0-rc0
COSMOS_PROTO_URL = https://raw.githubusercontent.com/regen-network/cosmos-proto/master

TM_CRYPTO_TYPES = third_party/proto/tendermint/crypto
TM_ABCI_TYPES = third_party/proto/tendermint/abci
TM_TYPES = third_party/proto/tendermint/types

GOGO_PROTO_TYPES = third_party/proto/gogoproto

COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto

proto-update-deps:
@mkdir -p $(GOGO_PROTO_TYPES)
@curl -sSL $(GOGO_PROTO_URL)/gogoproto/gogo.proto > $(GOGO_PROTO_TYPES)/gogo.proto

@mkdir -p $(COSMOS_PROTO_TYPES)
@curl -sSL $(COSMOS_PROTO_URL)/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto

## Importing of tendermint protobuf definitions currently requires the
## use of `sed` in order to build properly with cosmos-sdk's proto file layout
## (which is the standard Buf.build FILE_LAYOUT)
## Issue link: https://github.com/tendermint/tendermint/issues/5021
@mkdir -p $(TM_ABCI_TYPES)
@curl -sSL $(TM_URL)/abci/types.proto > $(TM_ABCI_TYPES)/types.proto

@mkdir -p $(TM_TYPES)
@curl -sSL $(TM_URL)/types/types.proto > $(TM_TYPES)/types.proto

@mkdir -p $(TM_CRYPTO_TYPES)
@curl -sSL $(TM_URL)/crypto/proof.proto > $(TM_CRYPTO_TYPES)/proof.proto
@curl -sSL $(TM_URL)/crypto/keys.proto > $(TM_CRYPTO_TYPES)/keys.proto


@$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \;

.PHONY: proto-all proto-gen proto-gen-any proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps
.PHONY: proto-all proto-gen proto-lint proto-check-breaking proto-swagger-gen proto-format

###############################################################################
### Localnet ###
Expand Down
Loading
Loading