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

Properties

changes: ParamChanges
description: string
title: string

Methods

  • packAny(isClassic?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): ParameterChangeProposal