cosmos-sdk: github.com/cosmos/cosmos-sdk/x/genaccounts/legacy/v0_36 Index | Files

package v0_36

import "github.com/cosmos/cosmos-sdk/x/genaccounts/legacy/v0_36"

DONTCOVER nolint

DONTCOVER nolint

Index

Package Files

migrate.go types.go

Constants

const (
    ModuleName = "accounts"
)

type GenesisAccount Uses

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 Uses

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 Uses

type GenesisState []GenesisAccount

func Migrate Uses

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

Package v0_36 imports 7 packages (graph) and is imported by 3 packages. Updated 2020-02-12. Refresh now. Tools for package owners.