Documentation ¶
Index ¶
- Constants
- Variables
- type BasicCheckError
- type BondPayload
- func (p *BondPayload) BasicCheck() error
- func (p *BondPayload) Decode(r io.Reader) error
- func (p *BondPayload) Encode(w io.Writer) error
- func (p *BondPayload) Receiver() *crypto.Address
- func (p *BondPayload) SerializeSize() int
- func (p *BondPayload) Signer() crypto.Address
- func (p *BondPayload) String() string
- func (p *BondPayload) Type() Type
- func (p *BondPayload) Value() int64
- type Payload
- type SortitionPayload
- func (p *SortitionPayload) BasicCheck() error
- func (p *SortitionPayload) Decode(r io.Reader) error
- func (p *SortitionPayload) Encode(w io.Writer) error
- func (p *SortitionPayload) Receiver() *crypto.Address
- func (p *SortitionPayload) SerializeSize() int
- func (p *SortitionPayload) Signer() crypto.Address
- func (p *SortitionPayload) String() string
- func (p *SortitionPayload) Type() Type
- func (p *SortitionPayload) Value() int64
- type TransferPayload
- func (p *TransferPayload) BasicCheck() error
- func (p *TransferPayload) Decode(r io.Reader) error
- func (p *TransferPayload) Encode(w io.Writer) error
- func (p *TransferPayload) Receiver() *crypto.Address
- func (p *TransferPayload) SerializeSize() int
- func (p *TransferPayload) Signer() crypto.Address
- func (p *TransferPayload) String() string
- func (p *TransferPayload) Type() Type
- func (p *TransferPayload) Value() int64
- type Type
- type UnbondPayload
- func (p *UnbondPayload) BasicCheck() error
- func (p *UnbondPayload) Decode(r io.Reader) error
- func (p *UnbondPayload) Encode(w io.Writer) error
- func (p *UnbondPayload) Receiver() *crypto.Address
- func (p *UnbondPayload) SerializeSize() int
- func (p *UnbondPayload) Signer() crypto.Address
- func (p *UnbondPayload) String() string
- func (p *UnbondPayload) Type() Type
- func (p *UnbondPayload) Value() int64
- type WithdrawPayload
- func (p *WithdrawPayload) BasicCheck() error
- func (p *WithdrawPayload) Decode(r io.Reader) error
- func (p *WithdrawPayload) Encode(w io.Writer) error
- func (p *WithdrawPayload) Receiver() *crypto.Address
- func (p *WithdrawPayload) SerializeSize() int
- func (p *WithdrawPayload) Signer() crypto.Address
- func (p *WithdrawPayload) String() string
- func (p *WithdrawPayload) Type() Type
- func (p *WithdrawPayload) Value() int64
Constants ¶
Variables ¶
View Source
var ErrInvalidPublicKeySize = errors.New("invalid public key size")
ErrInvalidPublicKeySize is returned when the public key size is not valid.
Functions ¶
This section is empty.
Types ¶
type BasicCheckError ¶ added in v0.15.0
type BasicCheckError struct {
Reason string
}
BasicCheckError describes is returned when the basic check on the transaction's payload fails.
func (BasicCheckError) Error ¶ added in v0.15.0
func (e BasicCheckError) Error() string
type BondPayload ¶
type BondPayload struct { From crypto.Address To crypto.Address PublicKey *bls.PublicKey Stake int64 }
func (*BondPayload) BasicCheck ¶ added in v0.15.0
func (p *BondPayload) BasicCheck() error
func (*BondPayload) Receiver ¶
func (p *BondPayload) Receiver() *crypto.Address
func (*BondPayload) SerializeSize ¶
func (p *BondPayload) SerializeSize() int
func (*BondPayload) Signer ¶
func (p *BondPayload) Signer() crypto.Address
func (*BondPayload) String ¶ added in v0.15.0
func (p *BondPayload) String() string
func (*BondPayload) Type ¶
func (p *BondPayload) Type() Type
func (*BondPayload) Value ¶
func (p *BondPayload) Value() int64
type SortitionPayload ¶
func (*SortitionPayload) BasicCheck ¶ added in v0.15.0
func (p *SortitionPayload) BasicCheck() error
func (*SortitionPayload) Receiver ¶ added in v0.15.0
func (p *SortitionPayload) Receiver() *crypto.Address
func (*SortitionPayload) SerializeSize ¶
func (p *SortitionPayload) SerializeSize() int
func (*SortitionPayload) Signer ¶
func (p *SortitionPayload) Signer() crypto.Address
func (*SortitionPayload) String ¶ added in v0.15.0
func (p *SortitionPayload) String() string
func (*SortitionPayload) Type ¶
func (p *SortitionPayload) Type() Type
func (*SortitionPayload) Value ¶
func (p *SortitionPayload) Value() int64
type TransferPayload ¶ added in v0.11.0
func (*TransferPayload) BasicCheck ¶ added in v0.15.0
func (p *TransferPayload) BasicCheck() error
func (*TransferPayload) Decode ¶ added in v0.11.0
func (p *TransferPayload) Decode(r io.Reader) error
func (*TransferPayload) Encode ¶ added in v0.11.0
func (p *TransferPayload) Encode(w io.Writer) error
func (*TransferPayload) Receiver ¶ added in v0.11.0
func (p *TransferPayload) Receiver() *crypto.Address
func (*TransferPayload) SerializeSize ¶ added in v0.11.0
func (p *TransferPayload) SerializeSize() int
func (*TransferPayload) Signer ¶ added in v0.11.0
func (p *TransferPayload) Signer() crypto.Address
func (*TransferPayload) String ¶ added in v0.15.0
func (p *TransferPayload) String() string
func (*TransferPayload) Type ¶ added in v0.11.0
func (p *TransferPayload) Type() Type
func (*TransferPayload) Value ¶ added in v0.11.0
func (p *TransferPayload) Value() int64
type UnbondPayload ¶
func (*UnbondPayload) BasicCheck ¶ added in v0.15.0
func (p *UnbondPayload) BasicCheck() error
TODO: write test for me.
func (*UnbondPayload) Receiver ¶ added in v0.15.0
func (p *UnbondPayload) Receiver() *crypto.Address
func (*UnbondPayload) SerializeSize ¶
func (p *UnbondPayload) SerializeSize() int
func (*UnbondPayload) Signer ¶
func (p *UnbondPayload) Signer() crypto.Address
func (*UnbondPayload) String ¶ added in v0.15.0
func (p *UnbondPayload) String() string
func (*UnbondPayload) Type ¶
func (p *UnbondPayload) Type() Type
func (*UnbondPayload) Value ¶
func (p *UnbondPayload) Value() int64
type WithdrawPayload ¶
type WithdrawPayload struct { From crypto.Address // withdraw from validator address To crypto.Address // deposit to account address Amount int64 // amount to deposit }
func (*WithdrawPayload) BasicCheck ¶ added in v0.15.0
func (p *WithdrawPayload) BasicCheck() error
TODO: write test for me.
func (*WithdrawPayload) Receiver ¶ added in v0.15.0
func (p *WithdrawPayload) Receiver() *crypto.Address
func (*WithdrawPayload) SerializeSize ¶
func (p *WithdrawPayload) SerializeSize() int
func (*WithdrawPayload) Signer ¶
func (p *WithdrawPayload) Signer() crypto.Address
func (*WithdrawPayload) String ¶ added in v0.15.0
func (p *WithdrawPayload) String() string
func (*WithdrawPayload) Type ¶
func (p *WithdrawPayload) Type() Type
func (*WithdrawPayload) Value ¶
func (p *WithdrawPayload) Value() int64
Click to show internal directories.
Click to hide internal directories.