-
Notifications
You must be signed in to change notification settings - Fork 36
/
proposals.proto
117 lines (97 loc) · 4.68 KB
/
proposals.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
syntax = "proto3";
package provenance.marker.v1;
import "gogoproto/gogo.proto";
import "cosmos/bank/v1beta1/bank.proto";
import "cosmos/base/v1beta1/coin.proto";
import "provenance/marker/v1/marker.proto";
import "provenance/marker/v1/accessgrant.proto";
option go_package = "github.com/provenance-io/provenance/x/marker/types";
option java_package = "io.provenance.marker.v1";
option java_multiple_files = true;
// AddMarkerProposal is deprecated and can no longer be used.
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgAddMarkerRequest in a governance proposal.
message AddMarkerProposal {
option deprecated = true;
option (gogoproto.equal) = true;
string title = 1;
string description = 2;
cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin"];
string manager = 4;
MarkerStatus status = 5;
MarkerType marker_type = 6;
repeated AccessGrant access_list = 7 [(gogoproto.nullable) = false];
bool supply_fixed = 8;
bool allow_governance_control = 9;
}
// SupplyIncreaseProposal defines a governance proposal to administer a marker and increase total supply of the marker
// through minting coin and placing it within the marker or assigning it directly to an account
message SupplyIncreaseProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin"];
string target_address = 4; // an optional target address for the minted coin from this request
}
// SupplyDecreaseProposal defines a governance proposal to administer a marker and decrease the total supply through
// burning coin held within the marker
message SupplyDecreaseProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin"];
}
// SetAdministratorProposal defines a governance proposal to administer a marker and set administrators with specific
// access on the marker
message SetAdministratorProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
string denom = 3;
repeated AccessGrant access = 4 [(gogoproto.nullable) = false];
}
// RemoveAdministratorProposal defines a governance proposal to administer a marker and remove all permissions for a
// given address
message RemoveAdministratorProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
string denom = 3;
repeated string removed_address = 4;
}
// ChangeStatusProposal defines a governance proposal to administer a marker to change its status
message ChangeStatusProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
string denom = 3;
MarkerStatus new_status = 4;
}
// WithdrawEscrowProposal defines a governance proposal to withdraw escrow coins from a marker
message WithdrawEscrowProposal {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
string denom = 3;
repeated cosmos.base.v1beta1.Coin amount = 4
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
string target_address = 5;
}
// SetDenomMetadataProposal defines a governance proposal to set the metadata for a denom
message SetDenomMetadataProposal {
option (gogoproto.goproto_stringer) = false;
string title = 1;
string description = 2;
cosmos.bank.v1beta1.Metadata metadata = 3
[(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/x/bank/types.Metadata"];
}