-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
tx.proto
34 lines (25 loc) · 1.04 KB
/
tx.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
syntax = "proto3";
package cosmos.nft.v1beta1;
option go_package = "github.com/cosmos/cosmos-sdk/x/nft";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
// Msg defines the nft Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// 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 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// receiver is the receiver address of nft
string receiver = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}
// MsgSendResponse defines the Msg/Send response type.
message MsgSendResponse {}