Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParameterChangeProposal

Describes a proposal for directly altering the value of the module parameters. If you want to select a couple parameters to change for your proposal, you'll first include the subspace (module it belongs to, such as "oracle" or "distribution"), and then just the specific keys that you want to include in your changes as items in a JavaScript object.

import {
Dec,
MsgSubmitProposal,
ParameterChangeProposal
} from "@terra-money/terra.js";

const proposal = new ParameterChangeProposal("title", "description", {
market: {
minspread: new Dec(0.25),
basepool: new Dec(10000000)
},
staking: {
UnbondingTime: 15000000
}
});

const msg = new MsgSubmitProposal();

Hierarchy

Index

Constructors

constructor

Properties

changes

changes: ParamChanges

description

description: string

title

title: string

Methods

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): ParameterChangeProposal

Static fromAmino

Static fromData

Static fromProto

Static unpackAny