Documentation ¶
Index ¶
- func GetSigners(ctx types.Context) []types.Account
- func NewAccountMapper(key sdk.StoreKey, proto sdk.Account) accountMapper
- func NewAnteHandler(accountMapper sdk.AccountMapper) sdk.AnteHandler
- func RegisterWireBaseAccount(cdc *wire.Codec)
- func WithSigners(ctx types.Context, accounts []types.Account) types.Context
- type BaseAccount
- func (acc BaseAccount) Get(key interface{}) (value interface{}, err error)
- func (acc BaseAccount) GetAddress() crypto.Address
- func (acc *BaseAccount) GetCoins() sdk.Coins
- func (acc BaseAccount) GetPubKey() crypto.PubKey
- func (acc *BaseAccount) GetSequence() int64
- func (acc *BaseAccount) Set(key interface{}, value interface{}) error
- func (acc *BaseAccount) SetAddress(addr crypto.Address) error
- func (acc *BaseAccount) SetCoins(coins sdk.Coins) error
- func (acc *BaseAccount) SetPubKey(pubKey crypto.PubKey) error
- func (acc *BaseAccount) SetSequence(seq int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountMapper ¶
NewAccountMapper returns a new sdk.AccountMapper that uses go-wire to (binary) encode and decode concrete sdk.Accounts.
func NewAnteHandler ¶
func NewAnteHandler(accountMapper sdk.AccountMapper) sdk.AnteHandler
func RegisterWireBaseAccount ¶
func RegisterWireBaseAccount(cdc *wire.Codec)
Types ¶
type BaseAccount ¶
type BaseAccount struct { Address crypto.Address `json:"address"` Coins sdk.Coins `json:"coins"` PubKey crypto.PubKey `json:"public_key"` Sequence int64 `json:"sequence"` }
BaseAccount - base account structure. Extend this by embedding this in your AppAccount. See the examples/basecoin/types/account.go for an example.
func NewBaseAccountWithAddress ¶
func NewBaseAccountWithAddress(addr crypto.Address) BaseAccount
func (BaseAccount) Get ¶
func (acc BaseAccount) Get(key interface{}) (value interface{}, err error)
Implements sdk.Account.
func (BaseAccount) GetAddress ¶
func (acc BaseAccount) GetAddress() crypto.Address
Implements sdk.Account.
func (BaseAccount) GetPubKey ¶
func (acc BaseAccount) GetPubKey() crypto.PubKey
Implements sdk.Account.
func (*BaseAccount) GetSequence ¶
func (acc *BaseAccount) GetSequence() int64
Implements sdk.Account.
func (*BaseAccount) Set ¶
func (acc *BaseAccount) Set(key interface{}, value interface{}) error
Implements sdk.Account.
func (*BaseAccount) SetAddress ¶
func (acc *BaseAccount) SetAddress(addr crypto.Address) error
Implements sdk.Account.
func (*BaseAccount) SetCoins ¶
func (acc *BaseAccount) SetCoins(coins sdk.Coins) error
Implements sdk.Account.
func (*BaseAccount) SetPubKey ¶
func (acc *BaseAccount) SetPubKey(pubKey crypto.PubKey) error
Implements sdk.Account.
func (*BaseAccount) SetSequence ¶
func (acc *BaseAccount) SetSequence(seq int64) error
Implements sdk.Account.
Click to show internal directories.
Click to hide internal directories.