diff --git a/tests/e2e/e2e.go b/tests/e2e/e2e.go index 98ad71ec..8fe7837f 100644 --- a/tests/e2e/e2e.go +++ b/tests/e2e/e2e.go @@ -137,7 +137,7 @@ type example struct { ProviderDenom string ConsumerDenom string MyProvChainActor string - MaxRetrieve uint16 + MaxRetrieve uint32 } func setupExampleChains(t *testing.T) example { diff --git a/tests/testdata/mesh_converter.wasm.gz b/tests/testdata/mesh_converter.wasm.gz index de7a8615..65c15585 100644 Binary files a/tests/testdata/mesh_converter.wasm.gz and b/tests/testdata/mesh_converter.wasm.gz differ diff --git a/tests/testdata/mesh_external_staking.wasm.gz b/tests/testdata/mesh_external_staking.wasm.gz index 183db600..41b51f7c 100644 Binary files a/tests/testdata/mesh_external_staking.wasm.gz and b/tests/testdata/mesh_external_staking.wasm.gz differ diff --git a/tests/testdata/mesh_native_staking.wasm.gz b/tests/testdata/mesh_native_staking.wasm.gz index 26b0180c..92665068 100644 Binary files a/tests/testdata/mesh_native_staking.wasm.gz and b/tests/testdata/mesh_native_staking.wasm.gz differ diff --git a/tests/testdata/mesh_native_staking_proxy.wasm.gz b/tests/testdata/mesh_native_staking_proxy.wasm.gz index 28c5c55d..448bc9e5 100644 Binary files a/tests/testdata/mesh_native_staking_proxy.wasm.gz and b/tests/testdata/mesh_native_staking_proxy.wasm.gz differ diff --git a/tests/testdata/mesh_osmosis_price_provider.wasm.gz b/tests/testdata/mesh_osmosis_price_provider.wasm.gz index 88871b55..447dc050 100644 Binary files a/tests/testdata/mesh_osmosis_price_provider.wasm.gz and b/tests/testdata/mesh_osmosis_price_provider.wasm.gz differ diff --git a/tests/testdata/mesh_remote_price_feed.wasm.gz b/tests/testdata/mesh_remote_price_feed.wasm.gz index 163bff64..3dd51fda 100644 Binary files a/tests/testdata/mesh_remote_price_feed.wasm.gz and b/tests/testdata/mesh_remote_price_feed.wasm.gz differ diff --git a/tests/testdata/mesh_simple_price_feed.wasm.gz b/tests/testdata/mesh_simple_price_feed.wasm.gz index f3a2a984..63761789 100644 Binary files a/tests/testdata/mesh_simple_price_feed.wasm.gz and b/tests/testdata/mesh_simple_price_feed.wasm.gz differ diff --git a/tests/testdata/mesh_vault.wasm.gz b/tests/testdata/mesh_vault.wasm.gz index f70dedae..583a23b3 100644 Binary files a/tests/testdata/mesh_vault.wasm.gz and b/tests/testdata/mesh_vault.wasm.gz differ diff --git a/tests/testdata/mesh_virtual_staking.wasm.gz b/tests/testdata/mesh_virtual_staking.wasm.gz index 2a227473..236b2108 100644 Binary files a/tests/testdata/mesh_virtual_staking.wasm.gz and b/tests/testdata/mesh_virtual_staking.wasm.gz differ diff --git a/tests/testdata/version.txt b/tests/testdata/version.txt index b623541b..f536e9e0 100644 --- a/tests/testdata/version.txt +++ b/tests/testdata/version.txt @@ -1 +1 @@ -7cf179e7c5f4a59264b062d7cefe24006f2ba84e +9c1a08272a3c580544ae4978bb40ca56f38d6d71 diff --git a/x/meshsecurity/contract/query.go b/x/meshsecurity/contract/query.go index c3b70331..77914bf3 100644 --- a/x/meshsecurity/contract/query.go +++ b/x/meshsecurity/contract/query.go @@ -26,7 +26,7 @@ type ( } AllDelegationsQuery struct { Contract string `json:"contract"` - MaxRetrieve uint16 `json:"max_retrieve"` + MaxRetrieve uint32 `json:"max_retrieve"` } AllDelegationsResponse struct { Delegations []Delegation `json:"delegations"` diff --git a/x/meshsecurity/keeper/keeper.go b/x/meshsecurity/keeper/keeper.go index 9577ee42..eeb6d6ef 100644 --- a/x/meshsecurity/keeper/keeper.go +++ b/x/meshsecurity/keeper/keeper.go @@ -167,7 +167,7 @@ func (k Keeper) GetDelegation(ctx sdk.Context, actor, delAddr sdk.AccAddress, va } // GetAllDelegations returns all delegations for a specific contract -func (k Keeper) GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint16) (delegations []types.Delegation) { +func (k Keeper) GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint32) (delegations []types.Delegation) { delegations = make([]types.Delegation, maxRetrieve) store := ctx.KVStore(k.storeKey) contractPrefixKey := types.BuildDelegationsKey(actor) diff --git a/x/meshsecurity/keeper/query_plugin.go b/x/meshsecurity/keeper/query_plugin.go index 675eb64d..f8dfee6f 100644 --- a/x/meshsecurity/keeper/query_plugin.go +++ b/x/meshsecurity/keeper/query_plugin.go @@ -21,7 +21,7 @@ type ( viewKeeper interface { GetMaxCapLimit(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin GetTotalDelegated(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin - GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint16) []types.Delegation + GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint32) []types.Delegation } stakingKeeper interface { BondDenom(ctx sdk.Context) string diff --git a/x/meshsecurity/keeper/query_plugin_test.go b/x/meshsecurity/keeper/query_plugin_test.go index 98785ad1..a18c379b 100644 --- a/x/meshsecurity/keeper/query_plugin_test.go +++ b/x/meshsecurity/keeper/query_plugin_test.go @@ -37,7 +37,7 @@ func TestChainedCustomQuerier(t *testing.T) { GetTotalDelegatedFn: func(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin { return sdk.NewCoin("ALX", math.NewInt(456)) }, - GetAllDelegationsFn: func(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint16) []types.Delegation { + GetAllDelegationsFn: func(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint32) []types.Delegation { return []types.Delegation{} }, }, @@ -91,7 +91,7 @@ var _ viewKeeper = &MockViewKeeper{} type MockViewKeeper struct { GetMaxCapLimitFn func(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin GetTotalDelegatedFn func(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin - GetAllDelegationsFn func(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint16) []types.Delegation + GetAllDelegationsFn func(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint32) []types.Delegation } func (m MockViewKeeper) GetMaxCapLimit(ctx sdk.Context, actor sdk.AccAddress) sdk.Coin { @@ -108,7 +108,7 @@ func (m MockViewKeeper) GetTotalDelegated(ctx sdk.Context, actor sdk.AccAddress) return m.GetTotalDelegatedFn(ctx, actor) } -func (m MockViewKeeper) GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint16) []types.Delegation { +func (m MockViewKeeper) GetAllDelegations(ctx sdk.Context, actor sdk.AccAddress, maxRetrieve uint32) []types.Delegation { if m.GetAllDelegationsFn == nil { panic("not expected to be called") }