mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
30 lines
889 B
Protocol Buffer
30 lines
889 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package cosmos.nft.v1beta1;
|
||
|
|
||
|
option go_package = "github.com/cosmos/cosmos-sdk/x/nft";
|
||
|
|
||
|
import "cosmos/msg/v1/msg.proto";
|
||
|
|
||
|
// Msg defines the nft Msg service.
|
||
|
service Msg {
|
||
|
// Send defines a method to send a nft from one account to another account.
|
||
|
rpc Send(MsgSend) returns (MsgSendResponse);
|
||
|
}
|
||
|
// MsgSend represents a message to send a nft from one account to another account.
|
||
|
message MsgSend {
|
||
|
option (cosmos.msg.v1.signer) = "sender";
|
||
|
|
||
|
// 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;
|
||
|
|
||
|
// sender is the address of the owner of nft
|
||
|
string sender = 3;
|
||
|
|
||
|
// receiver is the receiver address of nft
|
||
|
string receiver = 4;
|
||
|
}
|
||
|
// MsgSendResponse defines the Msg/Send response type.
|
||
|
message MsgSendResponse {}
|