Skip to content

Commit 42402ba

Browse files
committed
refactor(nft): update query and nft.proto
1 parent dd85dc4 commit 42402ba

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

proto/bitsong/nft/v1beta1/nft.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ message Collection {
1616
string uri = 5;
1717

1818
string creator = 6;
19-
string minter = 7;
20-
uint64 num_tokens = 8;
21-
// bool is_mutable
22-
// update_autority (who can update name, description and uri if is_mutable = true)
19+
string minter = 7; // who can mint new nfts, if not set no one can mint
20+
string authority = 8; // who can update name, description and uri, if not set no one can update
21+
22+
uint64 num_tokens = 9;
2323
}
2424

2525
message Nft {
@@ -33,14 +33,14 @@ message Nft {
3333
string uri = 5;
3434

3535
string owner = 6;
36+
string authority = 7; // who can update name, description and uri, if not set no one can update
3637

3738
// TODO: add max_editions
38-
uint64 editions = 7; // number of printed editions
39+
// uint64 max_editions = 8; // max number of printed editions, 0 means no limit
40+
uint64 editions = 8; // number of printed editions
3941

4042
// seller_fee_bps
4143
// payment_address
42-
// bool is_mutable
43-
// update_autority (who can update name, description and uri if is_mutable = true)
4444
}
4545

4646
message Edition {

proto/bitsong/nft/v1beta1/query.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ service Query {
3939

4040
// Edition returns a specific edition of an nft
4141
// OwnerOfEdition returns the owner of a specific edition
42-
// NumEditions returns the total number of editions
4342
// NftEditions returns all editions of a specific nft
4443
// AllNftEditionsByOwner returns all nft editions owned by the owner
4544
}

0 commit comments

Comments
 (0)