Proposals

SetConfigProposal

SetConfigProposal is a proposal to set feed config by governance.

message SetConfigProposal {
  option (gogoproto.equal) = false;
  option (gogoproto.goproto_getters) = false;

  string title = 1;
  string description = 2;
  FeedConfig config = 3;
}

Steps

  • Validate basics for the proposal

  • Ensure module's LinkDenom is same as proposal's LinkDenom

  • set p.Config.OnchainConfig.ChainId from ctx.ChainID

  • Set feed config for feedId

  • Set feed transmissions and observations count for Config.Transmitters

SetBatchConfigProposal

SetBatchConfigProposal is a proposal to set multiple feed configs at once by governance.

Last updated