From 0980942dc0299574bbffe46316dffd70e8ae4e1b Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Sat, 22 Feb 2025 12:46:27 +0100 Subject: [PATCH 1/2] use birdFeed --- app/app.go | 6 +++++- app/app.yaml | 5 ++++- go.mod | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 9a39f6c..39f84d4 100644 --- a/app/app.go +++ b/app/app.go @@ -13,6 +13,7 @@ import ( "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" + birdFeedkeeper "github.com/bitcolibri/birdFeed/keeper" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -31,7 +32,8 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects + _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects + _ "github.com/bitcolibri/birdFeed/module" _ "github.com/cosmos/cosmos-sdk/x/auth" // import for side-effects _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects @@ -68,6 +70,7 @@ type MiniApp struct { StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper + BirdFeedKeeper birdFeedkeeper.Keeper // simulation manager sm *module.SimulationManager @@ -127,6 +130,7 @@ func NewMiniApp( &app.StakingKeeper, &app.DistrKeeper, &app.ConsensusParamsKeeper, + &app.BirdFeedKeeper, ); err != nil { return nil, err } diff --git a/app/app.yaml b/app/app.yaml index 120baba..56e42f5 100644 --- a/app/app.yaml +++ b/app/app.yaml @@ -10,7 +10,7 @@ modules: end_blockers: [staking] # NOTE: The genutils module must occur after staking so that pools are properly initialized with tokens from genesis accounts. # NOTE: The genutils module must also occur after auth so that it can access the params from auth. - init_genesis: [auth, bank, distribution, staking, genutil] + init_genesis: [auth, bank, distribution, staking, genutil, birdFeed] override_store_keys: - module_name: auth kv_store_key: acc @@ -45,3 +45,6 @@ modules: - name: tx config: "@type": cosmos.tx.config.v1.Config + - name: birdFeed + config: + "@type": bitcolibri.birdFeed.module.v1.Module \ No newline at end of file diff --git a/go.mod b/go.mod index 721c78d..077aa08 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,11 @@ module github.com/cosmosregistry/chain-minimal -go 1.21 +go 1.23.2 -toolchain go1.21.0 +toolchain go1.23.6 replace ( + github.com/bitcolibri/birdFeed => ../birdFeed // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 @@ -22,6 +23,7 @@ require ( cosmossdk.io/math v1.2.0 cosmossdk.io/store v1.0.0 cosmossdk.io/tools/confix v0.1.0 + github.com/bitcolibri/birdFeed v0.0.0-00010101000000-000000000000 github.com/cometbft/cometbft v0.38.0 github.com/cosmos/cosmos-db v1.0.0 github.com/cosmos/cosmos-sdk v0.50.1 From 2f6ddfbd60df5c6c7695f1e6a89a6cf29dd2af20 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Sat, 22 Feb 2025 20:21:57 +0100 Subject: [PATCH 2/2] birdFeed 0.0.1 --- go.mod | 3 +-- go.sum | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 4fd2b56..8772d84 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.23.2 toolchain go1.23.6 replace ( - github.com/bitcolibri/birdFeed => ../birdFeed // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 @@ -23,7 +22,7 @@ require ( cosmossdk.io/math v1.5.0 cosmossdk.io/store v1.1.1 cosmossdk.io/tools/confix v0.1.2 - github.com/bitcolibri/birdFeed v0.0.0-00010101000000-000000000000 + github.com/bitcolibri/birdFeed v0.0.1 github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.1.1 github.com/cosmos/cosmos-sdk v0.50.12 diff --git a/go.sum b/go.sum index 5096527..bc2e66d 100644 --- a/go.sum +++ b/go.sum @@ -72,6 +72,7 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bitcolibri/birdFeed v0.0.1/go.mod h1:C1KqlFixiGKxHwbrJ5zsgbBX+mWSyr8auuN6IEcmkSk= github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ=