MCPcopy
hub / github.com/canopy-network/canopy / MessageChangeParameter

Struct MessageChangeParameter

fsm/message.pb.go:471–492  ·  view source on GitHub ↗

MessageChangeParameter is a governance proposal message used to modify a governance parameter This type of message must be manually pre-approved by +2/3rds of the Validators via their APPROVE_LIST In short, a 'proposer' generates the message JSON, communicates the JSON to Validators, Validators vote

Source from the content-addressed store, hash-verified

469// by populating their APPROVE_LIST which configures how they'll vote during the consensus process when a
470// block includes this transaction in it.
471type MessageChangeParameter struct {
472 state protoimpl.MessageState `protogen:"open.v1"`
473 // parameter_space: is the organization path where the parameter is found (val, cons, fee, gov)
474 ParameterSpace string `protobuf:"bytes,1,opt,name=parameter_space,json=parameterSpace,proto3" json:"parameterSpace"` // @gotags: json:"parameterSpace"
475 // parameter_key: is the name of the parameter
476 ParameterKey string `protobuf:"bytes,2,opt,name=parameter_key,json=parameterKey,proto3" json:"parameterKey"` // @gotags: json:"parameterKey"
477 // parameter_value: is the uint64 or string value of the parameter
478 ParameterValue *anypb.Any `protobuf:"bytes,3,opt,name=parameter_value,json=parameterValue,proto3" json:"parameterValue"` // @gotags: json:"parameterValue"
479 // start_height: is the beginning height where the parameter must be sent
480 // this field locks in a block-range when it's converted to JSON and allows Validators a deadline to vote
481 StartHeight uint64 `protobuf:"varint,4,opt,name=start_height,json=startHeight,proto3" json:"startHeight"` // @gotags: json:"startHeight"
482 // end_height: is the ending height where the parameter must be sent
483 // this field locks in a block-range when it's converted to JSON and allows Validators a deadline to vote
484 EndHeight uint64 `protobuf:"varint,5,opt,name=end_height,json=endHeight,proto3" json:"endHeight"` // @gotags: json:"endHeight"
485 // signer: is the address of the sender / creator of the proposal
486 // this field locks in an author of the transaction when it's converted to JSON
487 Signer []byte `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty"`
488 // proposal_hash: internal use only, tracks the hash of the proposal to check against the proposals.json file
489 ProposalHash string `protobuf:"bytes,7,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposalHash"` // @gotags: json:"proposalHash"
490 unknownFields protoimpl.UnknownFields
491 sizeCache protoimpl.SizeCache
492}
493
494func (x *MessageChangeParameter) Reset() {
495 *x = MessageChangeParameter{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected