Documentation ¶
Index ¶
- func GetAddressStateKey(address []byte) []byte
- type AddressState
- func (a *AddressState) AddBalance(balance uint64)
- func (a *AddressState) Address() []byte
- func (a *AddressState) Balance() uint64
- func (a *AddressState) Commit(b *bbolt.Bucket) error
- func (a *AddressState) DeSerialize(data []byte) error
- func (a *AddressState) DecreaseNonce()
- func (a *AddressState) Height() uint64
- func (a *AddressState) IncreaseNonce()
- func (a *AddressState) LockStakeBalance(balance uint64)
- func (a *AddressState) Nonce() uint64
- func (a *AddressState) PBData() *protos.AddressState
- func (a *AddressState) ReleaseStakeBalance(balance uint64)
- func (a *AddressState) Serialize() ([]byte, error)
- func (a *AddressState) SetBalance(balance uint64)
- func (a *AddressState) StakeBalance() uint64
- func (a *AddressState) SubtractBalance(balance uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressStateKey ¶
Types ¶
type AddressState ¶
type AddressState struct {
// contains filtered or unexported fields
}
func GetAddressState ¶
func NewAddressState ¶
func NewAddressState(address []byte, nonce uint64, balance uint64) *AddressState
func (*AddressState) AddBalance ¶
func (a *AddressState) AddBalance(balance uint64)
func (*AddressState) Address ¶
func (a *AddressState) Address() []byte
func (*AddressState) Balance ¶
func (a *AddressState) Balance() uint64
func (*AddressState) DeSerialize ¶
func (a *AddressState) DeSerialize(data []byte) error
func (*AddressState) DecreaseNonce ¶
func (a *AddressState) DecreaseNonce()
func (*AddressState) Height ¶
func (a *AddressState) Height() uint64
func (*AddressState) IncreaseNonce ¶
func (a *AddressState) IncreaseNonce()
func (*AddressState) LockStakeBalance ¶
func (a *AddressState) LockStakeBalance(balance uint64)
func (*AddressState) Nonce ¶
func (a *AddressState) Nonce() uint64
func (*AddressState) PBData ¶
func (a *AddressState) PBData() *protos.AddressState
func (*AddressState) ReleaseStakeBalance ¶
func (a *AddressState) ReleaseStakeBalance(balance uint64)
func (*AddressState) Serialize ¶
func (a *AddressState) Serialize() ([]byte, error)
func (*AddressState) SetBalance ¶
func (a *AddressState) SetBalance(balance uint64)
func (*AddressState) StakeBalance ¶
func (a *AddressState) StakeBalance() uint64
func (*AddressState) SubtractBalance ¶
func (a *AddressState) SubtractBalance(balance uint64)
Click to show internal directories.
Click to hide internal directories.