cosmos-sdk/proto/cosmos/nft/v1beta1/nft.proto

45 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

feat: generate nft protobuf (#9747) <!-- The default pull request template is for types feat, fix, or refactor. For other templates, add one of the following parameters to the url: - template=docs.md - template=other.md --> ## Description Generate nft protobuf, refer #9826. <!-- Add a description of the changes that this PR introduces and the files that are the most critical to review. --> --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
2021-08-31 04:10:44 -07:00
syntax = "proto3";
package cosmos.nft.v1beta1;
import "google/protobuf/any.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/nft";
// Class defines the class of the nft type.
message Class {
// id defines the unique identifier of the NFT classification, similar to the contract address of ERC721
string id = 1;
// name defines the human-readable name of the NFT classification
string name = 2;
// symbol is an abbreviated name for nft classification
string symbol = 3;
// description is a brief description of nft classification
string description = 4;
// uri is a URI may point to a JSON file that conforms to the nft classification Metadata JSON Schema.
string uri = 5;
// uri_hash is a hash of the document pointed to uri
string uri_hash = 6;
}
// NFT defines the NFT.
message NFT {
// class_id defines the unique identifier of the NFT classification, similar to the contract address of ERC721
string class_id = 1;
// id defines the unique identification of NFT
string id = 2;
// uri defines NFT's metadata storage address outside the chain
string uri = 3;
// uri_hash is a hash of the document pointed to uri
string uri_hash = 4;
// data is the metadata of the NFT
google.protobuf.Any data = 10;
}