v0_36

package
v0.39.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

DONTCOVER nolint

DONTCOVER nolint

Index

Constants

View Source
const (
	ModuleName = "accounts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisAccount

type GenesisAccount struct {
	Address       sdk.AccAddress `json:"address" yaml:"address"`
	Coins         sdk.Coins      `json:"coins" yaml:"coins"`
	Sequence      uint64         `json:"sequence_number" yaml:"sequence_number"`
	AccountNumber uint64         `json:"account_number" yaml:"account_number"`

	OriginalVesting  sdk.Coins `json:"original_vesting" yaml:"original_vesting"`
	DelegatedFree    sdk.Coins `json:"delegated_free" yaml:"delegated_free"`
	DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"`
	StartTime        int64     `json:"start_time" yaml:"start_time"`
	EndTime          int64     `json:"end_time" yaml:"end_time"`

	ModuleName        string   `json:"module_name" yaml:"module_name"`
	ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"`
}

func NewGenesisAccount

func NewGenesisAccount(
	address sdk.AccAddress, coins sdk.Coins, sequence uint64,
	vestingAmount, delFree, delVesting sdk.Coins, vestingStartTime, vestingEndTime int64,
	module string, permissions []string,
) GenesisAccount

NewGenesisAccount creates a new GenesisAccount object

type GenesisState

type GenesisState []GenesisAccount

func Migrate

func Migrate(
	oldGenState v034accounts.GenesisState, fees sdk.Coins, communityPool sdk.DecCoins,
	deposits []v034gov.DepositWithMetadata, vals v034staking.Validators, ubds []v034staking.UnbondingDelegation,
	valOutRewards []v034distr.ValidatorOutstandingRewardsRecord, bondDenom, distrModuleName, govModuleName string,
) GenesisState

Migrate accepts exported genesis state from v0.34 and migrates it to v0.36 genesis state. It deletes the governance base accounts and creates the new module accounts. The remaining accounts are updated to the new GenesisAccount type from 0.36

Jump to

Keyboard shortcuts

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