Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Interfaces

Constructors

Properties

Methods

Constructors

constructor

Properties

changes

changes: ParamChanges

description

description: string

proposal's description

title

title: string

proposal's title

Methods

toData

toJSON

  • toJSON(): string

Static fromData

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Static property
  • Static method
  • Property

Generated using TypeDoc