cosmos-sdk: github.com/cosmos/cosmos-sdk/x/auth/legacy/v0_39 Index | Files

package v039

import "github.com/cosmos/cosmos-sdk/x/auth/legacy/v0_39"

Index

Package Files

migrate.go types.go

Constants

const (
    ModuleName = "auth"
)

func RegisterCodec Uses

func RegisterCodec(cdc *codec.LegacyAmino)

type BaseAccount Uses

type BaseAccount struct {
    Address       sdk.AccAddress `json:"address" yaml:"address"`
    Coins         sdk.Coins      `json:"coins,omitempty" yaml:"coins,omitempty"`
    PubKey        crypto.PubKey  `json:"public_key" yaml:"public_key"`
    AccountNumber uint64         `json:"account_number" yaml:"account_number"`
    Sequence      uint64         `json:"sequence" yaml:"sequence"`
}

func NewBaseAccount Uses

func NewBaseAccount(
    address sdk.AccAddress, coins sdk.Coins, pk crypto.PubKey, accountNumber, sequence uint64,
) *BaseAccount

func NewBaseAccountWithAddress Uses

func NewBaseAccountWithAddress(addr sdk.AccAddress) BaseAccount

func (*BaseAccount) GetAccountNumber Uses

func (acc *BaseAccount) GetAccountNumber() uint64

func (BaseAccount) GetAddress Uses

func (acc BaseAccount) GetAddress() sdk.AccAddress

func (*BaseAccount) GetCoins Uses

func (acc *BaseAccount) GetCoins() sdk.Coins

func (*BaseAccount) SetCoins Uses

func (acc *BaseAccount) SetCoins(coins sdk.Coins) error

func (BaseAccount) Validate Uses

func (acc BaseAccount) Validate() error

type BaseVestingAccount Uses

type BaseVestingAccount struct {
    *BaseAccount

    OriginalVesting  sdk.Coins `json:"original_vesting"`
    DelegatedFree    sdk.Coins `json:"delegated_free"`
    DelegatedVesting sdk.Coins `json:"delegated_vesting"`

    EndTime int64 `json:"end_time"`
}

func NewBaseVestingAccount Uses

func NewBaseVestingAccount(
    baseAccount *BaseAccount, originalVesting, delegatedFree, delegatedVesting sdk.Coins, endTime int64,
) *BaseVestingAccount

func (BaseVestingAccount) GetEndTime Uses

func (bva BaseVestingAccount) GetEndTime() int64

func (BaseVestingAccount) MarshalJSON Uses

func (bva BaseVestingAccount) MarshalJSON() ([]byte, error)

func (*BaseVestingAccount) UnmarshalJSON Uses

func (bva *BaseVestingAccount) UnmarshalJSON(bz []byte) error

func (BaseVestingAccount) Validate Uses

func (bva BaseVestingAccount) Validate() error

type ContinuousVestingAccount Uses

type ContinuousVestingAccount struct {
    *BaseVestingAccount

    StartTime int64 `json:"start_time"`
}

func NewContinuousVestingAccountRaw Uses

func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount

func (ContinuousVestingAccount) MarshalJSON Uses

func (cva ContinuousVestingAccount) MarshalJSON() ([]byte, error)

func (*ContinuousVestingAccount) UnmarshalJSON Uses

func (cva *ContinuousVestingAccount) UnmarshalJSON(bz []byte) error

func (ContinuousVestingAccount) Validate Uses

func (cva ContinuousVestingAccount) Validate() error

type DelayedVestingAccount Uses

type DelayedVestingAccount struct {
    *BaseVestingAccount
}

func NewDelayedVestingAccountRaw Uses

func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount

func (DelayedVestingAccount) MarshalJSON Uses

func (dva DelayedVestingAccount) MarshalJSON() ([]byte, error)

func (*DelayedVestingAccount) UnmarshalJSON Uses

func (dva *DelayedVestingAccount) UnmarshalJSON(bz []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a DelayedVestingAccount.

func (DelayedVestingAccount) Validate Uses

func (dva DelayedVestingAccount) Validate() error

type GenesisState Uses

type GenesisState struct {
    Params   v034auth.Params          `json:"params" yaml:"params"`
    Accounts v038auth.GenesisAccounts `json:"accounts" yaml:"accounts"`
}

func Migrate Uses

func Migrate(oldAuthGenState v038auth.GenesisState) GenesisState

Migrate accepts exported genesis state from v0.38 and migrates it to v0.39 genesis state.

func NewGenesisState Uses

func NewGenesisState(params v034auth.Params, accounts v038auth.GenesisAccounts) GenesisState

type ModuleAccount Uses

type ModuleAccount struct {
    *BaseAccount

    Name        string   `json:"name" yaml:"name"`
    Permissions []string `json:"permissions" yaml:"permissions"`
}

func NewModuleAccount Uses

func NewModuleAccount(baseAccount *BaseAccount, name string, permissions ...string) *ModuleAccount

func (ModuleAccount) MarshalJSON Uses

func (ma ModuleAccount) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of a ModuleAccount.

func (*ModuleAccount) UnmarshalJSON Uses

func (ma *ModuleAccount) UnmarshalJSON(bz []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a ModuleAccount.

func (ModuleAccount) Validate Uses

func (ma ModuleAccount) Validate() error

type Period Uses

type Period struct {
    Length int64     `json:"length" yaml:"length"` // length of the period, in seconds
    Amount sdk.Coins `json:"amount" yaml:"amount"` // amount of coins vesting during this period
}

type PeriodicVestingAccount Uses

type PeriodicVestingAccount struct {
    *BaseVestingAccount
    StartTime      int64   `json:"start_time" yaml:"start_time"`           // when the coins start to vest
    VestingPeriods Periods `json:"vesting_periods" yaml:"vesting_periods"` // the vesting schedule
}

func (PeriodicVestingAccount) GetStartTime Uses

func (pva PeriodicVestingAccount) GetStartTime() int64

func (PeriodicVestingAccount) MarshalJSON Uses

func (pva PeriodicVestingAccount) MarshalJSON() ([]byte, error)

func (*PeriodicVestingAccount) UnmarshalJSON Uses

func (pva *PeriodicVestingAccount) UnmarshalJSON(bz []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a PeriodicVestingAccount.

func (PeriodicVestingAccount) Validate Uses

func (pva PeriodicVestingAccount) Validate() error

type Periods Uses

type Periods []Period

Package v039 imports 10 packages (graph) and is imported by 4 packages. Updated 2020-08-13. Refresh now. Tools for package owners.