exported

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 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 {
	GetAddress() types.AccAddress
	SetAddress(types.AccAddress) error // errors if already set.

	GetPubKey() crypto.PubKey // can return nil.
	SetPubKey(crypto.PubKey) error

	GetAccountNumber() uint64
	SetAccountNumber(uint64) error

	GetSequence() uint64
	SetSequence(uint64) error

	GetCoins() types.Coins
	SetCoins(types.Coins) error

	SetCodeHash(bz []byte)
	GetCodeHash() []byte

	SetContractType(contractType string) error
	GetContractType() string

	// Calculates the amount of coins that can be sent to other accounts given
	// the current time.
	SpendableCoins(blockTime time.Time) types.Coins
	// Ensure that account implements stringer
	String() string

	SetIsModule(flag bool) error
	GetIsModule() bool
}

type ModuleAccountI added in v1.5.70

type ModuleAccountI interface {
	Account

	GetName() string
	GetPermissions() []string
	HasPermission(string) bool
	SetPermissions([]string)
}

Jump to

Keyboard shortcuts

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