/
msgs_profile.proto
65 lines (51 loc) · 2.18 KB
/
msgs_profile.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
syntax = "proto3";
package desmos.profiles.v3;
import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
option go_package = "github.com/desmos-labs/desmos/v7/x/profiles/types";
// MsgSaveProfile represents a message to save a profile.
message MsgSaveProfile {
option (cosmos.msg.v1.signer) = "creator";
option (amino.name) = "desmos/MsgSaveProfile";
// DTag of the profile. If it shouldn't be changed, [do-no-modify] can be used
// instead.
string dtag = 1 [
(gogoproto.moretags) = "yaml:\"dtag\"",
(gogoproto.customname) = "DTag"
];
// Nickname of the profile. If it shouldn't be changed, [do-no-modify] can be
// used instead.
string nickname = 2 [ (gogoproto.moretags) = "yaml:\"nickname\"" ];
// Bio of the profile. If it shouldn't be changed, [do-no-modify] can be used
// instead.
string bio = 3 [ (gogoproto.moretags) = "yaml:\"bio\"" ];
// URL to the profile picture. If it shouldn't be changed, [do-no-modify] can
// be used instead.
string profile_picture = 4
[ (gogoproto.moretags) = "yaml:\"profile_picture\"" ];
// URL to the profile cover. If it shouldn't be changed, [do-no-modify] can be
// used instead.
string cover_picture = 5 [ (gogoproto.moretags) = "yaml:\"cover_picture\"" ];
// Address of the user associated to the profile
string creator = 6 [
(gogoproto.moretags) = "yaml:\"creator\"",
(cosmos_proto.scalar) = "cosmos.AddressString"
];
}
// MsgSaveProfileResponse defines the Msg/SaveProfile response type.
message MsgSaveProfileResponse {}
// --------------------------------------------------------------------------------------------------------------------
// MsgDeleteProfile represents the message used to delete an existing profile.
message MsgDeleteProfile {
option (cosmos.msg.v1.signer) = "creator";
option (amino.name) = "desmos/MsgDeleteProfile";
// Address associated to the profile to be deleted
string creator = 1 [
(gogoproto.moretags) = "yaml:\"creator\"",
(cosmos_proto.scalar) = "cosmos.AddressString"
];
}
// MsgDeleteProfileResponse defines the Msg/DeleteProfile response type.
message MsgDeleteProfileResponse {}