Documentation ¶
Index ¶
- Variables
- type BlockHeight
- func (bh *BlockHeight) DecodeMsg(r *msgp.Reader) error
- func (bh *BlockHeight) Decrease()
- func (bh BlockHeight) EncodeMsg(w *msgp.Writer) error
- func (bh *BlockHeight) Increase()
- func (bh BlockHeight) LockValue() LockValue
- func (bh BlockHeight) MarshalJSON() ([]byte, error)
- func (bh BlockHeight) Msgsize() int
- func (bh *BlockHeight) UnmarshalJSON(data []byte) error
- type BotID
- func (id *BotID) DecodeMsg(r *msgp.Reader) error
- func (id *BotID) Decrement()
- func (id BotID) EncodeMsg(w *msgp.Writer) error
- func (id *BotID) Increment()
- func (id BotID) MarshalJSON() ([]byte, error)
- func (id BotID) Msgsize() int
- func (id *BotID) SetUInt32(x uint32)
- func (id BotID) TfchainBotID() tftypes.BotID
- func (id BotID) UInt32() uint32
- func (id *BotID) UnmarshalJSON(data []byte) error
- type BotNameSortedSet
- type BotRecord
- func (z *BotRecord) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *BotRecord) EncodeMsg(en *msgp.Writer) (err error)
- func (z *BotRecord) Msgsize() (s int)
- func (record *BotRecord) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
- func (record *BotRecord) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
- func (record BotRecord) TfchainRecord() tftypes.BotRecord
- type CoinOutputID
- type CompactTimestamp
- func (cts *CompactTimestamp) DecodeMsg(r *msgp.Reader) error
- func (cts CompactTimestamp) EncodeMsg(w *msgp.Writer) error
- func (cts CompactTimestamp) MarshalJSON() ([]byte, error)
- func (cts CompactTimestamp) Msgsize() int
- func (cts CompactTimestamp) TfchainCompactTimestamp() tftypes.CompactTimestamp
- func (cts *CompactTimestamp) UnmarshalJSON(data []byte) error
- type ConsensusChangeID
- type Currency
- func (c *Currency) Add(o Currency) Currency
- func (c Currency) Bytes() []byte
- func (c *Currency) Cmp(o Currency) int
- func (c *Currency) DecodeMsg(r *msgp.Reader) error
- func (c Currency) EncodeMsg(w *msgp.Writer) error
- func (c *Currency) LoadBytes(b []byte) error
- func (c Currency) MarshalJSON() ([]byte, error)
- func (c Currency) Msgsize() int
- func (c *Currency) Sub(o Currency) Currency
- func (c *Currency) UnmarshalJSON(data []byte) error
- type DescriptionFilter
- type DescriptionFilterSet
- func (set *DescriptionFilterSet) Append(filter *DescriptionFilter) error
- func (set *DescriptionFilterSet) AppendPattern(pattern string) error
- func (set DescriptionFilterSet) Difference(other DescriptionFilterSet) (c DescriptionFilterSet)
- func (set DescriptionFilterSet) Len() int
- func (set DescriptionFilterSet) Less(i, j int) bool
- func (set *DescriptionFilterSet) LoadString(str string) error
- func (set DescriptionFilterSet) Match(str string) bool
- func (set DescriptionFilterSet) String() string
- func (set DescriptionFilterSet) Swap(i, j int)
- type ERC20Address
- func (addr *ERC20Address) DecodeMsg(r *msgp.Reader) error
- func (addr ERC20Address) EncodeMsg(w *msgp.Writer) error
- func (addr ERC20Address) MarshalJSON() ([]byte, error)
- func (addr ERC20Address) Msgsize() int
- func (addr ERC20Address) String() string
- func (addr ERC20Address) UnmarshalJSON(data []byte) error
- type EncodableWallet
- type EncodableWalletBalance
- type LockValue
- func (lv *LockValue) DecodeMsg(r *msgp.Reader) error
- func (lv LockValue) EncodeMsg(w *msgp.Writer) error
- func (lv *LockValue) LoadString(str string) error
- func (lv LockValue) MarshalSia(w io.Writer) error
- func (lv LockValue) Msgsize() int
- func (lv LockValue) String() string
- func (lv *LockValue) UnmarshalSia(r io.Reader) error
- type NetworkAddressSortedSet
- type NetworkStats
- func (z *NetworkStats) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *NetworkStats) EncodeMsg(en *msgp.Writer) (err error)
- func (z *NetworkStats) Msgsize() (s int)
- func (stats *NetworkStats) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
- func (stats *NetworkStats) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
- type PBNetworkStats
- func (*PBNetworkStats) Descriptor() ([]byte, []int)
- func (m *PBNetworkStats) GetBlockheight() uint64
- func (m *PBNetworkStats) GetCoinBurnTxCount() uint64
- func (m *PBNetworkStats) GetCoinCreationTxCount() uint64
- func (m *PBNetworkStats) GetCoinCreatorDefTxCount() uint64
- func (m *PBNetworkStats) GetCoinInputCount() uint64
- func (m *PBNetworkStats) GetCoinOutputCount() uint64
- func (m *PBNetworkStats) GetCoins() []byte
- func (m *PBNetworkStats) GetFoundationFeeCount() uint64
- func (m *PBNetworkStats) GetFoundationFees() []byte
- func (m *PBNetworkStats) GetLockedCoinOutputCount() uint64
- func (m *PBNetworkStats) GetLockedCoins() []byte
- func (m *PBNetworkStats) GetMinerPayoutCount() uint64
- func (m *PBNetworkStats) GetMinerPayouts() []byte
- func (m *PBNetworkStats) GetThreeBotRegistrationTransactionCount() uint64
- func (m *PBNetworkStats) GetThreeBotUpdateTransactionCount() uint64
- func (m *PBNetworkStats) GetTimestamp() uint64
- func (m *PBNetworkStats) GetTxCount() uint64
- func (m *PBNetworkStats) GetTxFeeCount() uint64
- func (m *PBNetworkStats) GetTxFees() []byte
- func (m *PBNetworkStats) GetValueTxCount() uint64
- func (m *PBNetworkStats) Marshal() (dAtA []byte, err error)
- func (m *PBNetworkStats) MarshalTo(dAtA []byte) (int, error)
- func (*PBNetworkStats) ProtoMessage()
- func (m *PBNetworkStats) Reset()
- func (m *PBNetworkStats) Size() (n int)
- func (m *PBNetworkStats) String() string
- func (m *PBNetworkStats) Unmarshal(dAtA []byte) error
- func (m *PBNetworkStats) XXX_DiscardUnknown()
- func (m *PBNetworkStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBNetworkStats) XXX_Merge(src proto.Message)
- func (m *PBNetworkStats) XXX_Size() int
- func (m *PBNetworkStats) XXX_Unmarshal(b []byte) error
- type PBThreeBotRecord
- func (*PBThreeBotRecord) Descriptor() ([]byte, []int)
- func (m *PBThreeBotRecord) GetExpirationTime() []byte
- func (m *PBThreeBotRecord) GetId() uint32
- func (m *PBThreeBotRecord) GetNames() []byte
- func (m *PBThreeBotRecord) GetNetworkAddresses() []byte
- func (m *PBThreeBotRecord) GetPublicKey() []byte
- func (m *PBThreeBotRecord) Marshal() (dAtA []byte, err error)
- func (m *PBThreeBotRecord) MarshalTo(dAtA []byte) (int, error)
- func (*PBThreeBotRecord) ProtoMessage()
- func (m *PBThreeBotRecord) Reset()
- func (m *PBThreeBotRecord) Size() (n int)
- func (m *PBThreeBotRecord) String() string
- func (m *PBThreeBotRecord) Unmarshal(dAtA []byte) error
- func (m *PBThreeBotRecord) XXX_DiscardUnknown()
- func (m *PBThreeBotRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBThreeBotRecord) XXX_Merge(src proto.Message)
- func (m *PBThreeBotRecord) XXX_Size() int
- func (m *PBThreeBotRecord) XXX_Unmarshal(b []byte) error
- type PBWallet
- func (*PBWallet) Descriptor() ([]byte, []int)
- func (m *PBWallet) GetBalanceLocked() *PBWalletLockedBalance
- func (m *PBWallet) GetBalanceUnlocked() *PBWalletUnlockedBalance
- func (m *PBWallet) GetMultisignAddresses() [][]byte
- func (m *PBWallet) GetMultisignData() *PBWalletMultiSignData
- func (m *PBWallet) Marshal() (dAtA []byte, err error)
- func (m *PBWallet) MarshalTo(dAtA []byte) (int, error)
- func (*PBWallet) ProtoMessage()
- func (m *PBWallet) Reset()
- func (m *PBWallet) Size() (n int)
- func (m *PBWallet) String() string
- func (m *PBWallet) Unmarshal(dAtA []byte) error
- func (m *PBWallet) XXX_DiscardUnknown()
- func (m *PBWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWallet) XXX_Merge(src proto.Message)
- func (m *PBWallet) XXX_Size() int
- func (m *PBWallet) XXX_Unmarshal(b []byte) error
- type PBWalletLockedBalance
- func (*PBWalletLockedBalance) Descriptor() ([]byte, []int)
- func (m *PBWalletLockedBalance) GetOutputs() map[string]*PBWalletLockedOutput
- func (m *PBWalletLockedBalance) GetTotal() []byte
- func (m *PBWalletLockedBalance) Marshal() (dAtA []byte, err error)
- func (m *PBWalletLockedBalance) MarshalTo(dAtA []byte) (int, error)
- func (*PBWalletLockedBalance) ProtoMessage()
- func (m *PBWalletLockedBalance) Reset()
- func (m *PBWalletLockedBalance) Size() (n int)
- func (m *PBWalletLockedBalance) String() string
- func (m *PBWalletLockedBalance) Unmarshal(dAtA []byte) error
- func (m *PBWalletLockedBalance) XXX_DiscardUnknown()
- func (m *PBWalletLockedBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWalletLockedBalance) XXX_Merge(src proto.Message)
- func (m *PBWalletLockedBalance) XXX_Size() int
- func (m *PBWalletLockedBalance) XXX_Unmarshal(b []byte) error
- type PBWalletLockedOutput
- func (*PBWalletLockedOutput) Descriptor() ([]byte, []int)
- func (m *PBWalletLockedOutput) GetAmount() []byte
- func (m *PBWalletLockedOutput) GetDescription() string
- func (m *PBWalletLockedOutput) GetLockedUntil() uint64
- func (m *PBWalletLockedOutput) Marshal() (dAtA []byte, err error)
- func (m *PBWalletLockedOutput) MarshalTo(dAtA []byte) (int, error)
- func (*PBWalletLockedOutput) ProtoMessage()
- func (m *PBWalletLockedOutput) Reset()
- func (m *PBWalletLockedOutput) Size() (n int)
- func (m *PBWalletLockedOutput) String() string
- func (m *PBWalletLockedOutput) Unmarshal(dAtA []byte) error
- func (m *PBWalletLockedOutput) XXX_DiscardUnknown()
- func (m *PBWalletLockedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWalletLockedOutput) XXX_Merge(src proto.Message)
- func (m *PBWalletLockedOutput) XXX_Size() int
- func (m *PBWalletLockedOutput) XXX_Unmarshal(b []byte) error
- type PBWalletMultiSignData
- func (*PBWalletMultiSignData) Descriptor() ([]byte, []int)
- func (m *PBWalletMultiSignData) GetOwners() [][]byte
- func (m *PBWalletMultiSignData) GetSignaturesRequired() uint64
- func (m *PBWalletMultiSignData) Marshal() (dAtA []byte, err error)
- func (m *PBWalletMultiSignData) MarshalTo(dAtA []byte) (int, error)
- func (*PBWalletMultiSignData) ProtoMessage()
- func (m *PBWalletMultiSignData) Reset()
- func (m *PBWalletMultiSignData) Size() (n int)
- func (m *PBWalletMultiSignData) String() string
- func (m *PBWalletMultiSignData) Unmarshal(dAtA []byte) error
- func (m *PBWalletMultiSignData) XXX_DiscardUnknown()
- func (m *PBWalletMultiSignData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWalletMultiSignData) XXX_Merge(src proto.Message)
- func (m *PBWalletMultiSignData) XXX_Size() int
- func (m *PBWalletMultiSignData) XXX_Unmarshal(b []byte) error
- type PBWalletUnlockedBalance
- func (*PBWalletUnlockedBalance) Descriptor() ([]byte, []int)
- func (m *PBWalletUnlockedBalance) GetOutputs() map[string]*PBWalletUnlockedOutput
- func (m *PBWalletUnlockedBalance) GetTotal() []byte
- func (m *PBWalletUnlockedBalance) Marshal() (dAtA []byte, err error)
- func (m *PBWalletUnlockedBalance) MarshalTo(dAtA []byte) (int, error)
- func (*PBWalletUnlockedBalance) ProtoMessage()
- func (m *PBWalletUnlockedBalance) Reset()
- func (m *PBWalletUnlockedBalance) Size() (n int)
- func (m *PBWalletUnlockedBalance) String() string
- func (m *PBWalletUnlockedBalance) Unmarshal(dAtA []byte) error
- func (m *PBWalletUnlockedBalance) XXX_DiscardUnknown()
- func (m *PBWalletUnlockedBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWalletUnlockedBalance) XXX_Merge(src proto.Message)
- func (m *PBWalletUnlockedBalance) XXX_Size() int
- func (m *PBWalletUnlockedBalance) XXX_Unmarshal(b []byte) error
- type PBWalletUnlockedOutput
- func (*PBWalletUnlockedOutput) Descriptor() ([]byte, []int)
- func (m *PBWalletUnlockedOutput) GetAmount() []byte
- func (m *PBWalletUnlockedOutput) GetDescription() string
- func (m *PBWalletUnlockedOutput) Marshal() (dAtA []byte, err error)
- func (m *PBWalletUnlockedOutput) MarshalTo(dAtA []byte) (int, error)
- func (*PBWalletUnlockedOutput) ProtoMessage()
- func (m *PBWalletUnlockedOutput) Reset()
- func (m *PBWalletUnlockedOutput) Size() (n int)
- func (m *PBWalletUnlockedOutput) String() string
- func (m *PBWalletUnlockedOutput) Unmarshal(dAtA []byte) error
- func (m *PBWalletUnlockedOutput) XXX_DiscardUnknown()
- func (m *PBWalletUnlockedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PBWalletUnlockedOutput) XXX_Merge(src proto.Message)
- func (m *PBWalletUnlockedOutput) XXX_Size() int
- func (m *PBWalletUnlockedOutput) XXX_Unmarshal(b []byte) error
- type PublicKey
- type Timestamp
- type UnlockHash
- type Wallet
- func (wallet *Wallet) AddUniqueMultisignAddress(address UnlockHash) bool
- func (wallet *Wallet) DecodeMsg(r *msgp.Reader) error
- func (wallet *Wallet) EncodeMsg(w *msgp.Writer) error
- func (wallet *Wallet) IsNil() bool
- func (wallet Wallet) MarshalJSON() ([]byte, error)
- func (wallet *Wallet) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
- func (wallet *Wallet) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
- func (wallet *Wallet) UnmarshalJSON(data []byte) error
- type WalletBalance
- type WalletLockedBalance
- func (wlb *WalletLockedBalance) AddLockedCoinOutput(id CoinOutputID, co WalletLockedOutput) error
- func (z *WalletLockedBalance) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *WalletLockedBalance) EncodeMsg(en *msgp.Writer) (err error)
- func (z *WalletLockedBalance) Msgsize() (s int)
- func (wlb *WalletLockedBalance) SubLockedCoinOutput(id CoinOutputID) error
- type WalletLockedOutput
- type WalletLockedOutputMap
- type WalletMultiSignData
- type WalletUnlockedBalance
- func (wub *WalletUnlockedBalance) AddUnlockedCoinOutput(id CoinOutputID, co WalletUnlockedOutput, addAmount bool) error
- func (z *WalletUnlockedBalance) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *WalletUnlockedBalance) EncodeMsg(en *msgp.Writer) (err error)
- func (z *WalletUnlockedBalance) Msgsize() (s int)
- func (wub *WalletUnlockedBalance) SubUnlockedCoinOutput(id CoinOutputID, amount Currency, subAmount bool) error
- type WalletUnlockedOutput
- type WalletUnlockedOutputMap
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type BlockHeight ¶
type BlockHeight struct {
types.BlockHeight
}
BlockHeight overwrites the Rivine BlockHeight type, encapsulating it internally for practical reasons.
func AsBlockHeight ¶
func AsBlockHeight(c types.BlockHeight) BlockHeight
AsBlockHeight turns a Rivine-typed BlockHeight into the BlockHeight overwritten type used in this project.
func (*BlockHeight) DecodeMsg ¶
func (bh *BlockHeight) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (*BlockHeight) Decrease ¶
func (bh *BlockHeight) Decrease()
Decrease this block height by 1, causing a panic in case the block height is 0 already.
func (BlockHeight) EncodeMsg ¶
func (bh BlockHeight) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (BlockHeight) LockValue ¶
func (bh BlockHeight) LockValue() LockValue
LockValue returns this block height as a LockValue.
func (BlockHeight) MarshalJSON ¶
func (bh BlockHeight) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (BlockHeight) Msgsize ¶
func (bh BlockHeight) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*BlockHeight) UnmarshalJSON ¶
func (bh *BlockHeight) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type BotID ¶ added in v0.3.0
BotID overwrites the Tfchain BotID type, encapsulating it internally for practical reasons.
func NewBotIDFromTfchainBotID ¶ added in v0.3.0
NewBotIDFromTfchainBotID returns a tfchain-typed BotID into the BotID overwritten type used in this project.
func (BotID) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements json.Marshaler.MarshalJSON
func (BotID) Msgsize ¶ added in v0.3.0
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*BotID) SetUInt32 ¶ added in v0.3.0
SetUInt32 sets the internal value of this BotID equal to the given uint32-typed value.
func (BotID) TfchainBotID ¶ added in v0.3.0
TfchainBotID returns the tfchain-typed BotID, embedded by this type.
func (*BotID) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type BotNameSortedSet ¶ added in v0.3.0
type BotNameSortedSet struct {
tftypes.BotNameSortedSet
}
BotNameSortedSet overwrites the Tfchain BotNameSortedSet type, encapsulating it internally for practical reasons.
func NewBotNameSortedSetFromTfchainBotNameSortedSet ¶ added in v0.3.0
func NewBotNameSortedSetFromTfchainBotNameSortedSet(bnss tftypes.BotNameSortedSet) BotNameSortedSet
NewBotNameSortedSetFromTfchainBotNameSortedSet returns a tfchain-typed BotNameSortedSet into the BotNameSortedSet overwritten type used in this project.
func (*BotNameSortedSet) DecodeMsg ¶ added in v0.3.0
func (bnss *BotNameSortedSet) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (BotNameSortedSet) EncodeMsg ¶ added in v0.3.0
func (bnss BotNameSortedSet) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (BotNameSortedSet) Msgsize ¶ added in v0.3.0
func (bnss BotNameSortedSet) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (BotNameSortedSet) TfchainBotNameSortedSet ¶ added in v0.3.0
func (bnss BotNameSortedSet) TfchainBotNameSortedSet() tftypes.BotNameSortedSet
TfchainBotNameSortedSet returns the tfchain-typed BotNameSortedSet, embedded by this type.
type BotRecord ¶ added in v0.3.0
type BotRecord struct { ID BotID `json:"id" msg:"i"` Addresses NetworkAddressSortedSet `json:"addresses,omitempty" msg:"a"` Names BotNameSortedSet `json:"names,omitempty" msg:"n"` PublicKey PublicKey `json:"publickey" msg:"k"` Expiration CompactTimestamp `json:"expiration" msg:"e"` }
BotRecord wraps around the regular (tfchain) bot record, as to be able to define the custom ProtoBuf logic
func BotRecordFromTfchainRecord ¶ added in v0.3.0
BotRecordFromTfchainRecord creates a BotRecord using a tf-typed bot record as source.
func (*BotRecord) Msgsize ¶ added in v0.3.0
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*BotRecord) ProtocolBufferMarshal ¶ added in v0.3.0
func (record *BotRecord) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
ProtocolBufferMarshal implements encoding.ProtocolBufferMarshaler.ProtocolBufferMarshal using the generated code based on the PBNetworkStats Message defined in ./types.proto
func (*BotRecord) ProtocolBufferUnmarshal ¶ added in v0.3.0
func (record *BotRecord) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
ProtocolBufferUnmarshal implements encoding.ProtocolBufferUnmarshaler.ProtocolBufferUnmarshal using the generated code based on the PBNetworkStats Message defined in ./types.proto
func (BotRecord) TfchainRecord ¶ added in v0.3.0
TfchainRecord creates a tf-typed BotRecord using this bot record as source.
type CoinOutputID ¶
type CoinOutputID struct {
types.CoinOutputID
}
CoinOutputID overwrites the Rivine CoinOutputID type, encapsulating it internally for practical reasons.
func AsCoinOutputID ¶
func AsCoinOutputID(id types.CoinOutputID) CoinOutputID
AsCoinOutputID returns a Rivine-typed CoinOutputID into the CoinOutputID overwritten type used in this project.
func (*CoinOutputID) DecodeMsg ¶
func (id *CoinOutputID) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (CoinOutputID) EncodeMsg ¶
func (id CoinOutputID) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (CoinOutputID) MarshalJSON ¶
func (id CoinOutputID) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (CoinOutputID) Msgsize ¶
func (id CoinOutputID) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*CoinOutputID) UnmarshalJSON ¶
func (id *CoinOutputID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type CompactTimestamp ¶ added in v0.3.0
type CompactTimestamp struct {
tftypes.CompactTimestamp
}
CompactTimestamp overwrites the Tfchain CompactTimestamp type, encapsulating it internally for practical reasons.
func NewCompactTimeStampFromTfchainCompactTimestamp ¶ added in v0.3.0
func NewCompactTimeStampFromTfchainCompactTimestamp(cts tftypes.CompactTimestamp) CompactTimestamp
NewCompactTimeStampFromTfchainCompactTimestamp returns a tfchain-typed CompactTimestamp into the CompactTimestamp overwritten type used in this project.
func (*CompactTimestamp) DecodeMsg ¶ added in v0.3.0
func (cts *CompactTimestamp) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (CompactTimestamp) EncodeMsg ¶ added in v0.3.0
func (cts CompactTimestamp) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (CompactTimestamp) MarshalJSON ¶ added in v0.3.0
func (cts CompactTimestamp) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (CompactTimestamp) Msgsize ¶ added in v0.3.0
func (cts CompactTimestamp) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (CompactTimestamp) TfchainCompactTimestamp ¶ added in v0.3.0
func (cts CompactTimestamp) TfchainCompactTimestamp() tftypes.CompactTimestamp
TfchainCompactTimestamp returns the tfchain-typed CompactTimestamp, embedded by this type.
func (*CompactTimestamp) UnmarshalJSON ¶ added in v0.3.0
func (cts *CompactTimestamp) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type ConsensusChangeID ¶
type ConsensusChangeID struct {
modules.ConsensusChangeID
}
ConsensusChangeID overwrites the Rivine ConsensusChangeID type, encapsulating it internally for practical reasons.
func AsConsensusChangeID ¶
func AsConsensusChangeID(id modules.ConsensusChangeID) ConsensusChangeID
AsConsensusChangeID returns a Rivine-typed ConsensusChangeID into the ConsensusChangeID overwritten type used in this project.
func (*ConsensusChangeID) DecodeMsg ¶
func (id *ConsensusChangeID) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (ConsensusChangeID) EncodeMsg ¶
func (id ConsensusChangeID) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (ConsensusChangeID) MarshalJSON ¶
func (id ConsensusChangeID) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (ConsensusChangeID) Msgsize ¶
func (id ConsensusChangeID) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ConsensusChangeID) UnmarshalJSON ¶
func (id *ConsensusChangeID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type Currency ¶
Currency overwrites the Rivine Currency type, encapsulating it internally for practical reasons.
func AsCurrency ¶
AsCurrency returns a Rivine-typed Currency into the Currency overwritten type used in this project.
func (*Currency) Add ¶
Add adds two currencies together, returning this Currency instance, containing the sum of the two currencies as value.
func (Currency) Bytes ¶ added in v0.2.0
Bytes returns this currency as a Big-Endian order byte slice.
func (*Currency) Cmp ¶
Cmp compares two currencies, returning
-1 if this currency is less than the other 0 if the two currencies are equal 1 if this currency is greater than the other
func (*Currency) LoadBytes ¶ added in v0.2.0
LoadBytes loads this Currency from a Big-Endian order byte slice.
func (Currency) MarshalJSON ¶
MarshalJSON implements json.Marshaler.MarshalJSON
func (Currency) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Currency) Sub ¶
Sub subtracts two currencies from one another, returning this Currency instance, containing the difference of the two currencies as value.
func (*Currency) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type DescriptionFilter ¶ added in v0.2.0
type DescriptionFilter struct {
// contains filtered or unexported fields
}
DescriptionFilter is a filter that utilizes glob string pattern matching, such that it will Match some descriptions, while not Match others.
func NewDescriptionFilter ¶ added in v0.2.0
func NewDescriptionFilter(pattern string) (*DescriptionFilter, error)
NewDescriptionFilter creates a new description filter using the given glob pattern.
func (*DescriptionFilter) Match ¶ added in v0.2.0
func (df *DescriptionFilter) Match(str string) bool
Match returns true if the given string matches the DescriptionFilter.
func (*DescriptionFilter) String ¶ added in v0.2.0
func (df *DescriptionFilter) String() string
String returns the pattern used for this DescriptionFilter.
type DescriptionFilterSet ¶ added in v0.2.0
type DescriptionFilterSet struct {
// contains filtered or unexported fields
}
DescriptionFilterSet is a set of description filters. It can be used to match a string for any of the description filters part of this set.
func NewDescriptionFilterSet ¶ added in v0.2.0
func NewDescriptionFilterSet(patterns ...string) (set DescriptionFilterSet, err error)
NewDescriptionFilterSet returns a new empty DescriptionFilterSet.
func (*DescriptionFilterSet) Append ¶ added in v0.2.0
func (set *DescriptionFilterSet) Append(filter *DescriptionFilter) error
Append appends a DescriptionFilter to this set.
func (*DescriptionFilterSet) AppendPattern ¶ added in v0.2.0
func (set *DescriptionFilterSet) AppendPattern(pattern string) error
AppendPattern appends a given pattern as a DescriptionFilter to this set.
func (DescriptionFilterSet) Difference ¶ added in v0.2.0
func (set DescriptionFilterSet) Difference(other DescriptionFilterSet) (c DescriptionFilterSet)
Difference returns the difference of this set and the other set, meaning it will return a new set containing all filters which are in this set that are not in the other set.
func (DescriptionFilterSet) Len ¶ added in v0.2.0
func (set DescriptionFilterSet) Len() int
Length returns the length of the module identifier set.
func (DescriptionFilterSet) Less ¶ added in v0.2.0
func (set DescriptionFilterSet) Less(i, j int) bool
Less implemenets sort.Interface.Less
func (*DescriptionFilterSet) LoadString ¶ added in v0.2.0
func (set *DescriptionFilterSet) LoadString(str string) error
LoadString implements StringLoader.LoadString, allowing you to set the internal values of DescriptionFilterSet based on an earlier stringified DescriptionFilterSet.
func (DescriptionFilterSet) Match ¶ added in v0.2.0
func (set DescriptionFilterSet) Match(str string) bool
Match returns true if the given string matches any of the description filters part of this DescriptionFilterSlice.
func (DescriptionFilterSet) String ¶ added in v0.2.0
func (set DescriptionFilterSet) String() string
String returns the patterns used for this DescriptionFilterSlice as a CSV record.
func (DescriptionFilterSet) Swap ¶ added in v0.2.0
func (set DescriptionFilterSet) Swap(i, j int)
Swap implemenets sort.Interface.Swap
type ERC20Address ¶ added in v0.3.0
type ERC20Address struct {
tftypes.ERC20Address
}
ERC20Address overwrites the TFChain ERC20Address type, encapsulating it internally for practical reasons.
func AsERC20Address ¶ added in v0.3.0
func AsERC20Address(uh tftypes.ERC20Address) ERC20Address
AsERC20Address returns a TFChain-typed ERC20Address into the ERC20Address overwritten type used in this project.
func (*ERC20Address) DecodeMsg ¶ added in v0.3.0
func (addr *ERC20Address) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (ERC20Address) EncodeMsg ¶ added in v0.3.0
func (addr ERC20Address) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (ERC20Address) MarshalJSON ¶ added in v0.3.0
func (addr ERC20Address) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (ERC20Address) Msgsize ¶ added in v0.3.0
func (addr ERC20Address) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (ERC20Address) String ¶ added in v0.3.0
func (addr ERC20Address) String() string
String implements fmt.Stringer.String
func (ERC20Address) UnmarshalJSON ¶ added in v0.3.0
func (addr ERC20Address) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type EncodableWallet ¶ added in v0.2.0
type EncodableWallet struct { // Balance is optional and defines the balance the wallet currently has. Balance *EncodableWalletBalance `json:"balance,omitempty" msg:"b,omitempty"` // MultiSignAddresses is optional and is only defined if the wallet is part of // one or multiple multisign wallets. MultiSignAddresses []UnlockHash `json:"multisignAddresses,omitempty" msg:"ma,omitempty"` // MultiSignData is optional and is only defined if the wallet is a multisign wallet. MultiSignData *WalletMultiSignData `json:"multisign,omitempty" msg:"m,omitempty"` }
EncodableWallet is the structure used to encode (and decode) a Wallet. Golang encoding packages cannot omit empty complex types (maps and structures) without them being pointers, hence this structure is used. Pointers on properties for runtime structures makes things however tricky, so the user will work with the actual Wallet instead, not via this structure.
func (*EncodableWallet) DecodeMsg ¶ added in v0.2.0
func (z *EncodableWallet) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*EncodableWallet) EncodeMsg ¶ added in v0.2.0
func (z *EncodableWallet) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*EncodableWallet) Msgsize ¶ added in v0.2.0
func (z *EncodableWallet) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type EncodableWalletBalance ¶ added in v0.2.0
type EncodableWalletBalance struct { Unlocked *WalletUnlockedBalance `json:"unlocked,omitempty" msg:"u,omitempty"` Locked *WalletLockedBalance `json:"locked,omitempty" msg:"l,omitempty"` }
EncodableWalletBalance is the structure used to encode (and decode) a WalletBalance. Golang encoding packages cannot omit empty complex types (structures) without them being pointers, hence this structure is used. Pointers on properties for runtime structures makes things however tricky, so the user will work with the actual WalletBalance instead, not via this structure.
func (*EncodableWalletBalance) DecodeMsg ¶ added in v0.2.0
func (z *EncodableWalletBalance) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*EncodableWalletBalance) EncodeMsg ¶ added in v0.2.0
func (z *EncodableWalletBalance) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*EncodableWalletBalance) Msgsize ¶ added in v0.2.0
func (z *EncodableWalletBalance) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type LockValue ¶
type LockValue uint64
LockValue represents a LockValue, representing either a timestamp or a block height
func (*LockValue) LoadString ¶
LoadString implements StringLoader.LoadString
func (LockValue) MarshalSia ¶ added in v0.2.0
MarshalSia implements rivine/siabin.MarshalSia
type NetworkAddressSortedSet ¶ added in v0.3.0
type NetworkAddressSortedSet struct {
tftypes.NetworkAddressSortedSet
}
NetworkAddressSortedSet overwrites the Tfchain NetworkAddressSortedSet type, encapsulating it internally for practical reasons.
func NewNetworkAddressSortedSetFromTfchainNetworkAddressSortedSet ¶ added in v0.3.0
func NewNetworkAddressSortedSetFromTfchainNetworkAddressSortedSet(nass tftypes.NetworkAddressSortedSet) NetworkAddressSortedSet
NewNetworkAddressSortedSetFromTfchainNetworkAddressSortedSet returns a tfchain-typed NetworkAddressSortedSet into the NetworkAddressSortedSet overwritten type used in this project.
func (*NetworkAddressSortedSet) DecodeMsg ¶ added in v0.3.0
func (nass *NetworkAddressSortedSet) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (NetworkAddressSortedSet) EncodeMsg ¶ added in v0.3.0
func (nass NetworkAddressSortedSet) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (NetworkAddressSortedSet) Msgsize ¶ added in v0.3.0
func (nass NetworkAddressSortedSet) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (NetworkAddressSortedSet) TfchainNetworkAddressSortedSet ¶ added in v0.3.0
func (nass NetworkAddressSortedSet) TfchainNetworkAddressSortedSet() tftypes.NetworkAddressSortedSet
TfchainNetworkAddressSortedSet returns the tfchain-typed NetworkAddressSortedSet, embedded by this type.
type NetworkStats ¶
type NetworkStats struct { Timestamp Timestamp `json:"timestamp" msg:"cts"` BlockHeight BlockHeight `json:"blockHeight" msg:"cbh"` TransactionCount uint64 `json:"txCount" msg:"txc"` CoinCreationTransactionCount uint64 `json:"coinCreationTxCount" msg:"cctxc"` CoinBurnTransactionCount uint64 `json:"coinBurnTxCount" msg:"cbtxc"` CoinCreatorDefinitionTransactionCount uint64 `json:"coinCreatorDefinitionTxCount" msg:"ccdtxc"` ThreeBotRegistrationTransactionCount uint64 `json:"threeBotRegistrationTransactionCount" msg:"tbrtxc"` ThreeBotUpdateTransactionCount uint64 `json:"threeBotUpdateTransactionCount" msg:"tbutxc"` ValueTransactionCount uint64 `json:"valueTxCount" msg:"vtxc"` CoinOutputCount uint64 `json:"coinOutputCount" msg:"coc"` LockedCoinOutputCount uint64 `json:"lockedCoinOutputCount" msg:"lcoc"` CoinInputCount uint64 `json:"coinInputCount" msg:"cic"` MinerPayoutCount uint64 `json:"minerPayoutCount" msg:"mpc"` TransactionFeeCount uint64 `json:"txFeeCount" msg:"txfc"` FoundationFeeCount uint64 `json:"foundationFeeCount" msg:"ffc"` MinerPayouts Currency `json:"minerPayouts" msg:"mpt"` TransactionFees Currency `json:"txFees" msg:"txft"` FoundationFees Currency `json:"foundationFees" msg:"fft"` Coins Currency `json:"coins" msg:"ct"` LockedCoins Currency `json:"lockedCoins" msg:"lct"` }
NetworkStats collects the global statistics for the blockchain.
func NewNetworkStats ¶
func NewNetworkStats() NetworkStats
NewNetworkStats creates a nil (fresh) network state.
func (*NetworkStats) DecodeMsg ¶
func (z *NetworkStats) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*NetworkStats) EncodeMsg ¶
func (z *NetworkStats) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*NetworkStats) Msgsize ¶
func (z *NetworkStats) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*NetworkStats) ProtocolBufferMarshal ¶ added in v0.2.0
func (stats *NetworkStats) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
ProtocolBufferMarshal implements encoding.ProtocolBufferMarshaler.ProtocolBufferMarshal using the generated code based on the PBNetworkStats Message defined in ./types.proto
func (*NetworkStats) ProtocolBufferUnmarshal ¶ added in v0.2.0
func (stats *NetworkStats) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
ProtocolBufferUnmarshal implements encoding.ProtocolBufferUnmarshaler.ProtocolBufferUnmarshal using the generated code based on the PBNetworkStats Message defined in ./types.proto
type PBNetworkStats ¶ added in v0.2.0
type PBNetworkStats struct { Timestamp uint64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp"` Blockheight uint64 `protobuf:"varint,2,req,name=blockheight" json:"blockheight"` TxCount uint64 `protobuf:"varint,3,req,name=tx_count,json=txCount" json:"tx_count"` CoinCreationTxCount uint64 `protobuf:"varint,4,req,name=coin_creation_tx_count,json=coinCreationTxCount" json:"coin_creation_tx_count"` CoinCreatorDefTxCount uint64 `protobuf:"varint,5,req,name=coin_creator_def_tx_count,json=coinCreatorDefTxCount" json:"coin_creator_def_tx_count"` ValueTxCount uint64 `protobuf:"varint,6,req,name=value_tx_count,json=valueTxCount" json:"value_tx_count"` CoinOutputCount uint64 `protobuf:"varint,7,req,name=coin_output_count,json=coinOutputCount" json:"coin_output_count"` LockedCoinOutputCount uint64 `protobuf:"varint,8,req,name=locked_coin_output_count,json=lockedCoinOutputCount" json:"locked_coin_output_count"` CoinInputCount uint64 `protobuf:"varint,9,req,name=coin_input_count,json=coinInputCount" json:"coin_input_count"` MinerPayoutCount uint64 `protobuf:"varint,10,req,name=miner_payout_count,json=minerPayoutCount" json:"miner_payout_count"` TxFeeCount uint64 `protobuf:"varint,11,req,name=tx_fee_count,json=txFeeCount" json:"tx_fee_count"` MinerPayouts []byte `protobuf:"bytes,12,req,name=miner_payouts,json=minerPayouts" json:"miner_payouts"` TxFees []byte `protobuf:"bytes,13,req,name=tx_fees,json=txFees" json:"tx_fees"` Coins []byte `protobuf:"bytes,14,req,name=coins" json:"coins"` LockedCoins []byte `protobuf:"bytes,15,req,name=locked_coins,json=lockedCoins" json:"locked_coins"` ThreeBotRegistrationTransactionCount uint64 `` /* 160-byte string literal not displayed */ ThreeBotUpdateTransactionCount uint64 `` /* 142-byte string literal not displayed */ FoundationFeeCount uint64 `protobuf:"varint,18,opt,name=foundation_fee_count,json=foundationFeeCount" json:"foundation_fee_count"` FoundationFees []byte `protobuf:"bytes,19,opt,name=foundation_fees,json=foundationFees" json:"foundation_fees"` CoinBurnTxCount uint64 `protobuf:"varint,20,req,name=coin_burn_tx_count,json=coinBurnTxCount" json:"coin_burn_tx_count"` }
NetworkStats collects the global statistics for the blockchain.
func (*PBNetworkStats) Descriptor ¶ added in v0.2.0
func (*PBNetworkStats) Descriptor() ([]byte, []int)
func (*PBNetworkStats) GetBlockheight ¶ added in v0.2.0
func (m *PBNetworkStats) GetBlockheight() uint64
func (*PBNetworkStats) GetCoinBurnTxCount ¶ added in v0.3.0
func (m *PBNetworkStats) GetCoinBurnTxCount() uint64
func (*PBNetworkStats) GetCoinCreationTxCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetCoinCreationTxCount() uint64
func (*PBNetworkStats) GetCoinCreatorDefTxCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetCoinCreatorDefTxCount() uint64
func (*PBNetworkStats) GetCoinInputCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetCoinInputCount() uint64
func (*PBNetworkStats) GetCoinOutputCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetCoinOutputCount() uint64
func (*PBNetworkStats) GetCoins ¶ added in v0.2.0
func (m *PBNetworkStats) GetCoins() []byte
func (*PBNetworkStats) GetFoundationFeeCount ¶ added in v0.3.0
func (m *PBNetworkStats) GetFoundationFeeCount() uint64
func (*PBNetworkStats) GetFoundationFees ¶ added in v0.3.0
func (m *PBNetworkStats) GetFoundationFees() []byte
func (*PBNetworkStats) GetLockedCoinOutputCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetLockedCoinOutputCount() uint64
func (*PBNetworkStats) GetLockedCoins ¶ added in v0.2.0
func (m *PBNetworkStats) GetLockedCoins() []byte
func (*PBNetworkStats) GetMinerPayoutCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetMinerPayoutCount() uint64
func (*PBNetworkStats) GetMinerPayouts ¶ added in v0.2.0
func (m *PBNetworkStats) GetMinerPayouts() []byte
func (*PBNetworkStats) GetThreeBotRegistrationTransactionCount ¶ added in v0.3.0
func (m *PBNetworkStats) GetThreeBotRegistrationTransactionCount() uint64
func (*PBNetworkStats) GetThreeBotUpdateTransactionCount ¶ added in v0.3.0
func (m *PBNetworkStats) GetThreeBotUpdateTransactionCount() uint64
func (*PBNetworkStats) GetTimestamp ¶ added in v0.2.0
func (m *PBNetworkStats) GetTimestamp() uint64
func (*PBNetworkStats) GetTxCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetTxCount() uint64
func (*PBNetworkStats) GetTxFeeCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetTxFeeCount() uint64
func (*PBNetworkStats) GetTxFees ¶ added in v0.2.0
func (m *PBNetworkStats) GetTxFees() []byte
func (*PBNetworkStats) GetValueTxCount ¶ added in v0.2.0
func (m *PBNetworkStats) GetValueTxCount() uint64
func (*PBNetworkStats) Marshal ¶ added in v0.2.0
func (m *PBNetworkStats) Marshal() (dAtA []byte, err error)
func (*PBNetworkStats) MarshalTo ¶ added in v0.2.0
func (m *PBNetworkStats) MarshalTo(dAtA []byte) (int, error)
func (*PBNetworkStats) ProtoMessage ¶ added in v0.2.0
func (*PBNetworkStats) ProtoMessage()
func (*PBNetworkStats) Reset ¶ added in v0.2.0
func (m *PBNetworkStats) Reset()
func (*PBNetworkStats) Size ¶ added in v0.2.0
func (m *PBNetworkStats) Size() (n int)
func (*PBNetworkStats) String ¶ added in v0.2.0
func (m *PBNetworkStats) String() string
func (*PBNetworkStats) Unmarshal ¶ added in v0.2.0
func (m *PBNetworkStats) Unmarshal(dAtA []byte) error
func (*PBNetworkStats) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBNetworkStats) XXX_DiscardUnknown()
func (*PBNetworkStats) XXX_Marshal ¶ added in v0.2.0
func (m *PBNetworkStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBNetworkStats) XXX_Merge ¶ added in v0.2.0
func (dst *PBNetworkStats) XXX_Merge(src proto.Message)
func (*PBNetworkStats) XXX_Size ¶ added in v0.2.0
func (m *PBNetworkStats) XXX_Size() int
func (*PBNetworkStats) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBNetworkStats) XXX_Unmarshal(b []byte) error
type PBThreeBotRecord ¶ added in v0.3.0
type PBThreeBotRecord struct { Id uint32 `protobuf:"varint,1,req,name=id" json:"id"` NetworkAddresses []byte `protobuf:"bytes,2,req,name=network_addresses,json=networkAddresses" json:"network_addresses"` Names []byte `protobuf:"bytes,3,req,name=names" json:"names"` ExpirationTime []byte `protobuf:"bytes,4,req,name=expiration_time,json=expirationTime" json:"expiration_time"` PublicKey []byte `protobuf:"bytes,5,req,name=public_key,json=publicKey" json:"public_key"` }
PBThreeBotRecord defines a 3Bot record in a ProtoBuf-friendly format.
func (*PBThreeBotRecord) Descriptor ¶ added in v0.3.0
func (*PBThreeBotRecord) Descriptor() ([]byte, []int)
func (*PBThreeBotRecord) GetExpirationTime ¶ added in v0.3.0
func (m *PBThreeBotRecord) GetExpirationTime() []byte
func (*PBThreeBotRecord) GetId ¶ added in v0.3.0
func (m *PBThreeBotRecord) GetId() uint32
func (*PBThreeBotRecord) GetNames ¶ added in v0.3.0
func (m *PBThreeBotRecord) GetNames() []byte
func (*PBThreeBotRecord) GetNetworkAddresses ¶ added in v0.3.0
func (m *PBThreeBotRecord) GetNetworkAddresses() []byte
func (*PBThreeBotRecord) GetPublicKey ¶ added in v0.3.0
func (m *PBThreeBotRecord) GetPublicKey() []byte
func (*PBThreeBotRecord) Marshal ¶ added in v0.3.0
func (m *PBThreeBotRecord) Marshal() (dAtA []byte, err error)
func (*PBThreeBotRecord) MarshalTo ¶ added in v0.3.0
func (m *PBThreeBotRecord) MarshalTo(dAtA []byte) (int, error)
func (*PBThreeBotRecord) ProtoMessage ¶ added in v0.3.0
func (*PBThreeBotRecord) ProtoMessage()
func (*PBThreeBotRecord) Reset ¶ added in v0.3.0
func (m *PBThreeBotRecord) Reset()
func (*PBThreeBotRecord) Size ¶ added in v0.3.0
func (m *PBThreeBotRecord) Size() (n int)
func (*PBThreeBotRecord) String ¶ added in v0.3.0
func (m *PBThreeBotRecord) String() string
func (*PBThreeBotRecord) Unmarshal ¶ added in v0.3.0
func (m *PBThreeBotRecord) Unmarshal(dAtA []byte) error
func (*PBThreeBotRecord) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *PBThreeBotRecord) XXX_DiscardUnknown()
func (*PBThreeBotRecord) XXX_Marshal ¶ added in v0.3.0
func (m *PBThreeBotRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBThreeBotRecord) XXX_Merge ¶ added in v0.3.0
func (dst *PBThreeBotRecord) XXX_Merge(src proto.Message)
func (*PBThreeBotRecord) XXX_Size ¶ added in v0.3.0
func (m *PBThreeBotRecord) XXX_Size() int
func (*PBThreeBotRecord) XXX_Unmarshal ¶ added in v0.3.0
func (m *PBThreeBotRecord) XXX_Unmarshal(b []byte) error
type PBWallet ¶ added in v0.2.0
type PBWallet struct { BalanceUnlocked *PBWalletUnlockedBalance `protobuf:"bytes,1,opt,name=balance_unlocked,json=balanceUnlocked" json:"balance_unlocked,omitempty"` BalanceLocked *PBWalletLockedBalance `protobuf:"bytes,2,opt,name=balance_locked,json=balanceLocked" json:"balance_locked,omitempty"` MultisignAddresses [][]byte `protobuf:"bytes,3,rep,name=multisign_addresses,json=multisignAddresses" json:"multisign_addresses,omitempty"` MultisignData *PBWalletMultiSignData `protobuf:"bytes,4,opt,name=multisign_data,json=multisignData" json:"multisign_data,omitempty"` }
Wallet collects all data for an address in a simple format, focussing on its balance and multisign properties.
func (*PBWallet) Descriptor ¶ added in v0.2.0
func (*PBWallet) GetBalanceLocked ¶ added in v0.2.0
func (m *PBWallet) GetBalanceLocked() *PBWalletLockedBalance
func (*PBWallet) GetBalanceUnlocked ¶ added in v0.2.0
func (m *PBWallet) GetBalanceUnlocked() *PBWalletUnlockedBalance
func (*PBWallet) GetMultisignAddresses ¶ added in v0.2.0
func (*PBWallet) GetMultisignData ¶ added in v0.2.0
func (m *PBWallet) GetMultisignData() *PBWalletMultiSignData
func (*PBWallet) ProtoMessage ¶ added in v0.2.0
func (*PBWallet) ProtoMessage()
func (*PBWallet) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWallet) XXX_DiscardUnknown()
func (*PBWallet) XXX_Marshal ¶ added in v0.2.0
func (*PBWallet) XXX_Unmarshal ¶ added in v0.2.0
type PBWalletLockedBalance ¶ added in v0.2.0
type PBWalletLockedBalance struct { Total []byte `protobuf:"bytes,1,req,name=total" json:"total"` Outputs map[string]*PBWalletLockedOutput `` /* 134-byte string literal not displayed */ }
WalletBalance contains the locked balance of a wallet.
func (*PBWalletLockedBalance) Descriptor ¶ added in v0.2.0
func (*PBWalletLockedBalance) Descriptor() ([]byte, []int)
func (*PBWalletLockedBalance) GetOutputs ¶ added in v0.2.0
func (m *PBWalletLockedBalance) GetOutputs() map[string]*PBWalletLockedOutput
func (*PBWalletLockedBalance) GetTotal ¶ added in v0.2.0
func (m *PBWalletLockedBalance) GetTotal() []byte
func (*PBWalletLockedBalance) Marshal ¶ added in v0.2.0
func (m *PBWalletLockedBalance) Marshal() (dAtA []byte, err error)
func (*PBWalletLockedBalance) MarshalTo ¶ added in v0.2.0
func (m *PBWalletLockedBalance) MarshalTo(dAtA []byte) (int, error)
func (*PBWalletLockedBalance) ProtoMessage ¶ added in v0.2.0
func (*PBWalletLockedBalance) ProtoMessage()
func (*PBWalletLockedBalance) Reset ¶ added in v0.2.0
func (m *PBWalletLockedBalance) Reset()
func (*PBWalletLockedBalance) Size ¶ added in v0.2.0
func (m *PBWalletLockedBalance) Size() (n int)
func (*PBWalletLockedBalance) String ¶ added in v0.2.0
func (m *PBWalletLockedBalance) String() string
func (*PBWalletLockedBalance) Unmarshal ¶ added in v0.2.0
func (m *PBWalletLockedBalance) Unmarshal(dAtA []byte) error
func (*PBWalletLockedBalance) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWalletLockedBalance) XXX_DiscardUnknown()
func (*PBWalletLockedBalance) XXX_Marshal ¶ added in v0.2.0
func (m *PBWalletLockedBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBWalletLockedBalance) XXX_Merge ¶ added in v0.2.0
func (dst *PBWalletLockedBalance) XXX_Merge(src proto.Message)
func (*PBWalletLockedBalance) XXX_Size ¶ added in v0.2.0
func (m *PBWalletLockedBalance) XXX_Size() int
func (*PBWalletLockedBalance) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBWalletLockedBalance) XXX_Unmarshal(b []byte) error
type PBWalletLockedOutput ¶ added in v0.2.0
type PBWalletLockedOutput struct { Amount []byte `protobuf:"bytes,1,req,name=amount" json:"amount"` LockedUntil uint64 `protobuf:"varint,2,req,name=locked_until,json=lockedUntil" json:"locked_until"` Description string `protobuf:"bytes,3,opt,name=description" json:"description"` }
WalletLockedOutput defines a locked output targeted at a wallet.
func (*PBWalletLockedOutput) Descriptor ¶ added in v0.2.0
func (*PBWalletLockedOutput) Descriptor() ([]byte, []int)
func (*PBWalletLockedOutput) GetAmount ¶ added in v0.2.0
func (m *PBWalletLockedOutput) GetAmount() []byte
func (*PBWalletLockedOutput) GetDescription ¶ added in v0.2.0
func (m *PBWalletLockedOutput) GetDescription() string
func (*PBWalletLockedOutput) GetLockedUntil ¶ added in v0.2.0
func (m *PBWalletLockedOutput) GetLockedUntil() uint64
func (*PBWalletLockedOutput) Marshal ¶ added in v0.2.0
func (m *PBWalletLockedOutput) Marshal() (dAtA []byte, err error)
func (*PBWalletLockedOutput) MarshalTo ¶ added in v0.2.0
func (m *PBWalletLockedOutput) MarshalTo(dAtA []byte) (int, error)
func (*PBWalletLockedOutput) ProtoMessage ¶ added in v0.2.0
func (*PBWalletLockedOutput) ProtoMessage()
func (*PBWalletLockedOutput) Reset ¶ added in v0.2.0
func (m *PBWalletLockedOutput) Reset()
func (*PBWalletLockedOutput) Size ¶ added in v0.2.0
func (m *PBWalletLockedOutput) Size() (n int)
func (*PBWalletLockedOutput) String ¶ added in v0.2.0
func (m *PBWalletLockedOutput) String() string
func (*PBWalletLockedOutput) Unmarshal ¶ added in v0.2.0
func (m *PBWalletLockedOutput) Unmarshal(dAtA []byte) error
func (*PBWalletLockedOutput) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWalletLockedOutput) XXX_DiscardUnknown()
func (*PBWalletLockedOutput) XXX_Marshal ¶ added in v0.2.0
func (m *PBWalletLockedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBWalletLockedOutput) XXX_Merge ¶ added in v0.2.0
func (dst *PBWalletLockedOutput) XXX_Merge(src proto.Message)
func (*PBWalletLockedOutput) XXX_Size ¶ added in v0.2.0
func (m *PBWalletLockedOutput) XXX_Size() int
func (*PBWalletLockedOutput) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBWalletLockedOutput) XXX_Unmarshal(b []byte) error
type PBWalletMultiSignData ¶ added in v0.2.0
type PBWalletMultiSignData struct { SignaturesRequired uint64 `protobuf:"varint,1,req,name=signatures_required,json=signaturesRequired" json:"signatures_required"` Owners [][]byte `protobuf:"bytes,2,rep,name=owners" json:"owners,omitempty"` }
WalletMultiSignData defines the extra data defined for a MultiSignWallet.
func (*PBWalletMultiSignData) Descriptor ¶ added in v0.2.0
func (*PBWalletMultiSignData) Descriptor() ([]byte, []int)
func (*PBWalletMultiSignData) GetOwners ¶ added in v0.2.0
func (m *PBWalletMultiSignData) GetOwners() [][]byte
func (*PBWalletMultiSignData) GetSignaturesRequired ¶ added in v0.2.0
func (m *PBWalletMultiSignData) GetSignaturesRequired() uint64
func (*PBWalletMultiSignData) Marshal ¶ added in v0.2.0
func (m *PBWalletMultiSignData) Marshal() (dAtA []byte, err error)
func (*PBWalletMultiSignData) MarshalTo ¶ added in v0.2.0
func (m *PBWalletMultiSignData) MarshalTo(dAtA []byte) (int, error)
func (*PBWalletMultiSignData) ProtoMessage ¶ added in v0.2.0
func (*PBWalletMultiSignData) ProtoMessage()
func (*PBWalletMultiSignData) Reset ¶ added in v0.2.0
func (m *PBWalletMultiSignData) Reset()
func (*PBWalletMultiSignData) Size ¶ added in v0.2.0
func (m *PBWalletMultiSignData) Size() (n int)
func (*PBWalletMultiSignData) String ¶ added in v0.2.0
func (m *PBWalletMultiSignData) String() string
func (*PBWalletMultiSignData) Unmarshal ¶ added in v0.2.0
func (m *PBWalletMultiSignData) Unmarshal(dAtA []byte) error
func (*PBWalletMultiSignData) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWalletMultiSignData) XXX_DiscardUnknown()
func (*PBWalletMultiSignData) XXX_Marshal ¶ added in v0.2.0
func (m *PBWalletMultiSignData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBWalletMultiSignData) XXX_Merge ¶ added in v0.2.0
func (dst *PBWalletMultiSignData) XXX_Merge(src proto.Message)
func (*PBWalletMultiSignData) XXX_Size ¶ added in v0.2.0
func (m *PBWalletMultiSignData) XXX_Size() int
func (*PBWalletMultiSignData) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBWalletMultiSignData) XXX_Unmarshal(b []byte) error
type PBWalletUnlockedBalance ¶ added in v0.2.0
type PBWalletUnlockedBalance struct { Total []byte `protobuf:"bytes,1,req,name=total" json:"total"` Outputs map[string]*PBWalletUnlockedOutput `` /* 134-byte string literal not displayed */ }
WalletBalance contains the unlocked balance of a wallet.
func (*PBWalletUnlockedBalance) Descriptor ¶ added in v0.2.0
func (*PBWalletUnlockedBalance) Descriptor() ([]byte, []int)
func (*PBWalletUnlockedBalance) GetOutputs ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) GetOutputs() map[string]*PBWalletUnlockedOutput
func (*PBWalletUnlockedBalance) GetTotal ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) GetTotal() []byte
func (*PBWalletUnlockedBalance) Marshal ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) Marshal() (dAtA []byte, err error)
func (*PBWalletUnlockedBalance) MarshalTo ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) MarshalTo(dAtA []byte) (int, error)
func (*PBWalletUnlockedBalance) ProtoMessage ¶ added in v0.2.0
func (*PBWalletUnlockedBalance) ProtoMessage()
func (*PBWalletUnlockedBalance) Reset ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) Reset()
func (*PBWalletUnlockedBalance) Size ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) Size() (n int)
func (*PBWalletUnlockedBalance) String ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) String() string
func (*PBWalletUnlockedBalance) Unmarshal ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) Unmarshal(dAtA []byte) error
func (*PBWalletUnlockedBalance) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) XXX_DiscardUnknown()
func (*PBWalletUnlockedBalance) XXX_Marshal ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBWalletUnlockedBalance) XXX_Merge ¶ added in v0.2.0
func (dst *PBWalletUnlockedBalance) XXX_Merge(src proto.Message)
func (*PBWalletUnlockedBalance) XXX_Size ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) XXX_Size() int
func (*PBWalletUnlockedBalance) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBWalletUnlockedBalance) XXX_Unmarshal(b []byte) error
type PBWalletUnlockedOutput ¶ added in v0.2.0
type PBWalletUnlockedOutput struct { Amount []byte `protobuf:"bytes,1,req,name=amount" json:"amount"` Description string `protobuf:"bytes,2,opt,name=description" json:"description"` }
PBWalletUnlockedOutput defines an unlocked output targeted at a wallet.
func (*PBWalletUnlockedOutput) Descriptor ¶ added in v0.2.0
func (*PBWalletUnlockedOutput) Descriptor() ([]byte, []int)
func (*PBWalletUnlockedOutput) GetAmount ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) GetAmount() []byte
func (*PBWalletUnlockedOutput) GetDescription ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) GetDescription() string
func (*PBWalletUnlockedOutput) Marshal ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) Marshal() (dAtA []byte, err error)
func (*PBWalletUnlockedOutput) MarshalTo ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) MarshalTo(dAtA []byte) (int, error)
func (*PBWalletUnlockedOutput) ProtoMessage ¶ added in v0.2.0
func (*PBWalletUnlockedOutput) ProtoMessage()
func (*PBWalletUnlockedOutput) Reset ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) Reset()
func (*PBWalletUnlockedOutput) Size ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) Size() (n int)
func (*PBWalletUnlockedOutput) String ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) String() string
func (*PBWalletUnlockedOutput) Unmarshal ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) Unmarshal(dAtA []byte) error
func (*PBWalletUnlockedOutput) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) XXX_DiscardUnknown()
func (*PBWalletUnlockedOutput) XXX_Marshal ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PBWalletUnlockedOutput) XXX_Merge ¶ added in v0.2.0
func (dst *PBWalletUnlockedOutput) XXX_Merge(src proto.Message)
func (*PBWalletUnlockedOutput) XXX_Size ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) XXX_Size() int
func (*PBWalletUnlockedOutput) XXX_Unmarshal ¶ added in v0.2.0
func (m *PBWalletUnlockedOutput) XXX_Unmarshal(b []byte) error
type PublicKey ¶ added in v0.3.0
PublicKey overwrites the Tfchain PublicKey type, encapsulating it internally for practical reasons.
func NewPublicKeyFromTfchainPublicKey ¶ added in v0.3.0
NewPublicKeyFromTfchainPublicKey returns a tfchain-typed PublicKey into the PublicKey overwritten type used in this project.
func (PublicKey) Msgsize ¶ added in v0.3.0
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (PublicKey) TfchainPublicKey ¶ added in v0.3.0
TfchainPublicKey returns the tfchain-typed PublicKey, embedded by this type.
type Timestamp ¶
Timestamp overwrites the Rivine Timestamp type, encapsulating it internally for practical reasons.
func AsTimestamp ¶
AsTimestamp turns a Rivine-typed Timestamp into the Timestamp overwritten type used in this project.
func (Timestamp) MarshalJSON ¶
MarshalJSON implements json.Marshaler.MarshalJSON
func (Timestamp) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type UnlockHash ¶
type UnlockHash struct {
types.UnlockHash
}
UnlockHash overwrites the Rivine UnlockHash type, encapsulating it internally for practical reasons.
func AsUnlockHash ¶
func AsUnlockHash(uh types.UnlockHash) UnlockHash
AsUnlockHash returns a Rivine-typed UnlockHash into the UnlockHash overwritten type used in this project.
func (*UnlockHash) DecodeMsg ¶
func (uh *UnlockHash) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg
func (UnlockHash) EncodeMsg ¶
func (uh UnlockHash) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg
func (UnlockHash) MarshalJSON ¶
func (uh UnlockHash) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON
func (UnlockHash) Msgsize ¶
func (uh UnlockHash) Msgsize() int
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (UnlockHash) String ¶
func (uh UnlockHash) String() string
String implements fmt.Stringer.String
func (*UnlockHash) UnmarshalJSON ¶
func (uh *UnlockHash) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.UnmarshalJSON
type Wallet ¶
type Wallet struct { // Balance is optional and defines the balance the wallet currently has. Balance WalletBalance // MultiSignAddresses is optional and is only defined if the wallet is part of // one or multiple multisign wallets. MultiSignAddresses []UnlockHash // MultiSignData is optional and is only defined if the wallet is a multisign wallet. MultiSignData WalletMultiSignData }
Wallet collects all data for an address in a simple format, focussing on its balance and multisign properties.
Wallet supports MessagePack and JSON encoding, but does so via a custom structure as to ensure it does not encode null values. See `EncodableWallet` to see how this structure looks like.
func (*Wallet) AddUniqueMultisignAddress ¶
func (wallet *Wallet) AddUniqueMultisignAddress(address UnlockHash) bool
AddUniqueMultisignAddress adds the given multisign address to the wallet's list of multisign addresses which reference this wallet's address. It only adds it however if the given multisign address is not known yet.
func (*Wallet) DecodeMsg ¶
DecodeMsg implements msgp.Decodable.DecodeMsg Decoding a wallet using the EncodableWallet structure.
func (*Wallet) EncodeMsg ¶
EncodeMsg implements msgp.Encodable.EncodeMsg Encoding a wallet using the EncodableWallet structure.
func (Wallet) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements json.Marshaler.MarshalJSON Encoding a Wallet using the EncodableWallet structure.
func (*Wallet) ProtocolBufferMarshal ¶ added in v0.2.0
func (wallet *Wallet) ProtocolBufferMarshal(w encoding.ProtocolBufferWriter) error
ProtocolBufferMarshal implements encoding.ProtocolBufferMarshaler.ProtocolBufferMarshal using the generated code based on the PBWallet Message defined in ./types.proto
func (*Wallet) ProtocolBufferUnmarshal ¶ added in v0.2.0
func (wallet *Wallet) ProtocolBufferUnmarshal(r encoding.ProtocolBufferReader) error
ProtocolBufferUnmarshal implements encoding.ProtocolBufferUnmarshaler.ProtocolBufferUnmarshal using the generated code based on the PBWallet Message defined in ./types.proto
func (*Wallet) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON implements json.Unmarshaler.UnmarshalJSON Decoding a Wallet using the EncodableWallet structure.
type WalletBalance ¶
type WalletBalance struct { Unlocked WalletUnlockedBalance Locked WalletLockedBalance }
WalletBalance contains the unlocked and/or locked balance of a wallet.
WalletBalance supports MessagePack and JSON encoding, but does so via a custom structure as to ensure it does not encode null values. See `EncodableWalletBalance` to see how this structure looks like.
func (*WalletBalance) DecodeMsg ¶
func (wb *WalletBalance) DecodeMsg(r *msgp.Reader) error
DecodeMsg implements msgp.Decodable.DecodeMsg Decoding a WalletBalance using the EncodableWalletBalance structure.
func (*WalletBalance) EncodeMsg ¶
func (wb *WalletBalance) EncodeMsg(w *msgp.Writer) error
EncodeMsg implements msgp.Encodable.EncodeMsg Encoding a WalletBalance using the EncodableWalletBalance structure.
func (*WalletBalance) IsZero ¶
func (wb *WalletBalance) IsZero() bool
IsZero returns true if this wallet's balance is Zero
func (WalletBalance) MarshalJSON ¶ added in v0.2.0
func (wb WalletBalance) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.MarshalJSON Encoding a WalletBalance using the EncodableWalletBalance structure.
func (*WalletBalance) UnmarshalJSON ¶ added in v0.2.0
func (wb *WalletBalance) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler.UnmarshalJSON Decoding a WalletBalance using the EncodableWalletBalance structure.
type WalletLockedBalance ¶
type WalletLockedBalance struct { Total Currency `json:"total" msg:"t"` Outputs WalletLockedOutputMap `json:"outputs,omitempty" msg:"o,omitempty"` }
WalletLockedBalance contains the locked balance of a wallet, defining the total amount of coins as well as all the outputs that are locked.
func (*WalletLockedBalance) AddLockedCoinOutput ¶
func (wlb *WalletLockedBalance) AddLockedCoinOutput(id CoinOutputID, co WalletLockedOutput) error
AddLockedCoinOutput adds the unique locked coin output to the wallet's map of locked outputs as well as adds the coin output's value to the total amount of locked coins registered for this wallet.
func (*WalletLockedBalance) DecodeMsg ¶
func (z *WalletLockedBalance) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*WalletLockedBalance) EncodeMsg ¶
func (z *WalletLockedBalance) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*WalletLockedBalance) Msgsize ¶
func (z *WalletLockedBalance) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*WalletLockedBalance) SubLockedCoinOutput ¶
func (wlb *WalletLockedBalance) SubLockedCoinOutput(id CoinOutputID) error
SubLockedCoinOutput removes the unique existing locked coin output from the wallet's map of locked outputs, as well as subtract the coin output's value from the total amount of locked coins registered for this wallet.
type WalletLockedOutput ¶
type WalletLockedOutput struct { Amount Currency `json:"amount" msg:"a"` LockedUntil LockValue `json:"lockedUntil" msg:"lu"` Description string `json:"description,omitempty" msg:"d,omitempty"` }
WalletLockedOutput defines a locked output targeted at a wallet.
func (*WalletLockedOutput) DecodeMsg ¶
func (z *WalletLockedOutput) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*WalletLockedOutput) EncodeMsg ¶
func (z *WalletLockedOutput) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*WalletLockedOutput) Msgsize ¶
func (z *WalletLockedOutput) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type WalletLockedOutputMap ¶
type WalletLockedOutputMap map[string]WalletLockedOutput
WalletLockedOutputMap defines the mapping between a coin output ID and its walletLockedOutput data
func (*WalletLockedOutputMap) DecodeMsg ¶
func (z *WalletLockedOutputMap) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (WalletLockedOutputMap) EncodeMsg ¶
func (z WalletLockedOutputMap) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (WalletLockedOutputMap) Msgsize ¶
func (z WalletLockedOutputMap) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type WalletMultiSignData ¶
type WalletMultiSignData struct { Owners []UnlockHash `json:"owners" msg:"o"` SignaturesRequired uint64 `json:"signaturesRequired" msg:"sr"` }
WalletMultiSignData defines the extra data defined for a MultiSignWallet.
func (*WalletMultiSignData) DecodeMsg ¶
func (z *WalletMultiSignData) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*WalletMultiSignData) EncodeMsg ¶
func (z *WalletMultiSignData) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*WalletMultiSignData) Msgsize ¶
func (z *WalletMultiSignData) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type WalletUnlockedBalance ¶ added in v0.2.0
type WalletUnlockedBalance struct { Total Currency `json:"total" msg:"t"` Outputs WalletUnlockedOutputMap `json:"outputs,omitempty" msg:"o,omitempty"` }
WalletUnlockedBalance contains the unlocked balance of a wallet, defining the total amount of coins as well as all the outputs that are unlocked.
func (*WalletUnlockedBalance) AddUnlockedCoinOutput ¶ added in v0.2.0
func (wub *WalletUnlockedBalance) AddUnlockedCoinOutput(id CoinOutputID, co WalletUnlockedOutput, addAmount bool) error
AddUnlockedCoinOutput adds the unique unlocked coin output to the wallet's map of unlocked outputs as well as adds the coin output's value to the total amount of unlocked coins registered for this wallet.
func (*WalletUnlockedBalance) DecodeMsg ¶ added in v0.2.0
func (z *WalletUnlockedBalance) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*WalletUnlockedBalance) EncodeMsg ¶ added in v0.2.0
func (z *WalletUnlockedBalance) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*WalletUnlockedBalance) Msgsize ¶ added in v0.2.0
func (z *WalletUnlockedBalance) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*WalletUnlockedBalance) SubUnlockedCoinOutput ¶ added in v0.2.0
func (wub *WalletUnlockedBalance) SubUnlockedCoinOutput(id CoinOutputID, amount Currency, subAmount bool) error
SubUnlockedCoinOutput tries to remove the unlocked coin output from the wallet's map of unlocked outputs, try as it might not exist to never having been added. This method does always subtract the coin output's value from the total amount of unlocked coins registered for this wallet.
type WalletUnlockedOutput ¶ added in v0.2.0
type WalletUnlockedOutput struct { Amount Currency `json:"amount" msg:"a"` Description string `json:"description,omitempty" msg:"d,omitempty"` }
WalletUnlockedOutput defines an unlocked output targeted at a wallet.
func (*WalletUnlockedOutput) DecodeMsg ¶ added in v0.2.0
func (z *WalletUnlockedOutput) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*WalletUnlockedOutput) EncodeMsg ¶ added in v0.2.0
func (z *WalletUnlockedOutput) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*WalletUnlockedOutput) Msgsize ¶ added in v0.2.0
func (z *WalletUnlockedOutput) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type WalletUnlockedOutputMap ¶ added in v0.2.0
type WalletUnlockedOutputMap map[string]WalletUnlockedOutput
WalletUnlockedOutputMap defines the mapping between a coin output ID and its walletUnlockedOutput data
func (*WalletUnlockedOutputMap) DecodeMsg ¶ added in v0.2.0
func (z *WalletUnlockedOutputMap) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (WalletUnlockedOutputMap) EncodeMsg ¶ added in v0.2.0
func (z WalletUnlockedOutputMap) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (WalletUnlockedOutputMap) Msgsize ¶ added in v0.2.0
func (z WalletUnlockedOutputMap) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message