-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SendAuthorization for sending specific NFTs. (#678)
# Description # Reviewers checklist: - [ ] Try to write more meaningful comments with clear actions to be taken. - [ ] Nit-picking should be unblocking. Focus on core issues. # Authors checklist - [x] Provide a concise and meaningful description - [x] Review the code yourself first, before making the PR. - [x] Annotate your PR in places that require explanation. - [x] Think and try to split the PR to smaller PR if it is big.
- Loading branch information
Showing
7 changed files
with
949 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto3"; | ||
package coreum.asset.nft.v1; | ||
|
||
import "amino/amino.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/CoreumFoundation/coreum/v3/x/asset/nft/types"; | ||
|
||
// SendAuthorization allows the grantee to send specific NFTs from the granter's account. | ||
message SendAuthorization { | ||
option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization"; | ||
option (amino.name) = "cosmos-sdk/nft/SendAuthorization"; | ||
repeated NFTIdentifier nfts = 1 [ | ||
(gogoproto.nullable) = false, | ||
(amino.dont_omitempty) = true | ||
]; | ||
} | ||
|
||
message NFTIdentifier { | ||
// 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; | ||
} |
Oops, something went wrong.