Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DistributionFee ¶
type DistributionFee struct { OwnerAddress sumuslib.PublicKey AmountMNT *amount.Amount AmountGOLD *amount.Amount }
DistributionFee transaction
func (*DistributionFee) Construct ¶
func (t *DistributionFee) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*DistributionFee) Parse ¶
func (t *DistributionFee) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
type ITransaction ¶
type ITransaction interface { Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error) Parse(r io.Reader) (*ParsedTransaction, error) }
ITransaction is generic interface
type ParsedTransaction ¶
type ParsedTransaction struct { // From address, 32b From sumuslib.PublicKey // Nonce Nonce uint64 // Digest, 32b Digest sumuslib.Digest // Signature, 64b Signature sumuslib.Signature }
ParsedTransaction data
type RegisterNode ¶
type RegisterNode struct {
NodeAddress string
}
RegisterNode transaction
func (*RegisterNode) Construct ¶
func (t *RegisterNode) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*RegisterNode) Parse ¶
func (t *RegisterNode) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
type RegisterSysWallet ¶
RegisterSysWallet transaction
func (*RegisterSysWallet) Construct ¶
func (t *RegisterSysWallet) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*RegisterSysWallet) Parse ¶
func (t *RegisterSysWallet) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
type SignedTransaction ¶
type SignedTransaction struct { // Digest, 32b Digest sumuslib.Digest // Data of the transaction Data []byte // Signature, 64b Signature sumuslib.Signature }
SignedTransaction data
type TransferAsset ¶
TransferAsset transaction
func (*TransferAsset) Construct ¶
func (t *TransferAsset) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*TransferAsset) Parse ¶
func (t *TransferAsset) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
type UnregisterNode ¶
type UnregisterNode struct { }
UnregisterNode transaction
func (*UnregisterNode) Construct ¶
func (t *UnregisterNode) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*UnregisterNode) Parse ¶
func (t *UnregisterNode) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
type UnregisterSysWallet ¶
UnregisterSysWallet transaction
func (*UnregisterSysWallet) Construct ¶
func (t *UnregisterSysWallet) Construct(signer *signer.Signer, nonce uint64) (*SignedTransaction, error)
Construct ...
func (*UnregisterSysWallet) Parse ¶
func (t *UnregisterSysWallet) Parse(r io.Reader) (*ParsedTransaction, error)
Parse ...
Click to show internal directories.
Click to hide internal directories.