nibiru_std/proto/buf/
cosmos.nft.v1beta1.rs

1// @generated
2/// EventSend is emitted on Msg/Send
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct EventSend {
6    /// class_id associated with the nft
7    #[prost(string, tag="1")]
8    pub class_id: ::prost::alloc::string::String,
9    /// id is a unique identifier of the nft
10    #[prost(string, tag="2")]
11    pub id: ::prost::alloc::string::String,
12    /// sender is the address of the owner of nft
13    #[prost(string, tag="3")]
14    pub sender: ::prost::alloc::string::String,
15    /// receiver is the receiver address of nft
16    #[prost(string, tag="4")]
17    pub receiver: ::prost::alloc::string::String,
18}
19/// EventMint is emitted on Mint
20#[allow(clippy::derive_partial_eq_without_eq)]
21#[derive(Clone, PartialEq, ::prost::Message)]
22pub struct EventMint {
23    /// class_id associated with the nft
24    #[prost(string, tag="1")]
25    pub class_id: ::prost::alloc::string::String,
26    /// id is a unique identifier of the nft
27    #[prost(string, tag="2")]
28    pub id: ::prost::alloc::string::String,
29    /// owner is the owner address of the nft
30    #[prost(string, tag="3")]
31    pub owner: ::prost::alloc::string::String,
32}
33/// EventBurn is emitted on Burn
34#[allow(clippy::derive_partial_eq_without_eq)]
35#[derive(Clone, PartialEq, ::prost::Message)]
36pub struct EventBurn {
37    /// class_id associated with the nft
38    #[prost(string, tag="1")]
39    pub class_id: ::prost::alloc::string::String,
40    /// id is a unique identifier of the nft
41    #[prost(string, tag="2")]
42    pub id: ::prost::alloc::string::String,
43    /// owner is the owner address of the nft
44    #[prost(string, tag="3")]
45    pub owner: ::prost::alloc::string::String,
46}
47/// Class defines the class of the nft type.
48#[allow(clippy::derive_partial_eq_without_eq)]
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct Class {
51    /// id defines the unique identifier of the NFT classification, similar to the contract address of ERC721
52    #[prost(string, tag="1")]
53    pub id: ::prost::alloc::string::String,
54    /// name defines the human-readable name of the NFT classification. Optional
55    #[prost(string, tag="2")]
56    pub name: ::prost::alloc::string::String,
57    /// symbol is an abbreviated name for nft classification. Optional
58    #[prost(string, tag="3")]
59    pub symbol: ::prost::alloc::string::String,
60    /// description is a brief description of nft classification. Optional
61    #[prost(string, tag="4")]
62    pub description: ::prost::alloc::string::String,
63    /// uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional
64    #[prost(string, tag="5")]
65    pub uri: ::prost::alloc::string::String,
66    /// uri_hash is a hash of the document pointed by uri. Optional
67    #[prost(string, tag="6")]
68    pub uri_hash: ::prost::alloc::string::String,
69    /// data is the app specific metadata of the NFT class. Optional
70    #[prost(message, optional, tag="7")]
71    pub data: ::core::option::Option<::prost_types::Any>,
72}
73/// NFT defines the NFT.
74#[allow(clippy::derive_partial_eq_without_eq)]
75#[derive(Clone, PartialEq, ::prost::Message)]
76pub struct Nft {
77    /// class_id associated with the NFT, similar to the contract address of ERC721
78    #[prost(string, tag="1")]
79    pub class_id: ::prost::alloc::string::String,
80    /// id is a unique identifier of the NFT
81    #[prost(string, tag="2")]
82    pub id: ::prost::alloc::string::String,
83    /// uri for the NFT metadata stored off chain
84    #[prost(string, tag="3")]
85    pub uri: ::prost::alloc::string::String,
86    /// uri_hash is a hash of the document pointed by uri
87    #[prost(string, tag="4")]
88    pub uri_hash: ::prost::alloc::string::String,
89    /// data is an app specific data of the NFT. Optional
90    #[prost(message, optional, tag="10")]
91    pub data: ::core::option::Option<::prost_types::Any>,
92}
93/// GenesisState defines the nft module's genesis state.
94#[allow(clippy::derive_partial_eq_without_eq)]
95#[derive(Clone, PartialEq, ::prost::Message)]
96pub struct GenesisState {
97    /// class defines the class of the nft type.
98    #[prost(message, repeated, tag="1")]
99    pub classes: ::prost::alloc::vec::Vec<Class>,
100    /// entry defines all nft owned by a person.
101    #[prost(message, repeated, tag="2")]
102    pub entries: ::prost::alloc::vec::Vec<Entry>,
103}
104/// Entry Defines all nft owned by a person
105#[allow(clippy::derive_partial_eq_without_eq)]
106#[derive(Clone, PartialEq, ::prost::Message)]
107pub struct Entry {
108    /// owner is the owner address of the following nft
109    #[prost(string, tag="1")]
110    pub owner: ::prost::alloc::string::String,
111    /// nfts is a group of nfts of the same owner
112    #[prost(message, repeated, tag="2")]
113    pub nfts: ::prost::alloc::vec::Vec<Nft>,
114}
115/// QueryBalanceRequest is the request type for the Query/Balance RPC method
116#[allow(clippy::derive_partial_eq_without_eq)]
117#[derive(Clone, PartialEq, ::prost::Message)]
118pub struct QueryBalanceRequest {
119    /// class_id associated with the nft
120    #[prost(string, tag="1")]
121    pub class_id: ::prost::alloc::string::String,
122    /// owner is the owner address of the nft
123    #[prost(string, tag="2")]
124    pub owner: ::prost::alloc::string::String,
125}
126/// QueryBalanceResponse is the response type for the Query/Balance RPC method
127#[allow(clippy::derive_partial_eq_without_eq)]
128#[derive(Clone, PartialEq, ::prost::Message)]
129pub struct QueryBalanceResponse {
130    /// amount is the number of all NFTs of a given class owned by the owner
131    #[prost(uint64, tag="1")]
132    pub amount: u64,
133}
134/// QueryOwnerRequest is the request type for the Query/Owner RPC method
135#[allow(clippy::derive_partial_eq_without_eq)]
136#[derive(Clone, PartialEq, ::prost::Message)]
137pub struct QueryOwnerRequest {
138    /// class_id associated with the nft
139    #[prost(string, tag="1")]
140    pub class_id: ::prost::alloc::string::String,
141    /// id is a unique identifier of the NFT
142    #[prost(string, tag="2")]
143    pub id: ::prost::alloc::string::String,
144}
145/// QueryOwnerResponse is the response type for the Query/Owner RPC method
146#[allow(clippy::derive_partial_eq_without_eq)]
147#[derive(Clone, PartialEq, ::prost::Message)]
148pub struct QueryOwnerResponse {
149    /// owner is the owner address of the nft
150    #[prost(string, tag="1")]
151    pub owner: ::prost::alloc::string::String,
152}
153/// QuerySupplyRequest is the request type for the Query/Supply RPC method
154#[allow(clippy::derive_partial_eq_without_eq)]
155#[derive(Clone, PartialEq, ::prost::Message)]
156pub struct QuerySupplyRequest {
157    /// class_id associated with the nft
158    #[prost(string, tag="1")]
159    pub class_id: ::prost::alloc::string::String,
160}
161/// QuerySupplyResponse is the response type for the Query/Supply RPC method
162#[allow(clippy::derive_partial_eq_without_eq)]
163#[derive(Clone, PartialEq, ::prost::Message)]
164pub struct QuerySupplyResponse {
165    /// amount is the number of all NFTs from the given class
166    #[prost(uint64, tag="1")]
167    pub amount: u64,
168}
169/// QueryNFTstRequest is the request type for the Query/NFTs RPC method
170#[allow(clippy::derive_partial_eq_without_eq)]
171#[derive(Clone, PartialEq, ::prost::Message)]
172pub struct QueryNfTsRequest {
173    /// class_id associated with the nft
174    #[prost(string, tag="1")]
175    pub class_id: ::prost::alloc::string::String,
176    /// owner is the owner address of the nft
177    #[prost(string, tag="2")]
178    pub owner: ::prost::alloc::string::String,
179    /// pagination defines an optional pagination for the request.
180    #[prost(message, optional, tag="3")]
181    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
182}
183/// QueryNFTsResponse is the response type for the Query/NFTs RPC methods
184#[allow(clippy::derive_partial_eq_without_eq)]
185#[derive(Clone, PartialEq, ::prost::Message)]
186pub struct QueryNfTsResponse {
187    /// NFT defines the NFT
188    #[prost(message, repeated, tag="1")]
189    pub nfts: ::prost::alloc::vec::Vec<Nft>,
190    /// pagination defines the pagination in the response.
191    #[prost(message, optional, tag="2")]
192    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
193}
194/// QueryNFTRequest is the request type for the Query/NFT RPC method
195#[allow(clippy::derive_partial_eq_without_eq)]
196#[derive(Clone, PartialEq, ::prost::Message)]
197pub struct QueryNftRequest {
198    /// class_id associated with the nft
199    #[prost(string, tag="1")]
200    pub class_id: ::prost::alloc::string::String,
201    /// id is a unique identifier of the NFT
202    #[prost(string, tag="2")]
203    pub id: ::prost::alloc::string::String,
204}
205/// QueryNFTResponse is the response type for the Query/NFT RPC method
206#[allow(clippy::derive_partial_eq_without_eq)]
207#[derive(Clone, PartialEq, ::prost::Message)]
208pub struct QueryNftResponse {
209    /// owner is the owner address of the nft
210    #[prost(message, optional, tag="1")]
211    pub nft: ::core::option::Option<Nft>,
212}
213/// QueryClassRequest is the request type for the Query/Class RPC method
214#[allow(clippy::derive_partial_eq_without_eq)]
215#[derive(Clone, PartialEq, ::prost::Message)]
216pub struct QueryClassRequest {
217    /// class_id associated with the nft
218    #[prost(string, tag="1")]
219    pub class_id: ::prost::alloc::string::String,
220}
221/// QueryClassResponse is the response type for the Query/Class RPC method
222#[allow(clippy::derive_partial_eq_without_eq)]
223#[derive(Clone, PartialEq, ::prost::Message)]
224pub struct QueryClassResponse {
225    /// class defines the class of the nft type.
226    #[prost(message, optional, tag="1")]
227    pub class: ::core::option::Option<Class>,
228}
229/// QueryClassesRequest is the request type for the Query/Classes RPC method
230#[allow(clippy::derive_partial_eq_without_eq)]
231#[derive(Clone, PartialEq, ::prost::Message)]
232pub struct QueryClassesRequest {
233    /// pagination defines an optional pagination for the request.
234    #[prost(message, optional, tag="1")]
235    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
236}
237/// QueryClassesResponse is the response type for the Query/Classes RPC method
238#[allow(clippy::derive_partial_eq_without_eq)]
239#[derive(Clone, PartialEq, ::prost::Message)]
240pub struct QueryClassesResponse {
241    /// class defines the class of the nft type.
242    #[prost(message, repeated, tag="1")]
243    pub classes: ::prost::alloc::vec::Vec<Class>,
244    /// pagination defines the pagination in the response.
245    #[prost(message, optional, tag="2")]
246    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
247}
248/// MsgSend represents a message to send a nft from one account to another account.
249#[allow(clippy::derive_partial_eq_without_eq)]
250#[derive(Clone, PartialEq, ::prost::Message)]
251pub struct MsgSend {
252    /// class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721
253    #[prost(string, tag="1")]
254    pub class_id: ::prost::alloc::string::String,
255    /// id defines the unique identification of nft
256    #[prost(string, tag="2")]
257    pub id: ::prost::alloc::string::String,
258    /// sender is the address of the owner of nft
259    #[prost(string, tag="3")]
260    pub sender: ::prost::alloc::string::String,
261    /// receiver is the receiver address of nft
262    #[prost(string, tag="4")]
263    pub receiver: ::prost::alloc::string::String,
264}
265/// MsgSendResponse defines the Msg/Send response type.
266#[allow(clippy::derive_partial_eq_without_eq)]
267#[derive(Clone, PartialEq, ::prost::Message)]
268pub struct MsgSendResponse {
269}
270// @@protoc_insertion_point(module)