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

masterchef + e-staking module implementation #435

Merged
merged 73 commits into from
Apr 26, 2024
Merged

Conversation

jelysn
Copy link
Contributor

@jelysn jelysn commented Mar 28, 2024

No description provided.

@jelysn jelysn marked this pull request as draft March 28, 2024 17:36
@jelysn jelysn changed the title e-staking module implementation for Eden & EdenB commitment e-staking module implementation Mar 28, 2024
@jelysn jelysn changed the base branch from incentive_optimization to main April 23, 2024 03:03
@jelysn jelysn changed the title e-staking module implementation masterchef + e-staking module implementation Apr 23, 2024
@cosmic-vagabond
Copy link
Contributor

cosmic-vagabond commented Apr 24, 2024

@jelysn software upgrade tested locally produced this error:

[alice] 9:50AM INF migrating module incentive from version 10 to version 11 module=server
[bob] panic: reference count should never exceed 2

goroutine 14 [running]:
[bob] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.incrementReferenceCount({{_, _}, {[bob] _, _}, {_, _}, {_, _[bob] }, {_[bob] , _}[bob] , ...}[bob] , ...)
[bob]   /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/validator.go:[bob] 71 +0x180
[bob] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.initializeDelegation({{_, _}, {[bob] _, _}, {_, [bob] _}, [bob] {_, [bob] _}, [bob] {_, [bob] _}, [bob] ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/delegation.go:[bob] 19 +0x138[bob] 
github.com/cosmos/cosmos-sdk/x/distribution/keeper.Hooks.AfterDelegationModified[bob] (...)
[bob]   /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/hooks.go:[bob] 104
[bob] github.com/cosmos/cosmos-sdk/x/staking/types.MultiStakingHooks.AfterDelegationModified({_, _, _}, {{0x10847a368, 0x109db4f20[bob] }, {0x108492700, 0x14002447240}, {{[bob] 0xb, 0x0}, {0x1400251ed70, ...}, ...}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/staking/types/hooks.go[bob] :91 +0xcc
[bob] github.com/elys-network/elys/x/incentive/migrations.Migrator.V11Migration({{{0x108491f90, 0x140011cf470}, {0x108455200, 0x14001b8cb80[bob] }, {[bob] 0x108455200, [bob] 0x0}, {[bob] 0x10847c5a0, 0x140019aa620[bob] }, {0x108482798[bob] , 0x14001bb2240}, [bob] ...}, [bob] ...}, [bob] ...)
[bob]   /tmp/Dev/elys/elys/x/incentive/migrations/v11_migration.go:117 +0xdc8
[bob] github.com/cosmos/cosmos-sdk/types/module.configurator.runModuleMigrations({{_, _[bob] }, [bob] {_, [bob] _}, [bob] {_, [bob] _}, [bob] _}, [bob] {{0x10847a368[bob] , 0x109db4f20}[bob] , {0x108492700[bob] , ...}[bob] , ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/configurator.go:110 +0x274
github.com/cosmos/cosmos-sdk/types/module.Manager.RunMigrations({[bob] _, {_, [bob] _, _[bob] }, {[bob] _, _, [bob] _}, [bob] {_, [bob] _, _[bob] }, [bob] ...}, [bob] ...)
        [bob] /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:531[bob]  +0x414
[bob] github.com/elys-network/elys/app.SetupHandlers.setUpgradeHandler.func1({{0x10847a368, 0x109db4f20}, {[bob] 0x108492700, 0x14002447240}, {[bob] {0xb, [bob] 0x0}, {0x1400251ed70, 0xd}, 0x6cb8bc, [bob] {0x30039c58, ...}, ...}, ...}, ...)
        /tmp/Dev/elys/elys/app/setup_handlers.go:96 +0x22c
github.com/cosmos/cosmos-sdk/x/upgrade/keeper.Keeper.ApplyUpgrade({{_, _}, _, {_, _}, {_, _}, _, {_, _}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/keeper/keeper.go:359 +0x12c
[bob] github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker(_, {{0x10847a368, 0x109db4f20}, {0x108492700, 0x14002447240}, {{0xb, 0x0[bob] }, [bob] {0x1400251ed70[bob] , 0xd}, 0x6cb8bc, ...[bob] }, ...[bob] }, [bob] ...)
[bob]   /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/abci.go:84 +[bob] 0x80c[bob] 
[bob] github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
        [bob] /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/module.go:161
[bob] github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_[bob] , {{0x10847a368, 0x109db4f20}, {0x108492700, 0x14002447240}, {{0xb, 0x0}, {0x1400251ed70[bob] , 0xd}[bob] , 0x6cb8bc, [bob] ...}, [bob] ...}[bob] , ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:562 +0x134[bob] 
[bob] github.com/elys-network/elys/app.(*ElysApp).BeginBlocker(...)
        /tmp/Dev/elys/elys/app/app.go:1423[bob] 
[bob] github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{[bob] 0x14002610300, 0x20, 0x20}, [bob] {{0xb[bob] , 0x0}, {0x1400251ed70, 0xd}[bob] , 0x6cb8bc, {[bob] 0x30039c58, ...}[bob] , ...}, ...})
        [bob] /tmp/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/abci.go[bob] :196 +[bob] 0x658
[bob] github.com/cometbft/cometbft/abci/client.(*localClient).BeginBlockSync(_, {{0x14002610300, 0x20, 0x20[bob] }, {{[bob] 0xb, 0x0[bob] }, {[bob] 0x1400251ed70, 0xd[bob] }, 0x6cb8bc[bob] , {0x30039c58[bob] , ...}[bob] , ...}[bob] , ...}[bob] )
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/abci/client/local_client.go[bob] :283 +0x104
github.com/cometbft/cometbft/proxy.(*appConnConsensus).BeginBlockSync(_, {{0x14002610300, 0x20, 0x20[bob] }, {{0xb, 0x0}[bob] , {0x1400251ed70, [bob] 0xd}, 0x6cb8bc, {0x30039c58, ...}[bob] , ...}, ...[bob] })
        [bob] /tmp/go/pkg/mod/github.com/cometbft/[email protected]/proxy/app_conn.go:101[bob]  +0x138
[bob] github.com/cometbft/cometbft/state.execBlockOnProxyApp[bob] ({0x10847a330[bob] ?, 0x14001b8c4c0}, {0x10848e600, 0x140018ee780[bob] }, [bob] 0x140017081e0, {[bob] 0x108492c90, 0x14002596438[bob] }, 0x6cb8bb[bob] ?)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:363 +[bob] 0x3d8
[bob] github.com/cometbft/cometbft/state.(*BlockExecutor).ApplyBlock([bob] _, {[bob] {{0xb[bob] , 0x0}[bob] , {0x140018f8068, 0x6}}, {[bob] 0x140018f8070, 0xd}, 0x6cb8ae, 0x6cb8bb, {[bob] {0x14002598040, [bob] ...}, [bob] ...}, [bob] ...}, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:197 +0xfc[bob] 
[bob] github.com/cometbft/cometbft/consensus.(*Handshaker).replayBlock(_, {{{0xb, 0x0}, {[bob] 0x140018f8068, 0x6}}, {[bob] 0x140018f8070, 0xd[bob] }, 0x6cb8ae[bob] , 0x6cb8bb, [bob] {{0x14002598040[bob] , ...}[bob] , ...}[bob] , ...}[bob] , ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:527 +0x190
[bob] github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocksWithContext(_, {_, _}, {{{[bob] 0xb, 0x0}, {0x140018f8068[bob] , 0x6}}[bob] , {[bob] 0x140018f8070, 0xd}[bob] , 0x6cb8ae, [bob] ...}, [bob] ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:433 +0x590
github.com/cometbft/cometbft/consensus.(*Handshaker).HandshakeWithContext([bob] 0x14001234048, {0x10847a918[bob] , 0x109db4f20}[bob] , {0x108495150[bob] ?, 0x140000f89a0?})
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:274 +0x344
[bob] github.com/cometbft/cometbft/node.doHandshake({_, _}, [bob] {_, _}, {[bob] {{0xb[bob] , 0x0}[bob] , {0x140018f8068, 0x6}}[bob] , {0x140018f8070[bob] , 0xd}[bob] , ...[bob] }, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:[bob] 449 +0x118
[bob] github.com/cometbft/cometbft/node.NewNodeWithContext[bob] ({[bob] 0x10847a918, [bob] 0x109db4f20}[bob] , 0x140015a0580, {[bob] 0x10845a2c0, 0x14001a06dc0}, 0x140017d3260, [bob] {0x108449278, 0x14001b88450[bob] }, 0x14001b88450[bob] ?, 0x0[bob] ?, [bob] ...)
        [bob] /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:929[bob]  +0x3f0
[bob] github.com/cometbft/cometbft/node.NewNode([bob] 0x14001fbeec0?[bob] , {0x10845a2c0?, 0x14001a06dc0?}, 0x32?, {0x108449278?, [bob] 0x14001b88450?}, 0x1084491f8?, 0x1400109a1c0?, 0x0?, {[bob] 0x10847a330?, ...[bob] }[bob] , ...[bob] )
        [bob] /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:[bob] 849 +0x84
[bob] github.com/cosmos/cosmos-sdk/server.startInProcess([bob] _, {[bob] {0x0[bob] , 0x0, 0x0}, {0x108493d30, 0x140015c2e40}, 0x0, {0x14000ca26a0[bob] , 0xd}, {0x10849e780, ...}, ...}, ...[bob] )
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:[bob] 372 +0x510
[bob] github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
[bob]   /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:153 +0x48
github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:617[bob]  +0x2c
created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile in goroutine 1
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go[bob] :616 +0x1d0[bob] 
2024/04/24 09:50:44 Command execution failed: exit status 2

@jelysn jelysn marked this pull request as ready for review April 24, 2024 13:47
@cosmic-vagabond
Copy link
Contributor

new software upgrade test resulted with the same error:

[alice] 2:58PM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
[alice] 2:58PM INF ABCI Handshake App Info hash="\x17�l��ݎ?��&���e��SSA��&��L�\x11g�E�" height=7168360 module=consensus protocol-version=0 software-version=v0.31.0
[alice] 2:58PM INF ABCI Replay Blocks appHeight=7168360 module=consensus stateHeight=7168360 storeHeight=7168361
2:58PM INF Replay last block using real app module=consensus
[alice] 2:58PM INF applying upgrade "v0.31.0" at height: 7168361 module=server
[alice] 2:58PM INF Running upgrade handler for v0.31.0 module=server
[alice] 2:58PM INF adding a new module: distribution module=server
[alice] 2:58PM INF adding a new module: estaking module=server
[bob] 2:58PM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
[bob] 2:58PM INF ABCI Handshake App Info hash="\x17�l��ݎ?��&���e��SSA��&��L�\x11g�E�" height=7168360 module=consensus protocol-version=0 software-version=v0.31.0
[bob] 2:58PM INF ABCI Replay Blocks appHeight=7168360 module=consensus stateHeight=7168360 storeHeight=7168361
[bob] 2:58PM INF Replay last block using real app module=consensus
[alice] 2:58PM INF migrating module incentive from version 10 to version 11 module=server
[bob] 2:58PM INF applying upgrade "v0.31.0" at height: 7168361 module=server
[bob] 2:58PM INF Running upgrade handler for v0.31.0 module=server
[bob] 2:58PM INF adding a new module: distribution module=server
[bob] 2:58PM INF adding a new module: estaking module=server
[bob] 2:58PM INF migrating module incentive from version 10 to version 11 module=server
[bob] panic: reference count should never exceed 2

goroutine 10 [running]:
[alice] panic: reference count should never exceed 2

goroutine [alice] 11 [running]:
[alice] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.incrementReferenceCount({{_, _}[alice] , {_, _}, {_, _}, {_, _}, {_, _}, ...}[bob] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.incrementReferenceCount({{_, _}, {_, _}, {_, _}, {_, _}, {_, _}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/validator.go:71 +0x180
[alice] , ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/validator.go:71 +0x180
[bob] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.initializeDelegation({{_, _}, {_, _}, {_, _}, {_, _}, {_, _}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/delegation.go:19 +0x138
github.com/cosmos/cosmos-sdk/x/distribution/keeper.Hooks.AfterDelegationModified(...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/hooks.go:104
[alice] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.initializeDelegation({{_, [alice] _}, {_, _}, {_, [bob] github.com/cosmos/cosmos-sdk/x/staking/types.MultiStakingHooks.AfterDelegationModified([bob] {_, _, _}, {{0x104462308, [bob] 0x105d9d080}[alice] _}, {_, _}, {[alice] _, _}, ...[alice] }, [bob] , {[alice] ...)
[bob] 0x10447a6a0, 0x1400239d3c0}, {{0xb, 0x0}[bob] , {0x140022a8ff0, ...}, ...}, ...[bob] }[bob] , ...[alice]  /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/delegation.go:19 +0x138
[alice] github.com/cosmos/cosmos-sdk/x/distribution/keeper.Hooks.AfterDelegationModified(...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/hooks.go:104
github.com/cosmos/cosmos-sdk/x/staking/types.MultiStakingHooks.AfterDelegationModified([alice] {_, _, _[alice] }, {{[bob] )
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/staking/types/hooks.go[alice] 0x106512308, 0x107e4d080}[bob] :91 +0xcc
[alice] , {0x10652a6a0, 0x1400212f640}, {[alice] {0xb, 0x0}, {0x14001653b10, ...}, ...}, ...}, ...[alice] )
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/staking/types/hooks.go:91 +0xcc[alice] 
[alice] github.com/elys-network/elys/x/incentive/migrations.Migrator.V11Migration({{{0x106529f30, 0x14001523580}, {0x1064ed160, 0x14000c75640}, {0x1064ed160, 0x0}, {0x1065144c0, 0x140015ac540}, {0x10651a670, 0x140019b6120}[alice] , ...}, ...}, ...)
        /tmp/Dev/elys/elys/x/incentive/migrations/v11_migration.go:134 +0xf88
[bob] github.com/elys-network/elys/x/incentive/migrations.Migrator.V11Migration({{{0x104479f30, 0x1400174d320}, {0x10443d160, 0x14001bc4bb0}, {0x10443d160, 0x0}, {0x1044644c0, 0x14001796540}, {0x10446a670, 0x14001bdcb40}, ...}, ...}, ...)
        [bob] /tmp/Dev/elys/elys/x/incentive/migrations/v11_migration.go:134 +0xf88
[alice] github.com/cosmos/cosmos-sdk/types/module.configurator.runModuleMigrations({{_, _}, {_, _}[alice] , {_, _}, _}, {{[alice] 0x106512308, 0x107e4d080}[alice] , {0x10652a6a0[bob] github.com/cosmos/cosmos-sdk/types/module.configurator.runModuleMigrations({{_, _}, {_, _}, {_, _}, _}, {{0x104462308, 0x105d9d080}[bob] , {[bob] 0x10447a6a0, [bob] ...}, ...}, ...)
[bob]   /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/configurator.go:[bob] 110 +0x274
[alice] , ...}, [alice] ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/configurator.go:110 +0x274
github.com/cosmos/cosmos-sdk/types/module.Manager.RunMigrations({_, [alice] {_, _, _}[alice] , [bob] github.com/cosmos/cosmos-sdk/types/module.Manager.RunMigrations([alice] {[bob] {_, {_, _, _}, {_, _, _}, {_, [alice] _, _, _}, {_, _[alice] , _}, ...}, ...)
[alice]         /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go[bob] _, _}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:531 +0x414
[alice] :531 +0x414
[bob] github.com/elys-network/elys/app.SetupHandlers.setUpgradeHandler.func1({{0x104462308, 0x105d9d080}, {0x10447a6a0, 0x1400239d3c0}, {{0xb[bob] , 0x0}, {0x140022a8ff0, 0xd[bob] }, 0x6d6169[bob] , {[bob] 0x2e042aa8, ...[bob] }, [bob] ...}, ...}, ...)
        /tmp/Dev/elys/elys/app/setup_handlers.go:96 +0x22c
[alice] github.com/elys-network/elys/app.SetupHandlers.setUpgradeHandler.func1({{0x106512308, 0x107e4d080}, {0x10652a6a0, 0x1400212f640}[alice] , {{0xb, 0x0}, {0x14001653b10, 0xd}, 0x6d6169, {0x2e042aa8, ...}, ...}, ...}, ...)
        /tmp/Dev/elys/elys/app/setup_handlers.go:96 +0x22c
[bob] github.com/cosmos/cosmos-sdk/x/upgrade/keeper.Keeper.ApplyUpgrade({{_, _}, _, {_[bob] , _}[bob] , {_[bob] , _}[bob] , _, [alice] github.com/cosmos/cosmos-sdk/x/upgrade/keeper.Keeper.ApplyUpgrade({{_, _}, _, {_, _}, {_, _}, _, {_, _}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/keeper/keeper.go[alice] :359 +0x12c
[bob] {_, _}, ...}[bob] , ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/keeper/keeper.go:359 +0x12c
[alice] github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker(_, {{0x106512308, 0x107e4d080}, {[alice] 0x10652a6a0, 0x1400212f640}, {{0xb, 0x0}, [alice] {0x14001653b10, [bob] github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker(_, {{0x104462308, 0x105d9d080}, {0x10447a6a0, 0x1400239d3c0}, {{0xb, 0x0}, {0x140022a8ff0, 0xd}, [alice] 0xd}, 0x6d6169[alice] , ...}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/abci.go:84 +0x80c
[bob] 0x6d6169, ...}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/abci.go:84 +[bob] 0x80c
[alice] github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/module.go:161
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x106512308, 0x107e4d080[alice] }, {0x10652a6a0[alice] , [alice] 0x1400212f640}, [bob] github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/x/upgrade/module.go:161
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x104462308, 0x105d9d080}, [bob] {0x10447a6a0, 0x1400239d3c0}, {{0xb, 0x0}, {0x140022a8ff0, 0xd}[bob] , 0x6d6169, ...}[alice] {[bob] , [alice] {0xb, 0x0}, {0x14001653b10, 0xd}, 0x6d6169, ...[bob] ...}[alice] }, ...}[alice] , ...)
[alice]         /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go[alice] :562[alice]  +[bob] , [alice] 0x134
[alice] github.com/elys-network/elys/app.(*ElysApp).BeginBlocker([alice] ...[alice] )
        [alice] /tmp/Dev/elys/elys/app/app.go[alice] :1421
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_[alice] , {{0x1400148f680, [alice] 0x20, [alice] 0x20[alice] }, [alice] {{[alice] 0xb, [alice] 0x0}[alice] , [alice] {[alice] 0x14001653b10, 0xd}, 0x6d6169, {0x2e042aa8, [alice] ...}, ...}, ...[alice] })
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/abci.go:196 +[alice] 0x658
[alice] github.com/cometbft/cometbft/abci/client.(*localClient).BeginBlockSync(_, [alice] {{0x1400148f680, [alice] 0x20, 0x20}, {{0xb, [alice] 0x0}[alice] , {0x14001653b10[alice] , 0xd[bob] ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:562 +0x134
github.com/elys-network/elys/app.(*ElysApp).BeginBlocker([alice] }, 0x6d6169, {0x2e042aa8, ...}, ...[alice] }[alice] , [alice] ...[alice] })
        [alice] /tmp/go/pkg/mod/github.com/cometbft/[email protected]/abci/client/local_client.go[alice] :[alice] 283[alice]  +[alice] 0x104[alice] 
[alice] github.com/cometbft/cometbft/proxy.(*appConnConsensus).BeginBlockSync[alice] ([alice] _[alice] , [alice] {[alice] {[alice] 0x1400148f680[alice] , [alice] 0x20[alice] , [alice] 0x20[alice] }, {{0xb, 0x0}, {[alice] 0x14001653b10, 0xd}[alice] , 0x6d6169[alice] , {[alice] 0x2e042aa8, ...}, ...}, ...[alice] })
[alice]         /tmp/go/pkg/mod/github.com/cometbft/[email protected]/proxy/app_conn.go[alice] :101 +0x138
github.com/cometbft/cometbft/state.execBlockOnProxyApp([alice] {0x1065122d0?, [alice] 0x14002407b80}[alice] , {[alice] 0x1065265a0[alice] , 0x14002404720}, 0x140012b43c0[alice] , {0x10652ac30, 0x14002404e28}, 0x6d6168?[alice] )
[alice]         /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:[alice] 363 +0x3d8[alice] 
[alice] github.com/cometbft/cometbft/state.(*BlockExecutor).ApplyBlock([alice] _, {[alice] {{0xb[alice] , 0x0}[alice] , {0x14001652488[alice] , 0x6}[alice] }, {[alice] 0x14001652490, [alice] 0xd}, [alice] 0x6d615b, 0x6d6168[alice] , {{[alice] 0x140020ae020, [alice] ...}, ...}[alice] , ...}[alice] , ...[alice] )
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:197 +[bob] ...)
        /tmp/Dev/elys/elys/app/app.go:1421
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0x140011bc620, 0x20, 0x20}, {{0xb, 0x0}, {0x140022a8ff0, 0xd}, 0x6d6169, {0x2e042aa8, ...}, ...}, ...})
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/abci.go:196 +0x658
github.com/cometbft/cometbft/abci/client.(*localClient).BeginBlockSync(_, {{0x140011bc620, 0x20, 0x20}, {{0xb, 0x0}, {0x140022a8ff0, 0xd}, 0x6d6169, {0x2e042aa8, ...}, ...}, ...})
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/abci/client/local_client.go:283 +0x104
github.com/cometbft/cometbft/proxy.(*appConnConsensus).BeginBlockSync(_, {{0x140011bc620, 0x20, 0x20}, {{0xb, 0x0}, {0x140022a8ff0, 0xd}, 0x6d6169, {0x2e042aa8, ...}, ...}, ...})
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/proxy/app_conn.go:101 +0x138
[bob] github.com/cometbft/cometbft/state.execBlockOnProxyApp({0x1044622d0?, 0x14001780b70}, {0x1044765a0, 0x14001802c90}, 0x140001565a0, {0x10447ac30, 0x14001562f48}, 0x6d6168?)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:363 +0x3d8
github.com/cometbft/cometbft/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0x140007aed08, 0x6}}, {0x140007aed40, 0xd}, 0x6d615b, 0x6d6168, {{0x14002300060, ...}, ...}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:197 +0xfc
[alice] 0xfc
[alice] github.com/cometbft/cometbft/consensus.(*Handshaker).replayBlock(_, {{{0xb, [alice] 0x0}, {0x14001652488, 0x6[alice] }}, [alice] {0x14001652490, [alice] 0xd}, [alice] 0x6d615b[alice] , 0x6d6168[bob] github.com/cometbft/cometbft/consensus.(*Handshaker).replayBlock(_, {{{0xb, 0x0}, {[alice] , {{[bob] 0x140007aed08, 0x6}}, {0x140007aed40, 0xd}, 0x6d615b, 0x6d6168, {{0x14002300060, ...}, ...}, ...}, ...)
[bob]   /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:527 +[bob] 0x190
github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocksWithContext[bob] (_, {[bob] _, _}[bob] , {{{[alice] 0x140020ae020, ...}, ...}, ...}[bob] 0xb, [bob] 0x0}, [alice] , ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:527 +0x190
github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocksWithContext(_, {_, _}, {{{0xb, 0x0[alice] }, {0x14001652488, 0x6}[bob] {[bob] 0x140007aed08, 0x6}}, {0x140007aed40, 0xd}, 0x6d615b, ...}, [alice] }, {0x14001652490[alice] , 0xd}[bob] ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:433 +0x590
github.com/cometbft/cometbft/consensus.(*Handshaker).HandshakeWithContext([alice] , 0x6d615b, ...}[bob] 0x140015d2048, {0x104462880, 0x105d9d080[bob] }, [alice] , ...)
        [bob] {0x10447d0f0?[alice] /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:433[bob] , 0x14000a8cd20[alice]  +0x590
[bob] ?[alice] github.com/cometbft/cometbft/consensus.(*Handshaker).HandshakeWithContext[bob] })
[alice] ([alice] 0x14001464048[bob]     /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go[alice] , [alice] {[alice] 0x106512880, [alice] 0x107e4d080[bob] :[alice] }, {0x10652d0f0?, 0x140015ac1c0?}[alice] )
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/consensus/replay.go:274 +0x344
[bob] 274 +0x344
[alice] github.com/cometbft/cometbft/node.doHandshake({_, _}, {_, _}, [alice] {{{0xb, 0x0}, {0x14001652488, 0x6}}, {0x14001652490, 0xd}, [alice] ...}, [alice] ...)
[alice]         /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go[alice] :449 +0x118[alice] 
[alice] github.com/cometbft/cometbft/node.NewNodeWithContext({0x106512880[alice] , 0x107e4d080}[bob] github.com/cometbft/cometbft/node.doHandshake({_, _}, {_, _}, {{{0xb[alice] , 0x140013cc580, {[alice] 0x1064f2220, 0x140019cfea0}, 0x140017df4a0, {[bob] , 0x0}, {0x140007aed08, 0x6}}, {0x140007aed40, 0xd}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:449 +0x118
github.com/cometbft/cometbft/node.NewNodeWithContext({0x104462880, 0x105d9d080}, 0x14001548580, {0x104442220, [alice] 0x1064e11d8, 0x14002127ae8}, [bob] 0x1400197fc20}, 0x1400176f1e0, {0x1044311d8, 0x140005df6e0}, 0x140005df6e0?, 0x0?, [bob] ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:929 +0x3f0[bob] 
github.com/cometbft/cometbft/node.NewNode(0x14001c83d80[bob] ?, {0x104442220[bob] ?, [bob] 0x1400197fc20?[alice] 0x14002127ae8?, 0x0?, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go[alice] :929 +0x3f0
github.com/cometbft/cometbft/node.NewNode(0x14001913d00?, {0x1064f2220?, 0x140019cfea0?}, 0x31?, {0x1064e11d8?, 0x14002127ae8?}, 0x1064e1158?, 0x14000c8afc0?, 0x0[bob] }, 0x32?, {0x1044311d8?, 0x140005df6e0[alice] ?, {[alice] 0x1065122d0?, ...}, ...)
[bob] ?}, 0x104431158?, 0x140010da000?[bob] , 0x0?, {0x1044622d0?, ...}, ...)
        /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go:[alice]       /tmp/go/pkg/mod/github.com/cometbft/[email protected]/node/node.go[alice] :849[alice]  +[alice] 0x84[alice] 
[alice] github.com/cosmos/cosmos-sdk/server.startInProcess[bob] 849 +0x84
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {[alice] ([alice] _, {{0x0, 0x0, 0x0[alice] }, [alice] {[bob] {0x0, 0x0, 0x0}, {0x10447bcd0[alice] 0x10652bcd0, [bob] , 0x1400156ee40}, 0x0, {0x140009b3590, 0xd}, {0x104486720, ...}, ...}[alice] 0x14001147dd0}, 0x0, [bob] , ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:372 +0x510
github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
        [alice] {0x14000aaf200, [bob] /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:153 +[bob] 0x48
github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:617 +0x2c
created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile in goroutine [alice] 0xd}, [alice] {0x106536720, ...}, ...}, ...)
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:372 +0x510
github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:[bob] 1
        [bob] /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:616 +0x1d0
[alice] 153 +0x48
github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go[alice] :[alice] 617[alice]  +[alice] 0x2c[alice] 
[alice] created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile in goroutine 1[alice] 
        /tmp/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:616 +0x1d0
2024/04/25 14:58:18 Command execution failed: exit status 2
exit status 1

@cosmic-vagabond
Copy link
Contributor

@jelysn software upgrade in localnet was successful:

$ elysd q upgrade applied v0.31.0
{
  "block_id": {
    "hash": "1C65F51334E0141FDC8FE4C2B71821E20DCF932BD5A9DAD2B8705F8E48D10735",
    "parts": {
      "total": 1,
      "hash": "AA5618B8274255C5A2B2E0DBA75ECB9DF43654217AC810E4403B5CB5A207D82D"
    }
  },
  "block_size": "704",
  "header": {
    "version": {
      "block": "11"
    },
    "chain_id": "elystestnet-1",
    "height": "7168371",
    "time": "2024-04-26T07:19:49.128585Z",
    "last_block_id": {
      "hash": "A246FFC66DD0B73EE00E22C39274114C67DCC9136E59E51A87C7C2174209730D",
      "parts": {
        "total": 1,
        "hash": "A02985A8F5CDA469CA7890A4CB20CC1A47A3DC33351B615FAAA88B1E2A7C2582"
      }
    },
    "last_commit_hash": "50F6C904036010E30048CEEB2383B6CE356C5171E68B3CA43501EBA49224E5A4",
    "data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
    "validators_hash": "829177AFD59D56515DCEC578E5BD2788FA69224DDB53BE0C833C709421E1C9FF",
    "next_validators_hash": "829177AFD59D56515DCEC578E5BD2788FA69224DDB53BE0C833C709421E1C9FF",
    "consensus_hash": "D52BD6C8E8261140278C46DBFEA6F4C22107C79049465417083496F71B583BB7",
    "app_hash": "ED5C8E6BD7572CB6F120AA0310F88F412D4F9DAF7E412B346C2D5BB09A3D32B8",
    "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
    "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
    "proposer_address": "F3283E1D4B752D8D9FD4304ED32F8366FC059427"
  },
  "num_txs": "0"
}

2 new modules got registered:

[...]
- name: estaking
  version: "1"
[...]
- name: masterchef
  version: "1"
[...]

I did see those errors popping right after the upgrade but then it stopped showing up and the chain continued resuming as normal:

[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking
[bob] 9:21AM ERR no delegation distribution info module=x/estaking

@cosmic-vagabond
Copy link
Contributor

confirmed software upgrade test succeeding with CI:

[bob] 9:18AM ERR CONSENSUS FAILURE!!! err="UPGRADE \"v999.999.999\" NEEDED at height: 7186330: " module=consensus stack="goroutine 335 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/cometbft/cometbft/consensus.(*State).receiveRoutine.func2()\n\tgithub.com/cometbft/[email protected]/consensus/state.go:736 +0x46\npanic({0x2f4b420?, 0xc0022eb450?})\n\truntime/panic.go:914 +0x21f\ngithub.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker(_, {{0x4440438, 0x6015c40}, {0x44585c0, 0xc102926080}, {{0xb, 0x0}, {0xc0cefffe70, 0xd}, 0x6da79a, ...}, ...}, ...)\n\tgithub.com/cosmos/[email protected]/x/upgrade/abci.go:78 +0xe54\ngithub.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)\n\tgithub.com/cosmos/[email protected]/x/upgrade/module.go:161\ngithub.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x4440438, 0x6015c40}, {0x44585c0, 0xc102926080}, {{0xb, 0x0}, {0xc0cefffe70, 0xd}, 0x6da79a, ...}, ...}, ...)\
[bob] 9:18AM INF service stop impl=baseWAL module=consensus msg="Stopping baseWAL service" wal=/home/runner/.elys2/data/cs.wal/wal
[bob] 9:18AM INF service stop impl=Group module=consensus msg="Stopping Group service" wal=/home/runner/.elys2/data/cs.wal/wal
2024/04/26 09:18:29 Block height 7186330 reached
[alice] 9:18AM INF Timed out dur=3000 height=7186330 module=consensus round=0 step=RoundStepPropose
[bob] 9:18AM INF Timed out dur=3000 height=7186330 module=consensus round=0 step=RoundStepPropose
2024/04/26 09:18:34 Process killed successfully
2024/04/26 09:18:34 Process killed successfully
2024/04/26 09:18:35 Process was killed: signal: killed
2024/04/26 09:18:35 Process was killed: signal: killed
2024/04/26 09:18:39 [alice] Waiting for service to start...
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/application.db/003992.log with log number 003992 stopped reading at offset: 189795; replayed 1501 keys in 119 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/application.db/003992.log with log number 003992 stopped reading at offset: 189795; replayed 1501 keys in 119 batches
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/application.db/004071.log with log number 004071 stopped reading at offset: 791373; replayed 6057 keys in 643 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/application.db/004071.log with log number 004071 stopped reading at offset: 791373; replayed 6057 keys in 643 batches
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/blockstore.db/000011.log with log number 000011 stopped reading at offset: 43911; replayed 126 keys in 126 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/blockstore.db/000011.log with log number 000011 stopped reading at offset: 42843; replayed 126 keys in 126 batches
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/snapshots/metadata.db/000004.log with log number 000004 stopped reading at offset: 0; replayed 0 keys in 0 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/snapshots/metadata.db/000004.log with log number 000004 stopped reading at offset: 0; replayed 0 keys in 0 batches
[alice] 9:18AM INF starting node with ABCI Tendermint in-process module=server
[bob] 9:18AM INF starting node with ABCI Tendermint in-process module=server
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/blockstore.db/000015.log with log number 000015 stopped reading at offset: 0; replayed 0 keys in 0 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/blockstore.db/000015.log with log number 000015 stopped reading at offset: 0; replayed 0 keys in 0 batches
[bob] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys2/data/state.db/000008.log with log number 000008 stopped reading at offset: 65560; replayed 101 keys in 101 batches
[alice] 2024/04/26 09:18:40 [JOB 1] WAL file /home/runner/.elys/data/state.db/000008.log with log number 000008 stopped reading at offset: 65560; replayed 101 keys in 101 batches
2024/04/26 09:18:44 [alice] Waiting for service to start...
[bob] 9:18AM INF service start impl=multiAppConn module=proxy msg="Starting multiAppConn service"
[bob] 9:18AM INF service start connection=query impl=localClient module=abci-client msg="Starting localClient service"
9:18AM INF service start connection=snapshot impl=localClient module=abci-client msg="Starting localClient service"
[bob] 9:18AM INF service start connection=mempool impl=localClient module=abci-client msg="Starting localClient service"
9:18AM INF service start connection=consensus impl=localClient module=abci-client msg="Starting localClient service"
9:18AM INF service start impl=EventBus module=events msg="Starting EventBus service"
9:18AM INF service start impl=PubSub module=pubsub msg="Starting PubSub service"
[bob] 2024/04/26 09:18:48 [JOB 1] WAL file /home/runner/.elys2/data/tx_index.db/000005.log with log number 000005 stopped reading at offset: 40043; replayed 440 keys in 22 batches
[bob] 9:18AM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
[bob] 9:18AM INF ABCI Handshake App Info hash="�G�ӛ�\a\x15��X��F�\r���I\x0f��A/\x7f�5����" height=7186329 module=consensus protocol-version=0 software-version=v999.999.999
9:18AM INF ABCI Replay Blocks appHeight=7186329 module=consensus stateHeight=7186329 storeHeight=7186330
9:18AM INF Replay last block using real app module=consensus
[bob] 9:18AM INF applying upgrade "v999.999.999" at height: 7186330 module=server
[bob] 9:18AM INF Running upgrade handler for v999.999.999 module=server
[bob] 9:18AM INF adding a new module: distribution module=server
[bob] 9:18AM INF adding a new module: estaking module=server
[bob] 9:18AM INF migrating module incentive from version 10 to version 11 module=server
[alice] 9:18AM INF service start impl=multiAppConn module=proxy msg="Starting multiAppConn service"
[alice] 9:18AM INF service start connection=query impl=localClient module=abci-client msg="Starting localClient service"
[alice] 9:18AM INF service start connection=snapshot impl=localClient module=abci-client msg="Starting localClient service"
[alice] 9:18AM INF service start connection=mempool impl=localClient module=abci-client msg="Starting localClient service"
[alice] 9:18AM INF service start connection=consensus impl=localClient module=abci-client msg="Starting localClient service"
[alice] 9:18AM INF service start impl=EventBus module=events msg="Starting EventBus service"
[alice] 9:18AM INF service start impl=PubSub module=pubsub msg="Starting PubSub service"
[alice] 2024/04/26 09:18:48 [JOB 1] WAL file /home/runner/.elys/data/tx_index.db/000005.log with log number 000005 stopped reading at offset: 40043; replayed 440 keys in 22 batches
[alice] 9:18AM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
[alice] 9:18AM INF ABCI Handshake App Info hash="�G�ӛ�\a\x15��X��F�\r���I\x0f��A/\x7f�5����" height=7186329 module=consensus protocol-version=0 software-version=v999.999.999
[alice] 9:18AM INF ABCI Replay Blocks appHeight=7186329 module=consensus stateHeight=7186329 storeHeight=7186330
[alice] 9:18AM INF Replay last block using real app module=consensus
[alice] 9:18AM INF applying upgrade "v999.999.999" at height: 7186330 module=server
[alice] 9:18AM INF Running upgrade handler for v999.999.999 module=server
[alice] 9:18AM INF adding a new module: distribution module=server
[alice] 9:18AM INF adding a new module: estaking module=server
[alice] 9:18AM INF migrating module incentive from version 10 to version 11 module=server

see results here: https://github.com/elys-network/elys/actions/runs/8845783365/job/24290387106

@cosmic-vagabond
Copy link
Contributor

masterchef:

$ elysd q masterchef params
params:
  dex_rewards_lps:
    amount: "0.000000000000000000"
    num_blocks: "1"
  lp_incentives:
    blocks_distributed: "861191"
    distribution_start_block: "6307201"
    eden_amount_per_year: "10500000000000"
    max_eden_per_allocation: "0"
    total_blocks_per_year: "6307201"
  max_eden_reward_apr_lps: "0.500000000000000000"
  protocol_revenue_address: elys10d07y265gmmuvt4z0w9aw880jnsr700j6z2zm3
  reward_portion_for_lps: "0.600000000000000000"
  reward_portion_for_stakers: "0.250000000000000000"
  supported_reward_denoms: []

pool aprs:

$ elysd q masterchef pool-aprs 2
data:
- eden_apr: "0.499989854152742602"
  pool_id: "2"
  total_apr: "0.499989854152742602"
  usdc_apr: "0.000000000000000000"
$ elysd q masterchef pool-aprs 3
data:
- eden_apr: "0.499986436017713013"
  pool_id: "3"
  total_apr: "0.499986436017713013"
  usdc_apr: "0.000000000000000000"
$ elysd q masterchef pool-aprs 4
data:
- eden_apr: "0.500021585654679476"
  pool_id: "4"
  total_apr: "0.500021585654679476"
  usdc_apr: "0.000000000000000000"
$ elysd q masterchef pool-aprs 0
data:
- eden_apr: "0.000000000000000000"
  pool_id: "0"
  total_apr: "0.000000000000000000"
  usdc_apr: "0.000000000000000000"
$ elysd q masterchef pool-aprs 5
data:
- eden_apr: "0.500092749615755843"
  pool_id: "5"
  total_apr: "0.500092749615755843"
  usdc_apr: "0.000000000000000000"

pool info:

$ elysd q masterchef pool-info 2
pool_info:
  dex_apr: "0.000000000000000000"
  dex_reward_amount_given: "0.000000000000000000"
  eden_apr: "0.499989854152742602"
  eden_reward_amount_given: "3638"
  external_incentive_apr: "0.000000000000000000"
  external_reward_denoms: []
  multiplier: "1.000000000000000000"
  num_blocks: "1"
  pool_id: "2"
  reward_wallet: elys1d96rzrky937s3s397g5xh5qvcwgkeqysmh8sg2kn359fhfvzeyrsnalu2u

pool reward info:

$ elysd q masterchef pool-reward-info 2 ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
pool_reward_info:
  last_updated_block: "7168441"
  pool_acc_reward_per_share: "0.000000000000000000"
  pool_id: "2"
  reward_denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65

stable stake apr

$ elysd q masterchef stable-stake-apr ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
apr: "0"

user pending rewards:

$ elysd q masterchef user-pending-reward elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
rewards:
- pool_id: "2"
  reward: []
- pool_id: "3"
  reward: []
- pool_id: "4"
  reward: []
- pool_id: "5"
  reward: []
- pool_id: "32767"
  reward: []
total_rewards: []

@cosmic-vagabond
Copy link
Contributor

estaking params:

$ elysd q estaking params
params:
  dex_rewards_stakers:
    amount: "0.000000000000000000"
    num_blocks: "1"
  eden_boost_apr: "1.000000000000000000"
  eden_commit_val: elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0
  edenb_commit_val: elysvaloper1wajd6ekh9u37hyghyw4mme59qmjllzuyaceanm
  max_eden_reward_apr_stakers: "0.300000000000000000"
  stake_incentives:
    blocks_distributed: "861358"
    distribution_start_block: "6307201"
    eden_amount_per_year: "6000000000000"
    total_blocks_per_year: "6307201"

@cosmic-vagabond
Copy link
Contributor

all the tx tests were successfully following a test sessions between @cosmic-vagabond and @jelysn

$ elysd tx amm join-pool 2 2000000000000ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4 90000000000000000 --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: B40D86AFC0600E804A9D7CC13EEC319E4599CED1F1F998CCC1D4EEAC47C0309F
$ elysd q tx B40D86AFC0600E804A9D7CC13EEC319E4599CED1F1F998CCC1D4EEAC47C0309F
[...]
raw_log: '[{"msg_index":0,"events":[{"type":"message","attributes":[{"key":"action","value":"/elys.amm.MsgJoinPool"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"2000000000000ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1t7z4shh8tzvjc2u9exu2fs8rmewlm6hza494x3dna0n7aumm05aq209wy9"},{"key":"amount","value":"2000000000000ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"elys1t7z4shh8tzvjc2u9exu2fs8rmewlm6hza494x3dna0n7aumm05aq209wy9"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"2000000000000ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4"}]},{"type":"message","attributes":[{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1xxs9c4mfqzya8yt38pphxl4zuut67fllv9s3hz"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"coinbase","attributes":[{"key":"minter","value":"elys1xxs9c4mfqzya8yt38pphxl4zuut67fllv9s3hz"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"elys1xxs9c4mfqzya8yt38pphxl4zuut67fllv9s3hz"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"sender","value":"elys1xxs9c4mfqzya8yt38pphxl4zuut67fllv9s3hz"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"message","attributes":[{"key":"sender","value":"elys1xxs9c4mfqzya8yt38pphxl4zuut67fllv9s3hz"}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1dgvlp76tu4z3z5jte4dsex9n3ks7upy6ls6qcf"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"elys1dgvlp76tu4z3z5jte4dsex9n3ks7upy6ls6qcf"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"179437719578481278520495amm/pool/2"}]},{"type":"message","attributes":[{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"token_amount","value":"179437719578481278520495"},{"key":"token_denom","value":"amm/pool/2"}]},{"type":"pool_joined","attributes":[{"key":"module","value":"amm"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"pool_id","value":"2"},{"key":"tokens_in","value":"2000000000000ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4"}]},{"type":"message","attributes":[{"key":"module","value":"amm"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"}]}]}]'
[...]
txhash: B40D86AFC0600E804A9D7CC13EEC319E4599CED1F1F998CCC1D4EEAC47C0309F
$ 
$ 
$ elysd q commitment show-commitments elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
commitments:
  claimed: []
  committed_tokens:
  - amount: "179437737510485068935301"
    denom: amm/pool/2
    lockups:
    - amount: "17932003790414806"
      unlock_timestamp: "1714138669"
    - amount: "358875439156962557040990"
      unlock_timestamp: "1714140442"
  creator: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
  vesting_tokens: []
$ 
$ 
$ elysd q masterchef user-pending-reward elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
rewards:
- pool_id: "2"
  reward:
  - amount: "14630"
    denom: ueden
- pool_id: "3"
  reward: []
- pool_id: "4"
  reward: []
- pool_id: "5"
  reward: []
- pool_id: "32767"
  reward: []
total_rewards:
- amount: "14630"
  denom: ueden
$ 
$ elysd q masterchef user-pending-reward elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
rewards:
- pool_id: "2"
  reward:
  - amount: "43891"
    denom: ueden
- pool_id: "3"
  reward: []
- pool_id: "4"
  reward: []
- pool_id: "5"
  reward: []
- pool_id: "32767"
  reward: []
total_rewards:
- amount: "43891"
  denom: ueden
$ elysd q masterchef user-reward-info elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 2 ueden
user_reward_info:
  pool_id: "2"
  reward_debt: "146517325995281559246579.447886277924495306"
  reward_denom: ueden
  reward_pending: "0.005437977540799779"
  user: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
$ elysd query staking validators
[...]
- commission:
    commission_rates:
      max_change_rate: "0.010000000000000000"
      max_rate: "0.500000000000000000"
      rate: "0.050000000000000000"
    update_time: "2024-04-26T07:18:24.825621Z"
  consensus_pubkey:
    '@type': /cosmos.crypto.ed25519.PubKey
    key: YAY7m8T5GurYsc0Dy7SwMfZSV30R/SVKQocvKfAubd4=
  delegator_shares: "1000000.000000000000000000"
  description:
    details: ""
    identity: ""
    moniker: bob
    security_contact: ""
    website: ""
  jailed: false
  min_self_delegation: "1000000"
  operator_address: elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc
  status: BOND_STATUS_BONDED
  tokens: "1000000"
  unbonding_height: "0"
  unbonding_ids: []
  unbonding_on_hold_ref_count: "0"
  unbonding_time: "1970-01-01T00:00:00Z"
$ 
$ 
$ elysd tx staking delegate elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc 1000000000000uelys --from=validator -y --gas=1000000 --fees=1000000uelys
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: D696EA49610F85036B75AF81CCD5A8F3B58125E26F5910D49C791D6F04B20C6B
$ elysd q tx D696EA49610F85036B75AF81CCD5A8F3B58125E26F5910D49C791D6F04B20C6B
[...]
raw_log: '[{"msg_index":0,"events":[{"type":"message","attributes":[{"key":"action","value":"/cosmos.staking.v1beta1.MsgDelegate"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"module","value":"staking"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc"},{"key":"token_amount","value":"0"}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"1000000000000uelys"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34msg54"},{"key":"amount","value":"1000000000000uelys"}]},{"type":"delegate","attributes":[{"key":"validator","value":"elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc"},{"key":"delegator","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"1000000000000uelys"},{"key":"new_shares","value":"1000000000000.000000000000000000"}]}]}]'
[...]
txhash: D696EA49610F85036B75AF81CCD5A8F3B58125E26F5910D49C791D6F04B20C6B
$ 
$ 
$ 
$ elysd q masterchef user-pending-reward elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
rewards:
- pool_id: "2"
  reward:
  - amount: "375020"
    denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
  - amount: "343817"
    denom: ueden
- pool_id: "3"
  reward: []
- pool_id: "4"
  reward: []
- pool_id: "5"
  reward: []
- pool_id: "32767"
  reward: []
total_rewards:
- amount: "375020"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "343817"
  denom: ueden
$ 
$ 
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc
rewards:
- amount: "81339.094217000000000000"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "168705.890489000000000000"
  denom: ueden
- amount: "1476090.574390000000000000"
  denom: uedenb
$ 
$ 
$ 
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc
rewards:
- amount: "81339.094217000000000000"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "185576.479538000000000000"
  denom: ueden
- amount: "1623699.631829000000000000"
  denom: uedenb
$ elysd tx distribution withdraw-rewards elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc --from=validator --gas=1000000 --fees=
1000000uelys -y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 4DA5D48042F51E7707E15D7956C5E7C26C4268A517515C8EA1585E3F10DA5B31
$ elysd q tx 4DA5D48042F51E7707E15D7956C5E7C26C4268A517515C8EA1585E3F10DA5B31
[...]
raw_log: '[{"msg_index":0,"events":[{"type":"message","attributes":[{"key":"action","value":"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"module","value":"distribution"}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"elys1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lamya"},{"key":"amount","value":"81339ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65"}]},{"type":"coin_received","attributes":[{"key":"receiver","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"amount","value":"81339ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"sender","value":"elys1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lamya"},{"key":"amount","value":"81339ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65"}]},{"type":"message","attributes":[{"key":"sender","value":"elys1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lamya"}]},{"type":"withdraw_rewards","attributes":[{"key":"amount","value":"81339ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65,438635ueden,3837835uedenb"},{"key":"validator","value":"elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc"},{"key":"delegator","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"}]}]}]'
[...]
txhash: 4DA5D48042F51E7707E15D7956C5E7C26C4268A517515C8EA1585E3F10DA5B31
$ 
$ 
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper16e9j5rwts6u7ss0te7s8zlzt92932sdkdszdgc
rewards:
- amount: "81339.094217000000000000"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "33741.178097000000000000"
  denom: ueden
- amount: "295218.114878000000000000"
  denom: uedenb
$ elysd query commitment show-commitments elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
commitments:
  claimed:
  - amount: "438635"
    denom: ueden
  - amount: "3837835"
    denom: uedenb
  committed_tokens:
  - amount: "179437737510485068935301"
    denom: amm/pool/2
    lockups:
    - amount: "17932003790414806"
      unlock_timestamp: "1714138669"
    - amount: "358875439156962557040990"
      unlock_timestamp: "1714140442"
  creator: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
  vesting_tokens: []
$ elysd tx commitment commit-claimed-rewards 438635 ueden --from=validator -y --gas=1000000 --fees=1000000uelys
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: A130FF2F7B95BCF14C320F239401FCED3E86D384E7EE081A0F67683CE841B206
$ elysd q tx A130FF2F7B95BCF14C320F239401FCED3E86D384E7EE081A0F67683CE841B206
[...]
raw_log: '[{"msg_index":0,"events":[{"type":"message","attributes":[{"key":"action","value":"/elys.commitment.MsgCommitClaimedRewards"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"module","value":"commitment"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0"},{"key":"token_amount","value":"0"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"token_amount","value":"438635"},{"key":"token_denom","value":"ueden"}]}]}]'
[...]
txhash: A130FF2F7B95BCF14C320F239401FCED3E86D384E7EE081A0F67683CE841B206
$ elysd query commitment show-commitments elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0                          
commitments:
  claimed:
  - amount: "3837835"
    denom: uedenb
  committed_tokens:
  - amount: "179437737510485068935301"
    denom: amm/pool/2
    lockups:
    - amount: "17932003790414806"
      unlock_timestamp: "1714138669"
    - amount: "358875439156962557040990"
      unlock_timestamp: "1714140442"
  - amount: "438635"
    denom: ueden
    lockups:
    - amount: "438635"
      unlock_timestamp: "1714137284"
  creator: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
  vesting_tokens: []
$ 
$ 
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0
rewards:
- amount: "0.037555971888002100"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "0.124632097105862400"
  denom: ueden
- amount: "1.090467340948087620"
  denom: uedenb
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0
rewards:
- amount: "0.037555971888002100"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "0.140211109244095200"
  denom: ueden
- amount: "1.226775758566379255"
  denom: uedenb
$ elysd tx commitment commit-claimed-rewards 438635 ueden --from=validator -y --gas=1000000 --fees=1000000uelys               
$ 
$ elysd query commitment show-commitments elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0                                            
commitments:
  claimed:
  - amount: "3837835"
    denom: uedenb
  committed_tokens:
  - amount: "179437737510485068935301"
    denom: amm/pool/2
    lockups:
    - amount: "17932003790414806"
      unlock_timestamp: "1714138669"
    - amount: "358875439156962557040990"
      unlock_timestamp: "1714140442"
  - amount: "438635"
    denom: ueden
    lockups:
    - amount: "438635"
      unlock_timestamp: "1714137284"
  creator: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
  vesting_tokens: []
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0
$ 
$ elysd tx commitment commit-claimed-rewards 3837835 uedenb --from=validator -y --gas=1000000 --fees=1000000uelys
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 3C307CDED64E553B667EC7EF22B382785535995EDBBC6F825EDEFBD9ADA27BC9
$ elysd q tx 3C307CDED64E553B667EC7EF22B382785535995EDBBC6F825EDEFBD9ADA27BC9
[...]
raw_log: '[{"msg_index":0,"events":[{"type":"message","attributes":[{"key":"action","value":"/elys.commitment.MsgCommitClaimedRewards"},{"key":"sender","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"module","value":"commitment"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elysvaloper1wajd6ekh9u37hyghyw4mme59qmjllzuyaceanm"},{"key":"token_amount","value":"0"}]},{"type":"commitment_changed","attributes":[{"key":"creator","value":"elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0"},{"key":"token_amount","value":"3837835"},{"key":"token_denom","value":"uedenb"}]}]}]'
[...]
txhash: 3C307CDED64E553B667EC7EF22B382785535995EDBBC6F825EDEFBD9ADA27BC9
$ 
$ 
$ elysd query commitment show-commitments elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
commitments:
  claimed: []
  committed_tokens:
  - amount: "179437737510485068935301"
    denom: amm/pool/2
    lockups:
    - amount: "17932003790414806"
      unlock_timestamp: "1714138669"
    - amount: "358875439156962557040990"
      unlock_timestamp: "1714140442"
  - amount: "438635"
    denom: ueden
    lockups:
    - amount: "438635"
      unlock_timestamp: "1714137284"
  - amount: "3837835"
    denom: uedenb
    lockups:
    - amount: "3837835"
      unlock_timestamp: "1714137435"
  creator: elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0
  vesting_tokens: []
$ 
$ 
$ elysd query distribution rewards elys1pszy7cq5xhx6dvu082nvyjjd2q6mln9n3k5ly0 elysvaloper1wajd6ekh9u37hyghyw4mme59qmjllzuyaceanm
rewards:
- amount: "0.328595786552224835"
  denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
- amount: "0.477079708355586320"
  denom: ueden
- amount: "4.174204844307311110"
  denom: uedenb

@cosmic-vagabond cosmic-vagabond merged commit a4aecf0 into main Apr 26, 2024
1 of 2 checks passed
@cosmic-vagabond cosmic-vagabond deleted the estaking_impl branch April 26, 2024 13:30
@Wgil
Copy link
Contributor

Wgil commented Apr 26, 2024

Awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants