From bbeaf8c0e9a55f6b4373df35d8ef2a00416dba12 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 14:38:43 +0100 Subject: [PATCH 01/50] using collections for privileged addresses --- internal/collcompat/collcompat.go | 110 ++++++++++++++++++++++++++++++ x/cron/keeper/keeper.go | 32 +++++++-- x/cron/keeper/privileged.go | 17 +++-- 3 files changed, 146 insertions(+), 13 deletions(-) create mode 100644 internal/collcompat/collcompat.go diff --git a/internal/collcompat/collcompat.go b/internal/collcompat/collcompat.go new file mode 100644 index 000000000..3fe296f5b --- /dev/null +++ b/internal/collcompat/collcompat.go @@ -0,0 +1,110 @@ +package collcompat + +import ( + "context" + + "cosmossdk.io/core/store" + storetypes "cosmossdk.io/store/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func NewKVStoreService(storeKey storetypes.StoreKey) store.KVStoreService { + return &kvStoreService{key: storeKey} +} + +type kvStoreService struct { + key storetypes.StoreKey +} + +func (k kvStoreService) OpenKVStore(ctx context.Context) store.KVStore { + return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(k.key)) +} + +// CoreKVStore is a wrapper of Core/Store kvstore interface +// Remove after https://github.com/cosmos/cosmos-sdk/issues/14714 is closed +type coreKVStore struct { + kvStore storetypes.KVStore +} + +// NewKVStore returns a wrapper of Core/Store kvstore interface +// Remove once store migrates to core/store kvstore interface +func newKVStore(store storetypes.KVStore) store.KVStore { + return coreKVStore{kvStore: store} +} + +// Get returns nil iff key doesn't exist. Errors on nil key. +func (store coreKVStore) Get(key []byte) ([]byte, error) { + return store.kvStore.Get(key), nil +} + +// Has checks if a key exists. Errors on nil key. +func (store coreKVStore) Has(key []byte) (bool, error) { + return store.kvStore.Has(key), nil +} + +// Set sets the key. Errors on nil key or value. +func (store coreKVStore) Set(key, value []byte) error { + store.kvStore.Set(key, value) + return nil +} + +// Delete deletes the key. Errors on nil key. +func (store coreKVStore) Delete(key []byte) error { + store.kvStore.Delete(key) + return nil +} + +// Iterator iterates over a domain of keys in ascending order. End is exclusive. +// Start must be less than end, or the Iterator is invalid. +// Iterator must be closed by caller. +// To iterate over entire domain, use store.Iterator(nil, nil) +// CONTRACT: No writes may happen within a domain while an iterator exists over it. +// Exceptionally allowed for cachekv.Store, safe to write in the modules. +func (store coreKVStore) Iterator(start, end []byte) (store.Iterator, error) { + return store.kvStore.Iterator(start, end), nil +} +func (store coreKVStore) ReverseIterator(start, end []byte) (store.Iterator, error) { + return store.kvStore.ReverseIterator(start, end), nil +} + +// type protoMessage[T any] interface { +// *T +// codec.ProtoMarshaler +// } + +// // ProtoValue inits a collections.ValueCodec for a generic gogo protobuf message. +// func ProtoValue[T any, PT protoMessage[T]](cdc codec.BinaryCodec) collcodec.ValueCodec[T] { +// return &collValue[T, PT]{cdc.(codec.Codec), proto.MessageName(PT(new(T)))} +// } + +// type collValue[T any, PT protoMessage[T]] struct { +// cdc codec.Codec +// messageName string +// } + +// func (c collValue[T, PT]) Encode(value T) ([]byte, error) { +// return c.cdc.Marshal(PT(&value)) +// } + +// func (c collValue[T, PT]) Decode(b []byte) (value T, err error) { +// err = c.cdc.Unmarshal(b, PT(&value)) +// return value, err +// } + +// func (c collValue[T, PT]) EncodeJSON(value T) ([]byte, error) { +// return c.cdc.MarshalJSON(PT(&value)) +// } + +// func (c collValue[T, PT]) DecodeJSON(b []byte) (value T, err error) { +// err = c.cdc.UnmarshalJSON(b, PT(&value)) +// return +// } + +// func (c collValue[T, PT]) Stringify(value T) string { +// return PT(&value).String() +// } + +// func (c collValue[T, PT]) ValueType() string { +// return "github.com/cosmos/gogoproto/" + c.messageName +// } diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 65312de60..ec3c5dd50 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -3,22 +3,26 @@ package keeper import ( "fmt" + "cosmossdk.io/collections" "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/public-awesome/stargaze/v14/internal/collcompat" "github.com/public-awesome/stargaze/v14/x/cron/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace - wasmKeeper types.WasmKeeper - authority string // this should be the x/gov module account + cdc codec.BinaryCodec + storeKey storetypes.StoreKey + memKey storetypes.StoreKey + paramstore paramtypes.Subspace + wasmKeeper types.WasmKeeper + Schema collections.Schema + PrivilegedContracts collections.Map[[]byte, []byte] + authority string // this should be the x/gov module account } ) @@ -30,18 +34,32 @@ func NewKeeper( wk types.WasmKeeper, authority string, ) Keeper { + sb := collections.NewSchemaBuilder(collcompat.NewKVStoreService(storeKey)) // set KeyTable if it has not already been set if !ps.HasKeyTable() { ps = ps.WithKeyTable(types.ParamKeyTable()) } - return Keeper{ + keeper := Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, paramstore: ps, wasmKeeper: wk, authority: authority, + PrivilegedContracts: collections.NewMap( + sb, + types.PrivilegedContractsPrefix, + "privilegedContracts", + collections.BytesKey, + collections.BytesValue, + ), } + schema, err := sb.Build() + if err != nil { + panic(err) + } + keeper.Schema = schema + return keeper } // GetAuthority returns the x/wasm module's authority. diff --git a/x/cron/keeper/privileged.go b/x/cron/keeper/privileged.go index a9dd1ec67..046f7721c 100644 --- a/x/cron/keeper/privileged.go +++ b/x/cron/keeper/privileged.go @@ -12,8 +12,9 @@ import ( func (k Keeper) SetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) error { if k.wasmKeeper.HasContractInfo(ctx, contractAddr) { if !k.IsPrivileged(ctx, contractAddr) { - store := ctx.KVStore(k.storeKey) - store.Set(types.PrivilegedContractsKey(contractAddr), []byte{1}) + if err := k.PrivilegedContracts.Set(ctx, contractAddr.Bytes(), []byte{1}); err != nil { + return err + } } event := sdk.NewEvent( types.EventTypeSetContractPriviledge, @@ -30,8 +31,9 @@ func (k Keeper) SetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) erro func (k Keeper) UnsetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) error { if k.wasmKeeper.HasContractInfo(ctx, contractAddr) { if k.IsPrivileged(ctx, contractAddr) { - store := ctx.KVStore(k.storeKey) - store.Delete(types.PrivilegedContractsKey(contractAddr)) + if err := k.PrivilegedContracts.Remove(ctx, contractAddr.Bytes()); err != nil { + return err + } event := sdk.NewEvent( types.EventTypeUnsetContractPriviledge, @@ -49,8 +51,11 @@ func (k Keeper) UnsetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) er // IsPrivileged returns if the given contract is part of the privilege contract list func (k Keeper) IsPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) bool { - store := ctx.KVStore(k.storeKey) - return store.Has(types.PrivilegedContractsKey(contractAddr)) + has, err := k.PrivilegedContracts.Has(ctx, contractAddr.Bytes()) + if err != nil { + return false + } + return has } // IteratePrivileged executes the given func on all the privilege contracts From e0ad8372c8d831c8b62bb5c06c3da5e39cfb3938 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 14:52:25 +0100 Subject: [PATCH 02/50] using collections for params --- internal/collcompat/collcompat.go | 67 ++++++++++++++++--------------- x/cron/genesis.go | 6 ++- x/cron/keeper/grpc_query.go | 24 ++++++++--- x/cron/keeper/keeper.go | 7 ++++ x/cron/keeper/params.go | 25 ++++-------- x/cron/module.go | 2 +- 6 files changed, 74 insertions(+), 57 deletions(-) diff --git a/internal/collcompat/collcompat.go b/internal/collcompat/collcompat.go index 3fe296f5b..a943c85fa 100644 --- a/internal/collcompat/collcompat.go +++ b/internal/collcompat/collcompat.go @@ -3,8 +3,11 @@ package collcompat import ( "context" + collcodec "cosmossdk.io/collections/codec" "cosmossdk.io/core/store" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/codec" + "github.com/gogo/protobuf/proto" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -68,43 +71,43 @@ func (store coreKVStore) ReverseIterator(start, end []byte) (store.Iterator, err return store.kvStore.ReverseIterator(start, end), nil } -// type protoMessage[T any] interface { -// *T -// codec.ProtoMarshaler -// } +type protoMessage[T any] interface { + *T + codec.ProtoMarshaler +} -// // ProtoValue inits a collections.ValueCodec for a generic gogo protobuf message. -// func ProtoValue[T any, PT protoMessage[T]](cdc codec.BinaryCodec) collcodec.ValueCodec[T] { -// return &collValue[T, PT]{cdc.(codec.Codec), proto.MessageName(PT(new(T)))} -// } +// ProtoValue inits a collections.ValueCodec for a generic gogo protobuf message. +func ProtoValue[T any, PT protoMessage[T]](cdc codec.BinaryCodec) collcodec.ValueCodec[T] { + return &collValue[T, PT]{cdc.(codec.Codec), proto.MessageName(PT(new(T)))} +} -// type collValue[T any, PT protoMessage[T]] struct { -// cdc codec.Codec -// messageName string -// } +type collValue[T any, PT protoMessage[T]] struct { + cdc codec.Codec + messageName string +} -// func (c collValue[T, PT]) Encode(value T) ([]byte, error) { -// return c.cdc.Marshal(PT(&value)) -// } +func (c collValue[T, PT]) Encode(value T) ([]byte, error) { + return c.cdc.Marshal(PT(&value)) +} -// func (c collValue[T, PT]) Decode(b []byte) (value T, err error) { -// err = c.cdc.Unmarshal(b, PT(&value)) -// return value, err -// } +func (c collValue[T, PT]) Decode(b []byte) (value T, err error) { + err = c.cdc.Unmarshal(b, PT(&value)) + return value, err +} -// func (c collValue[T, PT]) EncodeJSON(value T) ([]byte, error) { -// return c.cdc.MarshalJSON(PT(&value)) -// } +func (c collValue[T, PT]) EncodeJSON(value T) ([]byte, error) { + return c.cdc.MarshalJSON(PT(&value)) +} -// func (c collValue[T, PT]) DecodeJSON(b []byte) (value T, err error) { -// err = c.cdc.UnmarshalJSON(b, PT(&value)) -// return -// } +func (c collValue[T, PT]) DecodeJSON(b []byte) (value T, err error) { + err = c.cdc.UnmarshalJSON(b, PT(&value)) + return +} -// func (c collValue[T, PT]) Stringify(value T) string { -// return PT(&value).String() -// } +func (c collValue[T, PT]) Stringify(value T) string { + return PT(&value).String() +} -// func (c collValue[T, PT]) ValueType() string { -// return "github.com/cosmos/gogoproto/" + c.messageName -// } +func (c collValue[T, PT]) ValueType() string { + return "github.com/cosmos/gogoproto/" + c.messageName +} diff --git a/x/cron/genesis.go b/x/cron/genesis.go index 4d1b39753..4640061c8 100644 --- a/x/cron/genesis.go +++ b/x/cron/genesis.go @@ -28,7 +28,11 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) // ExportGenesis returns the module's exported genesis func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() - genesis.Params = k.GetParams(ctx) + params, err := k.GetParams(ctx) + if err != nil { + panic(err) + } + genesis.Params = params k.IteratePrivileged(ctx, func(addr sdk.AccAddress) bool { genesis.PrivilegedContractAddresses = append(genesis.PrivilegedContractAddresses, addr.String()) diff --git a/x/cron/keeper/grpc_query.go b/x/cron/keeper/grpc_query.go index f19b20edd..32dfafc10 100644 --- a/x/cron/keeper/grpc_query.go +++ b/x/cron/keeper/grpc_query.go @@ -11,17 +11,29 @@ import ( "github.com/public-awesome/stargaze/v14/x/cron/types" ) -var _ types.QueryServer = Keeper{} +var _ types.QueryServer = &QueryServer{} + +// QueryServer implements the module gRPC query service. +type QueryServer struct { + keeper Keeper +} + +// NewQueryServer creates a new gRPC query server. +func NewQueryServer(keeper Keeper) *QueryServer { + return &QueryServer{ + keeper: keeper, + } +} // ListPrivileged lists the addresses of all the contracts which have been promoted to privilege status -func (k Keeper) ListPrivileged(c context.Context, req *types.QueryListPrivilegedRequest) (*types.QueryListPrivilegedResponse, error) { +func (q QueryServer) ListPrivileged(c context.Context, req *types.QueryListPrivilegedRequest) (*types.QueryListPrivilegedResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(c) var result types.QueryListPrivilegedResponse - k.IteratePrivileged(ctx, func(addr sdk.AccAddress) bool { + q.keeper.IteratePrivileged(ctx, func(addr sdk.AccAddress) bool { result.ContractAddresses = append(result.ContractAddresses, addr.String()) return false }) @@ -30,14 +42,14 @@ func (k Keeper) ListPrivileged(c context.Context, req *types.QueryListPrivileged } // Params fetches all the params of x/cron module -func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (q QueryServer) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(c) - params := k.GetParams(ctx) + params, err := q.keeper.GetParams(ctx) return &types.QueryParamsResponse{ Params: params, - }, nil + }, err } diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index ec3c5dd50..09fa71e84 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -21,6 +21,7 @@ type ( paramstore paramtypes.Subspace wasmKeeper types.WasmKeeper Schema collections.Schema + Params collections.Item[types.Params] PrivilegedContracts collections.Map[[]byte, []byte] authority string // this should be the x/gov module account } @@ -46,6 +47,12 @@ func NewKeeper( paramstore: ps, wasmKeeper: wk, authority: authority, + Params: collections.NewItem( + sb, + types.ParamsKey, + "params", + collcompat.ProtoValue[types.Params](cdc), + ), PrivilegedContracts: collections.NewMap( sb, types.PrivilegedContractsPrefix, diff --git a/x/cron/keeper/params.go b/x/cron/keeper/params.go index 1ae273bb5..62e52d3dc 100644 --- a/x/cron/keeper/params.go +++ b/x/cron/keeper/params.go @@ -7,29 +7,20 @@ import ( // SetParams sets the total set of minting parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - return nil + return k.Params.Set(ctx, params) } // GetParams returns the total set of minting parameters. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params, err error) { + return k.Params.Get(ctx) } func (k Keeper) IsAdminAddress(ctx sdk.Context, address string) bool { - privilegedAddresses := k.GetParams(ctx).AdminAddresses + params, err := k.GetParams(ctx) + if err != nil { + return false + } + privilegedAddresses := params.AdminAddresses for _, paddr := range privilegedAddresses { if address == paddr { return true diff --git a/x/cron/module.go b/x/cron/module.go index d3ea4b288..3f87075b9 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -116,7 +116,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } From e727ae2032865fe9ffef305c1ff83d20a6acb17d Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 15:00:34 +0100 Subject: [PATCH 03/50] updating IteratePrivileged --- x/cron/keeper/privileged.go | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/x/cron/keeper/privileged.go b/x/cron/keeper/privileged.go index 046f7721c..61b4c48f7 100644 --- a/x/cron/keeper/privileged.go +++ b/x/cron/keeper/privileged.go @@ -1,7 +1,6 @@ package keeper import ( - "cosmossdk.io/store/prefix" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -59,13 +58,19 @@ func (k Keeper) IsPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) bool } // IteratePrivileged executes the given func on all the privilege contracts -func (k Keeper) IteratePrivileged(ctx sdk.Context, cb func(sdk.AccAddress) bool) { - prefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), types.PrivilegedContractsPrefix) - iter := prefixStore.Iterator(nil, nil) - defer iter.Close() - for ; iter.Valid(); iter.Next() { - // cb returns true to stop early - if cb(iter.Key()) { +func (k Keeper) IteratePrivileged(ctx sdk.Context, doSomething func(sdk.AccAddress) bool) { + iterator, err := k.PrivilegedContracts.Iterate(ctx, nil) + if err != nil { + panic(err) + } + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + key, err := iterator.Key() + if err != nil { + panic(err) + } + contractAddr := sdk.AccAddress(key) + if doSomething(contractAddr) { return } } From 5c8c6d9aff521691693825c4b8725ddb3dce95e4 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 15:21:07 +0100 Subject: [PATCH 04/50] cleanup keeper.go --- app/app.go | 5 +-- internal/collcompat/collcompat.go | 67 +------------------------------ testutil/keeper/cron.go | 10 +---- x/cron/keeper/keeper.go | 27 ++++--------- 4 files changed, 12 insertions(+), 97 deletions(-) diff --git a/app/app.go b/app/app.go index 64a88b379..a248f1df7 100644 --- a/app/app.go +++ b/app/app.go @@ -702,9 +702,7 @@ func NewStargazeApp( app.Keepers.CronKeeper = cronmodulekeeper.NewKeeper( appCodec, - keys[cronmoduletypes.StoreKey], - keys[cronmoduletypes.MemStoreKey], - app.GetSubspace(cronmoduletypes.ModuleName), + runtime.NewKVStoreService(keys[cronmoduletypes.StoreKey]), app.Keepers.WasmKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String()) cronModule := cronmodule.NewAppModule(appCodec, app.Keepers.CronKeeper, app.Keepers.WasmKeeper) @@ -1195,7 +1193,6 @@ func initParamsKeeper( paramsKeeper.Subspace(allocmoduletypes.ModuleName) paramsKeeper.Subspace(tokenfactorytypes.ModuleName) paramsKeeper.Subspace(wasmtypes.ModuleName) - paramsKeeper.Subspace(cronmoduletypes.ModuleName) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) paramsKeeper.Subspace(globalfeemoduletypes.ModuleName) diff --git a/internal/collcompat/collcompat.go b/internal/collcompat/collcompat.go index a943c85fa..02a137cb1 100644 --- a/internal/collcompat/collcompat.go +++ b/internal/collcompat/collcompat.go @@ -1,79 +1,14 @@ package collcompat import ( - "context" - collcodec "cosmossdk.io/collections/codec" - "cosmossdk.io/core/store" - storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/gogo/protobuf/proto" - - sdk "github.com/cosmos/cosmos-sdk/types" ) -func NewKVStoreService(storeKey storetypes.StoreKey) store.KVStoreService { - return &kvStoreService{key: storeKey} -} - -type kvStoreService struct { - key storetypes.StoreKey -} - -func (k kvStoreService) OpenKVStore(ctx context.Context) store.KVStore { - return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(k.key)) -} - -// CoreKVStore is a wrapper of Core/Store kvstore interface -// Remove after https://github.com/cosmos/cosmos-sdk/issues/14714 is closed -type coreKVStore struct { - kvStore storetypes.KVStore -} - -// NewKVStore returns a wrapper of Core/Store kvstore interface -// Remove once store migrates to core/store kvstore interface -func newKVStore(store storetypes.KVStore) store.KVStore { - return coreKVStore{kvStore: store} -} - -// Get returns nil iff key doesn't exist. Errors on nil key. -func (store coreKVStore) Get(key []byte) ([]byte, error) { - return store.kvStore.Get(key), nil -} - -// Has checks if a key exists. Errors on nil key. -func (store coreKVStore) Has(key []byte) (bool, error) { - return store.kvStore.Has(key), nil -} - -// Set sets the key. Errors on nil key or value. -func (store coreKVStore) Set(key, value []byte) error { - store.kvStore.Set(key, value) - return nil -} - -// Delete deletes the key. Errors on nil key. -func (store coreKVStore) Delete(key []byte) error { - store.kvStore.Delete(key) - return nil -} - -// Iterator iterates over a domain of keys in ascending order. End is exclusive. -// Start must be less than end, or the Iterator is invalid. -// Iterator must be closed by caller. -// To iterate over entire domain, use store.Iterator(nil, nil) -// CONTRACT: No writes may happen within a domain while an iterator exists over it. -// Exceptionally allowed for cachekv.Store, safe to write in the modules. -func (store coreKVStore) Iterator(start, end []byte) (store.Iterator, error) { - return store.kvStore.Iterator(start, end), nil -} -func (store coreKVStore) ReverseIterator(start, end []byte) (store.Iterator, error) { - return store.kvStore.ReverseIterator(start, end), nil -} - type protoMessage[T any] interface { *T - codec.ProtoMarshaler + proto.Message } // ProtoValue inits a collections.ValueCodec for a generic gogo protobuf message. diff --git a/testutil/keeper/cron.go b/testutil/keeper/cron.go index ae6ed9907..c1e849221 100644 --- a/testutil/keeper/cron.go +++ b/testutil/keeper/cron.go @@ -14,8 +14,8 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" "github.com/public-awesome/stargaze/v14/x/cron/keeper" "github.com/public-awesome/stargaze/v14/x/cron/types" "github.com/stretchr/testify/require" @@ -38,10 +38,6 @@ func CronKeeper(tb testing.TB) (keeper.Keeper, sdk.Context) { registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsKeeper := paramskeeper.NewKeeper(cdc, types.Amino, storeKey, tStoreKey) - paramsKeeper.Subspace(types.ModuleName).WithKeyTable(types.ParamKeyTable()) - subspace, _ := paramsKeeper.GetSubspace(types.ModuleName) - wk := MockWasmKeeper{ HasContractInfoFn: func(_ context.Context, contractAddr sdk.AccAddress) bool { switch contractAddr.String() { @@ -61,9 +57,7 @@ func CronKeeper(tb testing.TB) (keeper.Keeper, sdk.Context) { k := keeper.NewKeeper( cdc, - storeKey, - memStoreKey, - subspace, + runtime.NewKVStoreService(storeKey), wk, "cosmos1a48wdtjn3egw7swhfkeshwdtjvs6hq9nlyrwut", // random addr for gov module ) diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 09fa71e84..69f7181a2 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -4,11 +4,10 @@ import ( "fmt" "cosmossdk.io/collections" + corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" - storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/public-awesome/stargaze/v14/internal/collcompat" "github.com/public-awesome/stargaze/v14/x/cron/types" ) @@ -16,9 +15,7 @@ import ( type ( Keeper struct { cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace + storeService corestoretypes.KVStoreService wasmKeeper types.WasmKeeper Schema collections.Schema Params collections.Item[types.Params] @@ -29,24 +26,16 @@ type ( func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - ps paramtypes.Subspace, + storeService corestoretypes.KVStoreService, wk types.WasmKeeper, authority string, ) Keeper { - sb := collections.NewSchemaBuilder(collcompat.NewKVStoreService(storeKey)) - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } + sb := collections.NewSchemaBuilder(storeService) keeper := Keeper{ - cdc: cdc, - storeKey: storeKey, - memKey: memKey, - paramstore: ps, - wasmKeeper: wk, - authority: authority, + cdc: cdc, + storeService: storeService, + wasmKeeper: wk, + authority: authority, Params: collections.NewItem( sb, types.ParamsKey, From 7249b76019b1895fd2e83665e8de538304c07f20 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 16:21:46 +0100 Subject: [PATCH 05/50] migrate params to use collections --- app/app.go | 8 ++--- x/alloc/genesis.go | 6 +++- x/alloc/keeper/grpc_query.go | 20 ++++++++--- x/alloc/keeper/keeper.go | 63 ++++++++++++++++++++--------------- x/alloc/keeper/keeper_test.go | 18 ++++++---- x/alloc/keeper/migrations.go | 6 ++-- x/alloc/keeper/params.go | 19 ++--------- x/alloc/module.go | 2 +- x/alloc/types/keys.go | 3 -- 9 files changed, 78 insertions(+), 67 deletions(-) diff --git a/app/app.go b/app/app.go index a248f1df7..843a38c03 100644 --- a/app/app.go +++ b/app/app.go @@ -734,16 +734,13 @@ func NewStargazeApp( app.Keepers.GovKeeper = *govKeeper.SetHooks(govtypes.NewMultiGovHooks()) - app.Keepers.AllocKeeper = *allocmodulekeeper.NewKeeper( + app.Keepers.AllocKeeper = allocmodulekeeper.NewKeeper( appCodec, - keys[allocmoduletypes.StoreKey], - keys[allocmoduletypes.MemStoreKey], - + runtime.NewKVStoreService(keys[allocmoduletypes.StoreKey]), app.Keepers.AccountKeeper, app.Keepers.BankKeeper, app.Keepers.StakingKeeper, app.Keepers.DistrKeeper, - app.GetSubspace(allocmoduletypes.ModuleName), authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) allocModule := allocmodule.NewAppModule(appCodec, app.Keepers.AllocKeeper) @@ -1190,7 +1187,6 @@ func initParamsKeeper( paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) paramsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable) - paramsKeeper.Subspace(allocmoduletypes.ModuleName) paramsKeeper.Subspace(tokenfactorytypes.ModuleName) paramsKeeper.Subspace(wasmtypes.ModuleName) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) diff --git a/x/alloc/genesis.go b/x/alloc/genesis.go index 3d8c1d3a5..f15db497e 100644 --- a/x/alloc/genesis.go +++ b/x/alloc/genesis.go @@ -22,7 +22,11 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) // ExportGenesis returns the alloc module's exported genesis. func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { + params, err := k.GetParams(ctx) + if err != nil { + panic(err) + } return &types.GenesisState{ - Params: k.GetParams(ctx), + Params: params, } } diff --git a/x/alloc/keeper/grpc_query.go b/x/alloc/keeper/grpc_query.go index 1cfdf31a2..0cfd330cc 100644 --- a/x/alloc/keeper/grpc_query.go +++ b/x/alloc/keeper/grpc_query.go @@ -7,12 +7,24 @@ import ( "github.com/public-awesome/stargaze/v14/x/alloc/types" ) -var _ types.QueryServer = Keeper{} +var _ types.QueryServer = &QueryServer{} + +// QueryServer implements the module gRPC query service. +type QueryServer struct { + keeper Keeper +} + +// NewQueryServer creates a new gRPC query server. +func NewQueryServer(keeper Keeper) *QueryServer { + return &QueryServer{ + keeper: keeper, + } +} // Params returns params of the alloc module. -func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { ctx := sdk.UnwrapSDKContext(c) - params := k.GetParams(ctx) + params, err := q.keeper.GetParams(ctx) - return &types.QueryParamsResponse{Params: params}, nil + return &types.QueryParamsResponse{Params: params}, err } diff --git a/x/alloc/keeper/keeper.go b/x/alloc/keeper/keeper.go index 4f93274b5..fbb20be71 100644 --- a/x/alloc/keeper/keeper.go +++ b/x/alloc/keeper/keeper.go @@ -3,55 +3,63 @@ package keeper import ( "fmt" + "cosmossdk.io/collections" + corestoretypes "cosmossdk.io/core/store" log "cosmossdk.io/log" sdkmath "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/public-awesome/stargaze/v14/internal/collcompat" "github.com/public-awesome/stargaze/v14/x/alloc/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey + cdc codec.BinaryCodec + storeService corestoretypes.KVStoreService + Schema collections.Schema accountKeeper types.AccountKeeper bankKeeper types.BankKeeper stakingKeeper types.StakingKeeper distrKeeper types.DistrKeeper - paramstore paramtypes.Subspace - authority string + Params collections.Item[types.Params] + authority string } ) func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - - accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, distrKeeper types.DistrKeeper, - ps paramtypes.Subspace, + storeService corestoretypes.KVStoreService, + accountKeeper types.AccountKeeper, + bankKeeper types.BankKeeper, + stakingKeeper types.StakingKeeper, + distrKeeper types.DistrKeeper, authority string, -) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) +) Keeper { + sb := collections.NewSchemaBuilder(storeService) + keeper := Keeper{ + cdc: cdc, + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, + stakingKeeper: stakingKeeper, + distrKeeper: distrKeeper, + authority: authority, + Params: collections.NewItem( + sb, + types.ParamsKey, + "params", + collcompat.ProtoValue[types.Params](cdc), + ), } - - return &Keeper{ - cdc: cdc, - storeKey: storeKey, - memKey: memKey, - - accountKeeper: accountKeeper, bankKeeper: bankKeeper, stakingKeeper: stakingKeeper, distrKeeper: distrKeeper, - paramstore: ps, - authority: authority, + schema, err := sb.Build() + if err != nil { + panic(err) } + keeper.Schema = schema + return keeper } func (k Keeper) Logger(ctx sdk.Context) log.Logger { @@ -81,7 +89,10 @@ func (k Keeper) DistributeInflation(ctx sdk.Context) error { } // get allocation params to retrieve distribution proportions - params := k.GetParams(ctx) + params, err := k.GetParams(ctx) + if err != nil { + return err + } supplementPoolAddress := k.accountKeeper.GetModuleAccount(ctx, types.SupplementPoolName).GetAddress() supplementPoolBalance := k.bankKeeper.GetBalance(ctx, supplementPoolAddress, denom) diff --git a/x/alloc/keeper/keeper_test.go b/x/alloc/keeper/keeper_test.go index ee30b29db..c243313e8 100644 --- a/x/alloc/keeper/keeper_test.go +++ b/x/alloc/keeper/keeper_test.go @@ -58,11 +58,12 @@ func (suite *KeeperTestSuite) TestZeroAllocation() { allocKeeper := suite.app.Keepers.AllocKeeper - params := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + params, err := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + suite.Require().NoError(err) params.DistributionProportions.NftIncentives = math.LegacyZeroDec() - err := suite.app.Keepers.AllocKeeper.SetParams(suite.ctx, params) + err = suite.app.Keepers.AllocKeeper.SetParams(suite.ctx, params) suite.Require().NoError(err) err = allocKeeper.DistributeInflation(suite.ctx) @@ -81,7 +82,8 @@ func (suite *KeeperTestSuite) TestDistribution() { denom, err := suite.app.Keepers.StakingKeeper.BondDenom(suite.ctx) suite.Require().NoError(err) allocKeeper := suite.app.Keepers.AllocKeeper - params := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + params, err := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + suite.Require().NoError(err) devRewardsReceiver := sdk.AccAddress([]byte("addr1---------------")) nftIncentives := sdk.AccAddress([]byte("addr2---------------")) params.SupplementAmount = sdk.NewCoins(sdk.NewInt64Coin(denom, 10_000_000)) @@ -171,7 +173,8 @@ func (suite *KeeperTestSuite) TestFairburnPool() { denom, err := suite.app.Keepers.StakingKeeper.BondDenom(suite.ctx) suite.Require().NoError(err) allocKeeper := suite.app.Keepers.AllocKeeper - params := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + params, err := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + suite.Require().NoError(err) devRewardsReceiver := sdk.AccAddress([]byte("addr1---------------")) params.DistributionProportions.NftIncentives = math.LegacyNewDecWithPrec(45, 2) params.DistributionProportions.DeveloperRewards = math.LegacyNewDecWithPrec(15, 2) @@ -227,7 +230,8 @@ func (suite *KeeperTestSuite) TestDistributionWithSupplement() { denom, err := suite.app.Keepers.StakingKeeper.BondDenom(suite.ctx) suite.Require().NoError(err) allocKeeper := suite.app.Keepers.AllocKeeper - params := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + params, err := suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + suite.Require().NoError(err) devRewardsReceiver := sdk.AccAddress([]byte("addr1---------------")) nftIncentives := sdk.AccAddress([]byte("addr2---------------")) @@ -249,7 +253,9 @@ func (suite *KeeperTestSuite) TestDistributionWithSupplement() { } err = suite.app.Keepers.AllocKeeper.SetParams(suite.ctx, params) suite.Require().NoError(err) - suite.Require().False(suite.app.Keepers.AllocKeeper.GetParams(suite.ctx).SupplementAmount.IsZero()) + params, err = suite.app.Keepers.AllocKeeper.GetParams(suite.ctx) + suite.Require().NoError(err) + suite.Require().False(params.SupplementAmount.IsZero()) feePool, err := suite.app.Keepers.DistrKeeper.FeePool.Get(suite.ctx) suite.Require().NoError(err) diff --git a/x/alloc/keeper/migrations.go b/x/alloc/keeper/migrations.go index 93fdc4bff..abe87332a 100644 --- a/x/alloc/keeper/migrations.go +++ b/x/alloc/keeper/migrations.go @@ -2,8 +2,6 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - v3 "github.com/public-awesome/stargaze/v14/x/alloc/migrations/v3" - v4 "github.com/public-awesome/stargaze/v14/x/alloc/migrations/v4" ) // Migrator is a struct for handling in-place store migrations. @@ -25,7 +23,7 @@ func (m Migrator) Migrate1to2(_ sdk.Context) error { // Migrate2to3 migrates x/alloc state from consensus version 2 to 3. func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v3.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc, m.keeper.paramstore) + return nil //v3.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc, m.keeper.paramstore) } // Migrate3to4 migrates the x/alloc module state from the consensus @@ -33,5 +31,5 @@ func (m Migrator) Migrate2to3(ctx sdk.Context) error { // and managed by the x/params module and stores them directly into the x/alloc // module state. func (m Migrator) Migrate3to4(ctx sdk.Context) error { - return v4.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramstore, m.keeper.cdc) + return nil //v4.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramstore, m.keeper.cdc) } diff --git a/x/alloc/keeper/params.go b/x/alloc/keeper/params.go index 68d07b386..51da7c6a6 100644 --- a/x/alloc/keeper/params.go +++ b/x/alloc/keeper/params.go @@ -6,24 +6,11 @@ import ( ) // GetParams returns the total set of alloc module parameters. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params, err error) { + return k.Params.Get(ctx) } // SetParams sets the total set of alloc module parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - return nil + return k.Params.Set(ctx, params) } diff --git a/x/alloc/module.go b/x/alloc/module.go index b468e0538..8b520fa29 100644 --- a/x/alloc/module.go +++ b/x/alloc/module.go @@ -115,7 +115,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute } // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) m := keeper.NewMigrator(am.keeper) err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2) diff --git a/x/alloc/types/keys.go b/x/alloc/types/keys.go index c159f1fe5..f9acbe57a 100644 --- a/x/alloc/types/keys.go +++ b/x/alloc/types/keys.go @@ -17,9 +17,6 @@ const ( // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName - - // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_alloc" ) // ParamsKey stores the module params From 25c15c503bdec9e8b5e412654b022a5939e9a6a5 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 16:35:55 +0100 Subject: [PATCH 06/50] moving x/mint store to use collections api --- app/app.go | 10 ++-- x/mint/abci.go | 12 +++-- x/mint/genesis.go | 10 +++- x/mint/keeper/grpc_query.go | 26 +++++++--- x/mint/keeper/grpc_query_test.go | 10 ++-- x/mint/keeper/keeper.go | 81 ++++++++++++++------------------ x/mint/keeper/migrations.go | 3 +- x/mint/module.go | 2 +- 8 files changed, 87 insertions(+), 67 deletions(-) diff --git a/app/app.go b/app/app.go index 843a38c03..0323d8131 100644 --- a/app/app.go +++ b/app/app.go @@ -436,8 +436,13 @@ func NewStargazeApp( ) app.Keepers.MintKeeper = mintkeeper.NewKeeper( - appCodec, keys[minttypes.StoreKey], app.GetSubspace(minttypes.ModuleName), - app.Keepers.AccountKeeper, app.Keepers.BankKeeper, authtypes.FeeCollectorName, authtypes.NewModuleAddress(govtypes.ModuleName).String(), + appCodec, + runtime.NewKVStoreService(keys[minttypes.StoreKey]), + + app.Keepers.AccountKeeper, + app.Keepers.BankKeeper, + authtypes.FeeCollectorName, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.Keepers.DistrKeeper = distrkeeper.NewKeeper( appCodec, @@ -1180,7 +1185,6 @@ func initParamsKeeper( paramsKeeper.Subspace(authtypes.ModuleName) paramsKeeper.Subspace(banktypes.ModuleName) paramsKeeper.Subspace(stakingtypes.ModuleName) - paramsKeeper.Subspace(minttypes.ModuleName) paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(govtypes.ModuleName) diff --git a/x/mint/abci.go b/x/mint/abci.go index 74502d002..88acd0b40 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -14,8 +14,14 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker) // fetch stored minter & params - minter := k.GetMinter(ctx) - params := k.GetParams(ctx) + minter, err := k.GetMinter(ctx) + if err != nil { + panic(err) + } + params, err := k.GetParams(ctx) + if err != nil { + panic(err) + } // recalculate annual provision minter.AnnualProvisions = minter.NextAnnualProvisions(ctx.BlockTime(), params) @@ -25,7 +31,7 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { mintedCoin := minter.BlockProvision(params) mintedCoins := sdk.NewCoins(mintedCoin) - err := k.MintCoins(ctx, mintedCoins) + err = k.MintCoins(ctx, mintedCoins) if err != nil { panic(err) } diff --git a/x/mint/genesis.go b/x/mint/genesis.go index 39716f22a..fe201bc38 100644 --- a/x/mint/genesis.go +++ b/x/mint/genesis.go @@ -17,7 +17,13 @@ func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, ak types.AccountKeeper, // ExportGenesis returns a GenesisState for a given context and keeper. func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState { - minter := keeper.GetMinter(ctx) - params := keeper.GetParams(ctx) + minter, err := keeper.GetMinter(ctx) + if err != nil { + panic(err) + } + params, err := keeper.GetParams(ctx) + if err != nil { + panic(err) + } return types.NewGenesisState(minter, params) } diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index 4f48f2e0d..303981c64 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -7,20 +7,32 @@ import ( "github.com/public-awesome/stargaze/v14/x/mint/types" ) -var _ types.QueryServer = Keeper{} +var _ types.QueryServer = &QueryServer{} + +// QueryServer implements the module gRPC query service. +type QueryServer struct { + keeper Keeper +} + +// NewQueryServer creates a new gRPC query server. +func NewQueryServer(keeper Keeper) *QueryServer { + return &QueryServer{ + keeper: keeper, + } +} // Params returns params of the mint module. -func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { ctx := sdk.UnwrapSDKContext(c) - params := k.GetParams(ctx) + params, err := q.keeper.GetParams(ctx) - return &types.QueryParamsResponse{Params: params}, nil + return &types.QueryParamsResponse{Params: params}, err } // AnnualProvisions returns minter.AnnualProvisions of the mint module. -func (k Keeper) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error) { +func (q QueryServer) AnnualProvisions(c context.Context, _ *types.QueryAnnualProvisionsRequest) (*types.QueryAnnualProvisionsResponse, error) { ctx := sdk.UnwrapSDKContext(c) - minter := k.GetMinter(ctx) + minter, err := q.keeper.GetMinter(ctx) - return &types.QueryAnnualProvisionsResponse{AnnualProvisions: minter.AnnualProvisions}, nil + return &types.QueryAnnualProvisionsResponse{AnnualProvisions: minter.AnnualProvisions}, err } diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index 902467999..b0a43bd00 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -10,6 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/public-awesome/stargaze/v14/app" "github.com/public-awesome/stargaze/v14/testutil/simapp" + "github.com/public-awesome/stargaze/v14/x/mint/keeper" "github.com/public-awesome/stargaze/v14/x/mint/types" ) @@ -26,7 +27,7 @@ func (suite *MintTestSuite) SetupTest() { ctx := app.BaseApp.NewContext(false) queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) - types.RegisterQueryServer(queryHelper, app.Keepers.MintKeeper) + types.RegisterQueryServer(queryHelper, keeper.NewQueryServer(app.Keepers.MintKeeper)) queryClient := types.NewQueryClient(queryHelper) suite.app = app @@ -40,11 +41,14 @@ func (suite *MintTestSuite) TestGRPCParams() { params, err := queryClient.Params(gocontext.Background(), &types.QueryParamsRequest{}) suite.Require().NoError(err) - suite.Require().Equal(params.Params, app.Keepers.MintKeeper.GetParams(ctx)) + p, err := app.Keepers.MintKeeper.GetParams(ctx) + suite.Require().NoError(err) + suite.Require().Equal(params.Params, p) annualProvisions, err := queryClient.AnnualProvisions(gocontext.Background(), &types.QueryAnnualProvisionsRequest{}) suite.Require().NoError(err) - suite.Require().Equal(annualProvisions.AnnualProvisions, app.Keepers.MintKeeper.GetMinter(ctx).AnnualProvisions) + minter, err := app.Keepers.MintKeeper.GetMinter(ctx) + suite.Require().Equal(annualProvisions.AnnualProvisions, minter.AnnualProvisions) } func TestMintTestSuite(t *testing.T) { diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index db7adb3f8..6305d3239 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -1,49 +1,60 @@ package keeper import ( + "cosmossdk.io/collections" + corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" - - storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/public-awesome/stargaze/v14/internal/collcompat" "github.com/public-awesome/stargaze/v14/x/mint/types" ) // Keeper of the mint store type Keeper struct { cdc codec.BinaryCodec - storeKey storetypes.StoreKey - paramSpace paramtypes.Subspace + storeService corestoretypes.KVStoreService bankKeeper types.BankKeeper feeCollectorName string + Params collections.Item[types.Params] + Minter collections.Item[types.Minter] authority string } // NewKeeper creates a new mint Keeper instance func NewKeeper( - cdc codec.BinaryCodec, key storetypes.StoreKey, paramSpace paramtypes.Subspace, - ak types.AccountKeeper, bk types.BankKeeper, - feeCollectorName string, authority string, + cdc codec.BinaryCodec, + storeService corestoretypes.KVStoreService, + ak types.AccountKeeper, + bk types.BankKeeper, + feeCollectorName string, + authority string, ) Keeper { // ensure mint module account is set if addr := ak.GetModuleAddress(types.ModuleName); addr == nil { panic("the mint module account has not been set") } - - // set KeyTable if it has not already been set - if !paramSpace.HasKeyTable() { - paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) - } - - return Keeper{ + sb := collections.NewSchemaBuilder(storeService) + keeper := Keeper{ cdc: cdc, - storeKey: key, - paramSpace: paramSpace, + storeService: storeService, bankKeeper: bk, feeCollectorName: feeCollectorName, authority: authority, + Params: collections.NewItem( + sb, + types.ParamsKey, + "params", + collcompat.ProtoValue[types.Params](cdc), + ), + Minter: collections.NewItem( + sb, + types.MinterKey, + "minter", + collcompat.ProtoValue[types.Minter](cdc), + ), } + return keeper } // Logger returns a module-specific logger. @@ -52,45 +63,23 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { } // get the minter -func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter) { - store := ctx.KVStore(k.storeKey) - b := store.Get(types.MinterKey) - if b == nil { - panic("stored minter should not have been nil") - } - - k.cdc.MustUnmarshal(b, &minter) - return +func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter, err error) { + return k.Minter.Get(ctx) } // set the minter -func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&minter) - store.Set(types.MinterKey, b) +func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter) error { + return k.Minter.Set(ctx, minter) } // GetParams returns the total set of minting parameters. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params, err error) { + return k.Params.Get(ctx) } // SetParams sets the total set of minting parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - return nil + return k.Params.Set(ctx, params) } // MintCoins implements an alias call to the underlying supply keeper's diff --git a/x/mint/keeper/migrations.go b/x/mint/keeper/migrations.go index bf99e8b24..f318714d2 100644 --- a/x/mint/keeper/migrations.go +++ b/x/mint/keeper/migrations.go @@ -2,7 +2,6 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - v2 "github.com/public-awesome/stargaze/v14/x/mint/migrations/v2" ) // Migrator is a struct for handling in-place store migrations. @@ -22,5 +21,5 @@ func NewMigrator(keeper Keeper) Migrator { // and managed by the x/params module and stores them directly into the x/mint // module state. func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramSpace, m.keeper.cdc) + return nil //v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramSpace, m.keeper.cdc) } diff --git a/x/mint/module.go b/x/mint/module.go index 47e42acfa..e19b40a07 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -115,7 +115,7 @@ func (AppModule) QuerierRoute() string { // RegisterServices registers a gRPC query service to respond to the // module-specific gRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) m := keeper.NewMigrator(am.keeper) From ff8490084eefef4fb12114ca7a7cf8a5d1488db1 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 2 May 2024 17:26:54 +0100 Subject: [PATCH 07/50] moving the x/globalfee to use collections api --- app/app.go | 4 +- testutil/keeper/globalfee.go | 12 +--- x/globalfee/ante/fee.go | 17 ++--- x/globalfee/genesis.go | 5 +- x/globalfee/keeper/code_authorization.go | 52 +++++++-------- x/globalfee/keeper/code_authorization_test.go | 17 +++-- x/globalfee/keeper/contract_authorization.go | 52 +++++++-------- .../keeper/contract_authorization_test.go | 17 +++-- x/globalfee/keeper/grpc_keeper.go | 18 ++---- x/globalfee/keeper/keeper.go | 63 +++++++++++++------ x/globalfee/keeper/migrations.go | 3 +- x/globalfee/keeper/msg_server_test.go | 12 ++-- x/globalfee/keeper/params.go | 25 +++----- 13 files changed, 153 insertions(+), 144 deletions(-) diff --git a/app/app.go b/app/app.go index 0323d8131..ed56ed9fd 100644 --- a/app/app.go +++ b/app/app.go @@ -714,8 +714,7 @@ func NewStargazeApp( app.Keepers.GlobalFeeKeeper = globalfeemodulekeeper.NewKeeper( appCodec, - keys[globalfeemoduletypes.StoreKey], - app.GetSubspace(globalfeemoduletypes.ModuleName), + runtime.NewKVStoreService(keys[globalfeemoduletypes.StoreKey]), app.Keepers.WasmKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) @@ -1195,7 +1194,6 @@ func initParamsKeeper( paramsKeeper.Subspace(wasmtypes.ModuleName) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) - paramsKeeper.Subspace(globalfeemoduletypes.ModuleName) paramsKeeper.Subspace(packetforwardtypes.ModuleName).WithKeyTable(packetforwardtypes.ParamKeyTable()) return paramsKeeper diff --git a/testutil/keeper/globalfee.go b/testutil/keeper/globalfee.go index 2f2be0d48..5d6426030 100644 --- a/testutil/keeper/globalfee.go +++ b/testutil/keeper/globalfee.go @@ -9,9 +9,8 @@ import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" - "github.com/public-awesome/stargaze/v14/app" "github.com/public-awesome/stargaze/v14/x/globalfee/keeper" "github.com/public-awesome/stargaze/v14/x/globalfee/types" "github.com/stretchr/testify/require" @@ -37,12 +36,6 @@ func GlobalFeeKeeper(tb testing.TB) (keeper.Keeper, sdk.Context) { require.NoError(tb, stateStore.LoadLatestVersion()) registry := codectypes.NewInterfaceRegistry() - encoding := app.MakeEncodingConfig() - appCodec := encoding.Codec - - paramsKeeper := paramskeeper.NewKeeper(appCodec, encoding.Amino, storeKey, tStoreKey) - paramsKeeper.Subspace(types.ModuleName).WithKeyTable(types.ParamKeyTable()) - subspace, _ := paramsKeeper.GetSubspace(types.ModuleName) wk := MockWasmKeeper{ HasContractInfoFn: func(_ context.Context, contractAddr sdk.AccAddress) bool { @@ -78,8 +71,7 @@ func GlobalFeeKeeper(tb testing.TB) (keeper.Keeper, sdk.Context) { k := keeper.NewKeeper( codec.NewProtoCodec(registry), - storeKey, - subspace, + runtime.NewKVStoreService(storeKey), wk, "cosmos1a48wdtjn3egw7swhfkeshwdtjvs6hq9nlyrwut", // random addr for gov module ) diff --git a/x/globalfee/ante/fee.go b/x/globalfee/ante/fee.go index e23dc21f9..aa02cf04d 100644 --- a/x/globalfee/ante/fee.go +++ b/x/globalfee/ante/fee.go @@ -17,10 +17,10 @@ import ( var _ sdk.AnteDecorator = FeeDecorator{} type GlobalFeeReaderExpected interface { - GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, bool) - GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, bool) + GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, error) + GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, error) GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo - GetParams(ctx sdk.Context) types.Params + GetParams(ctx sdk.Context) (types.Params, error) } type StakingReaderExpected interface { @@ -80,13 +80,13 @@ func (mfd FeeDecorator) containsOnlyZeroFeeMsgs(ctx sdk.Context, msgs []sdk.Msg) func (mfd FeeDecorator) isZeroFeeMsg(ctx sdk.Context, msg *wasmtypes.MsgExecuteContract) bool { contactAddr := sdk.MustAccAddressFromBech32(msg.Contract) - contractAuth, found := mfd.feeKeeper.GetContractAuthorization(ctx, contactAddr) - if found { + contractAuth, err := mfd.feeKeeper.GetContractAuthorization(ctx, contactAddr) + if err == nil { return isAuthorizedMethod(msg.GetMsg(), contractAuth.GetMethods()) } codeID := mfd.feeKeeper.GetContractInfo(ctx, contactAddr).CodeID - codeAuth, found := mfd.feeKeeper.GetCodeAuthorization(ctx, codeID) - if found { + codeAuth, err := mfd.feeKeeper.GetCodeAuthorization(ctx, codeID) + if err == nil { return isAuthorizedMethod(msg.GetMsg(), codeAuth.GetMethods()) } @@ -196,7 +196,8 @@ func (mfd FeeDecorator) getGlobalFee(ctx sdk.Context, feeTx sdk.FeeTx) (sdk.Coin err error ) - globalMinGasPrices = mfd.feeKeeper.GetParams(ctx).MinimumGasPrices + params, err := mfd.feeKeeper.GetParams(ctx) + globalMinGasPrices = params.MinimumGasPrices // global fee is empty set, set global fee to 0uatom if len(globalMinGasPrices) == 0 { diff --git a/x/globalfee/genesis.go b/x/globalfee/genesis.go index 0e99b50e6..b4423a716 100644 --- a/x/globalfee/genesis.go +++ b/x/globalfee/genesis.go @@ -31,7 +31,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) // ExportGenesis exports the module genesis for the current block. func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() - params := k.GetParams(ctx) + params, err := k.GetParams(ctx) + if err != nil { + panic(err) + } genesis.Params = params k.IterateCodeAuthorizations(ctx, func(ca types.CodeAuthorization) bool { genesis.CodeAuthorizations = append(genesis.CodeAuthorizations, ca) diff --git a/x/globalfee/keeper/code_authorization.go b/x/globalfee/keeper/code_authorization.go index 08f47c296..80963550a 100644 --- a/x/globalfee/keeper/code_authorization.go +++ b/x/globalfee/keeper/code_authorization.go @@ -1,38 +1,31 @@ package keeper import ( - "cosmossdk.io/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/public-awesome/stargaze/v14/x/globalfee/types" ) // IterateCodeAuthorizations executes the given func on all the code authorizations func (k Keeper) IterateCodeAuthorizations(ctx sdk.Context, cb func(types.CodeAuthorization) bool) { - prefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), types.CodeAuthorizationPrefix) - iter := prefixStore.Iterator(nil, nil) - defer iter.Close() - for ; iter.Valid(); iter.Next() { - var ca types.CodeAuthorization - k.cdc.MustUnmarshal(iter.Value(), &ca) - // cb returns true to stop early - if cb(ca) { + iterator, err := k.CodeAuthorizations.Iterate(ctx, nil) + if err != nil { + panic(err) + } + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + codeAuth, err := iterator.Value() + if err != nil { + panic(err) + } + if cb(codeAuth) { return } } } // GetCodeAuthorization gets any authorizations set up for the given code id -func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, bool) { - store := ctx.KVStore(k.storeKey) - - var ca types.CodeAuthorization - bz := store.Get(types.GetCodeAuthorizationPrefix(codeID)) - if bz == nil { - return ca, false - } - - k.cdc.MustUnmarshal(bz, &ca) - return ca, true +func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, error) { + return k.CodeAuthorizations.Get(ctx, codeID) } // SetCodeAuthorization creates of updates provided authorizations for given code id @@ -45,16 +38,19 @@ func (k Keeper) SetCodeAuthorization(ctx sdk.Context, ca types.CodeAuthorization return types.ErrCodeIDNotExist } - store := ctx.KVStore(k.storeKey) - value := k.cdc.MustMarshal(&ca) - - store.Set(types.GetCodeAuthorizationPrefix(ca.CodeID), value) - return nil + return k.CodeAuthorizations.Set(ctx, ca.GetCodeID(), ca) } // DeleteCodeAuthorization deletes any existing authorizations for given code id -func (k Keeper) DeleteCodeAuthorization(ctx sdk.Context, codeID uint64) { - store := ctx.KVStore(k.storeKey) +func (k Keeper) DeleteCodeAuthorization(ctx sdk.Context, codeID uint64) error { + return k.CodeAuthorizations.Remove(ctx, codeID) +} - store.Delete(types.GetCodeAuthorizationPrefix(codeID)) +// HasCodeAuthorization checks if the given code id has any authorizations +func (k Keeper) HasCodeAuthorization(ctx sdk.Context, codeID uint64) bool { + has, err := k.CodeAuthorizations.Has(ctx, codeID) + if err != nil { + panic(err) + } + return has } diff --git a/x/globalfee/keeper/code_authorization_test.go b/x/globalfee/keeper/code_authorization_test.go index 96e5a2cd4..06c3df953 100644 --- a/x/globalfee/keeper/code_authorization_test.go +++ b/x/globalfee/keeper/code_authorization_test.go @@ -32,7 +32,7 @@ func Test_CodeAuthorization(t *testing.T) { }) t.Run("authorization doesnt exist", func(t *testing.T) { - _, found := k.GetCodeAuthorization(ctx, ca.CodeID) + found := k.HasCodeAuthorization(ctx, ca.CodeID) require.False(t, found) }) @@ -40,21 +40,28 @@ func Test_CodeAuthorization(t *testing.T) { err := k.SetCodeAuthorization(ctx, ca) require.NoError(t, err) - _, found := k.GetCodeAuthorization(ctx, ca.CodeID) + found := k.HasCodeAuthorization(ctx, ca.CodeID) require.True(t, found) }) t.Run("delete authorization", func(t *testing.T) { - _, found := k.GetCodeAuthorization(ctx, ca.CodeID) + found := k.HasCodeAuthorization(ctx, ca.CodeID) require.True(t, found) k.DeleteCodeAuthorization(ctx, ca.CodeID) - _, found = k.GetCodeAuthorization(ctx, ca.CodeID) + found = k.HasCodeAuthorization(ctx, ca.CodeID) require.False(t, found) }) t.Run("iterate code authorization", func(t *testing.T) { + count := 0 + k.IterateCodeAuthorizations(ctx, func(ca types.CodeAuthorization) bool { + count++ + return false + }) + require.Equal(t, 0, count) + err := k.SetCodeAuthorization(ctx, ca) require.NoError(t, err) err = k.SetCodeAuthorization(ctx, types.CodeAuthorization{ @@ -68,7 +75,7 @@ func Test_CodeAuthorization(t *testing.T) { }) require.NoError(t, err) - count := 0 + count = 0 k.IterateCodeAuthorizations(ctx, func(ca types.CodeAuthorization) bool { count++ return false diff --git a/x/globalfee/keeper/contract_authorization.go b/x/globalfee/keeper/contract_authorization.go index f95c5dd96..339e1c581 100644 --- a/x/globalfee/keeper/contract_authorization.go +++ b/x/globalfee/keeper/contract_authorization.go @@ -1,38 +1,31 @@ package keeper import ( - "cosmossdk.io/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/public-awesome/stargaze/v14/x/globalfee/types" ) // IterateContractAuthorizations executes the given func on all the contract authorizations func (k Keeper) IterateContractAuthorizations(ctx sdk.Context, cb func(types.ContractAuthorization) bool) { - prefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), types.ContractAuthorizationPrefix) - iter := prefixStore.Iterator(nil, nil) - defer iter.Close() - for ; iter.Valid(); iter.Next() { - var ca types.ContractAuthorization - k.cdc.MustUnmarshal(iter.Value(), &ca) - // cb returns true to stop early - if cb(ca) { + iterator, err := k.ContractAuthorizations.Iterate(ctx, nil) + if err != nil { + panic(err) + } + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + contractAuth, err := iterator.Value() + if err != nil { + panic(err) + } + if cb(contractAuth) { return } } } // GetContractAuthorization gets any authorizations set up for the given contract address -func (k Keeper) GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, bool) { - store := ctx.KVStore(k.storeKey) - - var ca types.ContractAuthorization - bz := store.Get(types.GetContractAuthorizationPrefix(contractAddr)) - if bz == nil { - return ca, false - } - - k.cdc.MustUnmarshal(bz, &ca) - return ca, true +func (k Keeper) GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, error) { + return k.ContractAuthorizations.Get(ctx, contractAddr.Bytes()) } // SetContractAuthorization creates of updates provided authorizations for given contract address @@ -45,16 +38,19 @@ func (k Keeper) SetContractAuthorization(ctx sdk.Context, ca types.ContractAutho return types.ErrContractNotExist } - store := ctx.KVStore(k.storeKey) - value := k.cdc.MustMarshal(&ca) - - store.Set(types.GetContractAuthorizationPrefix(sdk.MustAccAddressFromBech32(ca.ContractAddress)), value) - return nil + return k.ContractAuthorizations.Set(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress), ca) } // DeleteContractAuthorization deletes any existing authorizations for given contract address -func (k Keeper) DeleteContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) { - store := ctx.KVStore(k.storeKey) +func (k Keeper) DeleteContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) error { + return k.ContractAuthorizations.Remove(ctx, contractAddr.Bytes()) +} - store.Delete(types.GetContractAuthorizationPrefix(contractAddr)) +// HasContractAuthorization checks if the given contract address has any authorizations +func (k Keeper) HasContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) bool { + has, err := k.ContractAuthorizations.Has(ctx, contractAddr.Bytes()) + if err != nil { + panic(err) + } + return has } diff --git a/x/globalfee/keeper/contract_authorization_test.go b/x/globalfee/keeper/contract_authorization_test.go index 0080d6a64..450f902e4 100644 --- a/x/globalfee/keeper/contract_authorization_test.go +++ b/x/globalfee/keeper/contract_authorization_test.go @@ -34,7 +34,7 @@ func Test_ContractAuthorization(t *testing.T) { }) t.Run("authorization doesnt exist", func(t *testing.T) { - _, found := k.GetContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + found := k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.False(t, found) }) @@ -42,21 +42,28 @@ func Test_ContractAuthorization(t *testing.T) { err := k.SetContractAuthorization(ctx, ca) require.NoError(t, err) - _, found := k.GetContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + found := k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.True(t, found) }) t.Run("delete authorization", func(t *testing.T) { - _, found := k.GetContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + found := k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.True(t, found) k.DeleteContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) - _, found = k.GetContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + found = k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.False(t, found) }) t.Run("iterate contract authorization", func(t *testing.T) { + count := 0 + k.IterateContractAuthorizations(ctx, func(ca types.ContractAuthorization) bool { + count++ + return false + }) + require.Equal(t, 0, count) + err := k.SetContractAuthorization(ctx, ca) require.NoError(t, err) err = k.SetContractAuthorization(ctx, types.ContractAuthorization{ @@ -70,7 +77,7 @@ func Test_ContractAuthorization(t *testing.T) { }) require.NoError(t, err) - count := 0 + count = 0 k.IterateContractAuthorizations(ctx, func(ca types.ContractAuthorization) bool { count++ return false diff --git a/x/globalfee/keeper/grpc_keeper.go b/x/globalfee/keeper/grpc_keeper.go index bbba3ab63..4011c5fe1 100644 --- a/x/globalfee/keeper/grpc_keeper.go +++ b/x/globalfee/keeper/grpc_keeper.go @@ -28,14 +28,11 @@ func (q QueryServer) CodeAuthorization(c context.Context, req *types.QueryCodeAu return nil, status.Error(codes.InvalidArgument, "empty request") } ctx := sdk.UnwrapSDKContext(c) - ca, found := q.keeper.GetCodeAuthorization(ctx, req.GetCodeId()) - if !found { - return nil, status.Errorf(codes.NotFound, "code authorization: not found") - } + ca, err := q.keeper.GetCodeAuthorization(ctx, req.GetCodeId()) return &types.QueryCodeAuthorizationResponse{ Methods: ca.GetMethods(), - }, nil + }, err } func (q QueryServer) ContractAuthorization(c context.Context, req *types.QueryContractAuthorizationRequest) (*types.QueryContractAuthorizationResponse, error) { @@ -48,20 +45,17 @@ func (q QueryServer) ContractAuthorization(c context.Context, req *types.QueryCo } ctx := sdk.UnwrapSDKContext(c) - ca, found := q.keeper.GetContractAuthorization(ctx, contractAddr) - if !found { - return nil, status.Errorf(codes.NotFound, "contract authorization: not found") - } + ca, err := q.keeper.GetContractAuthorization(ctx, contractAddr) return &types.QueryContractAuthorizationResponse{ Methods: ca.GetMethods(), - }, nil + }, err } func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { ctx := sdk.UnwrapSDKContext(c) - params := q.keeper.GetParams(ctx) - return &types.QueryParamsResponse{Params: ¶ms}, nil + params, err := q.keeper.GetParams(ctx) + return &types.QueryParamsResponse{Params: ¶ms}, err } func (q QueryServer) Authorizations(c context.Context, _ *types.QueryAuthorizationsRequest) (*types.QueryAuthorizationsResponse, error) { diff --git a/x/globalfee/keeper/keeper.go b/x/globalfee/keeper/keeper.go index 7d9790628..dc8a7f423 100644 --- a/x/globalfee/keeper/keeper.go +++ b/x/globalfee/keeper/keeper.go @@ -1,40 +1,65 @@ package keeper import ( + "cosmossdk.io/collections" "cosmossdk.io/log" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - paramTypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/public-awesome/stargaze/v14/internal/collcompat" + corestoretypes "cosmossdk.io/core/store" "github.com/public-awesome/stargaze/v14/x/globalfee/types" - - storetypes "cosmossdk.io/store/types" ) // Keeper provides module state operations. type Keeper struct { - cdc codec.Codec - paramStore paramTypes.Subspace - storeKey storetypes.StoreKey - wasmKeeper types.WasmKeeper - authority string // this should be the x/gov module account + cdc codec.Codec + storeService corestoretypes.KVStoreService + wasmKeeper types.WasmKeeper + Schema collections.Schema + Params collections.Item[types.Params] + CodeAuthorizations collections.Map[uint64, types.CodeAuthorization] + ContractAuthorizations collections.Map[[]byte, types.ContractAuthorization] + authority string // this should be the x/gov module account } // NewKeeper creates a new Keeper instance. -func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey, ps paramTypes.Subspace, wk types.WasmKeeper, authority string) Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } +func NewKeeper( + cdc codec.Codec, + storeService corestoretypes.KVStoreService, + wk types.WasmKeeper, + authority string, +) Keeper { + sb := collections.NewSchemaBuilder(storeService) - return Keeper{ - cdc: cdc, - storeKey: storeKey, - paramStore: ps, - wasmKeeper: wk, - authority: authority, + keeper := Keeper{ + cdc: cdc, + storeService: storeService, + wasmKeeper: wk, + authority: authority, + Params: collections.NewItem( + sb, + types.ParamsKey, + "params", + collcompat.ProtoValue[types.Params](cdc), + ), + CodeAuthorizations: collections.NewMap( + sb, + types.CodeAuthorizationPrefix, + "codeAuthorizations", + collections.Uint64Key, + collcompat.ProtoValue[types.CodeAuthorization](cdc), + ), + ContractAuthorizations: collections.NewMap( + sb, + types.ContractAuthorizationPrefix, + "contractAuthorizations", + collections.BytesKey, + collcompat.ProtoValue[types.ContractAuthorization](cdc), + ), } + return keeper } // Logger returns a module-specific logger. diff --git a/x/globalfee/keeper/migrations.go b/x/globalfee/keeper/migrations.go index 824bf0748..97ee15bdf 100644 --- a/x/globalfee/keeper/migrations.go +++ b/x/globalfee/keeper/migrations.go @@ -2,7 +2,6 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - v2 "github.com/public-awesome/stargaze/v14/x/globalfee/migrations/v2" ) // Migrator is a struct for handling in-place store migrations. @@ -22,5 +21,5 @@ func NewMigrator(keeper Keeper) Migrator { // and managed by the x/params module and stores them directly into the x/globalfee // module state. func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramStore, m.keeper.cdc) + return nil //v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramStore, m.keeper.cdc) } diff --git a/x/globalfee/keeper/msg_server_test.go b/x/globalfee/keeper/msg_server_test.go index a0a04c3c9..2e8b64490 100644 --- a/x/globalfee/keeper/msg_server_test.go +++ b/x/globalfee/keeper/msg_server_test.go @@ -98,7 +98,7 @@ func TestSetCodeAuthorization(t *testing.T) { require.Error(t, err, tc) } else { require.NoError(t, err, tc) - _, found := k.GetCodeAuthorization(c, msg.GetCodeAuthorization().GetCodeID()) + found := k.HasCodeAuthorization(ctx, msg.CodeAuthorization.CodeID) require.True(t, found) } }) @@ -169,11 +169,11 @@ func TestRemoveCodeAuthorization(t *testing.T) { if tc.expectError { require.Error(t, err, tc) - _, found := k.GetCodeAuthorization(c, msg.GetCodeID()) + found := k.HasCodeAuthorization(ctx, msg.GetCodeID()) require.True(t, found) } else { require.NoError(t, err, tc) - _, found := k.GetCodeAuthorization(c, msg.GetCodeID()) + found := k.HasCodeAuthorization(ctx, msg.GetCodeID()) require.False(t, found) } }) @@ -306,7 +306,7 @@ func TestSetContractAuthorization(t *testing.T) { require.Error(t, err, tc) } else { require.NoError(t, err, tc) - _, found := k.GetContractAuthorization(c, sdk.MustAccAddressFromBech32(msg.GetContractAuthorization().GetContractAddress())) + found := k.HasContractAuthorization(c, sdk.MustAccAddressFromBech32(msg.GetContractAuthorization().GetContractAddress())) require.True(t, found) } }) @@ -394,11 +394,11 @@ func TestRemoveContractAuthorization(t *testing.T) { if tc.expectError { require.Error(t, err, tc) - _, found := k.GetContractAuthorization(c, contractAddr) + found := k.HasContractAuthorization(c, contractAddr) require.True(t, found) } else { require.NoError(t, err, tc) - _, found := k.GetContractAuthorization(c, contractAddr) + found := k.HasContractAuthorization(c, contractAddr) require.False(t, found) } }) diff --git a/x/globalfee/keeper/params.go b/x/globalfee/keeper/params.go index 0f74fc61a..e0ee5b8c4 100644 --- a/x/globalfee/keeper/params.go +++ b/x/globalfee/keeper/params.go @@ -7,29 +7,20 @@ import ( // SetParams sets the total set of minting parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - return nil + return k.Params.Set(ctx, params) } // GetParams returns the total set of minting parameters. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params, err error) { + return k.Params.Get(ctx) } func (k Keeper) IsPrivilegedAddress(ctx sdk.Context, address string) bool { - privilegedAddresses := k.GetParams(ctx).PrivilegedAddresses + params, err := k.GetParams(ctx) + if err != nil { + return false + } + privilegedAddresses := params.PrivilegedAddresses for _, paddr := range privilegedAddresses { if address == paddr { return true From 883e2f17ec9ddd5cc3b4122ec4222d240ff2d7c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 10:03:47 +0000 Subject: [PATCH 08/50] Bump google.golang.org/protobuf from 1.33.0 to 1.34.1 Bumps google.golang.org/protobuf from 1.33.0 to 1.34.1. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8fa58ff3c..f1d0f9fcf 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/stretchr/testify v1.9.0 google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 - google.golang.org/protobuf v1.33.0 + google.golang.org/protobuf v1.34.1 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 37b571a4a..2399cfbdb 100644 --- a/go.sum +++ b/go.sum @@ -2665,8 +2665,8 @@ google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From f47d959bbe82c06460502ddd1dab4910566964d5 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Tue, 7 May 2024 17:46:01 +0100 Subject: [PATCH 09/50] =?UTF-8?q?linting=20=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- x/alloc/keeper/keeper.go | 1 + x/alloc/keeper/migrations.go | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/x/alloc/keeper/keeper.go b/x/alloc/keeper/keeper.go index fbb20be71..6961512c3 100644 --- a/x/alloc/keeper/keeper.go +++ b/x/alloc/keeper/keeper.go @@ -42,6 +42,7 @@ func NewKeeper( sb := collections.NewSchemaBuilder(storeService) keeper := Keeper{ cdc: cdc, + storeService: storeService, accountKeeper: accountKeeper, bankKeeper: bankKeeper, stakingKeeper: stakingKeeper, diff --git a/x/alloc/keeper/migrations.go b/x/alloc/keeper/migrations.go index abe87332a..cad85cb11 100644 --- a/x/alloc/keeper/migrations.go +++ b/x/alloc/keeper/migrations.go @@ -22,14 +22,14 @@ func (m Migrator) Migrate1to2(_ sdk.Context) error { } // Migrate2to3 migrates x/alloc state from consensus version 2 to 3. -func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return nil //v3.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc, m.keeper.paramstore) +func (m Migrator) Migrate2to3(_ sdk.Context) error { + return nil // v3.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc, m.keeper.paramstore) } // Migrate3to4 migrates the x/alloc module state from the consensus // version 3 to version 4. Specifically, it takes the parameters that are currently stored // and managed by the x/params module and stores them directly into the x/alloc // module state. -func (m Migrator) Migrate3to4(ctx sdk.Context) error { - return nil //v4.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramstore, m.keeper.cdc) +func (m Migrator) Migrate3to4(_ sdk.Context) error { + return nil // v4.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramstore, m.keeper.cdc) } From 7657cae637fa96cbe2f04dbcfd7deb3e7f5c5415 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 9 May 2024 08:58:19 +0100 Subject: [PATCH 10/50] =?UTF-8?q?linting=20=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- x/alloc/keeper/msg_server_create_vesting_account.go | 2 +- x/globalfee/ante/fee.go | 3 +++ x/globalfee/keeper/code_authorization_test.go | 3 ++- x/globalfee/keeper/contract_authorization_test.go | 3 ++- x/globalfee/keeper/migrations.go | 4 ++-- x/globalfee/keeper/msg_server.go | 8 ++++---- x/mint/abci.go | 5 ++++- x/mint/genesis.go | 4 +++- x/mint/keeper/grpc_query_test.go | 1 + x/mint/keeper/migrations.go | 4 ++-- 10 files changed, 24 insertions(+), 13 deletions(-) diff --git a/x/alloc/keeper/msg_server_create_vesting_account.go b/x/alloc/keeper/msg_server_create_vesting_account.go index b244771c1..b8c51d2e8 100644 --- a/x/alloc/keeper/msg_server_create_vesting_account.go +++ b/x/alloc/keeper/msg_server_create_vesting_account.go @@ -9,6 +9,6 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -func (k msgServer) CreateVestingAccount(_ context.Context, _ *types.MsgCreateVestingAccount) (*types.MsgCreateVestingAccountResponse, error) { //nolint:staticcheck +func (k msgServer) CreateVestingAccount(_ context.Context, _ *types.MsgCreateVestingAccount) (*types.MsgCreateVestingAccountResponse, error) { return nil, errorsmod.Wrapf(sdkerrors.ErrNotSupported, "support for creating vesting account has been removed in favor of sdk's version") } diff --git a/x/globalfee/ante/fee.go b/x/globalfee/ante/fee.go index aa02cf04d..81e074684 100644 --- a/x/globalfee/ante/fee.go +++ b/x/globalfee/ante/fee.go @@ -197,6 +197,9 @@ func (mfd FeeDecorator) getGlobalFee(ctx sdk.Context, feeTx sdk.FeeTx) (sdk.Coin ) params, err := mfd.feeKeeper.GetParams(ctx) + if err != nil { + return sdk.Coins{}, err + } globalMinGasPrices = params.MinimumGasPrices // global fee is empty set, set global fee to 0uatom diff --git a/x/globalfee/keeper/code_authorization_test.go b/x/globalfee/keeper/code_authorization_test.go index 06c3df953..4412eebb1 100644 --- a/x/globalfee/keeper/code_authorization_test.go +++ b/x/globalfee/keeper/code_authorization_test.go @@ -48,7 +48,8 @@ func Test_CodeAuthorization(t *testing.T) { found := k.HasCodeAuthorization(ctx, ca.CodeID) require.True(t, found) - k.DeleteCodeAuthorization(ctx, ca.CodeID) + err := k.DeleteCodeAuthorization(ctx, ca.CodeID) + require.NoError(t, err) found = k.HasCodeAuthorization(ctx, ca.CodeID) require.False(t, found) diff --git a/x/globalfee/keeper/contract_authorization_test.go b/x/globalfee/keeper/contract_authorization_test.go index 450f902e4..78c9c99a0 100644 --- a/x/globalfee/keeper/contract_authorization_test.go +++ b/x/globalfee/keeper/contract_authorization_test.go @@ -50,7 +50,8 @@ func Test_ContractAuthorization(t *testing.T) { found := k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.True(t, found) - k.DeleteContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + err := k.DeleteContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) + require.NoError(t, err) found = k.HasContractAuthorization(ctx, sdk.MustAccAddressFromBech32(ca.ContractAddress)) require.False(t, found) diff --git a/x/globalfee/keeper/migrations.go b/x/globalfee/keeper/migrations.go index 97ee15bdf..df8e1788d 100644 --- a/x/globalfee/keeper/migrations.go +++ b/x/globalfee/keeper/migrations.go @@ -20,6 +20,6 @@ func NewMigrator(keeper Keeper) Migrator { // version 1 to version 2. Specifically, it takes the parameters that are currently stored // and managed by the x/params module and stores them directly into the x/globalfee // module state. -func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return nil //v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramStore, m.keeper.cdc) +func (m Migrator) Migrate1to2(_ sdk.Context) error { + return nil // v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramStore, m.keeper.cdc) } diff --git a/x/globalfee/keeper/msg_server.go b/x/globalfee/keeper/msg_server.go index 792599c02..771c6e0bd 100644 --- a/x/globalfee/keeper/msg_server.go +++ b/x/globalfee/keeper/msg_server.go @@ -46,8 +46,8 @@ func (k msgServer) RemoveCodeAuthorization(goCtx context.Context, msg *types.Msg if !k.isAuthorized(ctx, msg.Sender) { return nil, errorsmod.Wrap(types.ErrUnauthorized, "sender address is not authorized address to remove code authorization") } - k.Keeper.DeleteCodeAuthorization(ctx, msg.GetCodeID()) - return &types.MsgRemoveCodeAuthorizationResponse{}, nil + err = k.Keeper.DeleteCodeAuthorization(ctx, msg.GetCodeID()) + return &types.MsgRemoveCodeAuthorizationResponse{}, err } func (k msgServer) SetContractAuthorization(goCtx context.Context, msg *types.MsgSetContractAuthorization) (*types.MsgSetContractAuthorizationResponse, error) { @@ -79,8 +79,8 @@ func (k msgServer) RemoveContractAuthorization(goCtx context.Context, msg *types if err != nil { return nil, err } - k.Keeper.DeleteContractAuthorization(ctx, contractAddr) - return &types.MsgRemoveContractAuthorizationResponse{}, nil + err = k.Keeper.DeleteContractAuthorization(ctx, contractAddr) + return &types.MsgRemoveContractAuthorizationResponse{}, err } func (k msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { diff --git a/x/mint/abci.go b/x/mint/abci.go index 88acd0b40..2ad149de6 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -25,7 +25,10 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { // recalculate annual provision minter.AnnualProvisions = minter.NextAnnualProvisions(ctx.BlockTime(), params) - k.SetMinter(ctx, minter) + err = k.SetMinter(ctx, minter) + if err != nil { + panic(err) + } // mint coins, update supply mintedCoin := minter.BlockProvision(params) diff --git a/x/mint/genesis.go b/x/mint/genesis.go index fe201bc38..5dfe56e59 100644 --- a/x/mint/genesis.go +++ b/x/mint/genesis.go @@ -8,7 +8,9 @@ import ( // InitGenesis new mint genesis func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, ak types.AccountKeeper, data *types.GenesisState) { - keeper.SetMinter(ctx, data.Minter) + if err := keeper.SetMinter(ctx, data.Minter); err != nil { + panic(err) + } if err := keeper.SetParams(ctx, data.Params); err != nil { panic(err) } diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index b0a43bd00..fca79b1bb 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -48,6 +48,7 @@ func (suite *MintTestSuite) TestGRPCParams() { annualProvisions, err := queryClient.AnnualProvisions(gocontext.Background(), &types.QueryAnnualProvisionsRequest{}) suite.Require().NoError(err) minter, err := app.Keepers.MintKeeper.GetMinter(ctx) + suite.Require().NoError(err) suite.Require().Equal(annualProvisions.AnnualProvisions, minter.AnnualProvisions) } diff --git a/x/mint/keeper/migrations.go b/x/mint/keeper/migrations.go index f318714d2..efd9bce21 100644 --- a/x/mint/keeper/migrations.go +++ b/x/mint/keeper/migrations.go @@ -20,6 +20,6 @@ func NewMigrator(keeper Keeper) Migrator { // version 1 to version 2. Specifically, it takes the parameters that are currently stored // and managed by the x/params module and stores them directly into the x/mint // module state. -func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return nil //v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramSpace, m.keeper.cdc) +func (m Migrator) Migrate1to2(_ sdk.Context) error { + return nil // v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.paramSpace, m.keeper.cdc) } From 4a26dbeff5e16b7f329149e85f5223b0e64b9695 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Thu, 9 May 2024 09:03:57 +0100 Subject: [PATCH 11/50] Update msg_server_create_vesting_account.go --- x/alloc/keeper/msg_server_create_vesting_account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/alloc/keeper/msg_server_create_vesting_account.go b/x/alloc/keeper/msg_server_create_vesting_account.go index b8c51d2e8..b244771c1 100644 --- a/x/alloc/keeper/msg_server_create_vesting_account.go +++ b/x/alloc/keeper/msg_server_create_vesting_account.go @@ -9,6 +9,6 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -func (k msgServer) CreateVestingAccount(_ context.Context, _ *types.MsgCreateVestingAccount) (*types.MsgCreateVestingAccountResponse, error) { +func (k msgServer) CreateVestingAccount(_ context.Context, _ *types.MsgCreateVestingAccount) (*types.MsgCreateVestingAccountResponse, error) { //nolint:staticcheck return nil, errorsmod.Wrapf(sdkerrors.ErrNotSupported, "support for creating vesting account has been removed in favor of sdk's version") } From 652e0188b9d5c66336a734a33c35756d9abac38c Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Tue, 21 May 2024 16:48:40 +0100 Subject: [PATCH 12/50] run the interchaintests on PRs to release branches as well --- .github/workflows/interchaintest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/interchaintest.yml b/.github/workflows/interchaintest.yml index be0554add..89305eaa7 100644 --- a/.github/workflows/interchaintest.yml +++ b/.github/workflows/interchaintest.yml @@ -5,6 +5,7 @@ on: branches: - main - feature/* + - release/* release: types: published From f813dd0256855d536665f6b4299f0b386a24c19d Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 20:29:53 -0600 Subject: [PATCH 13/50] bump ibc-go --- go.mod | 8 ++++---- go.sum | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 66757c131..750845fc2 100644 --- a/go.mod +++ b/go.mod @@ -27,8 +27,9 @@ require ( ) require ( - cosmossdk.io/api v0.7.4 + cosmossdk.io/api v0.7.5 cosmossdk.io/client/v2 v2.0.0-beta.1 + cosmossdk.io/collections v0.4.0 cosmossdk.io/core v0.11.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.3.1 @@ -44,7 +45,8 @@ require ( github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-00010101000000-000000000000 github.com/cosmos/ibc-go/modules/capability v1.0.0 github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708 - github.com/cosmos/ibc-go/v8 v8.2.1 + github.com/cosmos/ibc-go/v8 v8.3.1 + github.com/gogo/protobuf v1.3.2 github.com/prometheus/client_golang v1.19.0 github.com/skip-mev/slinky v0.4.1 google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 @@ -56,7 +58,6 @@ require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.6 // indirect cloud.google.com/go/storage v1.36.0 // indirect - cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -108,7 +109,6 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect - github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect diff --git a/go.sum b/go.sum index da8c30e05..ecbf65118 100644 --- a/go.sum +++ b/go.sum @@ -763,8 +763,8 @@ cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vf cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g= -cosmossdk.io/api v0.7.4 h1:sPo8wKwCty1lht8kgL3J7YL1voJywP3YWuA5JKkBz30= -cosmossdk.io/api v0.7.4/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= +cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= @@ -977,8 +977,8 @@ github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708 h1:KOdpcf8gEAMrKQCkNyyxPNVG2fcQiO0GHKmPjD4U8CA= github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708/go.mod h1:Jn7QCHDIa4DknrRUwJvwpGPU5Htgka0k5W6tuEckwUk= -github.com/cosmos/ibc-go/v8 v8.2.1 h1:MTsnZZjxvGD4Fv5pYyx5UkELafSX0rlPt6IfsE2BpTQ= -github.com/cosmos/ibc-go/v8 v8.2.1/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= +github.com/cosmos/ibc-go/v8 v8.3.1 h1:cUNWvTCftKQIcpbf2y/jVzo2OY3g4GVFw6tTC/pQ+tA= +github.com/cosmos/ibc-go/v8 v8.3.1/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= From 9eb7a01d3dee08263e2d056bb8fec637a0e1bdc8 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 20:38:15 -0600 Subject: [PATCH 14/50] bump slinky --- go.mod | 46 +++++++++++++------------- go.sum | 102 ++++++++++++++++++++++++++++----------------------------- 2 files changed, 73 insertions(+), 75 deletions(-) diff --git a/go.mod b/go.mod index 750845fc2..2ccde8815 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/public-awesome/stargaze/v14 -go 1.22 +go 1.22.2 -toolchain go1.22.1 +toolchain go1.22.3 require ( github.com/CosmWasm/wasmd v0.50.0 @@ -21,7 +21,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.9.0 google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/grpc v1.63.2 + google.golang.org/grpc v1.64.0 google.golang.org/protobuf v1.34.1 gopkg.in/yaml.v2 v2.4.0 ) @@ -47,17 +47,17 @@ require ( github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708 github.com/cosmos/ibc-go/v8 v8.3.1 github.com/gogo/protobuf v1.3.2 - github.com/prometheus/client_golang v1.19.0 - github.com/skip-mev/slinky v0.4.1 - google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 + github.com/prometheus/client_golang v1.19.1 + github.com/skip-mev/slinky v0.4.6 + google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 ) require ( - cloud.google.com/go v0.112.0 // indirect - cloud.google.com/go/compute v1.24.0 // indirect + cloud.google.com/go v0.112.1 // indirect + cloud.google.com/go/compute v1.25.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.6 // indirect - cloud.google.com/go/storage v1.36.0 // indirect + cloud.google.com/go/storage v1.38.0 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -98,7 +98,7 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.6.1 // indirect - github.com/fatih/color v1.16.0 // indirect + github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.27.0 // indirect @@ -120,7 +120,7 @@ require ( github.com/google/s2a-go v0.1.7 // indirect github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/googleapis/gax-go/v2 v2.12.2 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/websocket v1.5.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect @@ -162,7 +162,7 @@ require ( github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect - github.com/pelletier/go-toml/v2 v2.2.0 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.1 // indirect @@ -188,22 +188,22 @@ require ( github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect - go.opentelemetry.io/otel v1.22.0 // indirect - go.opentelemetry.io/otel/metric v1.22.0 // indirect - go.opentelemetry.io/otel/trace v1.22.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect + go.opentelemetry.io/otel v1.24.0 // indirect + go.opentelemetry.io/otel/metric v1.24.0 // indirect + go.opentelemetry.io/otel/trace v1.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.22.0 // indirect + golang.org/x/crypto v0.23.0 // indirect golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect - golang.org/x/net v0.24.0 // indirect + golang.org/x/net v0.25.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/term v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/term v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect golang.org/x/time v0.5.0 // indirect - google.golang.org/api v0.162.0 // indirect + google.golang.org/api v0.169.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index ecbf65118..c2d500916 100644 --- a/go.sum +++ b/go.sum @@ -40,8 +40,8 @@ cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVqux cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= -cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= -cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= +cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= +cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E= @@ -213,8 +213,8 @@ cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/ cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= cloud.google.com/go/compute v1.21.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= -cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg= -cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40= +cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= +cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= @@ -678,8 +678,8 @@ cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y= cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= -cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8= -cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= +cloud.google.com/go/storage v1.38.0 h1:Az68ZRGlnNTpIBbLjSMIV2BDcwwXYlRlQzis0llkpJg= +cloud.google.com/go/storage v1.38.0/go.mod h1:tlUADB0mAb9BgYls9lq+8MGkfzOXuLrnHXlpHmvFJoY= cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= cloud.google.com/go/storagetransfer v1.7.0/go.mod h1:8Giuj1QNb1kfLAiWM1bN6dHzfdlDAVC9rv9abHot2W4= @@ -783,8 +783,8 @@ cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= cosmossdk.io/tools/confix v0.1.1 h1:aexyRv9+y15veH3Qw16lxQwo+ki7r2I+g0yNTEFEQM8= cosmossdk.io/tools/confix v0.1.1/go.mod h1:nQVvP1tHsGXS83PonPVWJtSbddIqyjEw99L4M3rPJyQ= -cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= -cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= +cosmossdk.io/x/circuit v0.1.1 h1:KPJCnLChWrxD4jLwUiuQaf5mFD/1m7Omyo7oooefBVQ= +cosmossdk.io/x/circuit v0.1.1/go.mod h1:B6f/urRuQH8gjt4eLIXfZJucrbreuYrKh5CSjaOxr+Q= cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4= cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc= cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8= @@ -924,8 +924,6 @@ github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230428030218-4003588d1b74/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= -github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= @@ -1055,14 +1053,12 @@ github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6Ni github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/envoyproxy/protoc-gen-validate v1.0.1/go.mod h1:0vj8bNkYbSTNS2PIyH87KZaeN4x9zpL9Qt8fQC7d+vs= github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= @@ -1287,8 +1283,9 @@ github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38 github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw= github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= -github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/gax-go/v2 v2.12.2 h1:mhN09QQW1jEWeMF74zGR81R30z4VJzjZsfkUhuHF+DA= +github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -1586,8 +1583,8 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= -github.com/pelletier/go-toml/v2 v2.2.0 h1:QLgLl2yMN7N+ruc31VynXs1vhMZa7CeHHejIeBAsoHo= -github.com/pelletier/go-toml/v2 v2.2.0/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= @@ -1621,8 +1618,8 @@ github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeD github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= -github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= +github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1699,8 +1696,8 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/skip-mev/chaintestutil v0.0.0-20240116134208-3e49bf514803 h1:VRRVYN3wsOIOqVT3e3nDh3vyUl6RvF9QwdK4BvgPP9c= github.com/skip-mev/chaintestutil v0.0.0-20240116134208-3e49bf514803/go.mod h1:LF2koCTmygQnz11yjSfHvNP8axdyZ2lTEw0EwI+dnno= -github.com/skip-mev/slinky v0.4.1 h1:Pa0yAJWxWdXjI5VTglXN6RnZuepTkkQOlnroRAMjf7s= -github.com/skip-mev/slinky v0.4.1/go.mod h1:3reVzrW/sEXTFnSXFf+oxMbUig4nwAe7MLF0hU2jGr4= +github.com/skip-mev/slinky v0.4.6 h1:XODpNhaF7WJPylpjZLns6mxfcANunCi5mrr5cTSVBvo= +github.com/skip-mev/slinky v0.4.6/go.mod h1:AfPB9XOT50c6GXvRLO67Aw3iHw7hQhjuMaASpDFjRSM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1808,18 +1805,18 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= -go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y= -go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= -go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg= -go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= -go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= -go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0= -go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= +go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= +go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= +go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= +go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= +go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= +go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= +go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= +go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= @@ -1873,8 +1870,8 @@ golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45 golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2022,8 +2019,8 @@ golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -2199,8 +2196,8 @@ golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2215,8 +2212,8 @@ golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= -golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2237,8 +2234,8 @@ golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -2325,8 +2322,8 @@ golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4= golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.10.0/go.mod h1:UJwyiVBsOA2uwvK/e5OY3GTpDUJriEd+/YlqAwLPmyM= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= -golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= -golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= +golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw= +golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -2334,8 +2331,9 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= @@ -2409,8 +2407,8 @@ google.golang.org/api v0.125.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvy google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= google.golang.org/api v0.143.0/go.mod h1:FoX9DO9hT7DLNn97OuoZAGSDuNAXdJRuGK98rSUgurk= -google.golang.org/api v0.162.0 h1:Vhs54HkaEpkMBdgGdOT2P6F0csGG/vxDS0hWHJzmmps= -google.golang.org/api v0.162.0/go.mod h1:6SulDkfoBIg4NFmCuZ39XeeAgSHCPecfSUuDyYlAHs0= +google.golang.org/api v0.169.0 h1:QwWPy71FgMWqJN/l6jVlFHUa29a7dcUy02I8o799nPY= +google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -2582,8 +2580,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98/go. google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5/go.mod h1:5DZzOUPCLYL3mNkQ0ms0F3EuUNZ7py1Bqeq6sxzI7/Q= google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= -google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 h1:8eadJkXbwDEMNwcB5O0s5Y5eCfyuCLdvaiOIaGTrWmQ= -google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:qDbnxtViX5J6CvFbxeNUSzKgVlDLJ/6L+caxye9+Flo= google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a/go.mod h1:xURIpW9ES5+/GZhnV6beoEtxQrnkRGIfP5VQG2tCBLc= @@ -2652,8 +2650,8 @@ google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpX google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= From f67e68f3b9edecb874ace428729c9a23a8c9b21a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 20:55:10 -0600 Subject: [PATCH 15/50] add to config template --- app/params/config.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/params/config.go b/app/params/config.go index 820230862..b5571cbbd 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -1,14 +1,18 @@ package params import ( + "time" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" serverconfig "github.com/cosmos/cosmos-sdk/server/config" + oracleconfig "github.com/skip-mev/slinky/oracle/config" ) // CustomAppConfig defines the configuration for the Nois app. type CustomAppConfig struct { serverconfig.Config - Wasm wasmtypes.WasmConfig `mapstructure:"wasm"` + Wasm wasmtypes.WasmConfig `mapstructure:"wasm"` + Oracle oracleconfig.AppConfig `mapstructure:"oracle"` } func CustomconfigTemplate(config wasmtypes.WasmConfig) string { @@ -29,6 +33,12 @@ func DefaultConfig() (string, interface{}) { customConfig := CustomAppConfig{ Config: *serverConfig, Wasm: wasmConfig, + Oracle: oracleconfig.AppConfig{ + Enabled: false, + OracleAddress: "localhost:8080", + ClientTimeout: time.Second * 1, + MetricsEnabled: false, + }, } return CustomconfigTemplate(wasmConfig), customConfig From 23af97e9fc27dc51496cadb1e70a368804295909 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:09:05 -0600 Subject: [PATCH 16/50] append to default template --- app/params/config.go | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/app/params/config.go b/app/params/config.go index b5571cbbd..5e5be3bb6 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -1,6 +1,7 @@ package params import ( + "fmt" "time" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -15,8 +16,36 @@ type CustomAppConfig struct { Oracle oracleconfig.AppConfig `mapstructure:"oracle"` } -func CustomconfigTemplate(config wasmtypes.WasmConfig) string { - return serverconfig.DefaultConfigTemplate + wasmtypes.ConfigTemplate(config) +// ConfigTemplate toml snippet for app.toml +func OracleConfigTemplate(c oracleconfig.AppConfig) string { + + return fmt.Sprintf(` +############################################################################### +### Oracle ### +############################################################################### +[oracle] +# Enabled indicates whether the oracle is enabled. +enabled = %t + +# Oracle Address is the URL of the out of process oracle sidecar. This is used to +# connect to the oracle sidecar when the application boots up. Note that the address +# can be modified at any point, but will only take effect after the application is +# restarted. This can be the address of an oracle container running on the same +# machine or a remote machine. +oracle_address = "%s" + +# Client Timeout is the time that the client is willing to wait for responses from +# the oracle before timing out. +client_timeout = "%s" + +# MetricsEnabled determines whether oracle metrics are enabled. Specifically +# this enables instrumentation of the oracle client and the interaction between +# the oracle and the app. +metrics_enabled = %t +`, c.Enabled, c.OracleAddress, c.ClientTimeout.String(), c.MetricsEnabled) +} +func CustomconfigTemplate(config wasmtypes.WasmConfig, oracleConfig oracleconfig.AppConfig) string { + return serverconfig.DefaultConfigTemplate + wasmtypes.ConfigTemplate(config) + OracleConfigTemplate(oracleConfig) } func DefaultConfig() (string, interface{}) { @@ -41,5 +70,5 @@ func DefaultConfig() (string, interface{}) { }, } - return CustomconfigTemplate(wasmConfig), customConfig + return CustomconfigTemplate(wasmConfig, customConfig.Oracle), customConfig } From ff0abf00f920741fa0ad1f23ec3c093947b5c629 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:14:48 -0600 Subject: [PATCH 17/50] add remaining config, fix query service for ica host keeper --- app/app.go | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++- go.mod | 1 + go.sum | 2 + 3 files changed, 117 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 970ec7465..cd7335a11 100644 --- a/app/app.go +++ b/app/app.go @@ -1,6 +1,7 @@ package app import ( + "context" "encoding/json" "fmt" "io" @@ -8,6 +9,7 @@ import ( "net/http" "os" "path/filepath" + "time" autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" @@ -160,10 +162,19 @@ import ( sgstatesync "github.com/public-awesome/stargaze/v14/internal/statesync" // slinky + "github.com/skip-mev/slinky/abci/proposals" + compression "github.com/skip-mev/slinky/abci/strategies/codec" + "github.com/skip-mev/slinky/abci/strategies/currencypair" + "github.com/skip-mev/slinky/abci/ve" + "github.com/skip-mev/slinky/pkg/math/voteweighted" + oracleclient "github.com/skip-mev/slinky/service/clients/oracle" + servicemetrics "github.com/skip-mev/slinky/service/metrics" "github.com/skip-mev/slinky/x/oracle" oraclekeeper "github.com/skip-mev/slinky/x/oracle/keeper" oracletypes "github.com/skip-mev/slinky/x/oracle/types" + oraclepreblock "github.com/skip-mev/slinky/abci/preblock/oracle" + oracleconfig "github.com/skip-mev/slinky/oracle/config" "github.com/skip-mev/slinky/x/marketmap" marketmapkeeper "github.com/skip-mev/slinky/x/marketmap/keeper" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" @@ -301,6 +312,10 @@ type App struct { ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper ScopedWasmKeeper capabilitykeeper.ScopedKeeper + + // oracle + + oracleClient oracleclient.OracleClient } // NewStargazeApp returns a reference to an initialized Gaia. @@ -610,7 +625,7 @@ func NewStargazeApp( bApp.MsgServiceRouter(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - + app.Keepers.ICAHostKeeper.WithQueryRouter(app.GRPCQueryRouter()) icaHostIBCModule := icahost.NewIBCModule(app.Keepers.ICAHostKeeper) app.Keepers.ICAControllerKeeper = icacontrollerkeeper.NewKeeper( @@ -936,12 +951,109 @@ func NewStargazeApp( app.MountTransientStores(tkeys) app.MountMemoryStores(memKeys) + // Read general config from app-opts, and construct oracle service. + cfg, err := oracleconfig.ReadConfigFromAppOpts(appOpts) + if err != nil { + panic(err) + } + + // If app level instrumentation is enabled, then wrap the oracle service with a metrics client + // to get metrics on the oracle service (for ABCI++). This will allow the instrumentation to track + // latency in VerifyVoteExtension requests and more. + oracleMetrics, err := servicemetrics.NewMetricsFromConfig(cfg, app.ChainID()) + if err != nil { + panic(err) + } + + // Create the oracle service. + app.oracleClient, err = oracleclient.NewClientFromConfig( + cfg, + app.Logger().With("client", "oracle"), + oracleMetrics, + ) + if err != nil { + panic(err) + } + + // Connect to the oracle service (default timeout of 5 seconds). + go func() { + if err := app.oracleClient.Start(context.Background()); err != nil { + app.Logger().Error("failed to start oracle client", "err", err) + panic(err) + } + + app.Logger().Info("started oracle client", "address", cfg.OracleAddress) + }() + // initialize BaseApp + proposalHandler := proposals.NewProposalHandler( + app.Logger(), + baseapp.NoOpPrepareProposal(), + baseapp.NoOpProcessProposal(), + ve.NewDefaultValidateVoteExtensionsFn(app.Keepers.StakingKeeper), + compression.NewCompressionVoteExtensionCodec( + compression.NewDefaultVoteExtensionCodec(), + compression.NewZLibCompressor(), + ), + compression.NewCompressionExtendedCommitCodec( + compression.NewDefaultExtendedCommitCodec(), + compression.NewZStdCompressor(), + ), + currencypair.NewDeltaCurrencyPairStrategy(app.Keepers.OracleKeeper), + oracleMetrics, + ) + app.SetPrepareProposal(proposalHandler.PrepareProposalHandler()) + app.SetProcessProposal(proposalHandler.ProcessProposalHandler()) + app.SetInitChainer(app.InitChainer) - app.SetPreBlocker(app.PreBlocker) app.SetBeginBlocker(app.BeginBlocker) app.SetEndBlocker(app.EndBlocker) + // Create the aggregation function that will be used to aggregate oracle data + // from each validator. + aggregatorFn := voteweighted.MedianFromContext( + app.Logger(), + app.Keepers.StakingKeeper, + voteweighted.DefaultPowerThreshold, + ) + + // Create the pre-finalize block hook that will be used to apply oracle data + // to the state before any transactions are executed (in finalize block). + oraclePreBlockHandler := oraclepreblock.NewOraclePreBlockHandler( + app.Logger(), + aggregatorFn, + app.Keepers.OracleKeeper, + oracleMetrics, + currencypair.NewDeltaCurrencyPairStrategy(app.Keepers.OracleKeeper), + compression.NewCompressionVoteExtensionCodec( + compression.NewDefaultVoteExtensionCodec(), + compression.NewZLibCompressor(), + ), + compression.NewCompressionExtendedCommitCodec( + compression.NewDefaultExtendedCommitCodec(), + compression.NewZStdCompressor(), + ), + ) + + app.SetPreBlocker(oraclePreBlockHandler.PreBlocker()) + + // Create the vote extensions handler that will be used to extend and verify + // vote extensions (i.e. oracle data). + voteExtensionsHandler := ve.NewVoteExtensionHandler( + app.Logger(), + app.oracleClient, + time.Second, + currencypair.NewDeltaCurrencyPairStrategy(app.Keepers.OracleKeeper), + compression.NewCompressionVoteExtensionCodec( + compression.NewDefaultVoteExtensionCodec(), + compression.NewZLibCompressor(), + ), + oraclePreBlockHandler.PreBlocker(), + oracleMetrics, + ) + app.SetExtendVoteHandler(voteExtensionsHandler.ExtendVoteHandler()) + app.SetVerifyVoteExtensionHandler(voteExtensionsHandler.VerifyVoteExtensionHandler()) + anteHandler, err := NewAnteHandler( HandlerOptions{ HandlerOptions: ante.HandlerOptions{ diff --git a/go.mod b/go.mod index 2ccde8815..43b4be53a 100644 --- a/go.mod +++ b/go.mod @@ -84,6 +84,7 @@ require ( github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/interchain-security/v5 v5.0.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/creachadair/atomicfile v0.3.1 // indirect github.com/creachadair/tomledit v0.0.24 // indirect diff --git a/go.sum b/go.sum index c2d500916..c9a26a6da 100644 --- a/go.sum +++ b/go.sum @@ -979,6 +979,8 @@ github.com/cosmos/ibc-go/v8 v8.3.1 h1:cUNWvTCftKQIcpbf2y/jVzo2OY3g4GVFw6tTC/pQ+t github.com/cosmos/ibc-go/v8 v8.3.1/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/interchain-security/v5 v5.0.0 h1:iwHu1nFbXuYfa13isEgm6hkHU+2t/t56YjcfyP3PnQA= +github.com/cosmos/interchain-security/v5 v5.0.0/go.mod h1:h/RkwOppo5AJj+1pkQyfjqU1MPdpohD/S6oEeAXpGZY= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= From 5a6256fa7770cebad4e09efbbb6f388e59a3aa0f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:39:29 -0600 Subject: [PATCH 18/50] split upgrades, bump go ci version --- .drone.yml | 8 ++--- app/upgrades.go | 4 +-- app/upgrades/{ => mainnet}/v14/upgrade.go | 0 .../{ => mainnet}/v14/upgrade_test.go | 0 app/upgrades/testnet/upgrade.go | 34 +++++++++++++++++++ docker/Dockerfile.go-devtools | 4 +-- 6 files changed, 42 insertions(+), 8 deletions(-) rename app/upgrades/{ => mainnet}/v14/upgrade.go (100%) rename app/upgrades/{ => mainnet}/v14/upgrade_test.go (100%) create mode 100644 app/upgrades/testnet/upgrade.go diff --git a/.drone.yml b/.drone.yml index 616b06096..7581f570b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,7 +33,7 @@ steps: branch: no-cache - name: test - image: publicawesome/golang:1.22.1-devtooling + image: publicawesome/golang:1.22.3-devtooling volumes: - name: cache path: /go @@ -193,7 +193,7 @@ steps: environment: GOPROXY: http://goproxy - name: stargaze - image: publicawesome/golang:1.22.1-devtooling + image: publicawesome/golang:1.22.3-devtooling volumes: - name: cache path: /go @@ -281,7 +281,7 @@ steps: when: branch: no-cache - name: build-wrapper - image: publicawesome/golang:1.22.1-devtooling + image: publicawesome/golang:1.22.3-devtooling volumes: - name: cache path: /go @@ -421,6 +421,6 @@ volumes: --- kind: signature -hmac: 0e0c7fcfdbb1269dbc8595903d663c53bf327aabfca1298150e2e13638b2c3c2 +hmac: 4f20154cde67d7148de95d09bea560da732e4395e0abc5105163e3c792f79c6e ... diff --git a/app/upgrades.go b/app/upgrades.go index 35a203d40..8c9e66092 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -6,11 +6,11 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/types/module" upgrades "github.com/public-awesome/stargaze/v14/app/upgrades" - upgradesv14 "github.com/public-awesome/stargaze/v14/app/upgrades/v14" + mainnetupgradesv14 "github.com/public-awesome/stargaze/v14/app/upgrades/mainnet/v14" ) var Upgrades = []upgrades.Upgrade{ - upgradesv14.Upgrade, + mainnetupgradesv14.Upgrade, } func (app App) RegisterUpgradeHandlers(configurator module.Configurator) { diff --git a/app/upgrades/v14/upgrade.go b/app/upgrades/mainnet/v14/upgrade.go similarity index 100% rename from app/upgrades/v14/upgrade.go rename to app/upgrades/mainnet/v14/upgrade.go diff --git a/app/upgrades/v14/upgrade_test.go b/app/upgrades/mainnet/v14/upgrade_test.go similarity index 100% rename from app/upgrades/v14/upgrade_test.go rename to app/upgrades/mainnet/v14/upgrade_test.go diff --git a/app/upgrades/testnet/upgrade.go b/app/upgrades/testnet/upgrade.go new file mode 100644 index 000000000..8a66d00f8 --- /dev/null +++ b/app/upgrades/testnet/upgrade.go @@ -0,0 +1,34 @@ +package v14 + +import ( + "context" + + storetypes "cosmossdk.io/store/types" + upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/cosmos/cosmos-sdk/types/module" + "github.com/public-awesome/stargaze/v14/app/keepers" + "github.com/public-awesome/stargaze/v14/app/upgrades" + marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" + oracletypes "github.com/skip-mev/slinky/x/oracle/types" +) + +const UpgradeName = "v14-slinky" + +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, keepers keepers.StargazeKeepers) upgradetypes.UpgradeHandler { + return func(ctx context.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + migrations, err := mm.RunMigrations(ctx, cfg, fromVM) + if err != nil { + return nil, err + } + return migrations, nil + } + }, + StoreUpgrades: storetypes.StoreUpgrades{ + Added: []string{ + marketmaptypes.ModuleName, + oracletypes.ModuleName, + }, + }, +} diff --git a/docker/Dockerfile.go-devtools b/docker/Dockerfile.go-devtools index 74c478985..d78371061 100644 --- a/docker/Dockerfile.go-devtools +++ b/docker/Dockerfile.go-devtools @@ -1,5 +1,5 @@ -# docker build . -t publicawesome/golang:1.22.1-devtooling -f docker/Dockerfile.go-devtools -FROM golang:1.22.1 +# docker build . -t publicawesome/golang:1.22.3-devtooling -f docker/Dockerfile.go-devtools +FROM golang:1.22.3 RUN apt-get update && \ apt-get install -y cmake && \ apt-get -y clean && \ From e960da1912b24c1cc77643addc4696d6f5e9dd23 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:49:53 -0600 Subject: [PATCH 19/50] enable vote extensions in upgrade --- app/upgrades/mainnet/v14/upgrade.go | 25 ++++++++++++++++++ .../testnet/{ => v14-slinky}/upgrade.go | 26 +++++++++++++++++++ 2 files changed, 51 insertions(+) rename app/upgrades/testnet/{ => v14-slinky}/upgrade.go (52%) diff --git a/app/upgrades/mainnet/v14/upgrade.go b/app/upgrades/mainnet/v14/upgrade.go index a512a6e16..04689694d 100644 --- a/app/upgrades/mainnet/v14/upgrade.go +++ b/app/upgrades/mainnet/v14/upgrade.go @@ -5,8 +5,10 @@ import ( storetypes "cosmossdk.io/store/types" upgradetypes "cosmossdk.io/x/upgrade/types" + cmttypes "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" wasmlctypes "github.com/cosmos/ibc-go/modules/light-clients/08-wasm/types" "github.com/public-awesome/stargaze/v14/app/keepers" "github.com/public-awesome/stargaze/v14/app/upgrades" @@ -31,6 +33,29 @@ var Upgrade = upgrades.Upgrade{ params := keepers.IBCKeeper.ClientKeeper.GetParams(wctx) params.AllowedClients = append(params.AllowedClients, wasmlctypes.Wasm) keepers.IBCKeeper.ClientKeeper.SetParams(wctx, params) + + // upgrade consensus params to enable vote extensions + consensusParams, err := keepers.ConsensusParamsKeeper.Params(ctx, nil) + if err != nil { + return nil, err + } + + consensusParams.Params.Abci = &cmttypes.ABCIParams{ + VoteExtensionsEnableHeight: wctx.BlockHeight() + int64(10), + } + + _, err = keepers.ConsensusParamsKeeper.UpdateParams(ctx, &consensustypes.MsgUpdateParams{ + Authority: keepers.ConsensusParamsKeeper.GetAuthority(), + Block: consensusParams.Params.Block, + Evidence: consensusParams.Params.Evidence, + Validator: consensusParams.Params.Validator, + Abci: consensusParams.Params.Abci, + }) + + if err != nil { + return nil, err + } + return migrations, nil } }, diff --git a/app/upgrades/testnet/upgrade.go b/app/upgrades/testnet/v14-slinky/upgrade.go similarity index 52% rename from app/upgrades/testnet/upgrade.go rename to app/upgrades/testnet/v14-slinky/upgrade.go index 8a66d00f8..80cc7be64 100644 --- a/app/upgrades/testnet/upgrade.go +++ b/app/upgrades/testnet/v14-slinky/upgrade.go @@ -5,7 +5,10 @@ import ( storetypes "cosmossdk.io/store/types" upgradetypes "cosmossdk.io/x/upgrade/types" + cmttypes "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" "github.com/public-awesome/stargaze/v14/app/keepers" "github.com/public-awesome/stargaze/v14/app/upgrades" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" @@ -22,6 +25,29 @@ var Upgrade = upgrades.Upgrade{ if err != nil { return nil, err } + + // upgrade consensus params to enable vote extensions + consensusParams, err := keepers.ConsensusParamsKeeper.Params(ctx, nil) + if err != nil { + return nil, err + } + wctx := sdk.UnwrapSDKContext(ctx) + consensusParams.Params.Abci = &cmttypes.ABCIParams{ + VoteExtensionsEnableHeight: wctx.BlockHeight() + int64(10), + } + + _, err = keepers.ConsensusParamsKeeper.UpdateParams(ctx, &consensustypes.MsgUpdateParams{ + Authority: keepers.ConsensusParamsKeeper.GetAuthority(), + Block: consensusParams.Params.Block, + Evidence: consensusParams.Params.Evidence, + Validator: consensusParams.Params.Validator, + Abci: consensusParams.Params.Abci, + }) + + if err != nil { + return nil, err + } + return migrations, nil } }, From 2859476a00a088707fc15d17bfe5e7fc0e89c988 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:51:19 -0600 Subject: [PATCH 20/50] fix linter --- app/params/config.go | 2 +- app/upgrades/mainnet/v14/upgrade.go | 1 - app/upgrades/testnet/v14-slinky/upgrade.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/params/config.go b/app/params/config.go index 5e5be3bb6..11b8ebc43 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -18,7 +18,6 @@ type CustomAppConfig struct { // ConfigTemplate toml snippet for app.toml func OracleConfigTemplate(c oracleconfig.AppConfig) string { - return fmt.Sprintf(` ############################################################################### ### Oracle ### @@ -44,6 +43,7 @@ client_timeout = "%s" metrics_enabled = %t `, c.Enabled, c.OracleAddress, c.ClientTimeout.String(), c.MetricsEnabled) } + func CustomconfigTemplate(config wasmtypes.WasmConfig, oracleConfig oracleconfig.AppConfig) string { return serverconfig.DefaultConfigTemplate + wasmtypes.ConfigTemplate(config) + OracleConfigTemplate(oracleConfig) } diff --git a/app/upgrades/mainnet/v14/upgrade.go b/app/upgrades/mainnet/v14/upgrade.go index 04689694d..b8817406d 100644 --- a/app/upgrades/mainnet/v14/upgrade.go +++ b/app/upgrades/mainnet/v14/upgrade.go @@ -51,7 +51,6 @@ var Upgrade = upgrades.Upgrade{ Validator: consensusParams.Params.Validator, Abci: consensusParams.Params.Abci, }) - if err != nil { return nil, err } diff --git a/app/upgrades/testnet/v14-slinky/upgrade.go b/app/upgrades/testnet/v14-slinky/upgrade.go index 80cc7be64..5309e6a20 100644 --- a/app/upgrades/testnet/v14-slinky/upgrade.go +++ b/app/upgrades/testnet/v14-slinky/upgrade.go @@ -43,7 +43,6 @@ var Upgrade = upgrades.Upgrade{ Validator: consensusParams.Params.Validator, Abci: consensusParams.Params.Abci, }) - if err != nil { return nil, err } From a7a44b2ff97335754e98379b6dc05a42ad0f882a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:54:07 -0600 Subject: [PATCH 21/50] bump go version in Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b5d875ce3..e993ba1de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # docker build . -t publicawesome/stargaze:latest # docker run --rm -it publicawesome/stargaze:latest /bin/sh -FROM golang:1.22.1-alpine3.19 AS go-builder +FROM golang:1.22.3-alpine3.19 AS go-builder RUN set -eux; apk add --no-cache ca-certificates build-base git; From 26bed6b51495441af034efabdeb7873a4ffef47a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 21:57:48 -0600 Subject: [PATCH 22/50] bump go version --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7581f570b..ff4de8bd4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: environment: GOPROXY: http://goproxy - name: build - image: golang:1.22.1-alpine3.19 + image: golang:1.22.3-alpine3.19 volumes: - name: cache path: /go @@ -421,6 +421,6 @@ volumes: --- kind: signature -hmac: 4f20154cde67d7148de95d09bea560da732e4395e0abc5105163e3c792f79c6e +hmac: b0cd58d1c0903360f055590ce0b8b3caf31db7a78fcc8fb60290e23537bbff80 ... From 8e4f17b92673a79f3dcc23f4fd1adc44774a0608 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 22:04:21 -0600 Subject: [PATCH 23/50] publish alpha4 --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index ff4de8bd4..b706a8784 100644 --- a/.drone.yml +++ b/.drone.yml @@ -77,12 +77,12 @@ steps: password: from_secret: docker_password tags: - - 14.0.0-alpha.2 + - 14.0.0-alpha.4 when: event: - push branch: - - jhernandezb/upgrade-test + - jhernandezb/add-slinky - name: docker_release image: plugins/docker settings: @@ -98,7 +98,7 @@ steps: - tag - name: release - image: golang:1.21.3 + image: golang:1.22.3 environment: GITHUB_TOKEN: from_secret: github_token @@ -352,7 +352,7 @@ steps: - ./scripts/ci/upgrade/proposal.sh - name: stargaze-upgraded pull: always - image: publicawesome/stargaze:14.0.0-alpha.2 + image: publicawesome/stargaze:14.0.0-alpha.4 commands: - ./scripts/ci/upgrade/run-upgrade.sh environment: @@ -371,7 +371,7 @@ steps: - http://icad:26657 - name: check-params pull: always - image: publicawesome/stargaze:14.0.0-alpha.2 + image: publicawesome/stargaze:14.0.0-alpha.4 commands: - starsd q mint params --node http://stargaze-upgraded:26657 - starsd q alloc params --node http://stargaze-upgraded:26657 @@ -421,6 +421,6 @@ volumes: --- kind: signature -hmac: b0cd58d1c0903360f055590ce0b8b3caf31db7a78fcc8fb60290e23537bbff80 +hmac: 65603a40e43948cf97b2fe57d5b56cdf232001dff7451ec0b7d9d5c5f64af387 ... From 670584bed354514349fe9b9b926f52534ebe36ff Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 22:21:26 -0600 Subject: [PATCH 24/50] enable vote extensions on init/testnet commands --- cmd/starsd/cmd/init.go | 6 +++++- cmd/starsd/cmd/testnet.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index 81b3f07cf..891f2ccc0 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -14,6 +14,7 @@ import ( "github.com/cometbft/cometbft/libs/cli" tmos "github.com/cometbft/cometbft/libs/os" tmrand "github.com/cometbft/cometbft/libs/rand" + cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/go-bip39" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -161,8 +162,11 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { appGenesis.ChainID = chainID appGenesis.AppState = appState + defaultConsensusParams := cmttypes.DefaultConsensusParams() + defaultConsensusParams.ABCI = cmttypes.DefaultABCIParams() + defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = 1 appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ - Validators: nil, + Params: defaultConsensusParams, } if err = genutil.ExportGenesisFile(appGenesis, genFile); err != nil { diff --git a/cmd/starsd/cmd/testnet.go b/cmd/starsd/cmd/testnet.go index 586668589..2397cf0db 100644 --- a/cmd/starsd/cmd/testnet.go +++ b/cmd/starsd/cmd/testnet.go @@ -453,6 +453,7 @@ func initGenFiles( appGenesis := genutiltypes.NewAppGenesisWithVersion(chainID, appGenStateJSON) consensusParams := cmttypes.DefaultConsensusParams() + consensusParams.ABCI.VoteExtensionsEnableHeight = 1 consensusParams.Block.MaxBytes = 25 * 1024 * 1024 consensusParams.Block.MaxGas = 150_000_000 appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ From 289474ff810ae9fc02b776beb1a04685a1e65cfc Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 22:44:51 -0600 Subject: [PATCH 25/50] use custom init --- cmd/starsd/cmd/init.go | 99 +++++++++++++++++++++--------------------- cmd/starsd/cmd/root.go | 2 +- 2 files changed, 50 insertions(+), 51 deletions(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index 891f2ccc0..f4bcc53a6 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -4,29 +4,27 @@ import ( "bufio" "encoding/json" "fmt" - "io/fs" "os" "path/filepath" - "strings" - "time" + "cosmossdk.io/math/unsafe" cfg "github.com/cometbft/cometbft/config" "github.com/cometbft/cometbft/libs/cli" - tmos "github.com/cometbft/cometbft/libs/os" - tmrand "github.com/cometbft/cometbft/libs/rand" cmttypes "github.com/cometbft/cometbft/types" "github.com/cosmos/go-bip39" "github.com/pkg/errors" "github.com/spf13/cobra" + errorsmod "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/input" "github.com/cosmos/cosmos-sdk/server" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/cosmos/cosmos-sdk/x/genutil/types" ) const ( @@ -35,6 +33,9 @@ const ( // FlagSeed defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" + + // FlagDefaultBondDenom defines the default denom to use in the genesis file. + FlagDefaultBondDenom = "default-denom" ) type printInfo struct { @@ -61,7 +62,7 @@ func displayInfo(info printInfo) error { return err } - _, err = fmt.Fprintf(os.Stderr, "%s\n", string(sdk.MustSortJSON(out))) + _, err = fmt.Fprintf(os.Stderr, "%s\n", out) return err } @@ -82,38 +83,19 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config := serverCtx.Config config.SetRoot(clientCtx.HomeDir) - chainID, err := cmd.Flags().GetString(flags.FlagChainID) - if err != nil { - return err + chainID, _ := cmd.Flags().GetString(flags.FlagChainID) + switch { + case chainID != "": + case clientCtx.ChainID != "": + chainID = clientCtx.ChainID + default: + chainID = fmt.Sprintf("test-chain-%v", unsafe.Str(6)) } - if chainID == "" { - chainID = fmt.Sprintf("test-chain-%v", tmrand.Str(6)) - } - seeds := []string{} - - // pre-fill seeds for mainnet - if chainID == "stargaze-1" { - seeds = []string{ - "ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:13756", - "d5fc4f479c4e212c96dff5704bb2468ea03b8ae3@sg-seed.blockpane.com:26656", - "babc3f3f7804933265ec9c40ad94f4da8e9e0017@stargaze.seed.rhinostake.com:16656", - } - } - - // Override default settings in config.toml - config.P2P.Seeds = strings.Join(seeds, ",") - config.P2P.MaxNumInboundPeers = 120 - config.P2P.MaxNumOutboundPeers = 60 - config.Mempool.Size = 10000 - config.StateSync.TrustPeriod = 112 * time.Hour // Get bip39 mnemonic var mnemonic string - recovery, err := cmd.Flags().GetBool(FlagRecover) - if err != nil { - return err - } - if recovery { + recover, _ := cmd.Flags().GetBool(FlagRecover) + if recover { inBuf := bufio.NewReader(cmd.InOrStdin()) value, err := input.GetString("Enter your bip39 mnemonic", inBuf) if err != nil { @@ -126,6 +108,12 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { } } + // Get initial height + initHeight, _ := cmd.Flags().GetInt64(flags.FlagInitHeight) + if initHeight < 1 { + initHeight = 1 + } + nodeID, _, err := genutil.InitializeNodeValidatorFilesFromMnemonic(config, mnemonic) if err != nil { return err @@ -134,43 +122,54 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.Moniker = args[0] genFile := config.GenesisFile() - overwrite, err := cmd.Flags().GetBool(FlagOverwrite) - if err != nil { - return err - } + overwrite, _ := cmd.Flags().GetBool(FlagOverwrite) + defaultDenom, _ := cmd.Flags().GetString(FlagDefaultBondDenom) - if !overwrite && tmos.FileExists(genFile) { + // use os.Stat to check if the file exists + _, err = os.Stat(genFile) + if !overwrite && !os.IsNotExist(err) { return fmt.Errorf("genesis.json file already exists: %v", genFile) } - appState, err := json.MarshalIndent(mbm.DefaultGenesis(cdc), "", " ") + // Overwrites the SDK default denom for side-effects + if defaultDenom != "" { + sdk.DefaultBondDenom = defaultDenom + } + appGenState := mbm.DefaultGenesis(cdc) + + appState, err := json.MarshalIndent(appGenState, "", " ") if err != nil { - return errors.Wrap(err, "Failed to marshall default genesis state") + return errorsmod.Wrap(err, "Failed to marshal default genesis state") } - appGenesis := &genutiltypes.AppGenesis{} + appGenesis := &types.AppGenesis{} if _, err := os.Stat(genFile); err != nil { - if !errors.Is(err, fs.ErrNotExist) { + if !os.IsNotExist(err) { return err } } else { - appGenesis, err = genutiltypes.AppGenesisFromFile(genFile) + appGenesis, err = types.AppGenesisFromFile(genFile) if err != nil { - return errors.Wrap(err, "Failed to read genesis doc from file") + return errorsmod.Wrap(err, "Failed to read genesis doc from file") } } + appGenesis.AppName = version.AppName + appGenesis.AppVersion = version.Version appGenesis.ChainID = chainID appGenesis.AppState = appState + appGenesis.InitialHeight = initHeight defaultConsensusParams := cmttypes.DefaultConsensusParams() - defaultConsensusParams.ABCI = cmttypes.DefaultABCIParams() + defaultConsensusParams.Block.MaxBytes = 10_485_760 // 10MB + defaultConsensusParams.Block.MaxGas = 300_000_000 // 300M gas defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = 1 - appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ - Params: defaultConsensusParams, + appGenesis.Consensus = &types.ConsensusGenesis{ + Params: defaultConsensusParams, + Validators: nil, } if err = genutil.ExportGenesisFile(appGenesis, genFile); err != nil { - return errors.Wrap(err, "Failed to export gensis file") + return errorsmod.Wrap(err, "Failed to export genesis file") } toPrint := newPrintInfo(config.Moniker, chainID, nodeID, "", appState) diff --git a/cmd/starsd/cmd/root.go b/cmd/starsd/cmd/root.go index caf1ee23f..eb5ab1391 100644 --- a/cmd/starsd/cmd/root.go +++ b/cmd/starsd/cmd/root.go @@ -159,7 +159,7 @@ func initRootCmd( basicManager module.BasicManager, ) { rootCmd.AddCommand( - genutilcli.InitCmd(basicManager, app.DefaultNodeHome), + InitCmd(basicManager, app.DefaultNodeHome), tmcli.NewCompletionCmd(rootCmd, true), debug.Cmd(), confixcmd.ConfigCommand(), From d31fec67c3417ed432d2fcb129796dc4e17bc3dd Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 22:49:46 -0600 Subject: [PATCH 26/50] fix linter --- cmd/starsd/cmd/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index f4bcc53a6..5bb1805ad 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -94,8 +94,8 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { // Get bip39 mnemonic var mnemonic string - recover, _ := cmd.Flags().GetBool(FlagRecover) - if recover { + recoverEnabled, _ := cmd.Flags().GetBool(FlagRecover) + if recoverEnabled { inBuf := bufio.NewReader(cmd.InOrStdin()) value, err := input.GetString("Enter your bip39 mnemonic", inBuf) if err != nil { From aa176fbdafed39732577575a51b1e1bf0668710f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 00:02:52 -0600 Subject: [PATCH 27/50] add initial markets --- app/upgrades/mainnet/v14/upgrade.go | 22 ++++ app/upgrades/testnet/v14-slinky/upgrade.go | 20 +++ internal/oracle/markets/markets.go | 35 +++++ internal/oracle/markets/markets.json | 142 +++++++++++++++++++++ internal/oracle/markets/markets_test.go | 21 +++ 5 files changed, 240 insertions(+) create mode 100644 internal/oracle/markets/markets.go create mode 100644 internal/oracle/markets/markets.json create mode 100644 internal/oracle/markets/markets_test.go diff --git a/app/upgrades/mainnet/v14/upgrade.go b/app/upgrades/mainnet/v14/upgrade.go index b8817406d..244fa1758 100644 --- a/app/upgrades/mainnet/v14/upgrade.go +++ b/app/upgrades/mainnet/v14/upgrade.go @@ -12,6 +12,7 @@ import ( wasmlctypes "github.com/cosmos/ibc-go/modules/light-clients/08-wasm/types" "github.com/public-awesome/stargaze/v14/app/keepers" "github.com/public-awesome/stargaze/v14/app/upgrades" + "github.com/public-awesome/stargaze/v14/internal/oracle/markets" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" oracletypes "github.com/skip-mev/slinky/x/oracle/types" ) @@ -55,6 +56,27 @@ var Upgrade = upgrades.Upgrade{ return nil, err } + // add markets + m, err := markets.Slice() + if err != nil { + return nil, err + } + + // iterates over slice and not map + for _, market := range m { + // create market + err = keepers.MarketMapKeeper.CreateMarket(wctx, market) + if err != nil { + return nil, err + } + + // invoke hooks + err = keepers.MarketMapKeeper.Hooks().AfterMarketCreated(wctx, market) + if err != nil { + return nil, err + } + } + return migrations, nil } }, diff --git a/app/upgrades/testnet/v14-slinky/upgrade.go b/app/upgrades/testnet/v14-slinky/upgrade.go index 5309e6a20..d3a11e5b2 100644 --- a/app/upgrades/testnet/v14-slinky/upgrade.go +++ b/app/upgrades/testnet/v14-slinky/upgrade.go @@ -11,6 +11,7 @@ import ( consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" "github.com/public-awesome/stargaze/v14/app/keepers" "github.com/public-awesome/stargaze/v14/app/upgrades" + "github.com/public-awesome/stargaze/v14/internal/oracle/markets" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" oracletypes "github.com/skip-mev/slinky/x/oracle/types" ) @@ -46,7 +47,26 @@ var Upgrade = upgrades.Upgrade{ if err != nil { return nil, err } + // add markets + m, err := markets.Slice() + if err != nil { + return nil, err + } + // iterates over slice and not map + for _, market := range m { + // create market + err = keepers.MarketMapKeeper.CreateMarket(wctx, market) + if err != nil { + return nil, err + } + + // invoke hooks + err = keepers.MarketMapKeeper.Hooks().AfterMarketCreated(wctx, market) + if err != nil { + return nil, err + } + } return migrations, nil } }, diff --git a/internal/oracle/markets/markets.go b/internal/oracle/markets/markets.go new file mode 100644 index 000000000..2f98f38e2 --- /dev/null +++ b/internal/oracle/markets/markets.go @@ -0,0 +1,35 @@ +package markets + +import ( + _ "embed" + "encoding/json" + "slices" + "strings" + + marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" +) + +//go:embed markets.json +var marketsRawBz []byte + +func Map() (markets marketmaptypes.MarketMap, err error) { + err = json.Unmarshal(marketsRawBz, &markets) + return +} + +func Slice() ([]marketmaptypes.Market, error) { + m, err := Map() + markets := make([]marketmaptypes.Market, 0, len(m.Markets)) + if err != nil { + return nil, err + } + for _, market := range m.Markets { + markets = append(markets, market) + } + + // sort them for deterministic purposes + slices.SortFunc(markets, func(a, b marketmaptypes.Market) int { + return strings.Compare(a.Ticker.String(), b.Ticker.String()) + }) + return markets, nil +} diff --git a/internal/oracle/markets/markets.json b/internal/oracle/markets/markets.json new file mode 100644 index 000000000..1b21397be --- /dev/null +++ b/internal/oracle/markets/markets.json @@ -0,0 +1,142 @@ +{ + "markets": { + "BTC/USD": { + "ticker": { + "currency_pair": { + "Base": "BTC", + "Quote": "USD" + }, + "decimals": 5, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_api", + "off_chain_ticker": "BTCUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "BTCUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_api", + "off_chain_ticker": "BTC-USD" + }, + { + "name": "huobi_ws", + "off_chain_ticker": "btcusdt", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "kraken_api", + "off_chain_ticker": "XXBTZUSD" + }, + { + "name": "kucoin_ws", + "off_chain_ticker": "BTC-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "mexc_ws", + "off_chain_ticker": "BTCUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "okx_ws", + "off_chain_ticker": "BTC-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, + "ATOM/USD": { + "ticker": { + "currency_pair": { + "Base": "ATOM", + "Quote": "USD" + }, + "decimals": 9, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_api", + "off_chain_ticker": "ATOMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "ATOMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_api", + "off_chain_ticker": "ATOM-USD" + }, + { + "name": "gate_ws", + "off_chain_ticker": "ATOM_USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "kraken_api", + "off_chain_ticker": "ATOMUSD" + }, + { + "name": "kucoin_ws", + "off_chain_ticker": "ATOM-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "mexc_ws", + "off_chain_ticker": "ATOMUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "okx_ws", + "off_chain_ticker": "ATOM-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + } + } +} \ No newline at end of file diff --git a/internal/oracle/markets/markets_test.go b/internal/oracle/markets/markets_test.go new file mode 100644 index 000000000..3ae04a8b1 --- /dev/null +++ b/internal/oracle/markets/markets_test.go @@ -0,0 +1,21 @@ +package markets_test + +import ( + "testing" + + "github.com/public-awesome/stargaze/v14/internal/oracle/markets" + "github.com/stretchr/testify/require" +) + +func TestMarkets(t *testing.T) { + m, err := markets.Map() + require.NoError(t, err) + require.Len(t, m.Markets, 2) + + s, err := markets.Slice() + require.NoError(t, err) + require.Len(t, s, 2) + + require.Equal(t, "ATOM/USD", s[0].Ticker.String()) + require.Equal(t, "BTC/USD", s[1].Ticker.String()) +} From 44409305b2fe70d1684ec6f0f26ded99abc320e7 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 00:11:40 -0600 Subject: [PATCH 28/50] add default markets to testnet command --- cmd/starsd/cmd/genesis.go | 11 +++++++++++ cmd/starsd/cmd/testnet.go | 5 +++-- internal/oracle/markets/markets.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/cmd/starsd/cmd/genesis.go b/cmd/starsd/cmd/genesis.go index 8710bb8ca..7d9a7f60c 100644 --- a/cmd/starsd/cmd/genesis.go +++ b/cmd/starsd/cmd/genesis.go @@ -13,6 +13,7 @@ import ( slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + "github.com/public-awesome/stargaze/v14/internal/oracle/markets" minttypes "github.com/public-awesome/stargaze/v14/x/mint/types" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -23,6 +24,7 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1" globalfeetypes "github.com/public-awesome/stargaze/v14/x/globalfee/types" tokenfactorytypes "github.com/public-awesome/stargaze/v14/x/tokenfactory/types" + marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" ) const ( @@ -112,6 +114,15 @@ func PrepareGenesis( crisisGenStateBz := clientCtx.Codec.MustMarshalJSON(crisisGenState) appState[crisistypes.ModuleName] = crisisGenStateBz + marketmapGenState := marketmaptypes.DefaultGenesisState() + marketsMap, err := markets.Map() + if err != nil { + panic(fmt.Errorf("failed to parse markets: %w", err)) + } + marketmapGenState.MarketMap = marketsMap + marketmapGenStateBz := clientCtx.Codec.MustMarshalJSON(marketmapGenState) + appState[crisistypes.ModuleName] = marketmapGenStateBz + return appState } diff --git a/cmd/starsd/cmd/testnet.go b/cmd/starsd/cmd/testnet.go index 2397cf0db..44287e4a8 100644 --- a/cmd/starsd/cmd/testnet.go +++ b/cmd/starsd/cmd/testnet.go @@ -453,9 +453,10 @@ func initGenFiles( appGenesis := genutiltypes.NewAppGenesisWithVersion(chainID, appGenStateJSON) consensusParams := cmttypes.DefaultConsensusParams() + consensusParams.ABCI.VoteExtensionsEnableHeight = 1 - consensusParams.Block.MaxBytes = 25 * 1024 * 1024 - consensusParams.Block.MaxGas = 150_000_000 + consensusParams.Block.MaxBytes = 10 * 1024 * 1024 + consensusParams.Block.MaxGas = 300_000_000 appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ Validators: nil, Params: consensusParams, diff --git a/internal/oracle/markets/markets.json b/internal/oracle/markets/markets.json index 1b21397be..ef12f4949 100644 --- a/internal/oracle/markets/markets.json +++ b/internal/oracle/markets/markets.json @@ -139,4 +139,4 @@ ] } } -} \ No newline at end of file +} From a17245634452c378e9ad924162f41053d1648f96 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 00:18:57 -0600 Subject: [PATCH 29/50] update default height for enabling vote extensions --- cmd/starsd/cmd/init.go | 2 +- cmd/starsd/cmd/testnet.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index 5bb1805ad..fcd114812 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -162,7 +162,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { defaultConsensusParams := cmttypes.DefaultConsensusParams() defaultConsensusParams.Block.MaxBytes = 10_485_760 // 10MB defaultConsensusParams.Block.MaxGas = 300_000_000 // 300M gas - defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = 1 + defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = 2 appGenesis.Consensus = &types.ConsensusGenesis{ Params: defaultConsensusParams, Validators: nil, diff --git a/cmd/starsd/cmd/testnet.go b/cmd/starsd/cmd/testnet.go index 44287e4a8..30b8a3dc7 100644 --- a/cmd/starsd/cmd/testnet.go +++ b/cmd/starsd/cmd/testnet.go @@ -454,7 +454,7 @@ func initGenFiles( appGenesis := genutiltypes.NewAppGenesisWithVersion(chainID, appGenStateJSON) consensusParams := cmttypes.DefaultConsensusParams() - consensusParams.ABCI.VoteExtensionsEnableHeight = 1 + consensusParams.ABCI.VoteExtensionsEnableHeight = 2 consensusParams.Block.MaxBytes = 10 * 1024 * 1024 consensusParams.Block.MaxGas = 300_000_000 appGenesis.Consensus = &genutiltypes.ConsensusGenesis{ From b10e0718f556671dc6bfbb404bcecfb5a12f0d15 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 20:19:42 -0600 Subject: [PATCH 30/50] bump interchain test --- cmd/starsd/cmd/root.go | 6 +- e2e/go.mod | 90 +++++++++--------- e2e/go.sum | 207 ++++++++++++++++++++--------------------- startnode.sh | 6 +- 4 files changed, 156 insertions(+), 153 deletions(-) diff --git a/cmd/starsd/cmd/root.go b/cmd/starsd/cmd/root.go index eb5ab1391..21aa6383b 100644 --- a/cmd/starsd/cmd/root.go +++ b/cmd/starsd/cmd/root.go @@ -14,7 +14,9 @@ import ( "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" "github.com/cosmos/cosmos-sdk/client/rpc" + "github.com/cosmos/cosmos-sdk/client/snapshot" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/server" @@ -165,8 +167,8 @@ func initRootCmd( confixcmd.ConfigCommand(), Bech32Cmd(), NewTestnetCmd(basicManager), - // pruning.Cmd(newApp, app.DefaultNodeHome), - // snapshot.Cmd(newApp), + pruning.Cmd(newApp, app.DefaultNodeHome), + snapshot.Cmd(newApp), ) server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags) wasmcli.ExtendUnsafeResetAllCmd(rootCmd) diff --git a/e2e/go.mod b/e2e/go.mod index a375307b6..80585182e 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -1,6 +1,8 @@ module github.com/public-awesome/stargaze/e2e -go 1.21 +go 1.22.2 + +toolchain go1.22.3 replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d @@ -12,13 +14,13 @@ replace ( require ( cosmossdk.io/math v1.3.0 cosmossdk.io/x/upgrade v0.1.1 - github.com/cosmos/cosmos-sdk v0.50.5 - github.com/cosmos/gogoproto v1.4.11 - github.com/cosmos/ibc-go/v8 v8.1.0 + github.com/cosmos/cosmos-sdk v0.50.6 + github.com/cosmos/gogoproto v1.4.12 + github.com/cosmos/ibc-go/v8 v8.2.0 github.com/docker/docker v24.0.9+incompatible - github.com/strangelove-ventures/interchaintest/v8 v8.1.0 + github.com/strangelove-ventures/interchaintest/v8 v8.3.0 github.com/stretchr/testify v1.9.0 - go.uber.org/zap v1.26.0 + go.uber.org/zap v1.27.0 gopkg.in/yaml.v2 v2.4.0 ) @@ -27,16 +29,17 @@ require ( cloud.google.com/go/compute v1.24.0 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.6 // indirect - cloud.google.com/go/storage v1.36.0 // indirect - cosmossdk.io/api v0.7.3 // indirect + cloud.google.com/go/storage v1.37.0 // indirect + cosmossdk.io/api v0.7.4 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/core v0.11.0 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/log v1.3.1 // indirect - cosmossdk.io/store v1.0.2 // indirect + cosmossdk.io/store v1.1.0 // indirect + cosmossdk.io/x/evidence v0.1.0 // indirect cosmossdk.io/x/feegrant v0.1.0 // indirect - cosmossdk.io/x/tx v0.13.1 // indirect + cosmossdk.io/x/tx v0.13.2 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -59,7 +62,7 @@ require ( github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/cockroachdb/errors v1.11.1 // indirect github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect @@ -67,15 +70,16 @@ require ( github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/cometbft/cometbft v0.38.6 // indirect - github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cometbft/cometbft-db v0.10.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.2 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.4 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v1.0.1 // indirect + github.com/cosmos/iavl v1.1.2 // indirect github.com/cosmos/ibc-go/modules/capability v1.0.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect @@ -131,11 +135,12 @@ require ( github.com/hashicorp/go-getter v1.7.4 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.2 // indirect + github.com/hashicorp/go-metrics v0.5.3 // indirect github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect @@ -148,7 +153,6 @@ require ( github.com/ipfs/go-cid v0.4.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/klauspost/compress v1.17.7 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect github.com/kr/pretty v0.3.1 // indirect @@ -156,7 +160,7 @@ require ( github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/libp2p/go-libp2p v0.31.0 // indirect - github.com/linxGnu/grocksdb v1.8.12 // indirect + github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -177,20 +181,21 @@ require ( github.com/multiformats/go-multicodec v0.9.0 // indirect github.com/multiformats/go-multihash v0.2.3 // indirect github.com/multiformats/go-varint v0.0.7 // indirect + github.com/ncruces/go-strftime v0.1.9 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc2 // indirect github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.1.0 // indirect - github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pelletier/go-toml/v2 v2.2.0 // indirect + github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pierrec/xxHash v0.1.5 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_golang v1.18.0 // indirect - github.com/prometheus/client_model v0.6.0 // indirect - github.com/prometheus/common v0.47.0 // indirect - github.com/prometheus/procfs v0.12.0 // indirect + github.com/prometheus/client_golang v1.19.0 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.52.2 // indirect + github.com/prometheus/procfs v0.13.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect @@ -223,39 +228,36 @@ require ( go.opentelemetry.io/otel/metric v1.22.0 // indirect go.opentelemetry.io/otel/trace v1.22.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.21.0 // indirect - golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect - golang.org/x/mod v0.15.0 // indirect - golang.org/x/net v0.23.0 // indirect - golang.org/x/oauth2 v0.16.0 // indirect - golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect + golang.org/x/crypto v0.22.0 // indirect + golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/oauth2 v0.18.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.18.0 // indirect + golang.org/x/tools v0.20.0 // indirect google.golang.org/api v0.162.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c // indirect - google.golang.org/grpc v1.62.0 // indirect + google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect + google.golang.org/grpc v1.63.2 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect lukechampine.com/blake3 v1.2.1 // indirect - lukechampine.com/uint128 v1.2.0 // indirect - modernc.org/cc/v3 v3.40.0 // indirect - modernc.org/ccgo/v3 v3.16.13 // indirect - modernc.org/libc v1.29.0 // indirect + modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect + modernc.org/libc v1.41.0 // indirect modernc.org/mathutil v1.6.0 // indirect modernc.org/memory v1.7.2 // indirect - modernc.org/opt v0.1.3 // indirect - modernc.org/sqlite v1.28.0 // indirect - modernc.org/strutil v1.1.3 // indirect - modernc.org/token v1.0.1 // indirect + modernc.org/sqlite v1.29.5 // indirect + modernc.org/strutil v1.2.0 // indirect + modernc.org/token v1.1.0 // indirect nhooyr.io/websocket v1.8.7 // indirect pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/e2e/go.sum b/e2e/go.sum index affdc5645..7e336fada 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -171,8 +171,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8= -cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= +cloud.google.com/go/storage v1.37.0 h1:WI8CsaFO8Q9KjPVtsZ5Cmi0dXV25zMoX0FklT7c3Jm4= +cloud.google.com/go/storage v1.37.0/go.mod h1:i34TiT2IhiNDmcj65PqwCjcoUX7Z5pLzS8DEmoiFq1k= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= @@ -184,8 +184,8 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= -cosmossdk.io/api v0.7.3 h1:V815i8YOwOAQa1rLCsSMjVG5Gnzs02JLq+l7ks8s1jk= -cosmossdk.io/api v0.7.3/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/api v0.7.4 h1:sPo8wKwCty1lht8kgL3J7YL1voJywP3YWuA5JKkBz30= +cosmossdk.io/api v0.7.4/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= @@ -200,16 +200,16 @@ cosmossdk.io/log v1.3.1 h1:UZx8nWIkfbbNEWusZqzAx3ZGvu54TZacWib3EzUYmGI= cosmossdk.io/log v1.3.1/go.mod h1:2/dIomt8mKdk6vl3OWJcPk2be3pGOS8OQaLUM/3/tCM= cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= -cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= -cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= +cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= cosmossdk.io/x/evidence v0.1.0/go.mod h1:hTaiiXsoiJ3InMz1uptgF0BnGqROllAN8mwisOMMsfw= cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= -cosmossdk.io/x/tx v0.13.1 h1:Mg+EMp67Pz+NukbJqYxuo8uRp7N/a9uR+oVS9pONtj8= -cosmossdk.io/x/tx v0.13.1/go.mod h1:CBCU6fsRVz23QGFIQBb1DNX2DztJCf3jWyEkHY2nJQ0= +cosmossdk.io/x/tx v0.13.2 h1:Kh90UH30bhnnUdJH+CmWLyaH8IKdY6BBGY3EkdOk82o= +cosmossdk.io/x/tx v0.13.2/go.mod h1:yhPokDCfXVIuAtyp49IFlWB5YAXUgD7Zek+ZHwsHzvU= cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -310,8 +310,8 @@ github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= @@ -342,8 +342,8 @@ github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877 h1:1MLK4YpFtIEo3ZtMA5C795Wtv5VuUnrXX7mQG+aHg6o= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= @@ -357,8 +357,8 @@ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1: github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk= github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw= -github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= -github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/cometbft/cometbft-db v0.10.0 h1:VMBQh88zXn64jXVvj39tlu/IgsGR84T7ImjS523DCiU= +github.com/cometbft/cometbft-db v0.10.0/go.mod h1:7RR7NRv99j7keWJ5IkE9iZibUTKYdtepXTp7Ra0FxKk= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -371,26 +371,28 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= -github.com/cosmos/cosmos-proto v1.0.0-beta.4 h1:aEL7tU/rLOmxZQ9z4i7mzxcLbSCY48OdY7lIWTLG7oU= -github.com/cosmos/cosmos-proto v1.0.0-beta.4/go.mod h1:oeB+FyVzG3XrQJbJng0EnV8Vljfk9XvTIpGILNU/9Co= -github.com/cosmos/cosmos-sdk v0.50.5 h1:MOEi+DKYgW67YaPgB+Pf+nHbD3V9S/ayitRKJYLfGIA= -github.com/cosmos/cosmos-sdk v0.50.5/go.mod h1:oV/k6GJgXV9QPoM2fsYDPPsyPBgQbdotv532O6Mz1OQ= +github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= +github.com/cosmos/cosmos-sdk v0.50.6 h1:efR3MsvMHX5sxS3be+hOobGk87IzlZbSpsI2x/Vw3hk= +github.com/cosmos/cosmos-sdk v0.50.6/go.mod h1:lVkRY6cdMJ0fG3gp8y4hFrsKZqF4z7y0M2UXFb9Yt40= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= -github.com/cosmos/gogoproto v1.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= -github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= -github.com/cosmos/iavl v1.0.1 h1:D+mYbcRO2wptYzOM1Hxl9cpmmHU1ZEt9T2Wv5nZTeUw= -github.com/cosmos/iavl v1.0.1/go.mod h1:8xIUkgVvwvVrBu81scdPty+/Dx9GqwHnAvXz4cwF7RY= +github.com/cosmos/gogoproto v1.4.12 h1:vB6Lbe/rtnYGjQuFxkPiPYiCybqFT8QvLipDZP8JpFE= +github.com/cosmos/gogoproto v1.4.12/go.mod h1:LnZob1bXRdUoqMMtwYlcR3wjiElmlC+FkjaZRv1/eLY= +github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= +github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.1.0 h1:pf1106wl0Cf+p1+FjXzV6odlS9DnqVunPVWCH1Uz+lQ= -github.com/cosmos/ibc-go/v8 v8.1.0/go.mod h1:o1ipS95xpdjqNcB8Drq0eI3Sn4FRLigjll42ec1ECuU= +github.com/cosmos/ibc-go/v8 v8.2.0 h1:7oCzyy1sZCcgpeQLnHxC56brsSz3KWwQGKXalXwXFzE= +github.com/cosmos/ibc-go/v8 v8.2.0/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74 h1:6atU/xizTL10q6EprP7oRuvfgUP2F6puvutnVoE+FRc= +github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74/go.mod h1:h/RkwOppo5AJj+1pkQyfjqU1MPdpohD/S6oEeAXpGZY= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= @@ -705,8 +707,8 @@ github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-metrics v0.5.2 h1:ErEYO2f//CjKsUDw4SmLzelsK6L3ZmOAR/4P9iS7ruY= -github.com/hashicorp/go-metrics v0.5.2/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= @@ -719,8 +721,8 @@ github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerX github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -729,6 +731,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -784,8 +788,6 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= @@ -817,8 +819,8 @@ github.com/libp2p/go-libp2p v0.31.0 h1:LFShhP8F6xthWiBBq3euxbKjZsoRajVEyBS9snfHx github.com/libp2p/go-libp2p v0.31.0/go.mod h1:W/FEK1c/t04PbRH3fA9i5oucu5YcgrG0JVoBWT1B7Eg= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.8.12 h1:1/pCztQUOa3BX/1gR3jSZDoaKFpeHFvQ1XrqZpSvZVo= -github.com/linxGnu/grocksdb v1.8.12/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= +github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= @@ -840,8 +842,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= -github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= @@ -906,6 +908,8 @@ github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzE github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4= +github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -929,8 +933,8 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.27.8 h1:gegWiwZjBsf2DgiSbf5hpokZ98JVDMcWkUiigk6/KXc= -github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= +github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= +github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= @@ -948,6 +952,8 @@ github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnh github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/oxyno-zeta/gomock-extra-matcher v1.2.0 h1:WPEclU0y0PMwUzdDcaKZvld4aXpa3fkzjiUMQdcBEHg= +github.com/oxyno-zeta/gomock-extra-matcher v1.2.0/go.mod h1:S0r7HmKeCGsHmvIVFMjKWwswb4+30nCNWbXRMBVPkaU= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= @@ -956,12 +962,12 @@ github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtP github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= -github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/pelletier/go-toml/v2 v2.2.0 h1:QLgLl2yMN7N+ruc31VynXs1vhMZa7CeHHejIeBAsoHo= +github.com/pelletier/go-toml/v2 v2.2.0/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= -github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= -github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/xxHash v0.1.5 h1:n/jBpwTHiER4xYvK3/CdPVnLDPchj8eTJFFLUb4QHBo= @@ -984,32 +990,32 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= -github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= +github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= +github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.0 h1:k1v3CzpSRUTrKMppY35TLwPvxHqBu0bYgxZzqGIgaos= -github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.47.0 h1:p5Cz0FNHo7SnWOmWmoRozVcjEp0bIVU8cV7OShpjL1k= -github.com/prometheus/common v0.47.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= +github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= +github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= -github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= +github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -1077,8 +1083,8 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= -github.com/strangelove-ventures/interchaintest/v8 v8.1.0 h1:+VOGGR2sEP2gLvx0ojRONt8oKMHk+2mjVdOmarsdbvc= -github.com/strangelove-ventures/interchaintest/v8 v8.1.0/go.mod h1:kXw3vLQdEEcvyJ3ZindGPigpHgIdwrywNsQKkARb+qM= +github.com/strangelove-ventures/interchaintest/v8 v8.3.0 h1:1XyATc0JkvzDhBS71CdpM5z1t6bmO9PgH/5/nffoM9Q= +github.com/strangelove-ventures/interchaintest/v8 v8.3.0/go.mod h1:5goHQtgWO9khoUO/SfR//w3uaw/uYVriDR1OY6PyydM= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -1176,8 +1182,10 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= -go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= +go.uber.org/mock v0.2.0/go.mod h1:J0y0rp9L3xiff1+ZBfKxlC1fz2+aO16tw0tsDOixfuM= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= @@ -1187,8 +1195,8 @@ go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9E go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= -go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20170613210332-850760c427c5/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1202,8 +1210,8 @@ golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1215,8 +1223,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ= -golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1243,8 +1251,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1304,8 +1312,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= -golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1331,8 +1339,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= -golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= +golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= +golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1347,8 +1355,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1446,13 +1454,13 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1533,8 +1541,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= -golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= +golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1542,8 +1550,9 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= @@ -1712,12 +1721,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y= -google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:mqHbVIp48Muh7Ywss/AD6I5kNVKZMmAa/QEW58Gxp2s= -google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= -google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c h1:NUsgEN92SQQqzfA+YtqYNqYmB3DMMYLlIwUZAQFVFbo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= +google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1:jFNzHPIeuzhdRwVhbZdiym9q0ory/xY3sA+v2wPg8I0= +google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda h1:LI5DOvAxUPMv/50agcLLoo+AdWc1irS9Rzz4vPuD1V4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1759,8 +1768,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= -google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= +google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1827,34 +1836,22 @@ launchpad.net/gocheck v0.0.0-20140225173054-000000000087 h1:Izowp2XBH6Ya6rv+hqbc launchpad.net/gocheck v0.0.0-20140225173054-000000000087/go.mod h1:hj7XX3B/0A+80Vse0e+BUHsHMTEhd0O4cpUHr/e/BUM= lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= -lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI= -lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= -modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw= -modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= -modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= -modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= -modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= -modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ= -modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= -modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM= -modernc.org/libc v1.29.0 h1:tTFRFq69YKCF2QyGNuRUQxKBm1uZZLubf6Cjh/pVHXs= -modernc.org/libc v1.29.0/go.mod h1:DaG/4Q3LRRdqpiLyP0C2m1B8ZMGkQ+cCgOIjEtQlYhQ= +modernc.org/fileutil v1.3.0 h1:gQ5SIzK3H9kdfai/5x41oQiKValumqNTDXMvKo62HvE= +modernc.org/fileutil v1.3.0/go.mod h1:XatxS8fZi3pS8/hKG2GH/ArUogfxjpEKs3Ku3aK4JyQ= +modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 h1:5D53IMaUuA5InSeMu9eJtlQXS2NxAhyWQvkKEgXZhHI= +modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6/go.mod h1:Qz0X07sNOR1jWYCrJMEnbW/X55x206Q7Vt4mz6/wHp4= +modernc.org/libc v1.41.0 h1:g9YAc6BkKlgORsUWj+JwqoB1wU3o4DE3bM3yvA3k+Gk= +modernc.org/libc v1.41.0/go.mod h1:w0eszPsiXoOnoMJgrXjglgLuDy/bt5RR4y3QzUUeodY= modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4= modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo= modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E= modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E= -modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= -modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= -modernc.org/sqlite v1.28.0 h1:Zx+LyDDmXczNnEQdvPuEfcFVA2ZPyaD7UCZDjef3BHQ= -modernc.org/sqlite v1.28.0/go.mod h1:Qxpazz0zH8Z1xCFyi5GSL3FzbtZ3fvbjmywNogldEW0= -modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= -modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= -modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY= -modernc.org/tcl v1.15.2/go.mod h1:3+k/ZaEbKrC8ePv8zJWPtBSW0V7Gg9g8rkmhI1Kfs3c= -modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= -modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY= -modernc.org/z v1.7.3/go.mod h1:Ipv4tsdxZRbQyLq9Q1M6gdbkxYzdlrciF2Hi/lS7nWE= +modernc.org/sqlite v1.29.5 h1:8l/SQKAjDtZFo9lkJLdk8g9JEOeYRG4/ghStDCCTiTE= +modernc.org/sqlite v1.29.5/go.mod h1:S02dvcmm7TnTRvGhv8IGYyLnIt7AS2KPaB1F/71p75U= +modernc.org/strutil v1.2.0 h1:agBi9dp1I+eOnxXeiZawM8F4LawKv4NzGWSaLfyeNZA= +modernc.org/strutil v1.2.0/go.mod h1:/mdcBmfOibveCTBxUl5B5l6W+TTH1FXPLHZE6bTosX0= +modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= +modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= diff --git a/startnode.sh b/startnode.sh index 82b21797d..5ff016694 100755 --- a/startnode.sh +++ b/startnode.sh @@ -18,15 +18,17 @@ FUNDER=$($STARSD_FILE keys show funder -a) DENOM=ustars # setup chain $STARSD_FILE init stargaze --chain-id localnet-1 -sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json + # modify config for development config="$HOME/.starsd/config/config.toml" if [ "$(uname)" = "Linux" ]; then sed -i "s/cors_allowed_origins = \[\]/cors_allowed_origins = [\"*\"]/g" $config + sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json else sed -i '' "s/cors_allowed_origins = \[\]/cors_allowed_origins = [\"*\"]/g" $config + sed -i '' "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json fi -sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json + # modify genesis params for localnet ease of use # x/gov params change # reduce voting period to 2 minutes From 5588c347dae7a4eba18817d45280d3ffa37f6dfd Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 20:45:16 -0600 Subject: [PATCH 31/50] fix int types --- e2e/chain_upgrade_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/chain_upgrade_test.go b/e2e/chain_upgrade_test.go index 94f2a40bc..46e5ab8d5 100644 --- a/e2e/chain_upgrade_test.go +++ b/e2e/chain_upgrade_test.go @@ -24,7 +24,7 @@ const ( ) const ( - haltHeightDelta = uint64(20) // The number of blocks after which to apply upgrade after creation of proposal. + haltHeightDelta = int64(20) // The number of blocks after which to apply upgrade after creation of proposal. blocksAfterUpgrade = uint64(10) // The number of blocks to wait for after the upgrade has been applied. votingPeriod = "30s" // Reducing voting period for testing maxDepositPeriod = "10s" // Reducing max deposit period for testing @@ -59,7 +59,7 @@ func TestChainUpgrade(t *testing.T) { defer timeoutCtxCancel() // This should timeout due to chain halt at upgrade height. - _ = testutil.WaitForBlocks(timeoutCtx, int(haltHeight-height)+1, stargazeChain) + _ = testutil.WaitForBlocks(timeoutCtx, int(haltHeight)-int(height)+1, stargazeChain) height, err = stargazeChain.Height(ctx) require.NoError(t, err, "error fetching height after chain should have halted") @@ -140,7 +140,7 @@ func submitUpgradeProposalAndVote(t *testing.T, ctx context.Context, stargazeCha _, err = cosmos.PollForProposalStatusV1(ctx, stargazeChain, height, height+haltHeightDelta, proposalID, govv1.ProposalStatus_PROPOSAL_STATUS_PASSED) require.NoError(t, err, "proposal status did not change to passed in expected number of blocks") - return haltHeight + return uint64(haltHeight) } func fundChainUser(t *testing.T, ctx context.Context, userName string, stargazeChain *cosmos.CosmosChain) ibc.Wallet { From 8c254b1d1f197878b3b05cfe83d53566e2d4142a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 20:50:28 -0600 Subject: [PATCH 32/50] bump ibc-go --- e2e/go.mod | 5 +++-- e2e/go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/e2e/go.mod b/e2e/go.mod index 80585182e..e0b7b2fce 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -8,6 +8,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 + github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7 ) @@ -16,7 +17,7 @@ require ( cosmossdk.io/x/upgrade v0.1.1 github.com/cosmos/cosmos-sdk v0.50.6 github.com/cosmos/gogoproto v1.4.12 - github.com/cosmos/ibc-go/v8 v8.2.0 + github.com/cosmos/ibc-go/v8 v8.3.1 github.com/docker/docker v24.0.9+incompatible github.com/strangelove-ventures/interchaintest/v8 v8.3.0 github.com/stretchr/testify v1.9.0 @@ -69,7 +70,7 @@ require ( github.com/cockroachdb/pebble v1.1.0 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.6 // indirect + github.com/cometbft/cometbft v0.38.7 // indirect github.com/cometbft/cometbft-db v0.10.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.2 // indirect diff --git a/e2e/go.sum b/e2e/go.sum index 7e336fada..936224547 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -355,8 +355,8 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk= -github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw= +github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk= +github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY= github.com/cometbft/cometbft-db v0.10.0 h1:VMBQh88zXn64jXVvj39tlu/IgsGR84T7ImjS523DCiU= github.com/cometbft/cometbft-db v0.10.0/go.mod h1:7RR7NRv99j7keWJ5IkE9iZibUTKYdtepXTp7Ra0FxKk= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= @@ -387,8 +387,8 @@ github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.2.0 h1:7oCzyy1sZCcgpeQLnHxC56brsSz3KWwQGKXalXwXFzE= -github.com/cosmos/ibc-go/v8 v8.2.0/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= +github.com/cosmos/ibc-go/v8 v8.3.1 h1:cUNWvTCftKQIcpbf2y/jVzo2OY3g4GVFw6tTC/pQ+tA= +github.com/cosmos/ibc-go/v8 v8.3.1/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74 h1:6atU/xizTL10q6EprP7oRuvfgUP2F6puvutnVoE+FRc= @@ -1016,6 +1016,8 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c h1:MmosZcX8FE4t/PYI5cpztjZnOijtxSds721WoShvvG0= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -1083,8 +1085,6 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= -github.com/strangelove-ventures/interchaintest/v8 v8.3.0 h1:1XyATc0JkvzDhBS71CdpM5z1t6bmO9PgH/5/nffoM9Q= -github.com/strangelove-ventures/interchaintest/v8 v8.3.0/go.mod h1:5goHQtgWO9khoUO/SfR//w3uaw/uYVriDR1OY6PyydM= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= From aee3058d39e3b216a78392e0f0770223895f2aa7 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 21:19:14 -0600 Subject: [PATCH 33/50] bump fork --- e2e/go.mod | 2 +- e2e/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/go.mod b/e2e/go.mod index e0b7b2fce..62df1cbae 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -8,7 +8,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c + github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7 ) diff --git a/e2e/go.sum b/e2e/go.sum index 936224547..dda46603b 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -1016,8 +1016,8 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= -github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c h1:MmosZcX8FE4t/PYI5cpztjZnOijtxSds721WoShvvG0= -github.com/public-awesome/interchaintest/v8 v8.0.0-20240524024843-81b2a007101c/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 h1:ik5mb1QfGlWPlUghH3T0fWc8EgT4RgsHw0v1P+7wtTI= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= From c7344eb6d3db32f194726c64e9c2024b0c99622e Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 21:45:42 -0600 Subject: [PATCH 34/50] change encoder --- e2e/go.mod | 81 ++++++++++++--------- e2e/go.sum | 182 ++++++++++++++++++++++++++---------------------- e2e/ica_test.go | 3 +- 3 files changed, 149 insertions(+), 117 deletions(-) diff --git a/e2e/go.mod b/e2e/go.mod index 62df1cbae..3a2ad6438 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -7,18 +7,21 @@ toolchain go1.22.3 replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0 + github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 => github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 + github.com/public-awesome/stargaze/v14 => ../ github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7 ) require ( cosmossdk.io/math v1.3.0 - cosmossdk.io/x/upgrade v0.1.1 + cosmossdk.io/x/upgrade v0.1.2 github.com/cosmos/cosmos-sdk v0.50.6 github.com/cosmos/gogoproto v1.4.12 github.com/cosmos/ibc-go/v8 v8.3.1 github.com/docker/docker v24.0.9+incompatible + github.com/public-awesome/stargaze/v14 v14.0.0-alpha.1 github.com/strangelove-ventures/interchaintest/v8 v8.3.0 github.com/stretchr/testify v1.9.0 go.uber.org/zap v1.27.0 @@ -26,21 +29,22 @@ require ( ) require ( - cloud.google.com/go v0.112.0 // indirect - cloud.google.com/go/compute v1.24.0 // indirect + cloud.google.com/go v0.112.1 // indirect + cloud.google.com/go/compute v1.25.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.6 // indirect - cloud.google.com/go/storage v1.37.0 // indirect - cosmossdk.io/api v0.7.4 // indirect + cloud.google.com/go/storage v1.38.0 // indirect + cosmossdk.io/api v0.7.5 // indirect + cosmossdk.io/client/v2 v2.0.0-beta.1 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/core v0.11.0 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/log v1.3.1 // indirect cosmossdk.io/store v1.1.0 // indirect - cosmossdk.io/x/evidence v0.1.0 // indirect - cosmossdk.io/x/feegrant v0.1.0 // indirect - cosmossdk.io/x/tx v0.13.2 // indirect + cosmossdk.io/x/evidence v0.1.1 // indirect + cosmossdk.io/x/feegrant v0.1.1 // indirect + cosmossdk.io/x/tx v0.13.3 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -48,6 +52,8 @@ require ( github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect github.com/ChainSafe/go-schnorrkel/1 v0.0.0-00010101000000-000000000000 // indirect github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420 // indirect + github.com/CosmWasm/wasmd v0.50.0 // indirect + github.com/CosmWasm/wasmvm v1.5.2 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect @@ -59,7 +65,7 @@ require ( github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect - github.com/bits-and-blooms/bitset v1.10.0 // indirect + github.com/bits-and-blooms/bitset v1.13.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect @@ -78,9 +84,12 @@ require ( github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.1.2 // indirect + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2 // indirect + github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-00010101000000-000000000000 // indirect github.com/cosmos/ibc-go/modules/capability v1.0.0 // indirect + github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect - github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74 // indirect + github.com/cosmos/interchain-security/v5 v5.0.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect @@ -93,18 +102,19 @@ require ( github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/distribution/reference v0.5.0 // indirect github.com/docker/distribution v2.8.2+incompatible // indirect github.com/docker/go-connections v0.5.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.6.1 // indirect - github.com/ethereum/go-ethereum v1.13.15 // indirect - github.com/fatih/color v1.15.0 // indirect + github.com/ethereum/go-ethereum v1.14.3 // indirect + github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.27.0 // indirect - github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/kit v0.13.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.1 // indirect @@ -119,14 +129,15 @@ require ( github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.2 // indirect github.com/google/go-cmp v0.6.0 // indirect + github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/googleapis/gax-go/v2 v2.12.2 // indirect github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect - github.com/gorilla/websocket v1.5.0 // indirect + github.com/gorilla/websocket v1.5.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect @@ -147,6 +158,7 @@ require ( github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/holiman/uint256 v1.2.4 // indirect github.com/huandu/skiplist v1.2.0 // indirect + github.com/iancoleman/orderedmap v0.3.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -154,11 +166,11 @@ require ( github.com/ipfs/go-cid v0.4.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/compress v1.17.8 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/lib/pq v1.10.7 // indirect + github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/libp2p/go-libp2p v0.31.0 // indirect github.com/linxGnu/grocksdb v1.8.14 // indirect @@ -188,12 +200,12 @@ require ( github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc2 // indirect github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.2.0 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pierrec/xxHash v0.1.5 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_golang v1.19.0 // indirect + github.com/prometheus/client_golang v1.19.1 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.2 // indirect github.com/prometheus/procfs v0.13.0 // indirect @@ -205,6 +217,7 @@ require ( github.com/sagikazarmark/locafero v0.4.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/skip-mev/slinky v0.4.6 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/afero v1.11.0 // indirect @@ -223,30 +236,30 @@ require ( github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect - go.opentelemetry.io/otel v1.22.0 // indirect - go.opentelemetry.io/otel/metric v1.22.0 // indirect - go.opentelemetry.io/otel/trace v1.22.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect + go.opentelemetry.io/otel v1.24.0 // indirect + go.opentelemetry.io/otel/metric v1.24.0 // indirect + go.opentelemetry.io/otel/trace v1.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.22.0 // indirect + golang.org/x/crypto v0.23.0 // indirect golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect golang.org/x/mod v0.17.0 // indirect - golang.org/x/net v0.24.0 // indirect + golang.org/x/net v0.25.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/term v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/term v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.20.0 // indirect - google.golang.org/api v0.162.0 // indirect + golang.org/x/tools v0.21.0 // indirect + google.golang.org/api v0.169.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/grpc v1.64.0 // indirect + google.golang.org/protobuf v1.34.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/e2e/go.sum b/e2e/go.sum index dda46603b..fd1da141f 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -30,8 +30,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= -cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= +cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= +cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= @@ -68,8 +68,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg= -cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40= +cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= +cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -171,8 +171,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.37.0 h1:WI8CsaFO8Q9KjPVtsZ5Cmi0dXV25zMoX0FklT7c3Jm4= -cloud.google.com/go/storage v1.37.0/go.mod h1:i34TiT2IhiNDmcj65PqwCjcoUX7Z5pLzS8DEmoiFq1k= +cloud.google.com/go/storage v1.38.0 h1:Az68ZRGlnNTpIBbLjSMIV2BDcwwXYlRlQzis0llkpJg= +cloud.google.com/go/storage v1.38.0/go.mod h1:tlUADB0mAb9BgYls9lq+8MGkfzOXuLrnHXlpHmvFJoY= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= @@ -184,8 +184,8 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= -cosmossdk.io/api v0.7.4 h1:sPo8wKwCty1lht8kgL3J7YL1voJywP3YWuA5JKkBz30= -cosmossdk.io/api v0.7.4/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= +cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= @@ -202,16 +202,18 @@ cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= -cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= -cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= -cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= -cosmossdk.io/x/evidence v0.1.0/go.mod h1:hTaiiXsoiJ3InMz1uptgF0BnGqROllAN8mwisOMMsfw= -cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= -cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= -cosmossdk.io/x/tx v0.13.2 h1:Kh90UH30bhnnUdJH+CmWLyaH8IKdY6BBGY3EkdOk82o= -cosmossdk.io/x/tx v0.13.2/go.mod h1:yhPokDCfXVIuAtyp49IFlWB5YAXUgD7Zek+ZHwsHzvU= -cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= -cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= +cosmossdk.io/x/circuit v0.1.1 h1:KPJCnLChWrxD4jLwUiuQaf5mFD/1m7Omyo7oooefBVQ= +cosmossdk.io/x/circuit v0.1.1/go.mod h1:B6f/urRuQH8gjt4eLIXfZJucrbreuYrKh5CSjaOxr+Q= +cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4= +cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc= +cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8= +cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ= +cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM= +cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g= +cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= +cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= +cosmossdk.io/x/upgrade v0.1.2 h1:O2FGb0mVSXl7P6BQm9uV3hRVKom1zBLDGhd4G8jysJg= +cosmossdk.io/x/upgrade v0.1.2/go.mod h1:P+e4/ZNd8km7lTAX5hC2pXz/042YDcB7gzKTHuY53nc= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= @@ -231,6 +233,10 @@ github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRr github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4= github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420 h1:oknQF/iIhf5lVjbwjsVDzDByupRhga8nhA3NAmwyHDA= github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420/go.mod h1:KYkiMX5AbOlXXYfxkrYPrRPV6EbVUALTQh5ptUOJzu8= +github.com/CosmWasm/wasmd v0.50.0 h1:NVaGqCSTRfb9UTDHJwT6nQIWcb6VjlQl88iI+u1+qjE= +github.com/CosmWasm/wasmd v0.50.0/go.mod h1:UjmShW4l9YxaMytwJZ7IB7MWzHiynSZP3DdWrG0FRtk= +github.com/CosmWasm/wasmvm v1.5.2 h1:+pKB1Mz9GZVt1vadxB+EDdD1FOz3dMNjIKq/58/lrag= +github.com/CosmWasm/wasmvm v1.5.2/go.mod h1:Q0bSEtlktzh7W2hhEaifrFp1Erx11ckQZmjq8FLCyys= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= @@ -288,8 +294,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ 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/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= -github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE= +github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= @@ -337,8 +343,6 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= -github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= @@ -385,14 +389,18 @@ github.com/cosmos/gogoproto v1.4.12 h1:vB6Lbe/rtnYGjQuFxkPiPYiCybqFT8QvLipDZP8Jp github.com/cosmos/gogoproto v1.4.12/go.mod h1:LnZob1bXRdUoqMMtwYlcR3wjiElmlC+FkjaZRv1/eLY= github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2 h1:dyLNlDElY6+5zW/BT/dO/3Ad9FpQblfh+9dQpYQodbA= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2/go.mod h1:82hPO/tRawbuFad2gPwChvpZ0JEIoNi91LwVneAYCeM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708 h1:KOdpcf8gEAMrKQCkNyyxPNVG2fcQiO0GHKmPjD4U8CA= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240208183954-71fa5c9fd708/go.mod h1:Jn7QCHDIa4DknrRUwJvwpGPU5Htgka0k5W6tuEckwUk= github.com/cosmos/ibc-go/v8 v8.3.1 h1:cUNWvTCftKQIcpbf2y/jVzo2OY3g4GVFw6tTC/pQ+tA= github.com/cosmos/ibc-go/v8 v8.3.1/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= -github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74 h1:6atU/xizTL10q6EprP7oRuvfgUP2F6puvutnVoE+FRc= -github.com/cosmos/interchain-security/v5 v5.0.0-alpha1.0.20240424193412-7cd900ad2a74/go.mod h1:h/RkwOppo5AJj+1pkQyfjqU1MPdpohD/S6oEeAXpGZY= +github.com/cosmos/interchain-security/v5 v5.0.0 h1:iwHu1nFbXuYfa13isEgm6hkHU+2t/t56YjcfyP3PnQA= +github.com/cosmos/interchain-security/v5 v5.0.0/go.mod h1:h/RkwOppo5AJj+1pkQyfjqU1MPdpohD/S6oEeAXpGZY= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= @@ -432,6 +440,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0= @@ -463,14 +473,12 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= -github.com/ethereum/go-ethereum v1.13.15 h1:U7sSGYGo4SPjP6iNIifNoyIAiNjrmQkz6EwQG+/EZWo= -github.com/ethereum/go-ethereum v1.13.15/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU= +github.com/ethereum/go-ethereum v1.14.3 h1:5zvnAqLtnCZrU9uod1JCvHWJbPMURzYFHfc2eHz4PHA= +github.com/ethereum/go-ethereum v1.14.3/go.mod h1:1STrq471D0BQbCX9He0hUj4bHxX2k6mt5nOQJhDNOJ8= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= @@ -500,8 +508,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= -github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= -github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/kit v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU= +github.com/go-kit/kit v0.13.0/go.mod h1:phqEHMMUbyrCFCTgH48JueqrM3md2HcAZ8N3XE4FKDg= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= @@ -530,10 +538,12 @@ github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4 github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/gobwas/ws v1.2.1 h1:F2aeBZrm2NDsc7vbovKrWSogd4wvfAxg0FQ89/iqOTk= github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= @@ -663,8 +673,8 @@ github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99 github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= -github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= -github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/gax-go/v2 v2.12.2 h1:mhN09QQW1jEWeMF74zGR81R30z4VJzjZsfkUhuHF+DA= +github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= @@ -676,8 +686,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= +github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= @@ -751,6 +761,8 @@ github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0Jr github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJn+Ichc= +github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJDkXXS7VoV7XGE= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= @@ -794,8 +806,8 @@ github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYs github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= -github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU= +github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -811,8 +823,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= -github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/libp2p/go-libp2p v0.31.0 h1:LFShhP8F6xthWiBBq3euxbKjZsoRajVEyBS9snfHxYg= @@ -962,8 +974,8 @@ github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtP github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.2.0 h1:QLgLl2yMN7N+ruc31VynXs1vhMZa7CeHHejIeBAsoHo= -github.com/pelletier/go-toml/v2 v2.2.0/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= @@ -990,8 +1002,8 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= -github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= +github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1016,6 +1028,8 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d h1:qS1yYeQ3DdQToHYf0KgJYbhNDvCAaG7ZWfMUG79iGME= +github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d/go.mod h1:FCEMQKIWfF9Sxe0ehKJJ+tcMosGcnmWefwYOQMR5Z40= github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 h1:ik5mb1QfGlWPlUghH3T0fWc8EgT4RgsHw0v1P+7wtTI= github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -1056,8 +1070,12 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/skip-mev/chaintestutil v0.0.0-20240116134208-3e49bf514803 h1:VRRVYN3wsOIOqVT3e3nDh3vyUl6RvF9QwdK4BvgPP9c= +github.com/skip-mev/chaintestutil v0.0.0-20240116134208-3e49bf514803/go.mod h1:LF2koCTmygQnz11yjSfHvNP8axdyZ2lTEw0EwI+dnno= +github.com/skip-mev/slinky v0.4.6 h1:XODpNhaF7WJPylpjZLns6mxfcANunCi5mrr5cTSVBvo= +github.com/skip-mev/slinky v0.4.6/go.mod h1:AfPB9XOT50c6GXvRLO67Aw3iHw7hQhjuMaASpDFjRSM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1164,18 +1182,18 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= -go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y= -go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= -go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg= -go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= -go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= -go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0= -go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= +go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= +go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= +go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= +go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= +go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= +go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= +go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= +go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -1184,8 +1202,8 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= -go.uber.org/mock v0.2.0/go.mod h1:J0y0rp9L3xiff1+ZBfKxlC1fz2+aO16tw0tsDOixfuM= +go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= +go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= @@ -1210,8 +1228,8 @@ golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1312,8 +1330,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1454,13 +1472,13 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1472,8 +1490,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1541,8 +1559,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= -golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= +golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw= +golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1602,8 +1620,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.162.0 h1:Vhs54HkaEpkMBdgGdOT2P6F0csGG/vxDS0hWHJzmmps= -google.golang.org/api v0.162.0/go.mod h1:6SulDkfoBIg4NFmCuZ39XeeAgSHCPecfSUuDyYlAHs0= +google.golang.org/api v0.169.0 h1:QwWPy71FgMWqJN/l6jVlFHUa29a7dcUy02I8o799nPY= +google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1723,8 +1741,8 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1:jFNzHPIeuzhdRwVhbZdiym9q0ory/xY3sA+v2wPg8I0= -google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda h1:LI5DOvAxUPMv/50agcLLoo+AdWc1irS9Rzz4vPuD1V4= google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= @@ -1768,8 +1786,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1786,8 +1804,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/e2e/ica_test.go b/e2e/ica_test.go index dd4292f54..e9552cea5 100644 --- a/e2e/ica_test.go +++ b/e2e/ica_test.go @@ -13,6 +13,7 @@ import ( "github.com/cosmos/gogoproto/proto" icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + "github.com/public-awesome/stargaze/v14/app" "github.com/strangelove-ventures/interchaintest/v8" "github.com/strangelove-ventures/interchaintest/v8/chain/cosmos" "github.com/strangelove-ventures/interchaintest/v8/ibc" @@ -120,7 +121,7 @@ func TestInterchainAccounts(t *testing.T) { // Start the relayer and set the cleanup function. err = r.StartRelayer(ctx, eRep, pathName) require.NoError(t, err) - ir := cosmos.DefaultEncoding().InterfaceRegistry + ir := app.MakeEncodingConfig().InterfaceRegistry t.Cleanup( func() { From 66925ca76b3346410475923fcf28d03a985ca6d0 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 22:13:08 -0600 Subject: [PATCH 35/50] bump version --- e2e/go.mod | 2 +- e2e/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/go.mod b/e2e/go.mod index 3a2ad6438..407024dc9 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -10,7 +10,7 @@ replace ( github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 => github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/public-awesome/stargaze/v14 => ../ - github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 + github.com/strangelove-ventures/interchaintest/v8 => github.com/public-awesome/interchaintest/v8 v8.0.0-20240524041115-85cfeb2b4828 github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7 ) diff --git a/e2e/go.sum b/e2e/go.sum index fd1da141f..3a6152eda 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -1030,8 +1030,8 @@ github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGK github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d h1:qS1yYeQ3DdQToHYf0KgJYbhNDvCAaG7ZWfMUG79iGME= github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d/go.mod h1:FCEMQKIWfF9Sxe0ehKJJ+tcMosGcnmWefwYOQMR5Z40= -github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934 h1:ik5mb1QfGlWPlUghH3T0fWc8EgT4RgsHw0v1P+7wtTI= -github.com/public-awesome/interchaintest/v8 v8.0.0-20240524031705-f8efd4bea934/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524041115-85cfeb2b4828 h1:eam/br7qXme+A4TNvWh/I4KrCOl4K8DC/jNbs4DT/e8= +github.com/public-awesome/interchaintest/v8 v8.0.0-20240524041115-85cfeb2b4828/go.mod h1:HMjhtoiMxYEkDjyu6wdSfnapgHMW3Xo01aS1+MxmAUg= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= From febcb4257acc6901f55a3716e57b19b841605b7f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 22:35:52 -0600 Subject: [PATCH 36/50] add vote extensions height flag to init --- cmd/starsd/cmd/init.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index fcd114812..389566536 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -36,6 +36,8 @@ const ( // FlagDefaultBondDenom defines the default denom to use in the genesis file. FlagDefaultBondDenom = "default-denom" + + FlagVoteExtensionsEnableHeight = "vote-extensions-height" ) type printInfo struct { @@ -162,7 +164,9 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { defaultConsensusParams := cmttypes.DefaultConsensusParams() defaultConsensusParams.Block.MaxBytes = 10_485_760 // 10MB defaultConsensusParams.Block.MaxGas = 300_000_000 // 300M gas - defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = 2 + + voteExtensionsHeight, _ := cmd.Flags().GetInt64(FlagVoteExtensionsEnableHeight) + defaultConsensusParams.ABCI.VoteExtensionsEnableHeight = voteExtensionsHeight appGenesis.Consensus = &types.ConsensusGenesis{ Params: defaultConsensusParams, Validators: nil, @@ -183,6 +187,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { cmd.Flags().BoolP(FlagOverwrite, "o", false, "overwrite the genesis.json file") cmd.Flags().Bool(FlagRecover, false, "provide seed phrase to recover existing key instead of creating") cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") + cmd.Flags().Int64(FlagVoteExtensionsEnableHeight, 0, "enable vote extensions height") return cmd } From 5bf667525ecd4e19b32ba1029eb73d08822d411b Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Thu, 23 May 2024 23:10:30 -0600 Subject: [PATCH 37/50] enable vote extensions --- cmd/starsd/cmd/init.go | 2 +- go.mod | 1 + go.sum | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index 389566536..53af5c38c 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -187,7 +187,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { cmd.Flags().BoolP(FlagOverwrite, "o", false, "overwrite the genesis.json file") cmd.Flags().Bool(FlagRecover, false, "provide seed phrase to recover existing key instead of creating") cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") - cmd.Flags().Int64(FlagVoteExtensionsEnableHeight, 0, "enable vote extensions height") + cmd.Flags().Int64(FlagVoteExtensionsEnableHeight, 2, "enable vote extensions height") return cmd } diff --git a/go.mod b/go.mod index 43b4be53a..cbffc4359 100644 --- a/go.mod +++ b/go.mod @@ -217,6 +217,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 + github.com/cosmos/cosmos-sdk => github.com/public-awesome/cosmos-sdk v0.50.0-beta.0.0.20240524044418-cc469e470f74 github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 => github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.8.1 // TODO: remove after https://github.com/spf13/viper/issues/1706 gets fixed diff --git a/go.sum b/go.sum index c9a26a6da..a06772d8f 100644 --- a/go.sum +++ b/go.sum @@ -958,8 +958,6 @@ github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAK github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.6 h1:efR3MsvMHX5sxS3be+hOobGk87IzlZbSpsI2x/Vw3hk= -github.com/cosmos/cosmos-sdk v0.50.6/go.mod h1:lVkRY6cdMJ0fG3gp8y4hFrsKZqF4z7y0M2UXFb9Yt40= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -1650,6 +1648,8 @@ github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/public-awesome/cosmos-sdk v0.50.0-beta.0.0.20240524044418-cc469e470f74 h1:1wgLXL6/mRYTBMXDeLpmTqAhvrhNIza8pyzEmM68cKo= +github.com/public-awesome/cosmos-sdk v0.50.0-beta.0.0.20240524044418-cc469e470f74/go.mod h1:lVkRY6cdMJ0fG3gp8y4hFrsKZqF4z7y0M2UXFb9Yt40= github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d h1:qS1yYeQ3DdQToHYf0KgJYbhNDvCAaG7ZWfMUG79iGME= github.com/public-awesome/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240112154558-ac156266345d/go.mod h1:FCEMQKIWfF9Sxe0ehKJJ+tcMosGcnmWefwYOQMR5Z40= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= From 9ebb0fc7514a45fdadb92d053ccd3e159b960499 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Fri, 24 May 2024 12:26:46 +0100 Subject: [PATCH 38/50] fixing the typecasting of upgrade test --- e2e/chain_upgrade_test.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/e2e/chain_upgrade_test.go b/e2e/chain_upgrade_test.go index 46e5ab8d5..5a2256ec7 100644 --- a/e2e/chain_upgrade_test.go +++ b/e2e/chain_upgrade_test.go @@ -24,11 +24,11 @@ const ( ) const ( - haltHeightDelta = int64(20) // The number of blocks after which to apply upgrade after creation of proposal. - blocksAfterUpgrade = uint64(10) // The number of blocks to wait for after the upgrade has been applied. - votingPeriod = "30s" // Reducing voting period for testing - maxDepositPeriod = "10s" // Reducing max deposit period for testing - depositDenom = "ustars" // The bond denom to be used to deposit for propsals + haltHeightDelta = int64(20) // The number of blocks after which to apply upgrade after creation of proposal. + blocksAfterUpgrade = int64(10) // The number of blocks to wait for after the upgrade has been applied. + votingPeriod = "30s" // Reducing voting period for testing + maxDepositPeriod = "10s" // Reducing max deposit period for testing + depositDenom = "ustars" // The bond denom to be used to deposit for propsals ) func TestChainUpgrade(t *testing.T) { @@ -95,7 +95,7 @@ func TestChainUpgrade(t *testing.T) { require.Equal(t, int64(1), queryRes.Data.UpCount) } -func submitUpgradeProposalAndVote(t *testing.T, ctx context.Context, stargazeChain *cosmos.CosmosChain, chainUser ibc.Wallet) uint64 { +func submitUpgradeProposalAndVote(t *testing.T, ctx context.Context, stargazeChain *cosmos.CosmosChain, chainUser ibc.Wallet) int64 { height, err := stargazeChain.Height(ctx) // The current chain height require.NoError(t, err, "error fetching height before submit upgrade proposal") @@ -126,6 +126,9 @@ func submitUpgradeProposalAndVote(t *testing.T, ctx context.Context, stargazeCha proposalID, err := strconv.ParseUint(upgradeTx.ProposalID, 10, 64) require.NoError(t, err, "error parsing proposal ID") + err = testutil.WaitForBlocks(ctx, 2, stargazeChain) + require.NoError(t, err, "error waiting for blocks after proposal submission") + // Vote on the proposal for _, n := range stargazeChain.Nodes() { if n.Validator { @@ -140,7 +143,7 @@ func submitUpgradeProposalAndVote(t *testing.T, ctx context.Context, stargazeCha _, err = cosmos.PollForProposalStatusV1(ctx, stargazeChain, height, height+haltHeightDelta, proposalID, govv1.ProposalStatus_PROPOSAL_STATUS_PASSED) require.NoError(t, err, "proposal status did not change to passed in expected number of blocks") - return uint64(haltHeight) + return haltHeight } func fundChainUser(t *testing.T, ctx context.Context, userName string, stargazeChain *cosmos.CosmosChain) ibc.Wallet { From e50d017091062e44a3488a3b4a33b2d25722df27 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Fri, 24 May 2024 10:35:26 -0600 Subject: [PATCH 39/50] wrapp preblocker calls --- app/app.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index cd7335a11..361f63d2b 100644 --- a/app/app.go +++ b/app/app.go @@ -1034,8 +1034,26 @@ func NewStargazeApp( compression.NewZStdCompressor(), ), ) + oraclePreblocker := oraclePreBlockHandler.PreBlocker() + preBlocker := func(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { + // call app's preblocker first in case there is changes made on upgrades + // that can modify state and lead do serialization issues + resp, err := app.PreBlocker(ctx, req) + if err != nil { + return resp, err + } + + // oracle preblocker sends empty response block + _, err = oraclePreblocker(ctx, req) + if err != nil { + return &sdk.ResponsePreBlock{}, err + } + + // return resp from app's preblocker + return resp, nil + } - app.SetPreBlocker(oraclePreBlockHandler.PreBlocker()) + app.SetPreBlocker(preBlocker) // Create the vote extensions handler that will be used to extend and verify // vote extensions (i.e. oracle data). From 04c84de6ffe16b5354e92f8f3807d833914a18b6 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Fri, 24 May 2024 10:42:56 -0600 Subject: [PATCH 40/50] fix comments --- app/app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 361f63d2b..917201540 100644 --- a/app/app.go +++ b/app/app.go @@ -1037,19 +1037,19 @@ func NewStargazeApp( oraclePreblocker := oraclePreBlockHandler.PreBlocker() preBlocker := func(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { // call app's preblocker first in case there is changes made on upgrades - // that can modify state and lead do serialization issues + // that can modify state and lead to serialization/deserialization issues resp, err := app.PreBlocker(ctx, req) if err != nil { return resp, err } - // oracle preblocker sends empty response block + // oracle preblocker sends empty response pre block so it can ignored _, err = oraclePreblocker(ctx, req) if err != nil { return &sdk.ResponsePreBlock{}, err } - // return resp from app's preblocker + // return resp from app's preblocker which can return consensus param changed flag return resp, nil } From b4dc25f9881b15f9307a474ae8a15b9db22eaa57 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Sat, 25 May 2024 20:03:06 -0600 Subject: [PATCH 41/50] fix upgrade script --- scripts/ci/upgrade/proposal.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index f41d31c38..40319bc15 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -23,10 +23,27 @@ HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq . echo "current height $HEIGHT" HEIGHT=$(expr $HEIGHT + 100) echo "submit with height $HEIGHT" -starsd tx gov submit-proposal software-upgrade v14 --upgrade-height $HEIGHT \ ---deposit 1000000000ustars \ ---description "v14 Upgrade" \ ---title "v14 Upgrade" \ +cat <> proposal.json +{ + "messages": [ + { + "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + "authority": "stars10d07y265gmmuvt4z0w9aw880jnsr700jw7ycaz", + "plan": { + "name": "v14", + "height": "$HEIGHT", + "info": "" + } + } + ], + + "deposit": "1000000000ustars", + "title": "Upgrade", + "summary": "Upgrade" +} +EOT +cat proposal.json +starsd tx gov submit-proposal proposal.json \ --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b sync --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test From f166d258c1246dd0ecd81fff3d6173515e721cdb Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Sat, 25 May 2024 20:16:16 -0600 Subject: [PATCH 42/50] fix proposal submissions --- scripts/ci/upgrade/proposal.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index 40319bc15..8b8005f6e 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -46,10 +46,8 @@ cat proposal.json starsd tx gov submit-proposal proposal.json \ --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b sync --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test - +sleep 10 starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME - - starsd tx gov vote 1 "yes" --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b sync --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test sleep 30 From 97b976f1a323f119bb9869e46768103ec0b792ac Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 00:17:46 -0600 Subject: [PATCH 43/50] fix init command genesis defaults --- cmd/starsd/cmd/genesis.go | 11 +++++++++++ cmd/starsd/cmd/init.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/starsd/cmd/genesis.go b/cmd/starsd/cmd/genesis.go index 7d9a7f60c..0cf74f6de 100644 --- a/cmd/starsd/cmd/genesis.go +++ b/cmd/starsd/cmd/genesis.go @@ -255,3 +255,14 @@ func TestnetGenesisParams() GenesisParams { return genParams } + +func LocalnetGenesisParams() GenesisParams { + params := TestnetGenesisParams() + votingPeriod := time.Second * 60 + params.GovParams.VotingPeriod = &votingPeriod + params.GovParams.MinDeposit = sdk.NewCoins(sdk.NewCoin( + params.NativeCoinMetadatas[0].Base, + math.NewInt(1_000_000_000), + )) + return params +} diff --git a/cmd/starsd/cmd/init.go b/cmd/starsd/cmd/init.go index 53af5c38c..da8ac11e1 100644 --- a/cmd/starsd/cmd/init.go +++ b/cmd/starsd/cmd/init.go @@ -138,7 +138,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { sdk.DefaultBondDenom = defaultDenom } appGenState := mbm.DefaultGenesis(cdc) - + appGenState = PrepareGenesis(clientCtx, appGenState, LocalnetGenesisParams()) appState, err := json.MarshalIndent(appGenState, "", " ") if err != nil { return errorsmod.Wrap(err, "Failed to marshal default genesis state") From f2085ad4be9e52fb7eedb45193c131738e0b566f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 00:25:56 -0600 Subject: [PATCH 44/50] fix prepare genesis --- cmd/starsd/cmd/genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/starsd/cmd/genesis.go b/cmd/starsd/cmd/genesis.go index 0cf74f6de..3dc84cad3 100644 --- a/cmd/starsd/cmd/genesis.go +++ b/cmd/starsd/cmd/genesis.go @@ -121,7 +121,7 @@ func PrepareGenesis( } marketmapGenState.MarketMap = marketsMap marketmapGenStateBz := clientCtx.Codec.MustMarshalJSON(marketmapGenState) - appState[crisistypes.ModuleName] = marketmapGenStateBz + appState[marketmaptypes.ModuleName] = marketmapGenStateBz return appState } From 4804e81089504717c7604897f03f2c6a838a3569 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 00:38:48 -0600 Subject: [PATCH 45/50] add market dependency --- internal/oracle/markets/markets.json | 54 +++++++++++++++++++++++++ internal/oracle/markets/markets_test.go | 5 ++- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/internal/oracle/markets/markets.json b/internal/oracle/markets/markets.json index ef12f4949..0fc15bda0 100644 --- a/internal/oracle/markets/markets.json +++ b/internal/oracle/markets/markets.json @@ -1,5 +1,59 @@ { "markets": { + "USDT/USD": { + "ticker": { + "currency_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "decimals": 9, + "min_provider_count": 1, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_api", + "off_chain_ticker": "USDCUSDT", + "invert": true + }, + { + "name": "bybit_ws", + "off_chain_ticker": "USDCUSDT", + "invert": true + }, + { + "name": "coinbase_api", + "off_chain_ticker": "USDT-USD" + }, + { + "name": "huobi_ws", + "off_chain_ticker": "ethusdt", + "normalize_by_pair": { + "Base": "ETH", + "Quote": "USD" + }, + "invert": true + }, + { + "name": "kraken_api", + "off_chain_ticker": "USDTZUSD" + }, + { + "name": "kucoin_ws", + "off_chain_ticker": "BTC-USDT", + "normalize_by_pair": { + "Base": "BTC", + "Quote": "USD" + }, + "invert": true + }, + { + "name": "okx_ws", + "off_chain_ticker": "USDC-USDT", + "invert": true + } + ] + }, "BTC/USD": { "ticker": { "currency_pair": { diff --git a/internal/oracle/markets/markets_test.go b/internal/oracle/markets/markets_test.go index 3ae04a8b1..a39dd80d0 100644 --- a/internal/oracle/markets/markets_test.go +++ b/internal/oracle/markets/markets_test.go @@ -10,12 +10,13 @@ import ( func TestMarkets(t *testing.T) { m, err := markets.Map() require.NoError(t, err) - require.Len(t, m.Markets, 2) + require.Len(t, m.Markets, 3) s, err := markets.Slice() require.NoError(t, err) - require.Len(t, s, 2) + require.Len(t, s, 3) require.Equal(t, "ATOM/USD", s[0].Ticker.String()) require.Equal(t, "BTC/USD", s[1].Ticker.String()) + require.Equal(t, "USDT/USD", s[2].Ticker.String()) } From 973f688383dcda2e581c6323413926780cf0367c Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 09:53:51 -0600 Subject: [PATCH 46/50] fix genesis generation --- app/app.go | 6 +-- cmd/starsd/cmd/genesis.go | 18 +++++++ internal/oracle/markets/markets.json | 69 +++++++++++++++++++++++++ internal/oracle/markets/markets_test.go | 7 +-- 4 files changed, 94 insertions(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index 917201540..ad40413b2 100644 --- a/app/app.go +++ b/app/app.go @@ -878,8 +878,8 @@ func NewStargazeApp( tokenfactorytypes.ModuleName, packetforwardtypes.ModuleName, ibcwasmtypes.ModuleName, - marketmaptypes.ModuleName, oracletypes.ModuleName, + marketmaptypes.ModuleName, ) app.ModuleManager.SetOrderEndBlockers( @@ -899,8 +899,8 @@ func NewStargazeApp( tokenfactorytypes.ModuleName, packetforwardtypes.ModuleName, ibcwasmtypes.ModuleName, - marketmaptypes.ModuleName, oracletypes.ModuleName, + marketmaptypes.ModuleName, ) // NOTE: The genutils module must occur after staking so that pools are @@ -936,8 +936,8 @@ func NewStargazeApp( ibchookstypes.ModuleName, packetforwardtypes.ModuleName, ibcwasmtypes.ModuleName, - marketmaptypes.ModuleName, oracletypes.ModuleName, + marketmaptypes.ModuleName, ) app.ModuleManager.RegisterInvariants(app.Keepers.CrisisKeeper) diff --git a/cmd/starsd/cmd/genesis.go b/cmd/starsd/cmd/genesis.go index 3dc84cad3..3d6a9c52e 100644 --- a/cmd/starsd/cmd/genesis.go +++ b/cmd/starsd/cmd/genesis.go @@ -25,6 +25,7 @@ import ( globalfeetypes "github.com/public-awesome/stargaze/v14/x/globalfee/types" tokenfactorytypes "github.com/public-awesome/stargaze/v14/x/tokenfactory/types" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" + oracletypes "github.com/skip-mev/slinky/x/oracle/types" ) const ( @@ -119,10 +120,25 @@ func PrepareGenesis( if err != nil { panic(fmt.Errorf("failed to parse markets: %w", err)) } + marketsSlice, err := markets.Slice() + if err != nil { + panic(fmt.Errorf("failed to parse markets: %w", err)) + } marketmapGenState.MarketMap = marketsMap marketmapGenStateBz := clientCtx.Codec.MustMarshalJSON(marketmapGenState) appState[marketmaptypes.ModuleName] = marketmapGenStateBz + genesisCurrencyPairs := make([]oracletypes.CurrencyPairGenesis, len(marketsSlice)) + for id, market := range marketsSlice { + genesisCurrencyPairs[id] = oracletypes.CurrencyPairGenesis{ + CurrencyPair: market.Ticker.CurrencyPair, + Id: uint64(id), + } + } + oracleGenState := oracletypes.NewGenesisState(genesisCurrencyPairs, uint64(len(marketsSlice))) + oracleGenStateBz := clientCtx.Codec.MustMarshalJSON(oracleGenState) + appState[oracletypes.ModuleName] = oracleGenStateBz + return appState } @@ -259,7 +275,9 @@ func TestnetGenesisParams() GenesisParams { func LocalnetGenesisParams() GenesisParams { params := TestnetGenesisParams() votingPeriod := time.Second * 60 + eVotingPeriod := time.Second * 30 params.GovParams.VotingPeriod = &votingPeriod + params.GovParams.ExpeditedVotingPeriod = &eVotingPeriod params.GovParams.MinDeposit = sdk.NewCoins(sdk.NewCoin( params.NativeCoinMetadatas[0].Base, math.NewInt(1_000_000_000), diff --git a/internal/oracle/markets/markets.json b/internal/oracle/markets/markets.json index 0fc15bda0..641d89a1c 100644 --- a/internal/oracle/markets/markets.json +++ b/internal/oracle/markets/markets.json @@ -123,6 +123,75 @@ } ] }, + "ETH/USD": { + "ticker": { + "currency_pair": { + "Base": "ETH", + "Quote": "USD" + }, + "decimals": 6, + "min_provider_count": 3, + "enabled": true + }, + "provider_configs": [ + { + "name": "binance_api", + "off_chain_ticker": "ETHUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "bybit_ws", + "off_chain_ticker": "ETHUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "coinbase_api", + "off_chain_ticker": "ETH-USD" + }, + { + "name": "huobi_ws", + "off_chain_ticker": "ethusdt", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "kraken_api", + "off_chain_ticker": "XETHZUSD" + }, + { + "name": "kucoin_ws", + "off_chain_ticker": "ETH-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "mexc_ws", + "off_chain_ticker": "ETHUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, + { + "name": "okx_ws", + "off_chain_ticker": "ETH-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + } + ] + }, "ATOM/USD": { "ticker": { "currency_pair": { diff --git a/internal/oracle/markets/markets_test.go b/internal/oracle/markets/markets_test.go index a39dd80d0..57e2eec6c 100644 --- a/internal/oracle/markets/markets_test.go +++ b/internal/oracle/markets/markets_test.go @@ -10,13 +10,14 @@ import ( func TestMarkets(t *testing.T) { m, err := markets.Map() require.NoError(t, err) - require.Len(t, m.Markets, 3) + require.Len(t, m.Markets, 4) s, err := markets.Slice() require.NoError(t, err) - require.Len(t, s, 3) + require.Len(t, s, 4) require.Equal(t, "ATOM/USD", s[0].Ticker.String()) require.Equal(t, "BTC/USD", s[1].Ticker.String()) - require.Equal(t, "USDT/USD", s[2].Ticker.String()) + require.Equal(t, "ETH/USD", s[2].Ticker.String()) + require.Equal(t, "USDT/USD", s[3].Ticker.String()) } From 0a4f987088e0bbb8ef1389d9d27c4eff0843b32d Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 10:05:05 -0600 Subject: [PATCH 47/50] increase prop height --- scripts/ci/upgrade/proposal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index 8b8005f6e..634cb6aee 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -21,7 +21,7 @@ starsd q distribution community-pool --node http://stargaze:26657 HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq .SyncInfo.latest_block_height -r) echo "current height $HEIGHT" -HEIGHT=$(expr $HEIGHT + 100) +HEIGHT=$(expr $HEIGHT + 700) echo "submit with height $HEIGHT" cat <> proposal.json { From 339b65fa4dd4e769b31727c6dc84bb64decdaf71 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 10:40:25 -0600 Subject: [PATCH 48/50] reduce target height --- scripts/ci/upgrade/proposal.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index 634cb6aee..17d872bd5 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -21,7 +21,7 @@ starsd q distribution community-pool --node http://stargaze:26657 HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq .SyncInfo.latest_block_height -r) echo "current height $HEIGHT" -HEIGHT=$(expr $HEIGHT + 700) +HEIGHT=$(expr $HEIGHT + 300) echo "submit with height $HEIGHT" cat <> proposal.json { @@ -50,6 +50,6 @@ sleep 10 starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME starsd tx gov vote 1 "yes" --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b sync --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test -sleep 30 +sleep 120 starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME sleep 30 From 7235aacfd04406a8edc36fce1356ab1b1306e22f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 10:51:34 -0600 Subject: [PATCH 49/50] fix height --- scripts/ci/upgrade/proposal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index 17d872bd5..ee07ff00a 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -21,7 +21,7 @@ starsd q distribution community-pool --node http://stargaze:26657 HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq .SyncInfo.latest_block_height -r) echo "current height $HEIGHT" -HEIGHT=$(expr $HEIGHT + 300) +HEIGHT=$(expr $HEIGHT + 450) echo "submit with height $HEIGHT" cat <> proposal.json { From 370a0376d982c760826ae769957160091a2dc3ee Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 27 May 2024 11:35:59 -0600 Subject: [PATCH 50/50] query proposal --- scripts/ci/upgrade/proposal.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index ee07ff00a..c3b456445 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -51,5 +51,6 @@ starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME starsd tx gov vote 1 "yes" --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b sync --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test sleep 120 +starsd q gov proposal 1 --node http://stargaze:26657 --home $STARGAZE_HOME -o json | jq starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME sleep 30