Skip to content

Commit

Permalink
Merge branch 'tuan/add-query-cli' of github.com:quicksilver-zone/quic…
Browse files Browse the repository at this point in the history
…ksilver into tuan/add-query-cli
  • Loading branch information
tuantran1702 committed Mar 8, 2024
2 parents 36c1714 + 0e6b1b8 commit c7ad1fb
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 108 deletions.
24 changes: 20 additions & 4 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ paths:
method
signatures required by gogoproto.
title:
type: string
description:
type: string
description: >-
MsgIncentivePoolSpend represents a message to send coins from one
account to another.
Expand Down Expand Up @@ -1647,7 +1651,10 @@ paths:
protobuf release, and it is not used for type URLs
beginning with
type.googleapis.com.
type.googleapis.com. As of May 2023, there are no widely
used type server
implementations and no plans to implement one.
Schemes other than `http`, `https` (or the empty scheme)
Expand Down Expand Up @@ -1692,6 +1699,10 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
Expand Down Expand Up @@ -1731,7 +1742,6 @@ paths:
name "y.z".
JSON
====
Expand Down Expand Up @@ -1958,7 +1968,10 @@ paths:
protobuf release, and it is not used for type URLs
beginning with
type.googleapis.com.
type.googleapis.com. As of May 2023, there are no widely
used type server
implementations and no plans to implement one.
Schemes other than `http`, `https` (or the empty scheme)
Expand Down Expand Up @@ -2003,6 +2016,10 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
Expand Down Expand Up @@ -2042,7 +2059,6 @@ paths:
name "y.z".
JSON
====
Expand Down
2 changes: 2 additions & 0 deletions proto/quicksilver/airdrop/v1/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ message MsgIncentivePoolSpend {
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
string title = 4;
string description = 5;
}

// MsgIncentivePoolSpendResponse defines the MsgIncentivePoolSpend response type.
Expand Down
16 changes: 10 additions & 6 deletions x/airdrop/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,11 @@ func (suite *KeeperTestSuite) Test_msgServer_IncentivePoolSpend() {
name: "invalid authority",
malleate: func() {
msg = types.MsgIncentivePoolSpend{
Authority: "invalid",
ToAddress: userAddress,
Amount: coins,
Authority: "invalid",
ToAddress: userAddress,
Amount: coins,
Title: "Invalid Incentive Pool Spend Title",
Description: "Invalid Incentive Pool Spend Description",
}
},
want: nil,
Expand All @@ -526,9 +528,11 @@ func (suite *KeeperTestSuite) Test_msgServer_IncentivePoolSpend() {
name: "valid",
malleate: func() {
msg = types.MsgIncentivePoolSpend{
Authority: modAccAddr,
ToAddress: userAddress,
Amount: coins,
Authority: modAccAddr,
ToAddress: userAddress,
Amount: coins,
Title: "Valid Incentive Pool Spend Title",
Description: "Valid Incentive Pool Spend Description",
}
},
want: &types.MsgIncentivePoolSpendResponse{},
Expand Down
180 changes: 135 additions & 45 deletions x/airdrop/types/messages.pb.go

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

8 changes: 4 additions & 4 deletions x/interchainquery/types/messages.pb.go

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

Loading

0 comments on commit c7ad1fb

Please sign in to comment.