Skip to content

Commit

Permalink
Merge pull request #629 from KiraCore/release/v0.3.40
Browse files Browse the repository at this point in the history
  • Loading branch information
asmodat authored Jan 4, 2024
2 parents fb82b82 + 2fa2c37 commit 252ba52
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 48 deletions.
3 changes: 2 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Features:

- Upgrade Cosmos SDK version to v0.47.6
- Add default denom on AllTokenAliases response
- Update default_parameters type from bool to uint64 on codec metadata
2 changes: 2 additions & 0 deletions proto/kira/tokens/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ message AllTokenAliasesRequest {}

message AllTokenAliasesResponse {
repeated kira.tokens.TokenAlias data = 1;
string default_denom = 2;
string bech32_prefix = 3;
}

message TokenAliasesByDenomRequest {
Expand Down
2 changes: 1 addition & 1 deletion types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package types
const (
// we set page iteration limit for safety
PageIterationLimit = 512
SekaiVersion = "v0.3.39"
SekaiVersion = "v0.3.40"
CosmosVersion = "v0.47.6"
)
2 changes: 1 addition & 1 deletion x/gov/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) {
"description": "After what time function execution should fail"
},
"default_parameters": {
"type": "bool",
"type": "uint64",
"description": "Default values that the function in question will consume as input parameters before execution"
},
"proposer": {
Expand Down
7 changes: 6 additions & 1 deletion x/tokens/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keeper
import (
"context"

appparams "github.com/KiraCore/sekai/app/params"
"github.com/KiraCore/sekai/x/tokens/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down Expand Up @@ -32,7 +33,11 @@ func (q Querier) GetTokenAliasesByDenom(ctx context.Context, request *types.Toke
func (q Querier) GetAllTokenAliases(ctx context.Context, request *types.AllTokenAliasesRequest) (*types.AllTokenAliasesResponse, error) {
aliases := q.keeper.ListTokenAlias(sdk.UnwrapSDKContext(ctx))

return &types.AllTokenAliasesResponse{Data: aliases}, nil
return &types.AllTokenAliasesResponse{
Data: aliases,
DefaultDenom: appparams.DefaultDenom,
Bech32Prefix: appparams.AccountAddressPrefix,
}, nil
}

func (q Querier) GetTokenRate(ctx context.Context, request *types.TokenRateRequest) (*types.TokenRateResponse, error) {
Expand Down
193 changes: 149 additions & 44 deletions x/tokens/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 252ba52

Please sign in to comment.