elesto-dao / elesto

The ElestoDAO node
Apache License 2.0
4 stars 1 forks source link

chore: remove cosmoscmd #216

Closed PaddyMc closed 1 year ago

PaddyMc commented 1 year ago

Description

How to test

Notes

On upgrading to 0.46.0

I think we need to wait until IBC-GO is updated to the latest SDK version to upgrade our node. This issue arises when upgrading:

github.com/elesto-dao/elesto/v2/app imports
    github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts tested by
    github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts.test imports
    github.com/cosmos/ibc-go/v3/testing/simapp imports
    github.com/cosmos/ibc-go/v3/testing/simapp/params imports
    github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx: module github.com/cosmos/cosmos-sdk@latest found (v0.46.0), but does not contain package github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx

Any thoughts on this? @noandrea @gsora

On using Osmosis IAVL

After adding this to go.mod:

replace (
    // Our cosmos-sdk branch is:  https://github.com/osmosis-labs/cosmos-sdk v0.45.0x-osmo-v7
    github.com/cosmos/cosmos-sdk => github.com/osmosis-labs/cosmos-sdk v0.45.1-0.20220611234148-f59c62f19567
    // Use Osmosis fast iavl
    github.com/cosmos/iavl => github.com/osmosis-labs/iavl v0.17.3-osmo-v7
)

There was this issue:

# github.com/elesto-dao/elesto/v2/cmd/elestod/cmd
cmd/elestod/cmd/root.go:271:11: undefined: baseapp.SetSnapshotStore
cmd/elestod/cmd/root.go:272:11: undefined: baseapp.SetSnapshotInterval
cmd/elestod/cmd/root.go:273:11: undefined: baseapp.SetSnapshotKeepRecent

The osmosis team has changed baseapp.Set* => baseapp.SetSnapshot(store, withInterval(10), withKeepRecent(10). I stopped there to let this branch be reviewed first.

noandrea commented 1 year ago

latest release v0.46.1 of the cosmos-sdk updates the avl dependency to https://github.com/cosmos/iavl/releases/tag/v0.19.1

Does this has any effect in terms of decision making about which sdk to use?

More on a long-term vision, @PaddyMc do you think is a good bet to switch to the osmosis-sdk and depend on it instead of the cosmos-sdk ?

PaddyMc commented 1 year ago

latest release v0.46.1 of the cosmos-sdk updates the avl dependency to https://github.com/cosmos/iavl/releases/tag/v0.19.1

Does this has any effect in terms of decision making about which sdk to use?

More on a long-term vision, @PaddyMc do you think is a good bet to switch to the osmosis-sdk and depend on it instead of the cosmos-sdk ?

This PR has no effect on the decision of which SDK to use, and I think that we shouldn't switch at this late stage of the project.