upgradeparams

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const UpgradeParamsKey = "upgradeParams"

Variables

This section is empty.

Functions

This section is empty.

Types

type Params added in v0.10.0

type Params struct {
	Threshold sdk.Dec `json:"threshold"` //  Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months
}

Procedure around Deposits for governance

func NewUpgradeParams added in v0.10.0

func NewUpgradeParams() Params

type UpgradeParams added in v0.10.0

type UpgradeParams struct {
	Value Params
	// contains filtered or unexported fields
}
var UpgradeParameter UpgradeParams

func (*UpgradeParams) GetStoreKey added in v0.10.0

func (param *UpgradeParams) GetStoreKey() []byte

func (*UpgradeParams) GetValueFromRawData added in v0.10.0

func (param *UpgradeParams) GetValueFromRawData(cdc *codec.Codec, res []byte) interface{}

func (*UpgradeParams) InitGenesis added in v0.10.0

func (param *UpgradeParams) InitGenesis(genesisState interface{})

func (*UpgradeParams) LoadValue added in v0.10.0

func (param *UpgradeParams) LoadValue(ctx sdk.Context) bool

func (*UpgradeParams) SaveValue added in v0.10.0

func (param *UpgradeParams) SaveValue(ctx sdk.Context)

func (*UpgradeParams) SetReadWriter added in v0.10.0

func (param *UpgradeParams) SetReadWriter(paramSpace params.Subspace)

func (*UpgradeParams) ToJson added in v0.10.0

func (param *UpgradeParams) ToJson(jsonStr string) string

func (*UpgradeParams) Update added in v0.10.0

func (param *UpgradeParams) Update(ctx sdk.Context, jsonStr string)

func (*UpgradeParams) Valid added in v0.10.0

func (param *UpgradeParams) Valid(jsonStr string) sdk.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL