Skip to content

Commit

Permalink
Rename mintable naming in proto
Browse files Browse the repository at this point in the history
  • Loading branch information
elise-ng committed Jul 1, 2022
1 parent a1b361e commit 08792d2
Show file tree
Hide file tree
Showing 11 changed files with 921 additions and 916 deletions.
12 changes: 6 additions & 6 deletions proto/likechain/likenft/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 38,23 @@ message EventBurnNFT {
string class_parent_account = 5;
}

message EventCreateMintableNFT {
message EventCreateBlindBoxContent {
string class_id = 1;
string mintable_nft_id = 2;
string content_id = 2;
string class_parent_iscn_id_prefix = 3;
string class_parent_account = 4;
}

message EventUpdateMintableNFT {
message EventUpdateBlindBoxContent {
string class_id = 1;
string mintable_nft_id = 2;
string content_id = 2;
string class_parent_iscn_id_prefix = 3;
string class_parent_account = 4;
}

message EventDeleteMintableNFT {
message EventDeleteBlindBoxContent {
string class_id = 1;
string mintable_nft_id = 2;
string content_id = 2;
string class_parent_iscn_id_prefix = 3;
string class_parent_account = 4;
}
Expand Down
2 changes: 1 addition & 1 deletion proto/likechain/likenft/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,7 @@ message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
repeated ClassesByISCN classes_by_iscn_list = 2 [(gogoproto.nullable) = false];
repeated ClassesByAccount classes_by_account_list = 3 [(gogoproto.nullable) = false];
repeated MintableNFT mintable_nft_list = 4 [(gogoproto.nullable) = false];
repeated BlindBoxContent blind_box_content_list = 4 [(gogoproto.nullable) = false];
repeated ClassRevealQueueEntry class_reveal_queue = 5 [(gogoproto.nullable) = false];
repeated Offer offer_list = 6 [(gogoproto.nullable) = false];
repeated Listing listing_list = 7 [(gogoproto.nullable) = false];
Expand Down
2 changes: 1 addition & 1 deletion proto/likechain/likenft/mintable_nft.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 7,7 @@ import "likechain/likenft/nft_input.proto";

option go_package = "github.com/likecoin/likechain/x/likenft/types";

message MintableNFT {
message BlindBoxContent {
string class_id = 1;
string id = 2;
NFTInput input = 3 [(gogoproto.nullable) = false];
Expand Down
36 changes: 18 additions & 18 deletions proto/likechain/likenft/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 55,19 @@ service Query {
option (google.api.http).get = "/likenft/account_by_class/{class_id}";
}

// Queries a MintableNFT by index.
rpc MintableNFT(QueryMintableNFTRequest) returns (QueryMintableNFTResponse) {
option (google.api.http).get = "/likenft/mintable_nft/{class_id}/{id}";
// Queries a BlindBoxContent by index.
rpc BlindBoxContent(QueryBlindBoxContentRequest) returns (QueryBlindBoxContentResponse) {
option (google.api.http).get = "/likenft/blind_box_content/{class_id}/{id}";
}

// Queries a list of MintableNFT items.
rpc MintableNFTIndex(QueryMintableNFTIndexRequest) returns (QueryMintableNFTIndexResponse) {
option (google.api.http).get = "/likenft/mintable_nft";
// Queries a list of BlindBoxContent items.
rpc BlindBoxContentIndex(QueryBlindBoxContentIndexRequest) returns (QueryBlindBoxContentIndexResponse) {
option (google.api.http).get = "/likenft/blind_box_content";
}

// Queries a list of MintableNFTs by class_id
rpc MintableNFTs(QueryMintableNFTsRequest) returns (QueryMintableNFTsResponse) {
option (google.api.http).get = "/likenft/mintable_nft/{class_id}";
// Queries a list of BlindBoxContents by class_id
rpc BlindBoxContents(QueryBlindBoxContentsRequest) returns (QueryBlindBoxContentsResponse) {
option (google.api.http).get = "/likenft/blind_box_content/{class_id}";
}

// Queries a Offer by index.
Expand Down Expand Up @@ -191,31 191,31 @@ message QueryAccountByClassResponse {
string address = 1;
}

message QueryMintableNFTRequest {
message QueryBlindBoxContentRequest {
string class_id = 1;
string id = 2;
}

message QueryMintableNFTResponse {
MintableNFT mintable_nft = 1 [(gogoproto.nullable) = false];
message QueryBlindBoxContentResponse {
BlindBoxContent blind_box_content = 1 [(gogoproto.nullable) = false];
}

message QueryMintableNFTIndexRequest {
message QueryBlindBoxContentIndexRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryMintableNFTIndexResponse {
repeated MintableNFT mintable_nfts = 1 [(gogoproto.nullable) = false];
message QueryBlindBoxContentIndexResponse {
repeated BlindBoxContent blind_box_contents = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

message QueryMintableNFTsRequest {
message QueryBlindBoxContentsRequest {
string class_id = 1;
cosmos.base.query.v1beta1.PageRequest pagination = 2;
}

message QueryMintableNFTsResponse {
repeated MintableNFT mintable_nfts = 1 [(gogoproto.nullable) = false];
message QueryBlindBoxContentsResponse {
repeated BlindBoxContent blind_box_contents = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand Down
22 changes: 11 additions & 11 deletions proto/likechain/likenft/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 21,9 @@ service Msg {
rpc UpdateClass(MsgUpdateClass) returns (MsgUpdateClassResponse);
rpc MintNFT(MsgMintNFT) returns (MsgMintNFTResponse);
rpc BurnNFT(MsgBurnNFT) returns (MsgBurnNFTResponse);
rpc CreateMintableNFT(MsgCreateMintableNFT) returns (MsgCreateMintableNFTResponse);
rpc UpdateMintableNFT(MsgUpdateMintableNFT) returns (MsgUpdateMintableNFTResponse);
rpc DeleteMintableNFT(MsgDeleteMintableNFT) returns (MsgDeleteMintableNFTResponse);
rpc CreateBlindBoxContent(MsgCreateBlindBoxContent) returns (MsgCreateBlindBoxContentResponse);
rpc UpdateBlindBoxContent(MsgUpdateBlindBoxContent) returns (MsgUpdateBlindBoxContentResponse);
rpc DeleteBlindBoxContent(MsgDeleteBlindBoxContent) returns (MsgDeleteBlindBoxContentResponse);
rpc CreateOffer(MsgCreateOffer) returns (MsgCreateOfferResponse);
rpc UpdateOffer(MsgUpdateOffer) returns (MsgUpdateOfferResponse);
rpc DeleteOffer(MsgDeleteOffer) returns (MsgDeleteOfferResponse);
Expand Down Expand Up @@ -77,35 77,35 @@ message MsgBurnNFT {

message MsgBurnNFTResponse {}

message MsgCreateMintableNFT {
message MsgCreateBlindBoxContent {
string creator = 1;
string class_id = 2;
string id = 3;
NFTInput input = 4 [(gogoproto.nullable) = false];
}

message MsgCreateMintableNFTResponse {
MintableNFT mintable_nft = 1 [(gogoproto.nullable) = false];
message MsgCreateBlindBoxContentResponse {
BlindBoxContent blind_box_content = 1 [(gogoproto.nullable) = false];
}

message MsgUpdateMintableNFT {
message MsgUpdateBlindBoxContent {
string creator = 1;
string class_id = 2;
string id = 3;
NFTInput input = 4 [(gogoproto.nullable) = false];
}

message MsgUpdateMintableNFTResponse {
MintableNFT mintable_nft = 1 [(gogoproto.nullable) = false];
message MsgUpdateBlindBoxContentResponse {
BlindBoxContent blind_box_content = 1 [(gogoproto.nullable) = false];
}

message MsgDeleteMintableNFT {
message MsgDeleteBlindBoxContent {
string creator = 1;
string class_id = 2;
string id = 3;
}

message MsgDeleteMintableNFTResponse {}
message MsgDeleteBlindBoxContentResponse {}

message MsgCreateOffer {
string creator = 1;
Expand Down
Loading

0 comments on commit 08792d2

Please sign in to comment.