-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added deprecated proposal, compatible history (#622)
Co-authored-by: nulnut <151493716+nulnut@users.noreply.github.com>
- Loading branch information
1 parent
662a7cb
commit 909b01b
Showing
7 changed files
with
1,256 additions
and
1 deletion.
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
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,67 @@ | ||
syntax = "proto3"; | ||
package fx.gov.v1; | ||
|
||
import "cosmos/base/v1beta1/coin.proto"; | ||
import "cosmos/msg/v1/msg.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/duration.proto"; | ||
|
||
option go_package = "github.com/functionx/fx-core/x/gov/legacy"; | ||
|
||
// Deprecated: Do not use. | ||
message MsgUpdateParams { | ||
option (cosmos.msg.v1.signer) = "authority"; | ||
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
LegacyParams params = 2 [(gogoproto.nullable) = false]; | ||
} | ||
|
||
// Deprecated: Do not use. | ||
message LegacyParams { | ||
string msg_type = 1; | ||
|
||
repeated cosmos.base.v1beta1.Coin min_deposit = 2 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.jsontag) = "min_deposit,omitempty" | ||
]; | ||
|
||
cosmos.base.v1beta1.Coin min_initial_deposit = 3 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.jsontag) = "min_initial_deposit,omitempty" | ||
]; | ||
|
||
google.protobuf.Duration voting_period = 4 [(gogoproto.stdduration) = true]; | ||
|
||
string quorum = 5 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.jsontag) = "quorum,omitempty" | ||
]; | ||
|
||
google.protobuf.Duration max_deposit_period = 6 [ | ||
(gogoproto.stdduration) = true, | ||
(gogoproto.jsontag) = "max_deposit_period,omitempty" | ||
]; | ||
|
||
string threshold = 7 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.jsontag) = "threshold,omitempty" | ||
]; | ||
|
||
string veto_threshold = 8 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.jsontag) = "veto_threshold,omitempty" | ||
]; | ||
|
||
// The ratio representing the proportion of the deposit value that must be | ||
// paid at proposal submission. | ||
string min_initial_deposit_ratio = 9 [(cosmos_proto.scalar) = "cosmos.Dec"]; | ||
|
||
// burn deposits if a proposal does not meet quorum | ||
bool burn_vote_quorum = 10; | ||
|
||
// burn deposits if the proposal does not enter voting period | ||
bool burn_proposal_deposit_prevote = 11; | ||
|
||
// burn deposits if quorum with vote type no_veto is met | ||
bool burn_vote_veto = 12; | ||
} |
Oops, something went wrong.