Documentation ¶
Index ¶
- Constants
- func String(tx Tx) string
- type BondTx
- func (tx *BondTx) Amount() uint64
- func (tx *BondTx) EnsureValid() error
- func (tx *BondTx) Fee() uint64
- func (tx *BondTx) From() TxInput
- func (tx BondTx) MarshalAmino() ([]byte, error)
- func (tx BondTx) MarshalJSON() ([]byte, error)
- func (tx *BondTx) PublicKey() crypto.PublicKey
- func (tx *BondTx) Signers() []TxInput
- func (tx *BondTx) To() TxOutput
- func (tx *BondTx) Type() Type
- func (tx *BondTx) UnmarshalAmino(bs []byte) error
- func (tx *BondTx) UnmarshalJSON(bs []byte) error
- type CallTx
- func (tx *CallTx) Amount() uint64
- func (tx *CallTx) Callee() TxOutput
- func (tx *CallTx) Caller() TxInput
- func (tx *CallTx) CreateContract() bool
- func (tx *CallTx) Data() []byte
- func (tx *CallTx) EnsureValid() error
- func (tx *CallTx) Fee() uint64
- func (tx *CallTx) GasLimit() uint64
- func (tx CallTx) MarshalAmino() ([]byte, error)
- func (tx CallTx) MarshalJSON() ([]byte, error)
- func (tx *CallTx) Signers() []TxInput
- func (tx *CallTx) Type() Type
- func (tx *CallTx) UnmarshalAmino(bs []byte) error
- func (tx *CallTx) UnmarshalJSON(bs []byte) error
- type PermissionsTx
- func (tx *PermissionsTx) Amount() uint64
- func (tx *PermissionsTx) EnsureValid() error
- func (tx *PermissionsTx) Fee() uint64
- func (tx PermissionsTx) MarshalAmino() ([]byte, error)
- func (tx PermissionsTx) MarshalJSON() ([]byte, error)
- func (tx *PermissionsTx) Modified() TxOutput
- func (tx *PermissionsTx) Modifier() TxInput
- func (tx *PermissionsTx) Permissions() account.Permissions
- func (tx *PermissionsTx) Set() bool
- func (tx *PermissionsTx) Signers() []TxInput
- func (tx *PermissionsTx) Type() Type
- func (tx *PermissionsTx) UnmarshalAmino(bs []byte) error
- func (tx *PermissionsTx) UnmarshalJSON(bs []byte) error
- type SendTx
- func (tx *SendTx) AddReceiver(addr crypto.Address, amt uint64)
- func (tx *SendTx) AddSender(addr crypto.Address, seq, amt uint64)
- func (tx *SendTx) Amount() uint64
- func (tx *SendTx) EnsureValid() error
- func (tx *SendTx) Fee() uint64
- func (tx SendTx) MarshalAmino() ([]byte, error)
- func (tx SendTx) MarshalJSON() ([]byte, error)
- func (tx *SendTx) Receivers() []TxOutput
- func (tx *SendTx) Senders() []TxInput
- func (tx *SendTx) Signers() []TxInput
- func (tx *SendTx) Type() Type
- func (tx *SendTx) UnmarshalAmino(bs []byte) error
- func (tx *SendTx) UnmarshalJSON(bs []byte) error
- type SortitionTx
- func (tx *SortitionTx) Amount() uint64
- func (tx *SortitionTx) EnsureValid() error
- func (tx *SortitionTx) Fee() uint64
- func (tx *SortitionTx) Height() uint64
- func (tx *SortitionTx) Index() uint64
- func (tx SortitionTx) MarshalAmino() ([]byte, error)
- func (tx SortitionTx) MarshalJSON() ([]byte, error)
- func (tx *SortitionTx) Proof() []byte
- func (tx *SortitionTx) Signers() []TxInput
- func (tx *SortitionTx) Type() Type
- func (tx *SortitionTx) UnmarshalAmino(bs []byte) error
- func (tx *SortitionTx) UnmarshalJSON(bs []byte) error
- func (tx *SortitionTx) Validator() TxInput
- type Tx
- type TxInput
- type TxOutput
- type Type
- type UnbondTx
- func (tx *UnbondTx) Amount() uint64
- func (tx *UnbondTx) EnsureValid() error
- func (tx *UnbondTx) Fee() uint64
- func (tx *UnbondTx) From() TxInput
- func (tx UnbondTx) MarshalAmino() ([]byte, error)
- func (tx UnbondTx) MarshalJSON() ([]byte, error)
- func (tx *UnbondTx) Signers() []TxInput
- func (tx *UnbondTx) To() TxOutput
- func (tx *UnbondTx) Type() Type
- func (tx *UnbondTx) UnmarshalAmino(bs []byte) error
- func (tx *UnbondTx) UnmarshalJSON(bs []byte) error
Constants ¶
View Source
const ( TypeUnknown = Type(0x00) // Account transactions TypeSend = Type(0x01) TypeCall = Type(0x02) // Validation transactions TypeBond = Type(0x11) TypeUnbond = Type(0x12) TypeSortition = Type(0x13) // Admin transactions TypePermissions = Type(0x21) )
Types of Payload implementations
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BondTx ¶
type BondTx struct {
// contains filtered or unexported fields
}
func (*BondTx) EnsureValid ¶
func (BondTx) MarshalAmino ¶
func (BondTx) MarshalJSON ¶
func (*BondTx) UnmarshalAmino ¶
func (*BondTx) UnmarshalJSON ¶
type CallTx ¶
type CallTx struct {
// contains filtered or unexported fields
}
func (*CallTx) CreateContract ¶
func (*CallTx) EnsureValid ¶
func (CallTx) MarshalAmino ¶
func (CallTx) MarshalJSON ¶
func (*CallTx) UnmarshalAmino ¶
func (*CallTx) UnmarshalJSON ¶
type PermissionsTx ¶
type PermissionsTx struct {
// contains filtered or unexported fields
}
func NewPermissionsTx ¶
func NewPermissionsTx(modifier, modified crypto.Address, perm account.Permissions, set bool, seq, fee uint64) (*PermissionsTx, error)
func (*PermissionsTx) Amount ¶
func (tx *PermissionsTx) Amount() uint64
func (*PermissionsTx) EnsureValid ¶
func (tx *PermissionsTx) EnsureValid() error
func (*PermissionsTx) Fee ¶
func (tx *PermissionsTx) Fee() uint64
func (PermissionsTx) MarshalAmino ¶
func (tx PermissionsTx) MarshalAmino() ([]byte, error)
func (PermissionsTx) MarshalJSON ¶
func (tx PermissionsTx) MarshalJSON() ([]byte, error)
func (*PermissionsTx) Modified ¶
func (tx *PermissionsTx) Modified() TxOutput
func (*PermissionsTx) Modifier ¶
func (tx *PermissionsTx) Modifier() TxInput
func (*PermissionsTx) Permissions ¶
func (tx *PermissionsTx) Permissions() account.Permissions
func (*PermissionsTx) Set ¶
func (tx *PermissionsTx) Set() bool
func (*PermissionsTx) Signers ¶
func (tx *PermissionsTx) Signers() []TxInput
func (*PermissionsTx) Type ¶
func (tx *PermissionsTx) Type() Type
func (*PermissionsTx) UnmarshalAmino ¶
func (tx *PermissionsTx) UnmarshalAmino(bs []byte) error
func (*PermissionsTx) UnmarshalJSON ¶
func (tx *PermissionsTx) UnmarshalJSON(bs []byte) error
type SendTx ¶
type SendTx struct {
// contains filtered or unexported fields
}
func EmptySendTx ¶
func (*SendTx) EnsureValid ¶
func (SendTx) MarshalAmino ¶
func (SendTx) MarshalJSON ¶
func (*SendTx) UnmarshalAmino ¶
func (*SendTx) UnmarshalJSON ¶
type SortitionTx ¶
type SortitionTx struct {
// contains filtered or unexported fields
}
func NewSortitionTx ¶
func (*SortitionTx) Amount ¶
func (tx *SortitionTx) Amount() uint64
func (*SortitionTx) EnsureValid ¶
func (tx *SortitionTx) EnsureValid() error
func (*SortitionTx) Fee ¶
func (tx *SortitionTx) Fee() uint64
func (*SortitionTx) Height ¶
func (tx *SortitionTx) Height() uint64
func (*SortitionTx) Index ¶
func (tx *SortitionTx) Index() uint64
func (SortitionTx) MarshalAmino ¶
func (tx SortitionTx) MarshalAmino() ([]byte, error)
func (SortitionTx) MarshalJSON ¶
func (tx SortitionTx) MarshalJSON() ([]byte, error)
func (*SortitionTx) Proof ¶
func (tx *SortitionTx) Proof() []byte
func (*SortitionTx) Signers ¶
func (tx *SortitionTx) Signers() []TxInput
func (*SortitionTx) Type ¶
func (tx *SortitionTx) Type() Type
func (*SortitionTx) UnmarshalAmino ¶
func (tx *SortitionTx) UnmarshalAmino(bs []byte) error
func (*SortitionTx) UnmarshalJSON ¶
func (tx *SortitionTx) UnmarshalJSON(bs []byte) error
func (*SortitionTx) Validator ¶
func (tx *SortitionTx) Validator() TxInput
type Tx ¶
type Type ¶
type Type int8
func TxTypeFromString ¶
func (Type) MarshalText ¶
func (*Type) UnmarshalText ¶
type UnbondTx ¶
type UnbondTx struct {
// contains filtered or unexported fields
}
func NewUnbondTx ¶
func (*UnbondTx) EnsureValid ¶
func (UnbondTx) MarshalAmino ¶
func (UnbondTx) MarshalJSON ¶
func (*UnbondTx) UnmarshalAmino ¶
func (*UnbondTx) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.