forked from cerc-io/registry-sdk
Update proto files and regenerate bindings (#5)
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811 Co-authored-by: neeraj <neeraj.rtly@gmail.com> Reviewed-on: deep-stack/registry-sdk#5 Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
This commit is contained in:
parent
7fe256e714
commit
a53e2178d2
@ -2,7 +2,6 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package cerc.auction.v1;
|
package cerc.auction.v1;
|
||||||
|
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "google/protobuf/duration.proto";
|
import "google/protobuf/duration.proto";
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
@ -17,16 +16,16 @@ message Params {
|
|||||||
|
|
||||||
// Duration of the commits phase in seconds
|
// Duration of the commits phase in seconds
|
||||||
google.protobuf.Duration commits_duration = 1 [
|
google.protobuf.Duration commits_duration = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
|
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Duration of the reveals phase in seconds
|
// Duration of the reveals phase in seconds
|
||||||
google.protobuf.Duration reveals_duration = 2 [
|
google.protobuf.Duration reveals_duration = 2 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Commit fees
|
// Commit fees
|
||||||
@ -52,7 +51,7 @@ message Params {
|
|||||||
message Auction {
|
message Auction {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string status = 2;
|
string status = 2;
|
||||||
|
|
||||||
// Address of the creator of the auction
|
// Address of the creator of the auction
|
||||||
@ -60,21 +59,21 @@ message Auction {
|
|||||||
|
|
||||||
// Timestamp at which the auction was created
|
// Timestamp at which the auction was created
|
||||||
google.protobuf.Timestamp create_time = 4 [
|
google.protobuf.Timestamp create_time = 4 [
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""
|
(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Timestamp at which the commits phase concluded
|
// Timestamp at which the commits phase concluded
|
||||||
google.protobuf.Timestamp commits_end_time = 5 [
|
google.protobuf.Timestamp commits_end_time = 5 [
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"commits_end_time\" yaml:\"commits_end_time\""
|
(gogoproto.moretags) = "json:\"commits_end_time\" yaml:\"commits_end_time\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Timestamp at which the reveals phase concluded
|
// Timestamp at which the reveals phase concluded
|
||||||
google.protobuf.Timestamp reveals_end_time = 6 [
|
google.protobuf.Timestamp reveals_end_time = 6 [
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"reveals_end_time\" yaml:\"reveals_end_time\""
|
(gogoproto.moretags) = "json:\"reveals_end_time\" yaml:\"reveals_end_time\""
|
||||||
];
|
];
|
||||||
@ -112,23 +111,24 @@ message Auction {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Auctions represent all the auctions in the module
|
||||||
message Auctions {
|
message Auctions {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
repeated Auction auctions = 1 [(gogoproto.nullable) = false];
|
repeated Auction auctions = 1 [ (gogoproto.nullable) = false ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bid represents a sealed bid (commit) made during the auction
|
// Bid represents a sealed bid (commit) made during the auction
|
||||||
message Bid {
|
message Bid {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
string auction_id = 1;
|
string auction_id = 1;
|
||||||
string bidder_address = 2;
|
string bidder_address = 2;
|
||||||
string status = 3;
|
string status = 3;
|
||||||
string commit_hash = 4;
|
string commit_hash = 4;
|
||||||
|
|
||||||
google.protobuf.Timestamp commit_time = 5 [
|
google.protobuf.Timestamp commit_time = 5 [
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"commit_time\" yaml:\"commit_time\""
|
(gogoproto.moretags) = "json:\"commit_time\" yaml:\"commit_time\""
|
||||||
];
|
];
|
||||||
@ -139,7 +139,7 @@ message Bid {
|
|||||||
];
|
];
|
||||||
|
|
||||||
google.protobuf.Timestamp reveal_time = 7 [
|
google.protobuf.Timestamp reveal_time = 7 [
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"reveal_time\" yaml:\"reveal_time\""
|
(gogoproto.moretags) = "json:\"reveal_time\" yaml:\"reveal_time\""
|
||||||
];
|
];
|
||||||
|
@ -9,6 +9,7 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/auction";
|
|||||||
|
|
||||||
// GenesisState defines the genesis state of the auction module
|
// GenesisState defines the genesis state of the auction module
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [ (gogoproto.nullable) = false ];
|
||||||
Auctions auctions = 2 [(gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\""];
|
Auctions auctions = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\"" ];
|
||||||
}
|
}
|
||||||
|
@ -23,43 +23,47 @@ service Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetAuction queries an auction
|
// GetAuction queries an auction
|
||||||
rpc GetAuction(QueryAuctionRequest) returns (QueryAuctionResponse) {
|
rpc GetAuction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
|
||||||
option (google.api.http).get = "/cerc/auction/v1/auctions/{id}";
|
option (google.api.http).get = "/cerc/auction/v1/auctions/{id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBid queries an auction bid
|
// GetBid queries an auction bid
|
||||||
rpc GetBid(QueryBidRequest) returns (QueryBidResponse) {
|
rpc GetBid(QueryGetBidRequest) returns (QueryGetBidResponse) {
|
||||||
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}/{bidder}";
|
option (google.api.http).get =
|
||||||
|
"/cerc/auction/v1/bids/{auction_id}/{bidder}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBids queries all auction bids
|
// GetBids queries all auction bids
|
||||||
rpc GetBids(QueryBidsRequest) returns (QueryBidsResponse) {
|
rpc GetBids(QueryGetBidsRequest) returns (QueryGetBidsResponse) {
|
||||||
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}";
|
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionsByBidder queries auctions by bidder
|
// AuctionsByBidder queries auctions by bidder
|
||||||
rpc AuctionsByBidder(QueryAuctionsByBidderRequest) returns (QueryAuctionsByBidderResponse) {
|
rpc AuctionsByBidder(QueryAuctionsByBidderRequest)
|
||||||
option (google.api.http).get = "/cerc/auction/v1/by-bidder/{bidder_address}";
|
returns (QueryAuctionsByBidderResponse) {
|
||||||
|
option (google.api.http).get =
|
||||||
|
"/cerc/auction/v1/by-bidder/{bidder_address}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionsByOwner queries auctions by owner
|
// AuctionsByOwner queries auctions by owner
|
||||||
rpc AuctionsByOwner(QueryAuctionsByOwnerRequest) returns (QueryAuctionsByOwnerResponse) {
|
rpc AuctionsByOwner(QueryAuctionsByOwnerRequest)
|
||||||
|
returns (QueryAuctionsByOwnerResponse) {
|
||||||
option (google.api.http).get = "/cerc/auction/v1/by-owner/{owner_address}";
|
option (google.api.http).get = "/cerc/auction/v1/by-owner/{owner_address}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAuctionModuleBalance queries the auction module account balance
|
// GetAuctionModuleBalance queries the auction module account balance
|
||||||
rpc GetAuctionModuleBalance(QueryGetAuctionModuleBalanceRequest) returns (QueryGetAuctionModuleBalanceResponse) {
|
rpc GetAuctionModuleBalance(QueryGetAuctionModuleBalanceRequest)
|
||||||
|
returns (QueryGetAuctionModuleBalanceResponse) {
|
||||||
option (google.api.http).get = "/cerc/auction/v1/balance";
|
option (google.api.http).get = "/cerc/auction/v1/balance";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryParamsRequest is the format to query the parameters of the auction module
|
// QueryParamsRequest is the format to query the parameters of the auction
|
||||||
|
// module
|
||||||
message QueryParamsRequest {}
|
message QueryParamsRequest {}
|
||||||
|
|
||||||
// QueryParamsResponse returns parameters of the auction module
|
// QueryParamsResponse returns parameters of the auction module
|
||||||
message QueryParamsResponse {
|
message QueryParamsResponse { Params params = 1; }
|
||||||
Params params = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuctionsRequest is the format for querying all the auctions
|
// AuctionsRequest is the format for querying all the auctions
|
||||||
message QueryAuctionsRequest {
|
message QueryAuctionsRequest {
|
||||||
@ -76,19 +80,19 @@ message QueryAuctionsResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AuctionRequest is the format for querying a specific auction
|
// AuctionRequest is the format for querying a specific auction
|
||||||
message QueryAuctionRequest {
|
message QueryGetAuctionRequest {
|
||||||
// Auction id
|
// Auction id
|
||||||
string id = 1;
|
string id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionResponse returns the details of the queried auction
|
// AuctionResponse returns the details of the queried auction
|
||||||
message QueryAuctionResponse {
|
message QueryGetAuctionResponse {
|
||||||
// Auction details
|
// Auction details
|
||||||
Auction auction = 1;
|
Auction auction = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BidRequest is the format for querying a specific bid in an auction
|
// BidRequest is the format for querying a specific bid in an auction
|
||||||
message QueryBidRequest {
|
message QueryGetBidRequest {
|
||||||
// Auction id
|
// Auction id
|
||||||
string auction_id = 1;
|
string auction_id = 1;
|
||||||
// Bidder address
|
// Bidder address
|
||||||
@ -96,24 +100,25 @@ message QueryBidRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// BidResponse returns the details of the queried bid
|
// BidResponse returns the details of the queried bid
|
||||||
message QueryBidResponse {
|
message QueryGetBidResponse {
|
||||||
// Bid details
|
// Bid details
|
||||||
Bid bid = 1;
|
Bid bid = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BidsRequest is the format for querying all bids in an auction
|
// BidsRequest is the format for querying all bids in an auction
|
||||||
message QueryBidsRequest {
|
message QueryGetBidsRequest {
|
||||||
// Auction id
|
// Auction id
|
||||||
string auction_id = 1;
|
string auction_id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BidsResponse returns details of all bids in an auction
|
// BidsResponse returns details of all bids in an auction
|
||||||
message QueryBidsResponse {
|
message QueryGetBidsResponse {
|
||||||
// List of bids in the auction
|
// List of bids in the auction
|
||||||
repeated Bid bids = 1;
|
repeated Bid bids = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionsByBidderRequest is the format for querying all auctions containing a bidder address
|
// AuctionsByBidderRequest is the format for querying all auctions containing a
|
||||||
|
// bidder address
|
||||||
message QueryAuctionsByBidderRequest {
|
message QueryAuctionsByBidderRequest {
|
||||||
// Address of the bidder
|
// Address of the bidder
|
||||||
string bidder_address = 1;
|
string bidder_address = 1;
|
||||||
@ -125,7 +130,8 @@ message QueryAuctionsByBidderResponse {
|
|||||||
Auctions auctions = 1;
|
Auctions auctions = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner
|
// AuctionsByOwnerRequest is the format for querying all auctions created by an
|
||||||
|
// owner
|
||||||
message QueryAuctionsByOwnerRequest {
|
message QueryAuctionsByOwnerRequest {
|
||||||
// Address of the owner
|
// Address of the owner
|
||||||
string owner_address = 1;
|
string owner_address = 1;
|
||||||
@ -140,11 +146,13 @@ message QueryAuctionsByOwnerResponse {
|
|||||||
// BalanceRequest is the format to fetch all balances
|
// BalanceRequest is the format to fetch all balances
|
||||||
message QueryGetAuctionModuleBalanceRequest {}
|
message QueryGetAuctionModuleBalanceRequest {}
|
||||||
|
|
||||||
|
// QueryGetAuctionModuleBalanceResponse is the response type for auction module
|
||||||
|
// balance rpc method
|
||||||
message QueryGetAuctionModuleBalanceResponse {
|
message QueryGetAuctionModuleBalanceResponse {
|
||||||
// Set of all balances within the auction
|
// Set of all balances within the auction
|
||||||
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -38,16 +38,16 @@ message MsgCreateAuction {
|
|||||||
|
|
||||||
// Duration of the commits phase in seconds
|
// Duration of the commits phase in seconds
|
||||||
google.protobuf.Duration commits_duration = 1 [
|
google.protobuf.Duration commits_duration = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
|
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Duration of the reveals phase in seconds
|
// Duration of the reveals phase in seconds
|
||||||
google.protobuf.Duration reveals_duration = 2 [
|
google.protobuf.Duration reveals_duration = 2 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
// Commit fees
|
// Commit fees
|
||||||
@ -69,7 +69,8 @@ message MsgCreateAuction {
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Address of the signer
|
// Address of the signer
|
||||||
string signer = 6 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""];
|
string signer = 6
|
||||||
|
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgCreateAuctionResponse returns the details of the created auction
|
// MsgCreateAuctionResponse returns the details of the created auction
|
||||||
@ -77,7 +78,8 @@ message MsgCreateAuctionResponse {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// Auction details
|
// Auction details
|
||||||
Auction auction = 1 [(gogoproto.moretags) = "json:\"auction\" yaml:\"auction\""];
|
Auction auction = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"auction\" yaml:\"auction\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommitBid defines the message to commit a bid
|
// CommitBid defines the message to commit a bid
|
||||||
@ -86,13 +88,16 @@ message MsgCommitBid {
|
|||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
// Auction id
|
// Auction id
|
||||||
string auction_id = 1 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""];
|
string auction_id = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
|
||||||
|
|
||||||
// Commit Hash
|
// Commit Hash
|
||||||
string commit_hash = 2 [(gogoproto.moretags) = "json:\"commit_hash\" yaml:\"commit_hash\""];
|
string commit_hash = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"commit_hash\" yaml:\"commit_hash\"" ];
|
||||||
|
|
||||||
// Address of the signer
|
// Address of the signer
|
||||||
string signer = 3 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""];
|
string signer = 3
|
||||||
|
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgCommitBidResponse returns the state of the auction after the bid creation
|
// MsgCommitBidResponse returns the state of the auction after the bid creation
|
||||||
@ -100,30 +105,32 @@ message MsgCommitBidResponse {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// Auction details
|
// Auction details
|
||||||
Bid bid = 1 [(gogoproto.moretags) = "json:\"bid\" yaml:\"bid\""];
|
Bid bid = 1 [ (gogoproto.moretags) = "json:\"bid\" yaml:\"bid\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// RevealBid defines the message to reveal a bid
|
// RevealBid defines the message to reveal a bid
|
||||||
message MsgRevealBid {
|
message MsgRevealBid {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
// Auction id
|
// Auction id
|
||||||
string auction_id = 1 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""];
|
string auction_id = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
|
||||||
|
|
||||||
// Commit Hash
|
// Commit Hash
|
||||||
string reveal = 2 [(gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\""];
|
string reveal = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\"" ];
|
||||||
|
|
||||||
// Address of the signer
|
// Address of the signer
|
||||||
string signer = 3 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""];
|
string signer = 3
|
||||||
|
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// MsgRevealBidResponse returns the state of the auction after the bid reveal
|
// MsgRevealBidResponse returns the state of the auction after the bid reveal
|
||||||
message MsgRevealBidResponse {
|
message MsgRevealBidResponse {
|
||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// Auction details
|
// Auction details
|
||||||
Auction auction = 1 [(gogoproto.moretags) = "json:\"auction\" yaml:\"auction\""];
|
Auction auction = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"auction\" yaml:\"auction\"" ];
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,8 @@ message Bond {
|
|||||||
|
|
||||||
// balance of the bond
|
// balance of the bond
|
||||||
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,9 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/bond";
|
|||||||
// GenesisState defines the bond module's genesis state.
|
// GenesisState defines the bond module's genesis state.
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
// params defines all the parameters of the module.
|
// params defines all the parameters of the module.
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [ (gogoproto.nullable) = false ];
|
||||||
|
|
||||||
// bonds defines all the bonds
|
// bonds defines all the bonds
|
||||||
repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
|
repeated Bond bonds = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\"" ];
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ service Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Bonds queries bonds list
|
// Bonds queries bonds list
|
||||||
rpc Bonds(QueryGetBondsRequest) returns (QueryGetBondsResponse) {
|
rpc Bonds(QueryBondsRequest) returns (QueryBondsResponse) {
|
||||||
// Mark query as module_query_safe?
|
// Mark query as module_query_safe?
|
||||||
// option (cosmos.query.v1.module_query_safe) = true;
|
// option (cosmos.query.v1.module_query_safe) = true;
|
||||||
option (google.api.http).get = "/cerc/bond/v1/bonds";
|
option (google.api.http).get = "/cerc/bond/v1/bonds";
|
||||||
@ -31,12 +31,14 @@ service Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get Bonds list by Owner
|
// Get Bonds list by Owner
|
||||||
rpc GetBondsByOwner(QueryGetBondsByOwnerRequest) returns (QueryGetBondsByOwnerResponse) {
|
rpc GetBondsByOwner(QueryGetBondsByOwnerRequest)
|
||||||
|
returns (QueryGetBondsByOwnerResponse) {
|
||||||
option (google.api.http).get = "/cerc/bond/v1/by-owner/{owner}";
|
option (google.api.http).get = "/cerc/bond/v1/by-owner/{owner}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get Bond module balance
|
// Get Bond module balance
|
||||||
rpc GetBondsModuleBalance(QueryGetBondModuleBalanceRequest) returns (QueryGetBondModuleBalanceResponse) {
|
rpc GetBondModuleBalance(QueryGetBondModuleBalanceRequest)
|
||||||
|
returns (QueryGetBondModuleBalanceResponse) {
|
||||||
option (google.api.http).get = "/cerc/bond/v1/balance";
|
option (google.api.http).get = "/cerc/bond/v1/balance";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,41 +48,45 @@ message QueryParamsRequest {}
|
|||||||
|
|
||||||
// QueryParamsResponse returns response type of bond module params
|
// QueryParamsResponse returns response type of bond module params
|
||||||
message QueryParamsResponse {
|
message QueryParamsResponse {
|
||||||
Params params = 1 [(gogoproto.moretags) = "json:\"params\" yaml:\"params\""];
|
Params params = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"params\" yaml:\"params\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondById queries a bonds.
|
// QueryBondsRequest queries bonds
|
||||||
message QueryGetBondsRequest {
|
message QueryBondsRequest {
|
||||||
// pagination defines an optional pagination for the request.
|
// pagination defines an optional pagination for the request.
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondsResponse is response type for get the bonds by bond-id
|
// QueryBondsResponse is response type for get the bonds by bond-id
|
||||||
message QueryGetBondsResponse {
|
message QueryBondsResponse {
|
||||||
repeated Bond bonds = 1 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
|
repeated Bond bonds = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\"" ];
|
||||||
|
|
||||||
// pagination defines the pagination in the response.
|
// pagination defines the pagination in the response.
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondById
|
// QueryGetBondById queries bond by bond id
|
||||||
message QueryGetBondByIdRequest {
|
message QueryGetBondByIdRequest {
|
||||||
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""];
|
string id = 1 [ (gogoproto.moretags) = "json:\"id\" yaml:\"id\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondByIdResponse returns QueryGetBondById query response
|
// QueryGetBondByIdResponse returns QueryGetBondById query response
|
||||||
message QueryGetBondByIdResponse {
|
message QueryGetBondByIdResponse {
|
||||||
Bond bond = 1 [(gogoproto.moretags) = "json:\"bond\" yaml:\"bond\""];
|
Bond bond = 1 [ (gogoproto.moretags) = "json:\"bond\" yaml:\"bond\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method
|
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC
|
||||||
|
// Method
|
||||||
message QueryGetBondsByOwnerRequest {
|
message QueryGetBondsByOwnerRequest {
|
||||||
string owner = 1;
|
string owner = 1;
|
||||||
// pagination defines the pagination in the response.
|
// pagination defines the pagination in the response.
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method
|
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC
|
||||||
|
// Method
|
||||||
message QueryGetBondsByOwnerResponse {
|
message QueryGetBondsByOwnerResponse {
|
||||||
repeated Bond bonds = 1 [
|
repeated Bond bonds = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
@ -91,14 +97,16 @@ message QueryGetBondsByOwnerResponse {
|
|||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryGetBondModuleBalanceRequest is request type for bond module balance rpc method
|
// QueryGetBondModuleBalanceRequest is request type for bond module balance rpc
|
||||||
|
// method
|
||||||
message QueryGetBondModuleBalanceRequest {}
|
message QueryGetBondModuleBalanceRequest {}
|
||||||
|
|
||||||
// QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method
|
// QueryGetBondModuleBalanceResponse is the response type for bond module
|
||||||
|
// balance rpc method
|
||||||
message QueryGetBondModuleBalanceResponse {
|
message QueryGetBondModuleBalanceResponse {
|
||||||
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -38,29 +38,27 @@ service Msg {
|
|||||||
message MsgCreateBond {
|
message MsgCreateBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string signer = 1;
|
string signer = 1;
|
||||||
repeated cosmos.base.v1beta1.Coin coins = 2 [
|
repeated cosmos.base.v1beta1.Coin coins = 2 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgCreateBondResponse defines the Msg/CreateBond response type.
|
// MsgCreateBondResponse defines the Msg/CreateBond response type.
|
||||||
message MsgCreateBondResponse {
|
message MsgCreateBondResponse { string id = 1; }
|
||||||
string id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgRefillBond defines a SDK message for refill the amount for bond.
|
// MsgRefillBond defines a SDK message for refill the amount for bond.
|
||||||
message MsgRefillBond {
|
message MsgRefillBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string signer = 2;
|
string signer = 2;
|
||||||
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,12 +69,12 @@ message MsgRefillBondResponse {}
|
|||||||
message MsgWithdrawBond {
|
message MsgWithdrawBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string signer = 2;
|
string signer = 2;
|
||||||
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +85,7 @@ message MsgWithdrawBondResponse {}
|
|||||||
message MsgCancelBond {
|
message MsgCancelBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string signer = 2;
|
string signer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/registry";
|
|||||||
// GenesisState defines the registry module's genesis state.
|
// GenesisState defines the registry module's genesis state.
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
// params defines all the params of registry module.
|
// params defines all the params of registry module.
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [ (gogoproto.nullable) = false ];
|
||||||
|
|
||||||
// records
|
// records
|
||||||
repeated Record records = 2 [
|
repeated Record records = 2 [
|
||||||
|
@ -23,12 +23,13 @@ service Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get record by id
|
// Get record by id
|
||||||
rpc GetRecord(QueryRecordByIdRequest) returns (QueryRecordByIdResponse) {
|
rpc GetRecord(QueryGetRecordRequest) returns (QueryGetRecordResponse) {
|
||||||
option (google.api.http).get = "/cerc/registry/v1/records/{id}";
|
option (google.api.http).get = "/cerc/registry/v1/records/{id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get records by bond id
|
// Get records by bond id
|
||||||
rpc GetRecordsByBondId(QueryRecordsByBondIdRequest) returns (QueryRecordsByBondIdResponse) {
|
rpc GetRecordsByBondId(QueryGetRecordsByBondIdRequest)
|
||||||
|
returns (QueryGetRecordsByBondIdResponse) {
|
||||||
option (google.api.http).get = "/cerc/registry/v1/records-by-bond-id/{id}";
|
option (google.api.http).get = "/cerc/registry/v1/records-by-bond-id/{id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +54,8 @@ service Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get registry module balance
|
// Get registry module balance
|
||||||
rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest) returns (QueryGetRegistryModuleBalanceResponse) {
|
rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest)
|
||||||
|
returns (QueryGetRegistryModuleBalanceResponse) {
|
||||||
option (google.api.http).get = "/cerc/registry/v1/balance";
|
option (google.api.http).get = "/cerc/registry/v1/balance";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62,37 +64,30 @@ service Query {
|
|||||||
message QueryParamsRequest {}
|
message QueryParamsRequest {}
|
||||||
|
|
||||||
// QueryParamsResponse is response type for registry params
|
// QueryParamsResponse is response type for registry params
|
||||||
message QueryParamsResponse {
|
message QueryParamsResponse { Params params = 1; }
|
||||||
Params params = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryRecordsRequest is request type for registry records list
|
// QueryRecordsRequest is request type for registry records list
|
||||||
message QueryRecordsRequest {
|
message QueryRecordsRequest {
|
||||||
// TODO: Unused, check
|
// Array type attribute
|
||||||
// message LinkInput {
|
message ArrayInput { repeated ValueInput values = 1; }
|
||||||
// string id = 1;
|
// Map type attribute
|
||||||
// }
|
message MapInput { map<string, ValueInput> values = 1; }
|
||||||
|
// Type for record attribute value
|
||||||
message ArrayInput {
|
|
||||||
repeated ValueInput values = 1;
|
|
||||||
}
|
|
||||||
message MapInput {
|
|
||||||
map<string, ValueInput> values = 1;
|
|
||||||
}
|
|
||||||
message ValueInput {
|
message ValueInput {
|
||||||
// Type of record attribute value
|
// Value is one of the following types
|
||||||
oneof value {
|
oneof value {
|
||||||
string string = 1;
|
string string = 1;
|
||||||
int64 int = 2;
|
int64 int = 2;
|
||||||
double float = 3;
|
double float = 3;
|
||||||
bool boolean = 4;
|
bool boolean = 4;
|
||||||
string link = 5;
|
string link = 5;
|
||||||
ArrayInput array = 6;
|
ArrayInput array = 6;
|
||||||
MapInput map = 7;
|
MapInput map = 7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Type for record attribute key
|
||||||
message KeyValueInput {
|
message KeyValueInput {
|
||||||
string key = 1;
|
string key = 1;
|
||||||
ValueInput value = 2;
|
ValueInput value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,31 +101,29 @@ message QueryRecordsRequest {
|
|||||||
|
|
||||||
// QueryRecordsResponse is response type for registry records list
|
// QueryRecordsResponse is response type for registry records list
|
||||||
message QueryRecordsResponse {
|
message QueryRecordsResponse {
|
||||||
repeated Record records = 1 [(gogoproto.nullable) = false];
|
repeated Record records = 1 [ (gogoproto.nullable) = false ];
|
||||||
// pagination defines the pagination in the response.
|
// pagination defines the pagination in the response.
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryRecordByIdRequest is request type for registry records by id
|
// QueryGetRecordRequest is request type for registry records by id
|
||||||
message QueryRecordByIdRequest {
|
message QueryGetRecordRequest { string id = 1; }
|
||||||
string id = 1;
|
|
||||||
|
// QueryGetRecordResponse is response type for registry records by id
|
||||||
|
message QueryGetRecordResponse {
|
||||||
|
Record record = 1 [ (gogoproto.nullable) = false ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryRecordByIdResponse is response type for registry records by id
|
// QueryGetRecordsByBondIdRequest is request type for get the records by bond-id
|
||||||
message QueryRecordByIdResponse {
|
message QueryGetRecordsByBondIdRequest {
|
||||||
Record record = 1 [(gogoproto.nullable) = false];
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryRecordsByBondIdRequest is request type for get the records by bond-id
|
|
||||||
message QueryRecordsByBondIdRequest {
|
|
||||||
string id = 1;
|
string id = 1;
|
||||||
// pagination defines an optional pagination for the request.
|
// pagination defines an optional pagination for the request.
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryRecordsByBondIdResponse is response type for records list by bond-id
|
// QueryGetRecordsByBondIdResponse is response type for records list by bond-id
|
||||||
message QueryRecordsByBondIdResponse {
|
message QueryGetRecordsByBondIdResponse {
|
||||||
repeated Record records = 1 [(gogoproto.nullable) = false];
|
repeated Record records = 1 [ (gogoproto.nullable) = false ];
|
||||||
// pagination defines the pagination in the response.
|
// pagination defines the pagination in the response.
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
@ -143,15 +136,13 @@ message QueryNameRecordsRequest {
|
|||||||
|
|
||||||
// QueryNameRecordsResponse is response type for registry names records
|
// QueryNameRecordsResponse is response type for registry names records
|
||||||
message QueryNameRecordsResponse {
|
message QueryNameRecordsResponse {
|
||||||
repeated NameEntry names = 1 [(gogoproto.nullable) = false];
|
repeated NameEntry names = 1 [ (gogoproto.nullable) = false ];
|
||||||
// pagination defines the pagination in the response.
|
// pagination defines the pagination in the response.
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryWhoisRequest is request type for Get NameAuthority
|
// QueryWhoisRequest is request type for Get NameAuthority
|
||||||
message QueryWhoisRequest {
|
message QueryWhoisRequest { string name = 1; }
|
||||||
string name = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryWhoisResponse is response type for whois request
|
// QueryWhoisResponse is response type for whois request
|
||||||
message QueryWhoisResponse {
|
message QueryWhoisResponse {
|
||||||
@ -162,39 +153,34 @@ message QueryWhoisResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// QueryLookupLrnRequest is request type for LookupLrn
|
// QueryLookupLrnRequest is request type for LookupLrn
|
||||||
message QueryLookupLrnRequest {
|
message QueryLookupLrnRequest { string lrn = 1; }
|
||||||
string lrn = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryLookupLrnResponse is response type for QueryLookupLrnRequest
|
// QueryLookupLrnResponse is response type for QueryLookupLrnRequest
|
||||||
message QueryLookupLrnResponse {
|
message QueryLookupLrnResponse { NameRecord name = 1; }
|
||||||
NameRecord name = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryResolveLrnRequest is request type for ResolveLrn
|
// QueryResolveLrnRequest is request type for ResolveLrn
|
||||||
message QueryResolveLrnRequest {
|
message QueryResolveLrnRequest { string lrn = 1; }
|
||||||
string lrn = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryResolveLrnResponse is response type for QueryResolveLrnRequest
|
// QueryResolveLrnResponse is response type for QueryResolveLrnRequest
|
||||||
message QueryResolveLrnResponse {
|
message QueryResolveLrnResponse { Record record = 1; }
|
||||||
Record record = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance
|
// QueryGetRegistryModuleBalanceRequest is request type for registry module
|
||||||
|
// accounts balance
|
||||||
message QueryGetRegistryModuleBalanceRequest {}
|
message QueryGetRegistryModuleBalanceRequest {}
|
||||||
|
|
||||||
// QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance
|
// QueryGetRegistryModuleBalanceResponse is response type for registry module
|
||||||
|
// accounts balance
|
||||||
message QueryGetRegistryModuleBalanceResponse {
|
message QueryGetRegistryModuleBalanceResponse {
|
||||||
repeated AccountBalance balances = 1;
|
repeated AccountBalance balances = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AccountBalance is registry module account balance
|
// AccountBalance is registry module account balance
|
||||||
message AccountBalance {
|
message AccountBalance {
|
||||||
string account_name = 1 [(gogoproto.moretags) = "json:\"account_name\" yaml:\"account_name\""];
|
string account_name = 1
|
||||||
|
[ (gogoproto.moretags) = "json:\"account_name\" yaml:\"account_name\"" ];
|
||||||
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -11,15 +11,16 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/registry";
|
|||||||
|
|
||||||
// Params defines the registry module parameters
|
// Params defines the registry module parameters
|
||||||
message Params {
|
message Params {
|
||||||
cosmos.base.v1beta1.Coin record_rent = 1[
|
cosmos.base.v1beta1.Coin record_rent = 1 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""
|
(gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""
|
||||||
];
|
];
|
||||||
|
|
||||||
google.protobuf.Duration record_rent_duration = 2 [
|
google.protobuf.Duration record_rent_duration = 2 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"record_rent_duration\" yaml:\"record_rent_duration\""
|
(gogoproto.moretags) =
|
||||||
|
"json:\"record_rent_duration\" yaml:\"record_rent_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
cosmos.base.v1beta1.Coin authority_rent = 3 [
|
cosmos.base.v1beta1.Coin authority_rent = 3 [
|
||||||
@ -28,119 +29,140 @@ message Params {
|
|||||||
];
|
];
|
||||||
|
|
||||||
google.protobuf.Duration authority_rent_duration = 4 [
|
google.protobuf.Duration authority_rent_duration = 4 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
|
(gogoproto.moretags) =
|
||||||
|
"json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
google.protobuf.Duration authority_grace_period = 5 [
|
google.protobuf.Duration authority_grace_period = 5 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"authority_grace_period\" yaml:\"authority_grace_period\""
|
(gogoproto.moretags) =
|
||||||
|
"json:\"authority_grace_period\" yaml:\"authority_grace_period\""
|
||||||
];
|
];
|
||||||
|
|
||||||
bool authority_auction_enabled = 6 [(gogoproto.moretags) = "json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""];
|
bool authority_auction_enabled = 6 [
|
||||||
|
(gogoproto.moretags) =
|
||||||
|
"json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""
|
||||||
|
];
|
||||||
|
|
||||||
google.protobuf.Duration authority_auction_commits_duration = 7 [
|
google.protobuf.Duration authority_auction_commits_duration = 7 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" yaml:\"authority_auction_commits_duration\""
|
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" "
|
||||||
|
"yaml:\"authority_auction_commits_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
google.protobuf.Duration authority_auction_reveals_duration = 8 [
|
google.protobuf.Duration authority_auction_reveals_duration = 8 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdduration) = true,
|
(gogoproto.stdduration) = true,
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" yaml:\"authority_auction_reveals_duration\""
|
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" "
|
||||||
|
"yaml:\"authority_auction_reveals_duration\""
|
||||||
];
|
];
|
||||||
|
|
||||||
cosmos.base.v1beta1.Coin authority_auction_commit_fee = 9 [
|
cosmos.base.v1beta1.Coin authority_auction_commit_fee = 9 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_commit_fee\" yaml:\"authority_auction_commit_fee\""
|
(gogoproto.moretags) = "json:\"authority_auction_commit_fee\" "
|
||||||
|
"yaml:\"authority_auction_commit_fee\""
|
||||||
];
|
];
|
||||||
|
|
||||||
cosmos.base.v1beta1.Coin authority_auction_reveal_fee = 10 [
|
cosmos.base.v1beta1.Coin authority_auction_reveal_fee = 10 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_reveal_fee\" yaml:\"authority_auction_reveal_fee\""
|
(gogoproto.moretags) = "json:\"authority_auction_reveal_fee\" "
|
||||||
|
"yaml:\"authority_auction_reveal_fee\""
|
||||||
];
|
];
|
||||||
|
|
||||||
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
|
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" yaml:\"authority_auction_minimum_bid\""
|
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" "
|
||||||
|
"yaml:\"authority_auction_minimum_bid\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Record defines a registry record
|
// Record defines a registry record
|
||||||
message Record {
|
message Record {
|
||||||
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""];
|
string id = 1 [ (gogoproto.moretags) = "json:\"id\" yaml:\"id\"" ];
|
||||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
string bond_id = 2
|
||||||
string create_time = 3 [(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""];
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""];
|
string create_time = 3
|
||||||
bool deleted = 5;
|
[ (gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\"" ];
|
||||||
repeated string owners = 6 [(gogoproto.moretags) = "json:\"owners\" yaml:\"owners\""];
|
string expiry_time = 4
|
||||||
bytes attributes = 7 [(gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\""];
|
[ (gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\"" ];
|
||||||
repeated string names = 8 [(gogoproto.moretags) = "json:\"names\" yaml:\"names\""];
|
bool deleted = 5;
|
||||||
string type = 9 [(gogoproto.moretags) = "json:\"types\" yaml:\"types\""];
|
repeated string owners = 6
|
||||||
|
[ (gogoproto.moretags) = "json:\"owners\" yaml:\"owners\"" ];
|
||||||
|
bytes attributes = 7
|
||||||
|
[ (gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\"" ];
|
||||||
|
repeated string names = 8
|
||||||
|
[ (gogoproto.moretags) = "json:\"names\" yaml:\"names\"" ];
|
||||||
|
string type = 9 [ (gogoproto.moretags) = "json:\"types\" yaml:\"types\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuthorityEntry defines a registry authority
|
// AuthorityEntry defines a registry authority
|
||||||
message AuthorityEntry {
|
message AuthorityEntry {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
NameAuthority entry = 2;
|
NameAuthority entry = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameAuthority
|
// NameAuthority
|
||||||
message NameAuthority {
|
message NameAuthority {
|
||||||
// Owner public key.
|
// Owner public key.
|
||||||
string owner_public_key = 1 [(gogoproto.moretags) = "json:\"owner_public_key\" yaml:\"owner_public_key\""];
|
string owner_public_key = 1
|
||||||
|
[ (gogoproto.moretags) =
|
||||||
|
"json:\"owner_public_key\" yaml:\"owner_public_key\"" ];
|
||||||
// Owner address.
|
// Owner address.
|
||||||
string owner_address = 2 [(gogoproto.moretags) = "json:\"owner_address\" yaml:\"owner_address\""];
|
string owner_address = 2
|
||||||
|
[ (gogoproto.moretags) =
|
||||||
|
"json:\"owner_address\" yaml:\"owner_address\"" ];
|
||||||
// height at which name/authority was created.
|
// height at which name/authority was created.
|
||||||
uint64 height = 3;
|
uint64 height = 3;
|
||||||
string status = 4;
|
string status = 4;
|
||||||
string auction_id = 5 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""];
|
string auction_id = 5
|
||||||
string bond_id = 6 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
[ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
|
||||||
|
string bond_id = 6
|
||||||
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
|
|
||||||
google.protobuf.Timestamp expiry_time = 7 [
|
google.protobuf.Timestamp expiry_time = 7 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.stdtime) = true,
|
(gogoproto.stdtime) = true,
|
||||||
(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""
|
(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameEntry
|
// NameEntry
|
||||||
message NameEntry {
|
message NameEntry {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
NameRecord entry = 2;
|
NameRecord entry = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameRecord defines a versioned name record
|
// NameRecord defines a versioned name record
|
||||||
message NameRecord {
|
message NameRecord {
|
||||||
NameRecordEntry latest = 1;
|
NameRecordEntry latest = 1;
|
||||||
repeated NameRecordEntry history = 2;
|
repeated NameRecordEntry history = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameRecordEntry
|
// NameRecordEntry
|
||||||
message NameRecordEntry {
|
message NameRecordEntry {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
uint64 height = 2;
|
uint64 height = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signature
|
// Signature
|
||||||
message Signature {
|
message Signature {
|
||||||
string sig = 1 [(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""];
|
string sig = 1 [ (gogoproto.moretags) = "json:\"sig\" yaml:\"sig\"" ];
|
||||||
string pub_key = 2 [(gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\""];
|
string pub_key = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\"" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExpiryQueue: record / authority expiry queue type
|
// ExpiryQueue: record / authority expiry queue type
|
||||||
// id: expiry time
|
// id: expiry time
|
||||||
// value: array of ids (record cids / authority names)
|
// value: array of ids (record cids / authority names)
|
||||||
message ExpiryQueue {
|
message ExpiryQueue {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
repeated string value = 2;
|
repeated string value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// List of record ids
|
// List of record ids
|
||||||
// Value type to be used in AttributesMap
|
// Value type to be used in AttributesMap
|
||||||
message RecordsList {
|
message RecordsList { repeated string value = 1; }
|
||||||
repeated string value = 1;
|
|
||||||
}
|
|
||||||
|
@ -34,12 +34,14 @@ service Msg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DissociateRecords
|
// DissociateRecords
|
||||||
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) {
|
rpc DissociateRecords(MsgDissociateRecords)
|
||||||
|
returns (MsgDissociateRecordsResponse) {
|
||||||
option (google.api.http).post = "/cerc/registry/v1/dissociate_records";
|
option (google.api.http).post = "/cerc/registry/v1/dissociate_records";
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReassociateRecords
|
// ReassociateRecords
|
||||||
rpc ReassociateRecords(MsgReassociateRecords) returns (MsgReassociateRecordsResponse) {
|
rpc ReassociateRecords(MsgReassociateRecords)
|
||||||
|
returns (MsgReassociateRecordsResponse) {
|
||||||
option (google.api.http).post = "/cerc/registry/v1/reassociate_records";
|
option (google.api.http).post = "/cerc/registry/v1/reassociate_records";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,18 +50,20 @@ service Msg {
|
|||||||
option (google.api.http).post = "/cerc/registry/v1/set_name";
|
option (google.api.http).post = "/cerc/registry/v1/set_name";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reserve name
|
|
||||||
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) {
|
|
||||||
option (google.api.http).post = "/cerc/registry/v1/reserve_name";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete Name method will remove authority name
|
// Delete Name method will remove authority name
|
||||||
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse) {
|
rpc DeleteName(MsgDeleteName) returns (MsgDeleteNameResponse) {
|
||||||
option (google.api.http).post = "/cerc/registry/v1/delete_name";
|
option (google.api.http).post = "/cerc/registry/v1/delete_name";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reserve authority name
|
||||||
|
rpc ReserveAuthority(MsgReserveAuthority)
|
||||||
|
returns (MsgReserveAuthorityResponse) {
|
||||||
|
option (google.api.http).post = "/cerc/registry/v1/reserve_authority";
|
||||||
|
}
|
||||||
|
|
||||||
// SetAuthorityBond
|
// SetAuthorityBond
|
||||||
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) {
|
rpc SetAuthorityBond(MsgSetAuthorityBond)
|
||||||
|
returns (MsgSetAuthorityBondResponse) {
|
||||||
option (google.api.http).post = "/cerc/registry/v1/set_authority_bond";
|
option (google.api.http).post = "/cerc/registry/v1/set_authority_bond";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -68,19 +72,18 @@ service Msg {
|
|||||||
message MsgSetRecord {
|
message MsgSetRecord {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
string bond_id = 1
|
||||||
string signer = 2;
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
Payload payload = 3 [(gogoproto.nullable) = false];
|
string signer = 2;
|
||||||
|
Payload payload = 3 [ (gogoproto.nullable) = false ];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgSetRecordResponse
|
// MsgSetRecordResponse
|
||||||
message MsgSetRecordResponse {
|
message MsgSetRecordResponse { string id = 1; }
|
||||||
string id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Payload
|
// Payload
|
||||||
message Payload {
|
message Payload {
|
||||||
Record record = 1;
|
Record record = 1;
|
||||||
repeated Signature signatures = 2 [
|
repeated Signature signatures = 2 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
|
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
|
||||||
@ -91,57 +94,59 @@ message Payload {
|
|||||||
message MsgSetName {
|
message MsgSetName {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string lrn = 1;
|
string lrn = 1;
|
||||||
string cid = 2;
|
string cid = 2;
|
||||||
string signer = 3;
|
string signer = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgSetNameResponse
|
// MsgSetNameResponse
|
||||||
message MsgSetNameResponse {}
|
message MsgSetNameResponse {}
|
||||||
|
|
||||||
// MsgReserveName
|
// MsgReserveAuthority
|
||||||
message MsgReserveAuthority {
|
message MsgReserveAuthority {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string name = 1;
|
string name = 1;
|
||||||
string signer = 2;
|
string signer = 2;
|
||||||
|
|
||||||
// if creating a sub-authority.
|
// if creating a sub-authority.
|
||||||
string owner = 3;
|
string owner = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgReserveNameResponse
|
// MsgReserveAuthorityResponse
|
||||||
message MsgReserveAuthorityResponse {}
|
message MsgReserveAuthorityResponse {}
|
||||||
|
|
||||||
// MsgSetAuthorityBond
|
// MsgSetAuthorityBond
|
||||||
message MsgSetAuthorityBond {
|
message MsgSetAuthorityBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string name = 1;
|
string name = 1;
|
||||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
string bond_id = 2
|
||||||
string signer = 3;
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
|
string signer = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgSetAuthorityBondResponse
|
// MsgSetAuthorityBondResponse
|
||||||
message MsgSetAuthorityBondResponse {}
|
message MsgSetAuthorityBondResponse {}
|
||||||
|
|
||||||
// MsgDeleteNameAuthority
|
// MsgDeleteName
|
||||||
message MsgDeleteNameAuthority {
|
message MsgDeleteName {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string lrn = 1;
|
string lrn = 1;
|
||||||
string signer = 2;
|
string signer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgDeleteNameAuthorityResponse
|
// MsgDeleteNameResponse
|
||||||
message MsgDeleteNameAuthorityResponse {}
|
message MsgDeleteNameResponse {}
|
||||||
|
|
||||||
// MsgRenewRecord
|
// MsgRenewRecord
|
||||||
message MsgRenewRecord {
|
message MsgRenewRecord {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
string record_id = 1
|
||||||
string signer = 2;
|
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||||
|
string signer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgRenewRecordResponse
|
// MsgRenewRecordResponse
|
||||||
@ -151,9 +156,11 @@ message MsgRenewRecordResponse {}
|
|||||||
message MsgAssociateBond {
|
message MsgAssociateBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
string record_id = 1
|
||||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||||
string signer = 3;
|
string bond_id = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
|
string signer = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgAssociateBondResponse
|
// MsgAssociateBondResponse
|
||||||
@ -163,8 +170,9 @@ message MsgAssociateBondResponse {}
|
|||||||
message MsgDissociateBond {
|
message MsgDissociateBond {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
string record_id = 1
|
||||||
string signer = 2;
|
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||||
|
string signer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgDissociateBondResponse
|
// MsgDissociateBondResponse
|
||||||
@ -174,8 +182,9 @@ message MsgDissociateBondResponse {}
|
|||||||
message MsgDissociateRecords {
|
message MsgDissociateRecords {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
string bond_id = 1
|
||||||
string signer = 2;
|
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||||
|
string signer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgDissociateRecordsResponse
|
// MsgDissociateRecordsResponse
|
||||||
@ -185,9 +194,11 @@ message MsgDissociateRecordsResponse {}
|
|||||||
message MsgReassociateRecords {
|
message MsgReassociateRecords {
|
||||||
option (cosmos.msg.v1.signer) = "signer";
|
option (cosmos.msg.v1.signer) = "signer";
|
||||||
|
|
||||||
string new_bond_id = 1 [(gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\""];
|
string new_bond_id = 1
|
||||||
string old_bond_id = 2 [(gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\""];
|
[ (gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\"" ];
|
||||||
string signer = 3;
|
string old_bond_id = 2
|
||||||
|
[ (gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\"" ];
|
||||||
|
string signer = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgReassociateRecordsResponse
|
// MsgReassociateRecordsResponse
|
||||||
|
@ -11,9 +11,9 @@ import { Comet38Client } from '@cosmjs/tendermint-rpc';
|
|||||||
|
|
||||||
import { MsgCancelBondEncodeObject, MsgCreateBondEncodeObject, MsgRefillBondEncodeObject, MsgWithdrawBondEncodeObject, bondTypes, typeUrlMsgCancelBond, typeUrlMsgCreateBond, typeUrlMsgRefillBond, typeUrlMsgWithdrawBond } from './types/cerc/bond/message';
|
import { MsgCancelBondEncodeObject, MsgCreateBondEncodeObject, MsgRefillBondEncodeObject, MsgWithdrawBondEncodeObject, bondTypes, typeUrlMsgCancelBond, typeUrlMsgCreateBond, typeUrlMsgRefillBond, typeUrlMsgWithdrawBond } from './types/cerc/bond/message';
|
||||||
import { Coin } from './proto2/cosmos/base/v1beta1/coin';
|
import { Coin } from './proto2/cosmos/base/v1beta1/coin';
|
||||||
import { MsgAssociateBondEncodeObject, MsgDeleteNameAuthorityEncodeObject, MsgDissociateBondEncodeObject, MsgDissociateRecordsEncodeObject, MsgReassociateRecordsEncodeObject, MsgReserveAuthorityEncodeObject, MsgSetAuthorityBondEncodeObject, MsgSetNameEncodeObject, MsgSetRecordEncodeObject, registryTypes, typeUrlMsgAssociateBond, typeUrlMsgDeleteNameAuthority, typeUrlMsgDissociateBond, typeUrlMsgDissociateRecords, typeUrlMsgReassociateRecords, typeUrlMsgReserveAuthority, typeUrlMsgSetAuthorityBond, typeUrlMsgSetName, typeUrlMsgSetRecord } from './types/cerc/registry/message';
|
import { MsgAssociateBondEncodeObject, MsgDeleteNameEncodeObject, MsgDissociateBondEncodeObject, MsgDissociateRecordsEncodeObject, MsgReassociateRecordsEncodeObject, MsgReserveAuthorityEncodeObject, MsgSetAuthorityBondEncodeObject, MsgSetNameEncodeObject, MsgSetRecordEncodeObject, registryTypes, typeUrlMsgAssociateBond, typeUrlMsgDeleteName, typeUrlMsgDissociateBond, typeUrlMsgDissociateRecords, typeUrlMsgReassociateRecords, typeUrlMsgReserveAuthority, typeUrlMsgSetAuthorityBond, typeUrlMsgSetName, typeUrlMsgSetRecord } from './types/cerc/registry/message';
|
||||||
import { MsgCommitBidEncodeObject, MsgRevealBidEncodeObject, auctionTypes, typeUrlMsgCommitBid, typeUrlMsgRevealBid } from './types/cerc/auction/message';
|
import { MsgCommitBidEncodeObject, MsgRevealBidEncodeObject, auctionTypes, typeUrlMsgCommitBid, typeUrlMsgRevealBid } from './types/cerc/auction/message';
|
||||||
import { MsgAssociateBondResponse, MsgDeleteNameAuthorityResponse, MsgDissociateBondResponse, MsgDissociateRecordsResponse, MsgReassociateRecordsResponse, MsgReserveAuthorityResponse, MsgSetAuthorityBondResponse, MsgSetNameResponse, MsgSetRecordResponse, Payload } from './proto2/cerc/registry/v1/tx';
|
import { MsgAssociateBondResponse, MsgDeleteNameResponse, MsgDissociateBondResponse, MsgDissociateRecordsResponse, MsgReassociateRecordsResponse, MsgReserveAuthorityResponse, MsgSetAuthorityBondResponse, MsgSetNameResponse, MsgSetRecordResponse, Payload } from './proto2/cerc/registry/v1/tx';
|
||||||
import { Record, Signature } from './proto2/cerc/registry/v1/registry';
|
import { Record, Signature } from './proto2/cerc/registry/v1/registry';
|
||||||
import { Account } from './account';
|
import { Account } from './account';
|
||||||
import { Util } from './util';
|
import { Util } from './util';
|
||||||
@ -354,8 +354,8 @@ export class LaconicClient extends SigningStargateClient {
|
|||||||
fee: StdFee | 'auto' | number,
|
fee: StdFee | 'auto' | number,
|
||||||
memo = ''
|
memo = ''
|
||||||
) {
|
) {
|
||||||
const createMsg: MsgDeleteNameAuthorityEncodeObject = {
|
const createMsg: MsgDeleteNameEncodeObject = {
|
||||||
typeUrl: typeUrlMsgDeleteNameAuthority,
|
typeUrl: typeUrlMsgDeleteName,
|
||||||
value: {
|
value: {
|
||||||
signer,
|
signer,
|
||||||
lrn
|
lrn
|
||||||
@ -363,7 +363,7 @@ export class LaconicClient extends SigningStargateClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const response = await this.signAndBroadcast(signer, [createMsg], fee, memo);
|
const response = await this.signAndBroadcast(signer, [createMsg], fee, memo);
|
||||||
return this.parseResponse<MsgDeleteNameAuthorityResponse>(response);
|
return this.parseResponse<MsgDeleteNameResponse>(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
parseResponse<T> (response: DeliverTxResponse): T {
|
parseResponse<T> (response: DeliverTxResponse): T {
|
||||||
@ -376,8 +376,6 @@ export class LaconicClient extends SigningStargateClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
processWriteError (error: string) {
|
processWriteError (error: string) {
|
||||||
// error string a stacktrace containing the message.
|
|
||||||
// https://gist.github.com/nikugogoi/de55d390574ded3466abad8bffd81952#file-txresponse-js-L7
|
|
||||||
const errorMessage = NAMESERVICE_ERRORS.find(message => error.includes(message));
|
const errorMessage = NAMESERVICE_ERRORS.find(message => error.includes(message));
|
||||||
|
|
||||||
if (!errorMessage) {
|
if (!errorMessage) {
|
||||||
|
@ -49,6 +49,7 @@ export interface Auction {
|
|||||||
winningPrice?: Coin;
|
winningPrice?: Coin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Auctions represent all the auctions in the module */
|
||||||
export interface Auctions {
|
export interface Auctions {
|
||||||
auctions: Auction[];
|
auctions: Auction[];
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,10 @@ import _m0 from "protobufjs/minimal";
|
|||||||
|
|
||||||
export const protobufPackage = "cerc.auction.v1";
|
export const protobufPackage = "cerc.auction.v1";
|
||||||
|
|
||||||
/** QueryParamsRequest is the format to query the parameters of the auction module */
|
/**
|
||||||
|
* QueryParamsRequest is the format to query the parameters of the auction
|
||||||
|
* module
|
||||||
|
*/
|
||||||
export interface QueryParamsRequest {}
|
export interface QueryParamsRequest {}
|
||||||
|
|
||||||
/** QueryParamsResponse returns parameters of the auction module */
|
/** QueryParamsResponse returns parameters of the auction module */
|
||||||
@ -30,19 +33,19 @@ export interface QueryAuctionsResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** AuctionRequest is the format for querying a specific auction */
|
/** AuctionRequest is the format for querying a specific auction */
|
||||||
export interface QueryAuctionRequest {
|
export interface QueryGetAuctionRequest {
|
||||||
/** Auction id */
|
/** Auction id */
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AuctionResponse returns the details of the queried auction */
|
/** AuctionResponse returns the details of the queried auction */
|
||||||
export interface QueryAuctionResponse {
|
export interface QueryGetAuctionResponse {
|
||||||
/** Auction details */
|
/** Auction details */
|
||||||
auction?: Auction;
|
auction?: Auction;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** BidRequest is the format for querying a specific bid in an auction */
|
/** BidRequest is the format for querying a specific bid in an auction */
|
||||||
export interface QueryBidRequest {
|
export interface QueryGetBidRequest {
|
||||||
/** Auction id */
|
/** Auction id */
|
||||||
auctionId: string;
|
auctionId: string;
|
||||||
/** Bidder address */
|
/** Bidder address */
|
||||||
@ -50,24 +53,27 @@ export interface QueryBidRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** BidResponse returns the details of the queried bid */
|
/** BidResponse returns the details of the queried bid */
|
||||||
export interface QueryBidResponse {
|
export interface QueryGetBidResponse {
|
||||||
/** Bid details */
|
/** Bid details */
|
||||||
bid?: Bid;
|
bid?: Bid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** BidsRequest is the format for querying all bids in an auction */
|
/** BidsRequest is the format for querying all bids in an auction */
|
||||||
export interface QueryBidsRequest {
|
export interface QueryGetBidsRequest {
|
||||||
/** Auction id */
|
/** Auction id */
|
||||||
auctionId: string;
|
auctionId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** BidsResponse returns details of all bids in an auction */
|
/** BidsResponse returns details of all bids in an auction */
|
||||||
export interface QueryBidsResponse {
|
export interface QueryGetBidsResponse {
|
||||||
/** List of bids in the auction */
|
/** List of bids in the auction */
|
||||||
bids: Bid[];
|
bids: Bid[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AuctionsByBidderRequest is the format for querying all auctions containing a bidder address */
|
/**
|
||||||
|
* AuctionsByBidderRequest is the format for querying all auctions containing a
|
||||||
|
* bidder address
|
||||||
|
*/
|
||||||
export interface QueryAuctionsByBidderRequest {
|
export interface QueryAuctionsByBidderRequest {
|
||||||
/** Address of the bidder */
|
/** Address of the bidder */
|
||||||
bidderAddress: string;
|
bidderAddress: string;
|
||||||
@ -79,7 +85,10 @@ export interface QueryAuctionsByBidderResponse {
|
|||||||
auctions?: Auctions;
|
auctions?: Auctions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AuctionsByOwnerRequest is the format for querying all auctions created by an owner */
|
/**
|
||||||
|
* AuctionsByOwnerRequest is the format for querying all auctions created by an
|
||||||
|
* owner
|
||||||
|
*/
|
||||||
export interface QueryAuctionsByOwnerRequest {
|
export interface QueryAuctionsByOwnerRequest {
|
||||||
/** Address of the owner */
|
/** Address of the owner */
|
||||||
ownerAddress: string;
|
ownerAddress: string;
|
||||||
@ -94,6 +103,10 @@ export interface QueryAuctionsByOwnerResponse {
|
|||||||
/** BalanceRequest is the format to fetch all balances */
|
/** BalanceRequest is the format to fetch all balances */
|
||||||
export interface QueryGetAuctionModuleBalanceRequest {}
|
export interface QueryGetAuctionModuleBalanceRequest {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* QueryGetAuctionModuleBalanceResponse is the response type for auction module
|
||||||
|
* balance rpc method
|
||||||
|
*/
|
||||||
export interface QueryGetAuctionModuleBalanceResponse {
|
export interface QueryGetAuctionModuleBalanceResponse {
|
||||||
/** Set of all balances within the auction */
|
/** Set of all balances within the auction */
|
||||||
balance: Coin[];
|
balance: Coin[];
|
||||||
@ -348,13 +361,13 @@ export const QueryAuctionsResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryAuctionRequest(): QueryAuctionRequest {
|
function createBaseQueryGetAuctionRequest(): QueryGetAuctionRequest {
|
||||||
return { id: "" };
|
return { id: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryAuctionRequest = {
|
export const QueryGetAuctionRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryAuctionRequest,
|
message: QueryGetAuctionRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.id !== "") {
|
if (message.id !== "") {
|
||||||
@ -363,10 +376,13 @@ export const QueryAuctionRequest = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAuctionRequest {
|
decode(
|
||||||
|
input: _m0.Reader | Uint8Array,
|
||||||
|
length?: number
|
||||||
|
): QueryGetAuctionRequest {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryAuctionRequest();
|
const message = createBaseQueryGetAuctionRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -381,34 +397,34 @@ export const QueryAuctionRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryAuctionRequest {
|
fromJSON(object: any): QueryGetAuctionRequest {
|
||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? String(object.id) : "",
|
id: isSet(object.id) ? String(object.id) : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryAuctionRequest): unknown {
|
toJSON(message: QueryGetAuctionRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.id !== undefined && (obj.id = message.id);
|
message.id !== undefined && (obj.id = message.id);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryAuctionRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetAuctionRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryAuctionRequest {
|
): QueryGetAuctionRequest {
|
||||||
const message = createBaseQueryAuctionRequest();
|
const message = createBaseQueryGetAuctionRequest();
|
||||||
message.id = object.id ?? "";
|
message.id = object.id ?? "";
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryAuctionResponse(): QueryAuctionResponse {
|
function createBaseQueryGetAuctionResponse(): QueryGetAuctionResponse {
|
||||||
return { auction: undefined };
|
return { auction: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryAuctionResponse = {
|
export const QueryGetAuctionResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryAuctionResponse,
|
message: QueryGetAuctionResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.auction !== undefined) {
|
if (message.auction !== undefined) {
|
||||||
@ -420,10 +436,10 @@ export const QueryAuctionResponse = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): QueryAuctionResponse {
|
): QueryGetAuctionResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryAuctionResponse();
|
const message = createBaseQueryGetAuctionResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -438,7 +454,7 @@ export const QueryAuctionResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryAuctionResponse {
|
fromJSON(object: any): QueryGetAuctionResponse {
|
||||||
return {
|
return {
|
||||||
auction: isSet(object.auction)
|
auction: isSet(object.auction)
|
||||||
? Auction.fromJSON(object.auction)
|
? Auction.fromJSON(object.auction)
|
||||||
@ -446,7 +462,7 @@ export const QueryAuctionResponse = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryAuctionResponse): unknown {
|
toJSON(message: QueryGetAuctionResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.auction !== undefined &&
|
message.auction !== undefined &&
|
||||||
(obj.auction = message.auction
|
(obj.auction = message.auction
|
||||||
@ -455,10 +471,10 @@ export const QueryAuctionResponse = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryAuctionResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetAuctionResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryAuctionResponse {
|
): QueryGetAuctionResponse {
|
||||||
const message = createBaseQueryAuctionResponse();
|
const message = createBaseQueryGetAuctionResponse();
|
||||||
message.auction =
|
message.auction =
|
||||||
object.auction !== undefined && object.auction !== null
|
object.auction !== undefined && object.auction !== null
|
||||||
? Auction.fromPartial(object.auction)
|
? Auction.fromPartial(object.auction)
|
||||||
@ -467,13 +483,13 @@ export const QueryAuctionResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryBidRequest(): QueryBidRequest {
|
function createBaseQueryGetBidRequest(): QueryGetBidRequest {
|
||||||
return { auctionId: "", bidder: "" };
|
return { auctionId: "", bidder: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryBidRequest = {
|
export const QueryGetBidRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryBidRequest,
|
message: QueryGetBidRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.auctionId !== "") {
|
if (message.auctionId !== "") {
|
||||||
@ -485,10 +501,10 @@ export const QueryBidRequest = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBidRequest {
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetBidRequest {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryBidRequest();
|
const message = createBaseQueryGetBidRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -506,37 +522,37 @@ export const QueryBidRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryBidRequest {
|
fromJSON(object: any): QueryGetBidRequest {
|
||||||
return {
|
return {
|
||||||
auctionId: isSet(object.auctionId) ? String(object.auctionId) : "",
|
auctionId: isSet(object.auctionId) ? String(object.auctionId) : "",
|
||||||
bidder: isSet(object.bidder) ? String(object.bidder) : "",
|
bidder: isSet(object.bidder) ? String(object.bidder) : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryBidRequest): unknown {
|
toJSON(message: QueryGetBidRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.auctionId !== undefined && (obj.auctionId = message.auctionId);
|
message.auctionId !== undefined && (obj.auctionId = message.auctionId);
|
||||||
message.bidder !== undefined && (obj.bidder = message.bidder);
|
message.bidder !== undefined && (obj.bidder = message.bidder);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryBidRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetBidRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryBidRequest {
|
): QueryGetBidRequest {
|
||||||
const message = createBaseQueryBidRequest();
|
const message = createBaseQueryGetBidRequest();
|
||||||
message.auctionId = object.auctionId ?? "";
|
message.auctionId = object.auctionId ?? "";
|
||||||
message.bidder = object.bidder ?? "";
|
message.bidder = object.bidder ?? "";
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryBidResponse(): QueryBidResponse {
|
function createBaseQueryGetBidResponse(): QueryGetBidResponse {
|
||||||
return { bid: undefined };
|
return { bid: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryBidResponse = {
|
export const QueryGetBidResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryBidResponse,
|
message: QueryGetBidResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.bid !== undefined) {
|
if (message.bid !== undefined) {
|
||||||
@ -545,10 +561,10 @@ export const QueryBidResponse = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBidResponse {
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetBidResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryBidResponse();
|
const message = createBaseQueryGetBidResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -563,23 +579,23 @@ export const QueryBidResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryBidResponse {
|
fromJSON(object: any): QueryGetBidResponse {
|
||||||
return {
|
return {
|
||||||
bid: isSet(object.bid) ? Bid.fromJSON(object.bid) : undefined,
|
bid: isSet(object.bid) ? Bid.fromJSON(object.bid) : undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryBidResponse): unknown {
|
toJSON(message: QueryGetBidResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.bid !== undefined &&
|
message.bid !== undefined &&
|
||||||
(obj.bid = message.bid ? Bid.toJSON(message.bid) : undefined);
|
(obj.bid = message.bid ? Bid.toJSON(message.bid) : undefined);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryBidResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetBidResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryBidResponse {
|
): QueryGetBidResponse {
|
||||||
const message = createBaseQueryBidResponse();
|
const message = createBaseQueryGetBidResponse();
|
||||||
message.bid =
|
message.bid =
|
||||||
object.bid !== undefined && object.bid !== null
|
object.bid !== undefined && object.bid !== null
|
||||||
? Bid.fromPartial(object.bid)
|
? Bid.fromPartial(object.bid)
|
||||||
@ -588,13 +604,13 @@ export const QueryBidResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryBidsRequest(): QueryBidsRequest {
|
function createBaseQueryGetBidsRequest(): QueryGetBidsRequest {
|
||||||
return { auctionId: "" };
|
return { auctionId: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryBidsRequest = {
|
export const QueryGetBidsRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryBidsRequest,
|
message: QueryGetBidsRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.auctionId !== "") {
|
if (message.auctionId !== "") {
|
||||||
@ -603,10 +619,10 @@ export const QueryBidsRequest = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBidsRequest {
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetBidsRequest {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryBidsRequest();
|
const message = createBaseQueryGetBidsRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -621,34 +637,34 @@ export const QueryBidsRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryBidsRequest {
|
fromJSON(object: any): QueryGetBidsRequest {
|
||||||
return {
|
return {
|
||||||
auctionId: isSet(object.auctionId) ? String(object.auctionId) : "",
|
auctionId: isSet(object.auctionId) ? String(object.auctionId) : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryBidsRequest): unknown {
|
toJSON(message: QueryGetBidsRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.auctionId !== undefined && (obj.auctionId = message.auctionId);
|
message.auctionId !== undefined && (obj.auctionId = message.auctionId);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryBidsRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetBidsRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryBidsRequest {
|
): QueryGetBidsRequest {
|
||||||
const message = createBaseQueryBidsRequest();
|
const message = createBaseQueryGetBidsRequest();
|
||||||
message.auctionId = object.auctionId ?? "";
|
message.auctionId = object.auctionId ?? "";
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryBidsResponse(): QueryBidsResponse {
|
function createBaseQueryGetBidsResponse(): QueryGetBidsResponse {
|
||||||
return { bids: [] };
|
return { bids: [] };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryBidsResponse = {
|
export const QueryGetBidsResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryBidsResponse,
|
message: QueryGetBidsResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
for (const v of message.bids) {
|
for (const v of message.bids) {
|
||||||
@ -657,10 +673,13 @@ export const QueryBidsResponse = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBidsResponse {
|
decode(
|
||||||
|
input: _m0.Reader | Uint8Array,
|
||||||
|
length?: number
|
||||||
|
): QueryGetBidsResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryBidsResponse();
|
const message = createBaseQueryGetBidsResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -675,7 +694,7 @@ export const QueryBidsResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryBidsResponse {
|
fromJSON(object: any): QueryGetBidsResponse {
|
||||||
return {
|
return {
|
||||||
bids: Array.isArray(object?.bids)
|
bids: Array.isArray(object?.bids)
|
||||||
? object.bids.map((e: any) => Bid.fromJSON(e))
|
? object.bids.map((e: any) => Bid.fromJSON(e))
|
||||||
@ -683,7 +702,7 @@ export const QueryBidsResponse = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryBidsResponse): unknown {
|
toJSON(message: QueryGetBidsResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.bids) {
|
if (message.bids) {
|
||||||
obj.bids = message.bids.map((e) => (e ? Bid.toJSON(e) : undefined));
|
obj.bids = message.bids.map((e) => (e ? Bid.toJSON(e) : undefined));
|
||||||
@ -693,10 +712,10 @@ export const QueryBidsResponse = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryBidsResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetBidsResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryBidsResponse {
|
): QueryGetBidsResponse {
|
||||||
const message = createBaseQueryBidsResponse();
|
const message = createBaseQueryGetBidsResponse();
|
||||||
message.bids = object.bids?.map((e) => Bid.fromPartial(e)) || [];
|
message.bids = object.bids?.map((e) => Bid.fromPartial(e)) || [];
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
@ -1071,11 +1090,11 @@ export interface Query {
|
|||||||
/** Auctions queries all auctions */
|
/** Auctions queries all auctions */
|
||||||
Auctions(request: QueryAuctionsRequest): Promise<QueryAuctionsResponse>;
|
Auctions(request: QueryAuctionsRequest): Promise<QueryAuctionsResponse>;
|
||||||
/** GetAuction queries an auction */
|
/** GetAuction queries an auction */
|
||||||
GetAuction(request: QueryAuctionRequest): Promise<QueryAuctionResponse>;
|
GetAuction(request: QueryGetAuctionRequest): Promise<QueryGetAuctionResponse>;
|
||||||
/** GetBid queries an auction bid */
|
/** GetBid queries an auction bid */
|
||||||
GetBid(request: QueryBidRequest): Promise<QueryBidResponse>;
|
GetBid(request: QueryGetBidRequest): Promise<QueryGetBidResponse>;
|
||||||
/** GetBids queries all auction bids */
|
/** GetBids queries all auction bids */
|
||||||
GetBids(request: QueryBidsRequest): Promise<QueryBidsResponse>;
|
GetBids(request: QueryGetBidsRequest): Promise<QueryGetBidsResponse>;
|
||||||
/** AuctionsByBidder queries auctions by bidder */
|
/** AuctionsByBidder queries auctions by bidder */
|
||||||
AuctionsByBidder(
|
AuctionsByBidder(
|
||||||
request: QueryAuctionsByBidderRequest
|
request: QueryAuctionsByBidderRequest
|
||||||
@ -1119,31 +1138,33 @@ export class QueryClientImpl implements Query {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetAuction(request: QueryAuctionRequest): Promise<QueryAuctionResponse> {
|
GetAuction(
|
||||||
const data = QueryAuctionRequest.encode(request).finish();
|
request: QueryGetAuctionRequest
|
||||||
|
): Promise<QueryGetAuctionResponse> {
|
||||||
|
const data = QueryGetAuctionRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request(
|
const promise = this.rpc.request(
|
||||||
"cerc.auction.v1.Query",
|
"cerc.auction.v1.Query",
|
||||||
"GetAuction",
|
"GetAuction",
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryAuctionResponse.decode(new _m0.Reader(data))
|
QueryGetAuctionResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetBid(request: QueryBidRequest): Promise<QueryBidResponse> {
|
GetBid(request: QueryGetBidRequest): Promise<QueryGetBidResponse> {
|
||||||
const data = QueryBidRequest.encode(request).finish();
|
const data = QueryGetBidRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request("cerc.auction.v1.Query", "GetBid", data);
|
const promise = this.rpc.request("cerc.auction.v1.Query", "GetBid", data);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryBidResponse.decode(new _m0.Reader(data))
|
QueryGetBidResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetBids(request: QueryBidsRequest): Promise<QueryBidsResponse> {
|
GetBids(request: QueryGetBidsRequest): Promise<QueryGetBidsResponse> {
|
||||||
const data = QueryBidsRequest.encode(request).finish();
|
const data = QueryGetBidsRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request("cerc.auction.v1.Query", "GetBids", data);
|
const promise = this.rpc.request("cerc.auction.v1.Query", "GetBids", data);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryBidsResponse.decode(new _m0.Reader(data))
|
QueryGetBidsResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,20 +18,20 @@ export interface QueryParamsResponse {
|
|||||||
params?: Params;
|
params?: Params;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondById queries a bonds. */
|
/** QueryBondsRequest queries bonds */
|
||||||
export interface QueryGetBondsRequest {
|
export interface QueryBondsRequest {
|
||||||
/** pagination defines an optional pagination for the request. */
|
/** pagination defines an optional pagination for the request. */
|
||||||
pagination?: PageRequest;
|
pagination?: PageRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondsResponse is response type for get the bonds by bond-id */
|
/** QueryBondsResponse is response type for get the bonds by bond-id */
|
||||||
export interface QueryGetBondsResponse {
|
export interface QueryBondsResponse {
|
||||||
bonds: Bond[];
|
bonds: Bond[];
|
||||||
/** pagination defines the pagination in the response. */
|
/** pagination defines the pagination in the response. */
|
||||||
pagination?: PageResponse;
|
pagination?: PageResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondById */
|
/** QueryGetBondById queries bond by bond id */
|
||||||
export interface QueryGetBondByIdRequest {
|
export interface QueryGetBondByIdRequest {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
@ -41,24 +41,36 @@ export interface QueryGetBondByIdResponse {
|
|||||||
bond?: Bond;
|
bond?: Bond;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method */
|
/**
|
||||||
|
* QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC
|
||||||
|
* Method
|
||||||
|
*/
|
||||||
export interface QueryGetBondsByOwnerRequest {
|
export interface QueryGetBondsByOwnerRequest {
|
||||||
owner: string;
|
owner: string;
|
||||||
/** pagination defines the pagination in the response. */
|
/** pagination defines the pagination in the response. */
|
||||||
pagination?: PageResponse;
|
pagination?: PageResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method */
|
/**
|
||||||
|
* QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC
|
||||||
|
* Method
|
||||||
|
*/
|
||||||
export interface QueryGetBondsByOwnerResponse {
|
export interface QueryGetBondsByOwnerResponse {
|
||||||
bonds: Bond[];
|
bonds: Bond[];
|
||||||
/** pagination defines the pagination in the response. */
|
/** pagination defines the pagination in the response. */
|
||||||
pagination?: PageResponse;
|
pagination?: PageResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetBondModuleBalanceRequest is request type for bond module balance rpc method */
|
/**
|
||||||
|
* QueryGetBondModuleBalanceRequest is request type for bond module balance rpc
|
||||||
|
* method
|
||||||
|
*/
|
||||||
export interface QueryGetBondModuleBalanceRequest {}
|
export interface QueryGetBondModuleBalanceRequest {}
|
||||||
|
|
||||||
/** QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method */
|
/**
|
||||||
|
* QueryGetBondModuleBalanceResponse is the response type for bond module
|
||||||
|
* balance rpc method
|
||||||
|
*/
|
||||||
export interface QueryGetBondModuleBalanceResponse {
|
export interface QueryGetBondModuleBalanceResponse {
|
||||||
balance: Coin[];
|
balance: Coin[];
|
||||||
}
|
}
|
||||||
@ -165,13 +177,13 @@ export const QueryParamsResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryGetBondsRequest(): QueryGetBondsRequest {
|
function createBaseQueryBondsRequest(): QueryBondsRequest {
|
||||||
return { pagination: undefined };
|
return { pagination: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryGetBondsRequest = {
|
export const QueryBondsRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryGetBondsRequest,
|
message: QueryBondsRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.pagination !== undefined) {
|
if (message.pagination !== undefined) {
|
||||||
@ -180,13 +192,10 @@ export const QueryGetBondsRequest = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBondsRequest {
|
||||||
input: _m0.Reader | Uint8Array,
|
|
||||||
length?: number
|
|
||||||
): QueryGetBondsRequest {
|
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryGetBondsRequest();
|
const message = createBaseQueryBondsRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -201,7 +210,7 @@ export const QueryGetBondsRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryGetBondsRequest {
|
fromJSON(object: any): QueryBondsRequest {
|
||||||
return {
|
return {
|
||||||
pagination: isSet(object.pagination)
|
pagination: isSet(object.pagination)
|
||||||
? PageRequest.fromJSON(object.pagination)
|
? PageRequest.fromJSON(object.pagination)
|
||||||
@ -209,7 +218,7 @@ export const QueryGetBondsRequest = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryGetBondsRequest): unknown {
|
toJSON(message: QueryBondsRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.pagination !== undefined &&
|
message.pagination !== undefined &&
|
||||||
(obj.pagination = message.pagination
|
(obj.pagination = message.pagination
|
||||||
@ -218,10 +227,10 @@ export const QueryGetBondsRequest = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryGetBondsRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryBondsRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryGetBondsRequest {
|
): QueryBondsRequest {
|
||||||
const message = createBaseQueryGetBondsRequest();
|
const message = createBaseQueryBondsRequest();
|
||||||
message.pagination =
|
message.pagination =
|
||||||
object.pagination !== undefined && object.pagination !== null
|
object.pagination !== undefined && object.pagination !== null
|
||||||
? PageRequest.fromPartial(object.pagination)
|
? PageRequest.fromPartial(object.pagination)
|
||||||
@ -230,13 +239,13 @@ export const QueryGetBondsRequest = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryGetBondsResponse(): QueryGetBondsResponse {
|
function createBaseQueryBondsResponse(): QueryBondsResponse {
|
||||||
return { bonds: [], pagination: undefined };
|
return { bonds: [], pagination: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryGetBondsResponse = {
|
export const QueryBondsResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryGetBondsResponse,
|
message: QueryBondsResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
for (const v of message.bonds) {
|
for (const v of message.bonds) {
|
||||||
@ -251,13 +260,10 @@ export const QueryGetBondsResponse = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBondsResponse {
|
||||||
input: _m0.Reader | Uint8Array,
|
|
||||||
length?: number
|
|
||||||
): QueryGetBondsResponse {
|
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryGetBondsResponse();
|
const message = createBaseQueryBondsResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -275,7 +281,7 @@ export const QueryGetBondsResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryGetBondsResponse {
|
fromJSON(object: any): QueryBondsResponse {
|
||||||
return {
|
return {
|
||||||
bonds: Array.isArray(object?.bonds)
|
bonds: Array.isArray(object?.bonds)
|
||||||
? object.bonds.map((e: any) => Bond.fromJSON(e))
|
? object.bonds.map((e: any) => Bond.fromJSON(e))
|
||||||
@ -286,7 +292,7 @@ export const QueryGetBondsResponse = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryGetBondsResponse): unknown {
|
toJSON(message: QueryBondsResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.bonds) {
|
if (message.bonds) {
|
||||||
obj.bonds = message.bonds.map((e) => (e ? Bond.toJSON(e) : undefined));
|
obj.bonds = message.bonds.map((e) => (e ? Bond.toJSON(e) : undefined));
|
||||||
@ -300,10 +306,10 @@ export const QueryGetBondsResponse = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryGetBondsResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryBondsResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryGetBondsResponse {
|
): QueryBondsResponse {
|
||||||
const message = createBaseQueryGetBondsResponse();
|
const message = createBaseQueryBondsResponse();
|
||||||
message.bonds = object.bonds?.map((e) => Bond.fromPartial(e)) || [];
|
message.bonds = object.bonds?.map((e) => Bond.fromPartial(e)) || [];
|
||||||
message.pagination =
|
message.pagination =
|
||||||
object.pagination !== undefined && object.pagination !== null
|
object.pagination !== undefined && object.pagination !== null
|
||||||
@ -708,7 +714,7 @@ export interface Query {
|
|||||||
/** Params queries bonds module params. */
|
/** Params queries bonds module params. */
|
||||||
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
/** Bonds queries bonds list */
|
/** Bonds queries bonds list */
|
||||||
Bonds(request: QueryGetBondsRequest): Promise<QueryGetBondsResponse>;
|
Bonds(request: QueryBondsRequest): Promise<QueryBondsResponse>;
|
||||||
/** GetBondById */
|
/** GetBondById */
|
||||||
GetBondById(
|
GetBondById(
|
||||||
request: QueryGetBondByIdRequest
|
request: QueryGetBondByIdRequest
|
||||||
@ -718,7 +724,7 @@ export interface Query {
|
|||||||
request: QueryGetBondsByOwnerRequest
|
request: QueryGetBondsByOwnerRequest
|
||||||
): Promise<QueryGetBondsByOwnerResponse>;
|
): Promise<QueryGetBondsByOwnerResponse>;
|
||||||
/** Get Bond module balance */
|
/** Get Bond module balance */
|
||||||
GetBondsModuleBalance(
|
GetBondModuleBalance(
|
||||||
request: QueryGetBondModuleBalanceRequest
|
request: QueryGetBondModuleBalanceRequest
|
||||||
): Promise<QueryGetBondModuleBalanceResponse>;
|
): Promise<QueryGetBondModuleBalanceResponse>;
|
||||||
}
|
}
|
||||||
@ -731,7 +737,7 @@ export class QueryClientImpl implements Query {
|
|||||||
this.Bonds = this.Bonds.bind(this);
|
this.Bonds = this.Bonds.bind(this);
|
||||||
this.GetBondById = this.GetBondById.bind(this);
|
this.GetBondById = this.GetBondById.bind(this);
|
||||||
this.GetBondsByOwner = this.GetBondsByOwner.bind(this);
|
this.GetBondsByOwner = this.GetBondsByOwner.bind(this);
|
||||||
this.GetBondsModuleBalance = this.GetBondsModuleBalance.bind(this);
|
this.GetBondModuleBalance = this.GetBondModuleBalance.bind(this);
|
||||||
}
|
}
|
||||||
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
||||||
const data = QueryParamsRequest.encode(request).finish();
|
const data = QueryParamsRequest.encode(request).finish();
|
||||||
@ -741,11 +747,11 @@ export class QueryClientImpl implements Query {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bonds(request: QueryGetBondsRequest): Promise<QueryGetBondsResponse> {
|
Bonds(request: QueryBondsRequest): Promise<QueryBondsResponse> {
|
||||||
const data = QueryGetBondsRequest.encode(request).finish();
|
const data = QueryBondsRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request("cerc.bond.v1.Query", "Bonds", data);
|
const promise = this.rpc.request("cerc.bond.v1.Query", "Bonds", data);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryGetBondsResponse.decode(new _m0.Reader(data))
|
QueryBondsResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -773,13 +779,13 @@ export class QueryClientImpl implements Query {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetBondsModuleBalance(
|
GetBondModuleBalance(
|
||||||
request: QueryGetBondModuleBalanceRequest
|
request: QueryGetBondModuleBalanceRequest
|
||||||
): Promise<QueryGetBondModuleBalanceResponse> {
|
): Promise<QueryGetBondModuleBalanceResponse> {
|
||||||
const data = QueryGetBondModuleBalanceRequest.encode(request).finish();
|
const data = QueryGetBondModuleBalanceRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request(
|
const promise = this.rpc.request(
|
||||||
"cerc.bond.v1.Query",
|
"cerc.bond.v1.Query",
|
||||||
"GetBondsModuleBalance",
|
"GetBondModuleBalance",
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
|
@ -32,10 +32,12 @@ export interface QueryRecordsRequest {
|
|||||||
pagination?: PageRequest;
|
pagination?: PageRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Array type attribute */
|
||||||
export interface QueryRecordsRequest_ArrayInput {
|
export interface QueryRecordsRequest_ArrayInput {
|
||||||
values: QueryRecordsRequest_ValueInput[];
|
values: QueryRecordsRequest_ValueInput[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Map type attribute */
|
||||||
export interface QueryRecordsRequest_MapInput {
|
export interface QueryRecordsRequest_MapInput {
|
||||||
values: { [key: string]: QueryRecordsRequest_ValueInput };
|
values: { [key: string]: QueryRecordsRequest_ValueInput };
|
||||||
}
|
}
|
||||||
@ -45,6 +47,7 @@ export interface QueryRecordsRequest_MapInput_ValuesEntry {
|
|||||||
value?: QueryRecordsRequest_ValueInput;
|
value?: QueryRecordsRequest_ValueInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Type for record attribute value */
|
||||||
export interface QueryRecordsRequest_ValueInput {
|
export interface QueryRecordsRequest_ValueInput {
|
||||||
string: string | undefined;
|
string: string | undefined;
|
||||||
int: Long | undefined;
|
int: Long | undefined;
|
||||||
@ -55,6 +58,7 @@ export interface QueryRecordsRequest_ValueInput {
|
|||||||
map?: QueryRecordsRequest_MapInput | undefined;
|
map?: QueryRecordsRequest_MapInput | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Type for record attribute key */
|
||||||
export interface QueryRecordsRequest_KeyValueInput {
|
export interface QueryRecordsRequest_KeyValueInput {
|
||||||
key: string;
|
key: string;
|
||||||
value?: QueryRecordsRequest_ValueInput;
|
value?: QueryRecordsRequest_ValueInput;
|
||||||
@ -67,25 +71,25 @@ export interface QueryRecordsResponse {
|
|||||||
pagination?: PageResponse;
|
pagination?: PageResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryRecordByIdRequest is request type for registry records by id */
|
/** QueryGetRecordRequest is request type for registry records by id */
|
||||||
export interface QueryRecordByIdRequest {
|
export interface QueryGetRecordRequest {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryRecordByIdResponse is response type for registry records by id */
|
/** QueryGetRecordResponse is response type for registry records by id */
|
||||||
export interface QueryRecordByIdResponse {
|
export interface QueryGetRecordResponse {
|
||||||
record?: Record;
|
record?: Record;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryRecordsByBondIdRequest is request type for get the records by bond-id */
|
/** QueryGetRecordsByBondIdRequest is request type for get the records by bond-id */
|
||||||
export interface QueryRecordsByBondIdRequest {
|
export interface QueryGetRecordsByBondIdRequest {
|
||||||
id: string;
|
id: string;
|
||||||
/** pagination defines an optional pagination for the request. */
|
/** pagination defines an optional pagination for the request. */
|
||||||
pagination?: PageRequest;
|
pagination?: PageRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryRecordsByBondIdResponse is response type for records list by bond-id */
|
/** QueryGetRecordsByBondIdResponse is response type for records list by bond-id */
|
||||||
export interface QueryRecordsByBondIdResponse {
|
export interface QueryGetRecordsByBondIdResponse {
|
||||||
records: Record[];
|
records: Record[];
|
||||||
/** pagination defines the pagination in the response. */
|
/** pagination defines the pagination in the response. */
|
||||||
pagination?: PageResponse;
|
pagination?: PageResponse;
|
||||||
@ -134,10 +138,16 @@ export interface QueryResolveLrnResponse {
|
|||||||
record?: Record;
|
record?: Record;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance */
|
/**
|
||||||
|
* QueryGetRegistryModuleBalanceRequest is request type for registry module
|
||||||
|
* accounts balance
|
||||||
|
*/
|
||||||
export interface QueryGetRegistryModuleBalanceRequest {}
|
export interface QueryGetRegistryModuleBalanceRequest {}
|
||||||
|
|
||||||
/** QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance */
|
/**
|
||||||
|
* QueryGetRegistryModuleBalanceResponse is response type for registry module
|
||||||
|
* accounts balance
|
||||||
|
*/
|
||||||
export interface QueryGetRegistryModuleBalanceResponse {
|
export interface QueryGetRegistryModuleBalanceResponse {
|
||||||
balances: AccountBalance[];
|
balances: AccountBalance[];
|
||||||
}
|
}
|
||||||
@ -904,13 +914,13 @@ export const QueryRecordsResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryRecordByIdRequest(): QueryRecordByIdRequest {
|
function createBaseQueryGetRecordRequest(): QueryGetRecordRequest {
|
||||||
return { id: "" };
|
return { id: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryRecordByIdRequest = {
|
export const QueryGetRecordRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryRecordByIdRequest,
|
message: QueryGetRecordRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.id !== "") {
|
if (message.id !== "") {
|
||||||
@ -922,10 +932,10 @@ export const QueryRecordByIdRequest = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): QueryRecordByIdRequest {
|
): QueryGetRecordRequest {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryRecordByIdRequest();
|
const message = createBaseQueryGetRecordRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -940,34 +950,34 @@ export const QueryRecordByIdRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryRecordByIdRequest {
|
fromJSON(object: any): QueryGetRecordRequest {
|
||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? String(object.id) : "",
|
id: isSet(object.id) ? String(object.id) : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryRecordByIdRequest): unknown {
|
toJSON(message: QueryGetRecordRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.id !== undefined && (obj.id = message.id);
|
message.id !== undefined && (obj.id = message.id);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryRecordByIdRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetRecordRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryRecordByIdRequest {
|
): QueryGetRecordRequest {
|
||||||
const message = createBaseQueryRecordByIdRequest();
|
const message = createBaseQueryGetRecordRequest();
|
||||||
message.id = object.id ?? "";
|
message.id = object.id ?? "";
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryRecordByIdResponse(): QueryRecordByIdResponse {
|
function createBaseQueryGetRecordResponse(): QueryGetRecordResponse {
|
||||||
return { record: undefined };
|
return { record: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryRecordByIdResponse = {
|
export const QueryGetRecordResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryRecordByIdResponse,
|
message: QueryGetRecordResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.record !== undefined) {
|
if (message.record !== undefined) {
|
||||||
@ -979,10 +989,10 @@ export const QueryRecordByIdResponse = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): QueryRecordByIdResponse {
|
): QueryGetRecordResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryRecordByIdResponse();
|
const message = createBaseQueryGetRecordResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -997,23 +1007,23 @@ export const QueryRecordByIdResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryRecordByIdResponse {
|
fromJSON(object: any): QueryGetRecordResponse {
|
||||||
return {
|
return {
|
||||||
record: isSet(object.record) ? Record.fromJSON(object.record) : undefined,
|
record: isSet(object.record) ? Record.fromJSON(object.record) : undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryRecordByIdResponse): unknown {
|
toJSON(message: QueryGetRecordResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.record !== undefined &&
|
message.record !== undefined &&
|
||||||
(obj.record = message.record ? Record.toJSON(message.record) : undefined);
|
(obj.record = message.record ? Record.toJSON(message.record) : undefined);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryRecordByIdResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetRecordResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryRecordByIdResponse {
|
): QueryGetRecordResponse {
|
||||||
const message = createBaseQueryRecordByIdResponse();
|
const message = createBaseQueryGetRecordResponse();
|
||||||
message.record =
|
message.record =
|
||||||
object.record !== undefined && object.record !== null
|
object.record !== undefined && object.record !== null
|
||||||
? Record.fromPartial(object.record)
|
? Record.fromPartial(object.record)
|
||||||
@ -1022,13 +1032,13 @@ export const QueryRecordByIdResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryRecordsByBondIdRequest(): QueryRecordsByBondIdRequest {
|
function createBaseQueryGetRecordsByBondIdRequest(): QueryGetRecordsByBondIdRequest {
|
||||||
return { id: "", pagination: undefined };
|
return { id: "", pagination: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryRecordsByBondIdRequest = {
|
export const QueryGetRecordsByBondIdRequest = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryRecordsByBondIdRequest,
|
message: QueryGetRecordsByBondIdRequest,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.id !== "") {
|
if (message.id !== "") {
|
||||||
@ -1043,10 +1053,10 @@ export const QueryRecordsByBondIdRequest = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): QueryRecordsByBondIdRequest {
|
): QueryGetRecordsByBondIdRequest {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryRecordsByBondIdRequest();
|
const message = createBaseQueryGetRecordsByBondIdRequest();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -1064,7 +1074,7 @@ export const QueryRecordsByBondIdRequest = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryRecordsByBondIdRequest {
|
fromJSON(object: any): QueryGetRecordsByBondIdRequest {
|
||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? String(object.id) : "",
|
id: isSet(object.id) ? String(object.id) : "",
|
||||||
pagination: isSet(object.pagination)
|
pagination: isSet(object.pagination)
|
||||||
@ -1073,7 +1083,7 @@ export const QueryRecordsByBondIdRequest = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryRecordsByBondIdRequest): unknown {
|
toJSON(message: QueryGetRecordsByBondIdRequest): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.id !== undefined && (obj.id = message.id);
|
message.id !== undefined && (obj.id = message.id);
|
||||||
message.pagination !== undefined &&
|
message.pagination !== undefined &&
|
||||||
@ -1083,10 +1093,10 @@ export const QueryRecordsByBondIdRequest = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryRecordsByBondIdRequest>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetRecordsByBondIdRequest>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryRecordsByBondIdRequest {
|
): QueryGetRecordsByBondIdRequest {
|
||||||
const message = createBaseQueryRecordsByBondIdRequest();
|
const message = createBaseQueryGetRecordsByBondIdRequest();
|
||||||
message.id = object.id ?? "";
|
message.id = object.id ?? "";
|
||||||
message.pagination =
|
message.pagination =
|
||||||
object.pagination !== undefined && object.pagination !== null
|
object.pagination !== undefined && object.pagination !== null
|
||||||
@ -1096,13 +1106,13 @@ export const QueryRecordsByBondIdRequest = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseQueryRecordsByBondIdResponse(): QueryRecordsByBondIdResponse {
|
function createBaseQueryGetRecordsByBondIdResponse(): QueryGetRecordsByBondIdResponse {
|
||||||
return { records: [], pagination: undefined };
|
return { records: [], pagination: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const QueryRecordsByBondIdResponse = {
|
export const QueryGetRecordsByBondIdResponse = {
|
||||||
encode(
|
encode(
|
||||||
message: QueryRecordsByBondIdResponse,
|
message: QueryGetRecordsByBondIdResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
for (const v of message.records) {
|
for (const v of message.records) {
|
||||||
@ -1120,10 +1130,10 @@ export const QueryRecordsByBondIdResponse = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): QueryRecordsByBondIdResponse {
|
): QueryGetRecordsByBondIdResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseQueryRecordsByBondIdResponse();
|
const message = createBaseQueryGetRecordsByBondIdResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -1141,7 +1151,7 @@ export const QueryRecordsByBondIdResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): QueryRecordsByBondIdResponse {
|
fromJSON(object: any): QueryGetRecordsByBondIdResponse {
|
||||||
return {
|
return {
|
||||||
records: Array.isArray(object?.records)
|
records: Array.isArray(object?.records)
|
||||||
? object.records.map((e: any) => Record.fromJSON(e))
|
? object.records.map((e: any) => Record.fromJSON(e))
|
||||||
@ -1152,7 +1162,7 @@ export const QueryRecordsByBondIdResponse = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: QueryRecordsByBondIdResponse): unknown {
|
toJSON(message: QueryGetRecordsByBondIdResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.records) {
|
if (message.records) {
|
||||||
obj.records = message.records.map((e) =>
|
obj.records = message.records.map((e) =>
|
||||||
@ -1168,10 +1178,10 @@ export const QueryRecordsByBondIdResponse = {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<QueryRecordsByBondIdResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<QueryGetRecordsByBondIdResponse>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): QueryRecordsByBondIdResponse {
|
): QueryGetRecordsByBondIdResponse {
|
||||||
const message = createBaseQueryRecordsByBondIdResponse();
|
const message = createBaseQueryGetRecordsByBondIdResponse();
|
||||||
message.records = object.records?.map((e) => Record.fromPartial(e)) || [];
|
message.records = object.records?.map((e) => Record.fromPartial(e)) || [];
|
||||||
message.pagination =
|
message.pagination =
|
||||||
object.pagination !== undefined && object.pagination !== null
|
object.pagination !== undefined && object.pagination !== null
|
||||||
@ -1878,11 +1888,11 @@ export interface Query {
|
|||||||
/** Records queries all records */
|
/** Records queries all records */
|
||||||
Records(request: QueryRecordsRequest): Promise<QueryRecordsResponse>;
|
Records(request: QueryRecordsRequest): Promise<QueryRecordsResponse>;
|
||||||
/** Get record by id */
|
/** Get record by id */
|
||||||
GetRecord(request: QueryRecordByIdRequest): Promise<QueryRecordByIdResponse>;
|
GetRecord(request: QueryGetRecordRequest): Promise<QueryGetRecordResponse>;
|
||||||
/** Get records by bond id */
|
/** Get records by bond id */
|
||||||
GetRecordsByBondId(
|
GetRecordsByBondId(
|
||||||
request: QueryRecordsByBondIdRequest
|
request: QueryGetRecordsByBondIdRequest
|
||||||
): Promise<QueryRecordsByBondIdResponse>;
|
): Promise<QueryGetRecordsByBondIdResponse>;
|
||||||
/** NameRecords queries all name records */
|
/** NameRecords queries all name records */
|
||||||
NameRecords(
|
NameRecords(
|
||||||
request: QueryNameRecordsRequest
|
request: QueryNameRecordsRequest
|
||||||
@ -1929,29 +1939,29 @@ export class QueryClientImpl implements Query {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetRecord(request: QueryRecordByIdRequest): Promise<QueryRecordByIdResponse> {
|
GetRecord(request: QueryGetRecordRequest): Promise<QueryGetRecordResponse> {
|
||||||
const data = QueryRecordByIdRequest.encode(request).finish();
|
const data = QueryGetRecordRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request(
|
const promise = this.rpc.request(
|
||||||
"cerc.registry.v1.Query",
|
"cerc.registry.v1.Query",
|
||||||
"GetRecord",
|
"GetRecord",
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryRecordByIdResponse.decode(new _m0.Reader(data))
|
QueryGetRecordResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetRecordsByBondId(
|
GetRecordsByBondId(
|
||||||
request: QueryRecordsByBondIdRequest
|
request: QueryGetRecordsByBondIdRequest
|
||||||
): Promise<QueryRecordsByBondIdResponse> {
|
): Promise<QueryGetRecordsByBondIdResponse> {
|
||||||
const data = QueryRecordsByBondIdRequest.encode(request).finish();
|
const data = QueryGetRecordsByBondIdRequest.encode(request).finish();
|
||||||
const promise = this.rpc.request(
|
const promise = this.rpc.request(
|
||||||
"cerc.registry.v1.Query",
|
"cerc.registry.v1.Query",
|
||||||
"GetRecordsByBondId",
|
"GetRecordsByBondId",
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
QueryRecordsByBondIdResponse.decode(new _m0.Reader(data))
|
QueryGetRecordsByBondIdResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export interface MsgSetName {
|
|||||||
/** MsgSetNameResponse */
|
/** MsgSetNameResponse */
|
||||||
export interface MsgSetNameResponse {}
|
export interface MsgSetNameResponse {}
|
||||||
|
|
||||||
/** MsgReserveName */
|
/** MsgReserveAuthority */
|
||||||
export interface MsgReserveAuthority {
|
export interface MsgReserveAuthority {
|
||||||
name: string;
|
name: string;
|
||||||
signer: string;
|
signer: string;
|
||||||
@ -41,7 +41,7 @@ export interface MsgReserveAuthority {
|
|||||||
owner: string;
|
owner: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** MsgReserveNameResponse */
|
/** MsgReserveAuthorityResponse */
|
||||||
export interface MsgReserveAuthorityResponse {}
|
export interface MsgReserveAuthorityResponse {}
|
||||||
|
|
||||||
/** MsgSetAuthorityBond */
|
/** MsgSetAuthorityBond */
|
||||||
@ -54,14 +54,14 @@ export interface MsgSetAuthorityBond {
|
|||||||
/** MsgSetAuthorityBondResponse */
|
/** MsgSetAuthorityBondResponse */
|
||||||
export interface MsgSetAuthorityBondResponse {}
|
export interface MsgSetAuthorityBondResponse {}
|
||||||
|
|
||||||
/** MsgDeleteNameAuthority */
|
/** MsgDeleteName */
|
||||||
export interface MsgDeleteNameAuthority {
|
export interface MsgDeleteName {
|
||||||
lrn: string;
|
lrn: string;
|
||||||
signer: string;
|
signer: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** MsgDeleteNameAuthorityResponse */
|
/** MsgDeleteNameResponse */
|
||||||
export interface MsgDeleteNameAuthorityResponse {}
|
export interface MsgDeleteNameResponse {}
|
||||||
|
|
||||||
/** MsgRenewRecord */
|
/** MsgRenewRecord */
|
||||||
export interface MsgRenewRecord {
|
export interface MsgRenewRecord {
|
||||||
@ -675,13 +675,13 @@ export const MsgSetAuthorityBondResponse = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseMsgDeleteNameAuthority(): MsgDeleteNameAuthority {
|
function createBaseMsgDeleteName(): MsgDeleteName {
|
||||||
return { lrn: "", signer: "" };
|
return { lrn: "", signer: "" };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MsgDeleteNameAuthority = {
|
export const MsgDeleteName = {
|
||||||
encode(
|
encode(
|
||||||
message: MsgDeleteNameAuthority,
|
message: MsgDeleteName,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
if (message.lrn !== "") {
|
if (message.lrn !== "") {
|
||||||
@ -693,13 +693,10 @@ export const MsgDeleteNameAuthority = {
|
|||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
decode(
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteName {
|
||||||
input: _m0.Reader | Uint8Array,
|
|
||||||
length?: number
|
|
||||||
): MsgDeleteNameAuthority {
|
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseMsgDeleteNameAuthority();
|
const message = createBaseMsgDeleteName();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -717,37 +714,37 @@ export const MsgDeleteNameAuthority = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(object: any): MsgDeleteNameAuthority {
|
fromJSON(object: any): MsgDeleteName {
|
||||||
return {
|
return {
|
||||||
lrn: isSet(object.lrn) ? String(object.lrn) : "",
|
lrn: isSet(object.lrn) ? String(object.lrn) : "",
|
||||||
signer: isSet(object.signer) ? String(object.signer) : "",
|
signer: isSet(object.signer) ? String(object.signer) : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: MsgDeleteNameAuthority): unknown {
|
toJSON(message: MsgDeleteName): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
message.lrn !== undefined && (obj.lrn = message.lrn);
|
message.lrn !== undefined && (obj.lrn = message.lrn);
|
||||||
message.signer !== undefined && (obj.signer = message.signer);
|
message.signer !== undefined && (obj.signer = message.signer);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<MsgDeleteNameAuthority>, I>>(
|
fromPartial<I extends Exact<DeepPartial<MsgDeleteName>, I>>(
|
||||||
object: I
|
object: I
|
||||||
): MsgDeleteNameAuthority {
|
): MsgDeleteName {
|
||||||
const message = createBaseMsgDeleteNameAuthority();
|
const message = createBaseMsgDeleteName();
|
||||||
message.lrn = object.lrn ?? "";
|
message.lrn = object.lrn ?? "";
|
||||||
message.signer = object.signer ?? "";
|
message.signer = object.signer ?? "";
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseMsgDeleteNameAuthorityResponse(): MsgDeleteNameAuthorityResponse {
|
function createBaseMsgDeleteNameResponse(): MsgDeleteNameResponse {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MsgDeleteNameAuthorityResponse = {
|
export const MsgDeleteNameResponse = {
|
||||||
encode(
|
encode(
|
||||||
_: MsgDeleteNameAuthorityResponse,
|
_: MsgDeleteNameResponse,
|
||||||
writer: _m0.Writer = _m0.Writer.create()
|
writer: _m0.Writer = _m0.Writer.create()
|
||||||
): _m0.Writer {
|
): _m0.Writer {
|
||||||
return writer;
|
return writer;
|
||||||
@ -756,10 +753,10 @@ export const MsgDeleteNameAuthorityResponse = {
|
|||||||
decode(
|
decode(
|
||||||
input: _m0.Reader | Uint8Array,
|
input: _m0.Reader | Uint8Array,
|
||||||
length?: number
|
length?: number
|
||||||
): MsgDeleteNameAuthorityResponse {
|
): MsgDeleteNameResponse {
|
||||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||||
let end = length === undefined ? reader.len : reader.pos + length;
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
const message = createBaseMsgDeleteNameAuthorityResponse();
|
const message = createBaseMsgDeleteNameResponse();
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
@ -771,19 +768,19 @@ export const MsgDeleteNameAuthorityResponse = {
|
|||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromJSON(_: any): MsgDeleteNameAuthorityResponse {
|
fromJSON(_: any): MsgDeleteNameResponse {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(_: MsgDeleteNameAuthorityResponse): unknown {
|
toJSON(_: MsgDeleteNameResponse): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
fromPartial<I extends Exact<DeepPartial<MsgDeleteNameAuthorityResponse>, I>>(
|
fromPartial<I extends Exact<DeepPartial<MsgDeleteNameResponse>, I>>(
|
||||||
_: I
|
_: I
|
||||||
): MsgDeleteNameAuthorityResponse {
|
): MsgDeleteNameResponse {
|
||||||
const message = createBaseMsgDeleteNameAuthorityResponse();
|
const message = createBaseMsgDeleteNameResponse();
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -1384,14 +1381,12 @@ export interface Msg {
|
|||||||
): Promise<MsgReassociateRecordsResponse>;
|
): Promise<MsgReassociateRecordsResponse>;
|
||||||
/** SetName will store the name with given lrn and name */
|
/** SetName will store the name with given lrn and name */
|
||||||
SetName(request: MsgSetName): Promise<MsgSetNameResponse>;
|
SetName(request: MsgSetName): Promise<MsgSetNameResponse>;
|
||||||
/** Reserve name */
|
/** Delete Name method will remove authority name */
|
||||||
ReserveName(
|
DeleteName(request: MsgDeleteName): Promise<MsgDeleteNameResponse>;
|
||||||
|
/** Reserve authority name */
|
||||||
|
ReserveAuthority(
|
||||||
request: MsgReserveAuthority
|
request: MsgReserveAuthority
|
||||||
): Promise<MsgReserveAuthorityResponse>;
|
): Promise<MsgReserveAuthorityResponse>;
|
||||||
/** Delete Name method will remove authority name */
|
|
||||||
DeleteName(
|
|
||||||
request: MsgDeleteNameAuthority
|
|
||||||
): Promise<MsgDeleteNameAuthorityResponse>;
|
|
||||||
/** SetAuthorityBond */
|
/** SetAuthorityBond */
|
||||||
SetAuthorityBond(
|
SetAuthorityBond(
|
||||||
request: MsgSetAuthorityBond
|
request: MsgSetAuthorityBond
|
||||||
@ -1409,8 +1404,8 @@ export class MsgClientImpl implements Msg {
|
|||||||
this.DissociateRecords = this.DissociateRecords.bind(this);
|
this.DissociateRecords = this.DissociateRecords.bind(this);
|
||||||
this.ReassociateRecords = this.ReassociateRecords.bind(this);
|
this.ReassociateRecords = this.ReassociateRecords.bind(this);
|
||||||
this.SetName = this.SetName.bind(this);
|
this.SetName = this.SetName.bind(this);
|
||||||
this.ReserveName = this.ReserveName.bind(this);
|
|
||||||
this.DeleteName = this.DeleteName.bind(this);
|
this.DeleteName = this.DeleteName.bind(this);
|
||||||
|
this.ReserveAuthority = this.ReserveAuthority.bind(this);
|
||||||
this.SetAuthorityBond = this.SetAuthorityBond.bind(this);
|
this.SetAuthorityBond = this.SetAuthorityBond.bind(this);
|
||||||
}
|
}
|
||||||
SetRecord(request: MsgSetRecord): Promise<MsgSetRecordResponse> {
|
SetRecord(request: MsgSetRecord): Promise<MsgSetRecordResponse> {
|
||||||
@ -1495,31 +1490,29 @@ export class MsgClientImpl implements Msg {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReserveName(
|
DeleteName(request: MsgDeleteName): Promise<MsgDeleteNameResponse> {
|
||||||
request: MsgReserveAuthority
|
const data = MsgDeleteName.encode(request).finish();
|
||||||
): Promise<MsgReserveAuthorityResponse> {
|
|
||||||
const data = MsgReserveAuthority.encode(request).finish();
|
|
||||||
const promise = this.rpc.request(
|
|
||||||
"cerc.registry.v1.Msg",
|
|
||||||
"ReserveName",
|
|
||||||
data
|
|
||||||
);
|
|
||||||
return promise.then((data) =>
|
|
||||||
MsgReserveAuthorityResponse.decode(new _m0.Reader(data))
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteName(
|
|
||||||
request: MsgDeleteNameAuthority
|
|
||||||
): Promise<MsgDeleteNameAuthorityResponse> {
|
|
||||||
const data = MsgDeleteNameAuthority.encode(request).finish();
|
|
||||||
const promise = this.rpc.request(
|
const promise = this.rpc.request(
|
||||||
"cerc.registry.v1.Msg",
|
"cerc.registry.v1.Msg",
|
||||||
"DeleteName",
|
"DeleteName",
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
return promise.then((data) =>
|
return promise.then((data) =>
|
||||||
MsgDeleteNameAuthorityResponse.decode(new _m0.Reader(data))
|
MsgDeleteNameResponse.decode(new _m0.Reader(data))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
ReserveAuthority(
|
||||||
|
request: MsgReserveAuthority
|
||||||
|
): Promise<MsgReserveAuthorityResponse> {
|
||||||
|
const data = MsgReserveAuthority.encode(request).finish();
|
||||||
|
const promise = this.rpc.request(
|
||||||
|
"cerc.registry.v1.Msg",
|
||||||
|
"ReserveAuthority",
|
||||||
|
data
|
||||||
|
);
|
||||||
|
return promise.then((data) =>
|
||||||
|
MsgReserveAuthorityResponse.decode(new _m0.Reader(data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
|
import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
|
||||||
|
|
||||||
import { MsgReserveAuthority, MsgReserveAuthorityResponse, MsgSetAuthorityBond, MsgSetAuthorityBondResponse, MsgSetRecord, MsgSetRecordResponse, MsgSetName, MsgSetNameResponse, MsgDeleteNameAuthority, MsgDeleteNameAuthorityResponse, MsgAssociateBond, MsgAssociateBondResponse, MsgDissociateBond, MsgDissociateBondResponse, MsgDissociateRecords, MsgReassociateRecords, MsgDissociateRecordsResponse, MsgReassociateRecordsResponse } from '../../../proto2/cerc/registry/v1/tx';
|
import { MsgReserveAuthority, MsgReserveAuthorityResponse, MsgSetAuthorityBond, MsgSetAuthorityBondResponse, MsgSetRecord, MsgSetRecordResponse, MsgSetName, MsgSetNameResponse, MsgDeleteName, MsgDeleteNameResponse, MsgAssociateBond, MsgAssociateBondResponse, MsgDissociateBond, MsgDissociateBondResponse, MsgDissociateRecords, MsgReassociateRecords, MsgDissociateRecordsResponse, MsgReassociateRecordsResponse } from '../../../proto2/cerc/registry/v1/tx';
|
||||||
|
|
||||||
export const typeUrlMsgReserveAuthority = '/cerc.registry.v1.MsgReserveAuthority';
|
export const typeUrlMsgReserveAuthority = '/cerc.registry.v1.MsgReserveAuthority';
|
||||||
export const typeUrlMsgSetRecord = '/cerc.registry.v1.MsgSetRecord';
|
export const typeUrlMsgSetRecord = '/cerc.registry.v1.MsgSetRecord';
|
||||||
@ -10,8 +10,8 @@ export const typeUrlMsgSetRecordResponse = '/cerc.registry.v1.MsgSetRecordRespon
|
|||||||
export const typeUrlMsgSetAuthorityBondResponse = '/cerc.registry.v1.MsgSetAuthorityBondResponse';
|
export const typeUrlMsgSetAuthorityBondResponse = '/cerc.registry.v1.MsgSetAuthorityBondResponse';
|
||||||
export const typeUrlMsgSetName = '/cerc.registry.v1.MsgSetName';
|
export const typeUrlMsgSetName = '/cerc.registry.v1.MsgSetName';
|
||||||
export const typeUrlMsgSetNameResponse = '/cerc.registry.v1.MsgSetNameResponse';
|
export const typeUrlMsgSetNameResponse = '/cerc.registry.v1.MsgSetNameResponse';
|
||||||
export const typeUrlMsgDeleteNameAuthority = '/cerc.registry.v1.MsgDeleteNameAuthority';
|
export const typeUrlMsgDeleteName = '/cerc.registry.v1.MsgDeleteName';
|
||||||
export const typeUrlMsgDeleteNameAuthorityResponse = '/cerc.registry.v1.MsgDeleteNameAuthorityResponse';
|
export const typeUrlMsgDeleteNameResponse = '/cerc.registry.v1.MsgDeleteNameResponse';
|
||||||
export const typeUrlMsgAssociateBond = '/cerc.registry.v1.MsgAssociateBond';
|
export const typeUrlMsgAssociateBond = '/cerc.registry.v1.MsgAssociateBond';
|
||||||
export const typeUrlMsgDissociateBond = '/cerc.registry.v1.MsgDissociateBond';
|
export const typeUrlMsgDissociateBond = '/cerc.registry.v1.MsgDissociateBond';
|
||||||
export const typeUrlMsgAssociateBondResponse = '/cerc.registry.v1.MsgAssociateBondResponse';
|
export const typeUrlMsgAssociateBondResponse = '/cerc.registry.v1.MsgAssociateBondResponse';
|
||||||
@ -30,8 +30,8 @@ export const registryTypes: ReadonlyArray<[string, GeneratedType]> = [
|
|||||||
[typeUrlMsgSetAuthorityBondResponse, MsgSetAuthorityBondResponse],
|
[typeUrlMsgSetAuthorityBondResponse, MsgSetAuthorityBondResponse],
|
||||||
[typeUrlMsgSetName, MsgSetName],
|
[typeUrlMsgSetName, MsgSetName],
|
||||||
[typeUrlMsgSetNameResponse, MsgSetNameResponse],
|
[typeUrlMsgSetNameResponse, MsgSetNameResponse],
|
||||||
[typeUrlMsgDeleteNameAuthority, MsgDeleteNameAuthority],
|
[typeUrlMsgDeleteName, MsgDeleteName],
|
||||||
[typeUrlMsgDeleteNameAuthorityResponse, MsgDeleteNameAuthorityResponse],
|
[typeUrlMsgDeleteNameResponse, MsgDeleteNameResponse],
|
||||||
[typeUrlMsgAssociateBond, MsgAssociateBond],
|
[typeUrlMsgAssociateBond, MsgAssociateBond],
|
||||||
[typeUrlMsgAssociateBondResponse, MsgAssociateBondResponse],
|
[typeUrlMsgAssociateBondResponse, MsgAssociateBondResponse],
|
||||||
[typeUrlMsgDissociateBond, MsgDissociateBond],
|
[typeUrlMsgDissociateBond, MsgDissociateBond],
|
||||||
@ -62,9 +62,9 @@ export interface MsgSetNameEncodeObject extends EncodeObject {
|
|||||||
readonly value: Partial<MsgSetName>;
|
readonly value: Partial<MsgSetName>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MsgDeleteNameAuthorityEncodeObject extends EncodeObject {
|
export interface MsgDeleteNameEncodeObject extends EncodeObject {
|
||||||
readonly typeUrl: '/cerc.registry.v1.MsgDeleteNameAuthority';
|
readonly typeUrl: '/cerc.registry.v1.MsgDeleteName';
|
||||||
readonly value: Partial<MsgDeleteNameAuthority>;
|
readonly value: Partial<MsgDeleteName>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MsgAssociateBondEncodeObject extends EncodeObject {
|
export interface MsgAssociateBondEncodeObject extends EncodeObject {
|
||||||
|
Loading…
Reference in New Issue
Block a user