Update proto files
This commit is contained in:
parent
7fe256e714
commit
d7de817d51
@ -2,7 +2,6 @@ syntax = "proto3";
|
||||
|
||||
package cerc.auction.v1;
|
||||
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
@ -17,16 +16,16 @@ message Params {
|
||||
|
||||
// Duration of the commits phase in seconds
|
||||
google.protobuf.Duration commits_duration = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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
|
||||
google.protobuf.Duration reveals_duration = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdduration) = true,
|
||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||
];
|
||||
|
||||
// Commit fees
|
||||
@ -52,7 +51,7 @@ message Params {
|
||||
message Auction {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
string id = 1;
|
||||
string id = 1;
|
||||
string status = 2;
|
||||
|
||||
// Address of the creator of the auction
|
||||
@ -60,21 +59,21 @@ message Auction {
|
||||
|
||||
// Timestamp at which the auction was created
|
||||
google.protobuf.Timestamp create_time = 4 [
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""
|
||||
];
|
||||
|
||||
// Timestamp at which the commits phase concluded
|
||||
google.protobuf.Timestamp commits_end_time = 5 [
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "json:\"commits_end_time\" yaml:\"commits_end_time\""
|
||||
];
|
||||
|
||||
// Timestamp at which the reveals phase concluded
|
||||
google.protobuf.Timestamp reveals_end_time = 6 [
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 {
|
||||
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
|
||||
message Bid {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
string auction_id = 1;
|
||||
string bidder_address = 2;
|
||||
string status = 3;
|
||||
string commit_hash = 4;
|
||||
string auction_id = 1;
|
||||
string bidder_address = 2;
|
||||
string status = 3;
|
||||
string commit_hash = 4;
|
||||
|
||||
google.protobuf.Timestamp commit_time = 5 [
|
||||
(gogoproto.stdtime) = true,
|
||||
google.protobuf.Timestamp commit_time = 5 [
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "json:\"commit_time\" yaml:\"commit_time\""
|
||||
];
|
||||
@ -139,7 +139,7 @@ message Bid {
|
||||
];
|
||||
|
||||
google.protobuf.Timestamp reveal_time = 7 [
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.nullable) = false,
|
||||
(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
|
||||
message GenesisState {
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
Auctions auctions = 2 [(gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\""];
|
||||
Params params = 1 [ (gogoproto.nullable) = false ];
|
||||
Auctions auctions = 2
|
||||
[ (gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\"" ];
|
||||
}
|
||||
|
@ -23,43 +23,47 @@ service Query {
|
||||
}
|
||||
|
||||
// GetAuction queries an auction
|
||||
rpc GetAuction(QueryAuctionRequest) returns (QueryAuctionResponse) {
|
||||
rpc GetAuction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
|
||||
option (google.api.http).get = "/cerc/auction/v1/auctions/{id}";
|
||||
}
|
||||
|
||||
// GetBid queries an auction bid
|
||||
rpc GetBid(QueryBidRequest) returns (QueryBidResponse) {
|
||||
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}/{bidder}";
|
||||
rpc GetBid(QueryGetBidRequest) returns (QueryGetBidResponse) {
|
||||
option (google.api.http).get =
|
||||
"/cerc/auction/v1/bids/{auction_id}/{bidder}";
|
||||
}
|
||||
|
||||
// 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}";
|
||||
}
|
||||
|
||||
// AuctionsByBidder queries auctions by bidder
|
||||
rpc AuctionsByBidder(QueryAuctionsByBidderRequest) returns (QueryAuctionsByBidderResponse) {
|
||||
option (google.api.http).get = "/cerc/auction/v1/by-bidder/{bidder_address}";
|
||||
rpc AuctionsByBidder(QueryAuctionsByBidderRequest)
|
||||
returns (QueryAuctionsByBidderResponse) {
|
||||
option (google.api.http).get =
|
||||
"/cerc/auction/v1/by-bidder/{bidder_address}";
|
||||
}
|
||||
|
||||
// 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}";
|
||||
}
|
||||
|
||||
// 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";
|
||||
}
|
||||
}
|
||||
|
||||
// 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 {}
|
||||
|
||||
// QueryParamsResponse returns parameters of the auction module
|
||||
message QueryParamsResponse {
|
||||
Params params = 1;
|
||||
}
|
||||
message QueryParamsResponse { Params params = 1; }
|
||||
|
||||
// AuctionsRequest is the format for querying all the auctions
|
||||
message QueryAuctionsRequest {
|
||||
@ -76,19 +80,19 @@ message QueryAuctionsResponse {
|
||||
}
|
||||
|
||||
// AuctionRequest is the format for querying a specific auction
|
||||
message QueryAuctionRequest {
|
||||
message QueryGetAuctionRequest {
|
||||
// Auction id
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
// AuctionResponse returns the details of the queried auction
|
||||
message QueryAuctionResponse {
|
||||
message QueryGetAuctionResponse {
|
||||
// Auction details
|
||||
Auction auction = 1;
|
||||
}
|
||||
|
||||
// BidRequest is the format for querying a specific bid in an auction
|
||||
message QueryBidRequest {
|
||||
message QueryGetBidRequest {
|
||||
// Auction id
|
||||
string auction_id = 1;
|
||||
// Bidder address
|
||||
@ -96,24 +100,25 @@ message QueryBidRequest {
|
||||
}
|
||||
|
||||
// BidResponse returns the details of the queried bid
|
||||
message QueryBidResponse {
|
||||
message QueryGetBidResponse {
|
||||
// Bid details
|
||||
Bid bid = 1;
|
||||
}
|
||||
|
||||
// BidsRequest is the format for querying all bids in an auction
|
||||
message QueryBidsRequest {
|
||||
message QueryGetBidsRequest {
|
||||
// Auction id
|
||||
string auction_id = 1;
|
||||
}
|
||||
|
||||
// BidsResponse returns details of all bids in an auction
|
||||
message QueryBidsResponse {
|
||||
message QueryGetBidsResponse {
|
||||
// List of bids in the auction
|
||||
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 {
|
||||
// Address of the bidder
|
||||
string bidder_address = 1;
|
||||
@ -125,7 +130,8 @@ message QueryAuctionsByBidderResponse {
|
||||
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 {
|
||||
// Address of the owner
|
||||
string owner_address = 1;
|
||||
@ -140,11 +146,13 @@ message QueryAuctionsByOwnerResponse {
|
||||
// BalanceRequest is the format to fetch all balances
|
||||
message QueryGetAuctionModuleBalanceRequest {}
|
||||
|
||||
// QueryGetAuctionModuleBalanceResponse is the response type for auction module
|
||||
// balance rpc method
|
||||
message QueryGetAuctionModuleBalanceResponse {
|
||||
// Set of all balances within the auction
|
||||
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(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
|
||||
google.protobuf.Duration commits_duration = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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
|
||||
google.protobuf.Duration reveals_duration = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdduration) = true,
|
||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
|
||||
];
|
||||
|
||||
// Commit fees
|
||||
@ -69,7 +69,8 @@ message MsgCreateAuction {
|
||||
];
|
||||
|
||||
// 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
|
||||
@ -77,7 +78,8 @@ message MsgCreateAuctionResponse {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
// 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
|
||||
@ -86,13 +88,16 @@ message MsgCommitBid {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
// 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
|
||||
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
|
||||
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
|
||||
@ -100,30 +105,32 @@ message MsgCommitBidResponse {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
// 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
|
||||
message MsgRevealBid {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
// 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
|
||||
string reveal = 2 [(gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\""];
|
||||
string reveal = 2
|
||||
[ (gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\"" ];
|
||||
|
||||
// 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
|
||||
message MsgRevealBidResponse {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
// 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
|
||||
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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.
|
||||
message GenesisState {
|
||||
// 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
|
||||
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
|
||||
rpc Bonds(QueryGetBondsRequest) returns (QueryGetBondsResponse) {
|
||||
rpc Bonds(QueryBondsRequest) returns (QueryBondsResponse) {
|
||||
// Mark query as module_query_safe?
|
||||
// option (cosmos.query.v1.module_query_safe) = true;
|
||||
option (google.api.http).get = "/cerc/bond/v1/bonds";
|
||||
@ -31,12 +31,14 @@ service Query {
|
||||
}
|
||||
|
||||
// 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}";
|
||||
}
|
||||
|
||||
// Get Bond module balance
|
||||
rpc GetBondsModuleBalance(QueryGetBondModuleBalanceRequest) returns (QueryGetBondModuleBalanceResponse) {
|
||||
rpc GetBondModuleBalance(QueryGetBondModuleBalanceRequest)
|
||||
returns (QueryGetBondModuleBalanceResponse) {
|
||||
option (google.api.http).get = "/cerc/bond/v1/balance";
|
||||
}
|
||||
}
|
||||
@ -46,41 +48,45 @@ message QueryParamsRequest {}
|
||||
|
||||
// QueryParamsResponse returns response type of bond module params
|
||||
message QueryParamsResponse {
|
||||
Params params = 1 [(gogoproto.moretags) = "json:\"params\" yaml:\"params\""];
|
||||
Params params = 1
|
||||
[ (gogoproto.moretags) = "json:\"params\" yaml:\"params\"" ];
|
||||
}
|
||||
|
||||
// QueryGetBondById queries a bonds.
|
||||
message QueryGetBondsRequest {
|
||||
// QueryBondsRequest queries bonds
|
||||
message QueryBondsRequest {
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||
}
|
||||
|
||||
// QueryGetBondsResponse is response type for get the bonds by bond-id
|
||||
message QueryGetBondsResponse {
|
||||
repeated Bond bonds = 1 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
|
||||
// QueryBondsResponse is response type for get the bonds by bond-id
|
||||
message QueryBondsResponse {
|
||||
repeated Bond bonds = 1
|
||||
[ (gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\"" ];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryGetBondById
|
||||
// QueryGetBondById queries bond by bond id
|
||||
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
|
||||
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 {
|
||||
string owner = 1;
|
||||
// pagination defines the pagination in the response.
|
||||
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 {
|
||||
repeated Bond bonds = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
@ -91,14 +97,16 @@ message QueryGetBondsByOwnerResponse {
|
||||
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 {}
|
||||
|
||||
// QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method
|
||||
// QueryGetBondModuleBalanceResponse is the response type for bond module
|
||||
// balance rpc method
|
||||
message QueryGetBondModuleBalanceResponse {
|
||||
repeated cosmos.base.v1beta1.Coin balance = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string signer = 1;
|
||||
string signer = 1;
|
||||
repeated cosmos.base.v1beta1.Coin coins = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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.
|
||||
message MsgCreateBondResponse {
|
||||
string id = 1;
|
||||
}
|
||||
message MsgCreateBondResponse { string id = 1; }
|
||||
|
||||
// MsgRefillBond defines a SDK message for refill the amount for bond.
|
||||
message MsgRefillBond {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string id = 1;
|
||||
string signer = 2;
|
||||
string id = 1;
|
||||
string signer = 2;
|
||||
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string id = 1;
|
||||
string signer = 2;
|
||||
string id = 1;
|
||||
string signer = 2;
|
||||
repeated cosmos.base.v1beta1.Coin coins = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string id = 1;
|
||||
string id = 1;
|
||||
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.
|
||||
message GenesisState {
|
||||
// params defines all the params of registry module.
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
Params params = 1 [ (gogoproto.nullable) = false ];
|
||||
|
||||
// records
|
||||
repeated Record records = 2 [
|
||||
|
@ -23,12 +23,13 @@ service Query {
|
||||
}
|
||||
|
||||
// Get record by id
|
||||
rpc GetRecord(QueryRecordByIdRequest) returns (QueryRecordByIdResponse) {
|
||||
rpc GetRecord(QueryGetRecordRequest) returns (QueryGetRecordResponse) {
|
||||
option (google.api.http).get = "/cerc/registry/v1/records/{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}";
|
||||
}
|
||||
|
||||
@ -53,7 +54,8 @@ service Query {
|
||||
}
|
||||
|
||||
// Get registry module balance
|
||||
rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest) returns (QueryGetRegistryModuleBalanceResponse) {
|
||||
rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest)
|
||||
returns (QueryGetRegistryModuleBalanceResponse) {
|
||||
option (google.api.http).get = "/cerc/registry/v1/balance";
|
||||
}
|
||||
}
|
||||
@ -62,37 +64,30 @@ service Query {
|
||||
message QueryParamsRequest {}
|
||||
|
||||
// QueryParamsResponse is response type for registry params
|
||||
message QueryParamsResponse {
|
||||
Params params = 1;
|
||||
}
|
||||
message QueryParamsResponse { Params params = 1; }
|
||||
|
||||
// QueryRecordsRequest is request type for registry records list
|
||||
message QueryRecordsRequest {
|
||||
// TODO: Unused, check
|
||||
// message LinkInput {
|
||||
// string id = 1;
|
||||
// }
|
||||
|
||||
message ArrayInput {
|
||||
repeated ValueInput values = 1;
|
||||
}
|
||||
message MapInput {
|
||||
map<string, ValueInput> values = 1;
|
||||
}
|
||||
// Array type attribute
|
||||
message ArrayInput { repeated ValueInput values = 1; }
|
||||
// Map type attribute
|
||||
message MapInput { map<string, ValueInput> values = 1; }
|
||||
// Type for record attribute value
|
||||
message ValueInput {
|
||||
// Type of record attribute value
|
||||
// Value is one of the following types
|
||||
oneof value {
|
||||
string string = 1;
|
||||
int64 int = 2;
|
||||
double float = 3;
|
||||
bool boolean = 4;
|
||||
string link = 5;
|
||||
string string = 1;
|
||||
int64 int = 2;
|
||||
double float = 3;
|
||||
bool boolean = 4;
|
||||
string link = 5;
|
||||
ArrayInput array = 6;
|
||||
MapInput map = 7;
|
||||
MapInput map = 7;
|
||||
}
|
||||
}
|
||||
// Type for record attribute key
|
||||
message KeyValueInput {
|
||||
string key = 1;
|
||||
string key = 1;
|
||||
ValueInput value = 2;
|
||||
}
|
||||
|
||||
@ -106,31 +101,29 @@ message QueryRecordsRequest {
|
||||
|
||||
// QueryRecordsResponse is response type for registry records list
|
||||
message QueryRecordsResponse {
|
||||
repeated Record records = 1 [(gogoproto.nullable) = false];
|
||||
repeated Record records = 1 [ (gogoproto.nullable) = false ];
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryRecordByIdRequest is request type for registry records by id
|
||||
message QueryRecordByIdRequest {
|
||||
string id = 1;
|
||||
// QueryGetRecordRequest is request type for registry records by id
|
||||
message QueryGetRecordRequest { 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
|
||||
message QueryRecordByIdResponse {
|
||||
Record record = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryRecordsByBondIdRequest is request type for get the records by bond-id
|
||||
message QueryRecordsByBondIdRequest {
|
||||
// QueryGetRecordsByBondIdRequest is request type for get the records by bond-id
|
||||
message QueryGetRecordsByBondIdRequest {
|
||||
string id = 1;
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryRecordsByBondIdResponse is response type for records list by bond-id
|
||||
message QueryRecordsByBondIdResponse {
|
||||
repeated Record records = 1 [(gogoproto.nullable) = false];
|
||||
// QueryGetRecordsByBondIdResponse is response type for records list by bond-id
|
||||
message QueryGetRecordsByBondIdResponse {
|
||||
repeated Record records = 1 [ (gogoproto.nullable) = false ];
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
}
|
||||
@ -143,15 +136,13 @@ message QueryNameRecordsRequest {
|
||||
|
||||
// QueryNameRecordsResponse is response type for registry names records
|
||||
message QueryNameRecordsResponse {
|
||||
repeated NameEntry names = 1 [(gogoproto.nullable) = false];
|
||||
repeated NameEntry names = 1 [ (gogoproto.nullable) = false ];
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryWhoisRequest is request type for Get NameAuthority
|
||||
message QueryWhoisRequest {
|
||||
string name = 1;
|
||||
}
|
||||
message QueryWhoisRequest { string name = 1; }
|
||||
|
||||
// QueryWhoisResponse is response type for whois request
|
||||
message QueryWhoisResponse {
|
||||
@ -162,39 +153,34 @@ message QueryWhoisResponse {
|
||||
}
|
||||
|
||||
// QueryLookupLrnRequest is request type for LookupLrn
|
||||
message QueryLookupLrnRequest {
|
||||
string lrn = 1;
|
||||
}
|
||||
message QueryLookupLrnRequest { string lrn = 1; }
|
||||
|
||||
// QueryLookupLrnResponse is response type for QueryLookupLrnRequest
|
||||
message QueryLookupLrnResponse {
|
||||
NameRecord name = 1;
|
||||
}
|
||||
message QueryLookupLrnResponse { NameRecord name = 1; }
|
||||
|
||||
// QueryResolveLrnRequest is request type for ResolveLrn
|
||||
message QueryResolveLrnRequest {
|
||||
string lrn = 1;
|
||||
}
|
||||
message QueryResolveLrnRequest { string lrn = 1; }
|
||||
|
||||
// QueryResolveLrnResponse is response type for QueryResolveLrnRequest
|
||||
message QueryResolveLrnResponse {
|
||||
Record record = 1;
|
||||
}
|
||||
message QueryResolveLrnResponse { Record record = 1; }
|
||||
|
||||
// QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance
|
||||
// QueryGetRegistryModuleBalanceRequest is request type for registry module
|
||||
// accounts balance
|
||||
message QueryGetRegistryModuleBalanceRequest {}
|
||||
|
||||
// QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance
|
||||
// QueryGetRegistryModuleBalanceResponse is response type for registry module
|
||||
// accounts balance
|
||||
message QueryGetRegistryModuleBalanceResponse {
|
||||
repeated AccountBalance balances = 1;
|
||||
}
|
||||
|
||||
// AccountBalance is registry module account balance
|
||||
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 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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
|
||||
message Params {
|
||||
cosmos.base.v1beta1.Coin record_rent = 1[
|
||||
cosmos.base.v1beta1.Coin record_rent = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""
|
||||
];
|
||||
|
||||
google.protobuf.Duration record_rent_duration = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 [
|
||||
@ -28,119 +29,140 @@ message Params {
|
||||
];
|
||||
|
||||
google.protobuf.Duration authority_rent_duration = 4 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.nullable) = false,
|
||||
(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 [
|
||||
(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 [
|
||||
(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 [
|
||||
(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
|
||||
message Record {
|
||||
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""];
|
||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
string create_time = 3 [(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""];
|
||||
string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""];
|
||||
bool deleted = 5;
|
||||
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\""];
|
||||
string id = 1 [ (gogoproto.moretags) = "json:\"id\" yaml:\"id\"" ];
|
||||
string bond_id = 2
|
||||
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||
string create_time = 3
|
||||
[ (gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\"" ];
|
||||
string expiry_time = 4
|
||||
[ (gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\"" ];
|
||||
bool deleted = 5;
|
||||
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
|
||||
message AuthorityEntry {
|
||||
string name = 1;
|
||||
string name = 1;
|
||||
NameAuthority entry = 2;
|
||||
}
|
||||
|
||||
// NameAuthority
|
||||
message NameAuthority {
|
||||
// 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.
|
||||
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.
|
||||
uint64 height = 3;
|
||||
string status = 4;
|
||||
string auction_id = 5 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""];
|
||||
string bond_id = 6 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
uint64 height = 3;
|
||||
string status = 4;
|
||||
string auction_id = 5
|
||||
[ (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 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.stdtime) = true,
|
||||
(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""
|
||||
];
|
||||
}
|
||||
|
||||
// NameEntry
|
||||
message NameEntry {
|
||||
string name = 1;
|
||||
string name = 1;
|
||||
NameRecord entry = 2;
|
||||
}
|
||||
|
||||
// NameRecord defines a versioned name record
|
||||
message NameRecord {
|
||||
NameRecordEntry latest = 1;
|
||||
NameRecordEntry latest = 1;
|
||||
repeated NameRecordEntry history = 2;
|
||||
}
|
||||
|
||||
// NameRecordEntry
|
||||
message NameRecordEntry {
|
||||
string id = 1;
|
||||
string id = 1;
|
||||
uint64 height = 2;
|
||||
}
|
||||
|
||||
// Signature
|
||||
message Signature {
|
||||
string sig = 1 [(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""];
|
||||
string pub_key = 2 [(gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\""];
|
||||
string sig = 1 [ (gogoproto.moretags) = "json:\"sig\" yaml:\"sig\"" ];
|
||||
string pub_key = 2
|
||||
[ (gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\"" ];
|
||||
}
|
||||
|
||||
// ExpiryQueue: record / authority expiry queue type
|
||||
// id: expiry time
|
||||
// value: array of ids (record cids / authority names)
|
||||
message ExpiryQueue {
|
||||
string id = 1;
|
||||
string id = 1;
|
||||
repeated string value = 2;
|
||||
}
|
||||
|
||||
// List of record ids
|
||||
// Value type to be used in AttributesMap
|
||||
message RecordsList {
|
||||
repeated string value = 1;
|
||||
}
|
||||
message RecordsList { repeated string value = 1; }
|
||||
|
@ -34,12 +34,14 @@ service Msg {
|
||||
}
|
||||
|
||||
// DissociateRecords
|
||||
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) {
|
||||
rpc DissociateRecords(MsgDissociateRecords)
|
||||
returns (MsgDissociateRecordsResponse) {
|
||||
option (google.api.http).post = "/cerc/registry/v1/dissociate_records";
|
||||
}
|
||||
|
||||
// ReassociateRecords
|
||||
rpc ReassociateRecords(MsgReassociateRecords) returns (MsgReassociateRecordsResponse) {
|
||||
rpc ReassociateRecords(MsgReassociateRecords)
|
||||
returns (MsgReassociateRecordsResponse) {
|
||||
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";
|
||||
}
|
||||
|
||||
// Reserve name
|
||||
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) {
|
||||
option (google.api.http).post = "/cerc/registry/v1/reserve_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";
|
||||
}
|
||||
|
||||
// Reserve authority name
|
||||
rpc ReserveAuthority(MsgReserveAuthority)
|
||||
returns (MsgReserveAuthorityResponse) {
|
||||
option (google.api.http).post = "/cerc/registry/v1/reserve_authority";
|
||||
}
|
||||
|
||||
// SetAuthorityBond
|
||||
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) {
|
||||
rpc SetAuthorityBond(MsgSetAuthorityBond)
|
||||
returns (MsgSetAuthorityBondResponse) {
|
||||
option (google.api.http).post = "/cerc/registry/v1/set_authority_bond";
|
||||
}
|
||||
}
|
||||
@ -68,19 +72,18 @@ service Msg {
|
||||
message MsgSetRecord {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
string signer = 2;
|
||||
Payload payload = 3 [(gogoproto.nullable) = false];
|
||||
string bond_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||
string signer = 2;
|
||||
Payload payload = 3 [ (gogoproto.nullable) = false ];
|
||||
}
|
||||
|
||||
// MsgSetRecordResponse
|
||||
message MsgSetRecordResponse {
|
||||
string id = 1;
|
||||
}
|
||||
message MsgSetRecordResponse { string id = 1; }
|
||||
|
||||
// Payload
|
||||
message Payload {
|
||||
Record record = 1;
|
||||
Record record = 1;
|
||||
repeated Signature signatures = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
|
||||
@ -91,57 +94,59 @@ message Payload {
|
||||
message MsgSetName {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string lrn = 1;
|
||||
string cid = 2;
|
||||
string lrn = 1;
|
||||
string cid = 2;
|
||||
string signer = 3;
|
||||
}
|
||||
|
||||
// MsgSetNameResponse
|
||||
message MsgSetNameResponse {}
|
||||
|
||||
// MsgReserveName
|
||||
// MsgReserveAuthority
|
||||
message MsgReserveAuthority {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string name = 1;
|
||||
string name = 1;
|
||||
string signer = 2;
|
||||
|
||||
// if creating a sub-authority.
|
||||
string owner = 3;
|
||||
}
|
||||
|
||||
// MsgReserveNameResponse
|
||||
// MsgReserveAuthorityResponse
|
||||
message MsgReserveAuthorityResponse {}
|
||||
|
||||
// MsgSetAuthorityBond
|
||||
message MsgSetAuthorityBond {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string name = 1;
|
||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
string signer = 3;
|
||||
string name = 1;
|
||||
string bond_id = 2
|
||||
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||
string signer = 3;
|
||||
}
|
||||
|
||||
// MsgSetAuthorityBondResponse
|
||||
message MsgSetAuthorityBondResponse {}
|
||||
|
||||
// MsgDeleteNameAuthority
|
||||
message MsgDeleteNameAuthority {
|
||||
// MsgDeleteName
|
||||
message MsgDeleteName {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string lrn = 1;
|
||||
string lrn = 1;
|
||||
string signer = 2;
|
||||
}
|
||||
|
||||
// MsgDeleteNameAuthorityResponse
|
||||
message MsgDeleteNameAuthorityResponse {}
|
||||
// MsgDeleteNameResponse
|
||||
message MsgDeleteNameResponse {}
|
||||
|
||||
// MsgRenewRecord
|
||||
message MsgRenewRecord {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
||||
string signer = 2;
|
||||
string record_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||
string signer = 2;
|
||||
}
|
||||
|
||||
// MsgRenewRecordResponse
|
||||
@ -151,9 +156,11 @@ message MsgRenewRecordResponse {}
|
||||
message MsgAssociateBond {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
||||
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
string signer = 3;
|
||||
string record_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||
string bond_id = 2
|
||||
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||
string signer = 3;
|
||||
}
|
||||
|
||||
// MsgAssociateBondResponse
|
||||
@ -163,8 +170,9 @@ message MsgAssociateBondResponse {}
|
||||
message MsgDissociateBond {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""];
|
||||
string signer = 2;
|
||||
string record_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
|
||||
string signer = 2;
|
||||
}
|
||||
|
||||
// MsgDissociateBondResponse
|
||||
@ -174,8 +182,9 @@ message MsgDissociateBondResponse {}
|
||||
message MsgDissociateRecords {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""];
|
||||
string signer = 2;
|
||||
string bond_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
|
||||
string signer = 2;
|
||||
}
|
||||
|
||||
// MsgDissociateRecordsResponse
|
||||
@ -185,9 +194,11 @@ message MsgDissociateRecordsResponse {}
|
||||
message MsgReassociateRecords {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
|
||||
string new_bond_id = 1 [(gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\""];
|
||||
string old_bond_id = 2 [(gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\""];
|
||||
string signer = 3;
|
||||
string new_bond_id = 1
|
||||
[ (gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\"" ];
|
||||
string old_bond_id = 2
|
||||
[ (gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\"" ];
|
||||
string signer = 3;
|
||||
}
|
||||
|
||||
// MsgReassociateRecordsResponse
|
||||
|
Loading…
Reference in New Issue
Block a user