exported

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account interface {
	GetName() types.Name
	SetName(types.Name) error

	GetID() types.AccountID
	SetID(id types.AccountID) error

	GetAuth() types.AccAddress
	SetAuth(types.AccAddress) error

	GetAccountNumber() uint64
	SetAccountNumber(uint64) error

	// Ensure that account implements stringer
	String() string
}

Account is a interface for kuchain account and address, kuchain support both cosmos address and eos-likely account.

type AccountAuthKeeper

type AccountAuthKeeper interface {
	GetAuthSequence(sdk.Context, types.AccAddress) (uint64, uint64, error)
	IncAuthSequence(sdk.Context, types.AccAddress)
}

AccountAuthKeeper is interface for trx auth and account state.

type AccountStatKeeper

type AccountStatKeeper interface {
	GetAccount(sdk.Context, types.AccountID) Account // can return nil.
	IterateAccounts(ctx sdk.Context, cb func(account Account) (stop bool))

	GetNextAccountNumber(ctx sdk.Context) uint64
}

AccountStatKeeper is interface for other modules to get account state.

type AuthAccountKeeper

type AuthAccountKeeper interface {
	GetAccountsByAuth(sdk.Context, types.AccAddress) []string
	AddAccountByAuth(sdk.Context, types.AccAddress, string)
}

type GenesisAccount

type GenesisAccount interface {
	Account
	Validate() error
}

GenesisAccount defines a genesis account that embeds an Account with validation capabilities.

type GenesisAccounts

type GenesisAccounts []GenesisAccount

GenesisAccounts defines a slice of GenesisAccount objects

func (GenesisAccounts) Append

Append append a account to genesis

func (GenesisAccounts) Contains

func (ga GenesisAccounts) Contains(accName types.Name) bool

Contains returns true if the given address exists in a slice of GenesisAccount objects.

Jump to

Keyboard shortcuts

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