Documentation ¶
Index ¶
- type Account
- func (acc *Account) AddToBalance(amt uint64) error
- func (acc Account) Address() crypto.Address
- func (acc Account) Balance() uint64
- func (acc Account) Code() []byte
- func (acc *Account) Decode(bs []byte) error
- func (acc *Account) Encode() ([]byte, error)
- func (acc Account) HasPermissions(perm Permissions) bool
- func (acc *Account) IncSequence()
- func (acc *Account) Marshal() ([]byte, error)
- func (acc *Account) MarshalJSON() ([]byte, error)
- func (acc *Account) MarshalTo(data []byte) (int, error)
- func (acc Account) Permissions() Permissions
- func (acc Account) Sequence() uint64
- func (acc *Account) SetBalance(bal uint64) error
- func (acc *Account) SetCode(code []byte) error
- func (acc *Account) SetPermissions(perm Permissions) error
- func (acc *Account) SetSequence(seq uint64)
- func (acc *Account) Size() int
- func (acc Account) String() string
- func (acc *Account) SubtractFromBalance(amt uint64) error
- func (acc *Account) Unmarshal(bs []byte) error
- func (acc *Account) UnmarshalJSON(bs []byte) error
- func (acc *Account) UnsetPermissions(perm Permissions) error
- type Permissions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account structure
func AccountFromBytes ¶
func AccountFromJSON ¶
func (*Account) AddToBalance ¶
func (Account) HasPermissions ¶
func (acc Account) HasPermissions(perm Permissions) bool
func (*Account) IncSequence ¶
func (acc *Account) IncSequence()
func (*Account) MarshalJSON ¶
func (Account) Permissions ¶
func (acc Account) Permissions() Permissions
func (*Account) SetBalance ¶
func (*Account) SetPermissions ¶
func (acc *Account) SetPermissions(perm Permissions) error
func (*Account) SetSequence ¶
func (*Account) SubtractFromBalance ¶
func (*Account) UnmarshalJSON ¶
func (*Account) UnsetPermissions ¶
func (acc *Account) UnsetPermissions(perm Permissions) error
type Permissions ¶
type Permissions uint64
func (Permissions) IsSet ¶
func (p Permissions) IsSet(r Permissions) bool
func (Permissions) MarshalText ¶
func (p Permissions) MarshalText() ([]byte, error)
func (*Permissions) Set ¶
func (p *Permissions) Set(r Permissions)
func (Permissions) String ¶
func (p Permissions) String() string
func (*Permissions) UnmarshalText ¶
func (p *Permissions) UnmarshalText(text []byte) error
func (*Permissions) Unset ¶
func (p *Permissions) Unset(r Permissions)
Click to show internal directories.
Click to hide internal directories.