Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + func IsSortedAndUniqueTransferableInputs(ins []*TransferableInput) bool + func IsSortedAndUniqueTransferableInputsWithSigners(ins []*TransferableInput, signers [][]*crypto.PrivateKeySECP256K1R) bool + func IsSortedAndUniqueUTXOIDs(utxos []*UTXOID) bool + func IsSortedTransferableOutputs(outs []*TransferableOutput, c codec.Codec) bool + func SortTransferableInputs(ins []*TransferableInput) + func SortTransferableInputsWithSigners(ins []*TransferableInput, signers [][]*crypto.PrivateKeySECP256K1R) + func SortTransferableOutputs(outs []*TransferableOutput, c codec.Codec) + func SortUTXOIDs(utxos []*UTXOID) + func UniqueID(id ids.ID, prefix uint64, cacher cache.Cacher) ids.ID + type Addressable interface + Addresses func() [][]byte + type Asset struct + ID ids.ID + func (asset *Asset) AssetID() ids.ID + func (asset *Asset) Verify() error + type FlowChecker struct + func NewFlowChecker() *FlowChecker + func (fc *FlowChecker) Consume(assetID ids.ID, amount uint64) + func (fc *FlowChecker) Produce(assetID ids.ID, amount uint64) + func (fc *FlowChecker) Verify() error + type Metadata struct + func (md *Metadata) Bytes() []byte + func (md *Metadata) ID() ids.ID + func (md *Metadata) Initialize(bytes []byte) + func (md *Metadata) Verify() error + type PrefixedState struct + func NewPrefixedState(db database.Database, codec codec.Codec) *PrefixedState + func (s *PrefixedState) AVMFunds(id ids.ID) ([]ids.ID, error) + func (s *PrefixedState) AVMUTXO(id ids.ID) (*UTXO, error) + func (s *PrefixedState) FundAVMUTXO(utxo *UTXO) error + func (s *PrefixedState) FundPlatformUTXO(utxo *UTXO) error + func (s *PrefixedState) PlatformFunds(id ids.ID) ([]ids.ID, error) + func (s *PrefixedState) PlatformUTXO(id ids.ID) (*UTXO, error) + func (s *PrefixedState) SpendAVMUTXO(utxoID ids.ID) error + func (s *PrefixedState) SpendPlatformUTXO(utxoID ids.ID) error + type State struct + Cache cache.Cacher + Codec codec.Codec + DB database.Database + func (s *State) IDs(id ids.ID) ([]ids.ID, error) + func (s *State) SetIDs(id ids.ID, idSlice []ids.ID) error + func (s *State) SetStatus(id ids.ID, status choices.Status) error + func (s *State) SetUTXO(id ids.ID, utxo *UTXO) error + func (s *State) Status(id ids.ID) (choices.Status, error) + func (s *State) UTXO(id ids.ID) (*UTXO, error) + type TestTransferable struct + Val uint64 + func (t *TestTransferable) Amount() uint64 + type TestVerifiable struct + Err error + func (v *TestVerifiable) Verify() error + type Transferable interface + Amount func() uint64 + type TransferableInput struct + In Transferable + func (in *TransferableInput) Input() Transferable + func (in *TransferableInput) Verify() error + type TransferableOutput struct + Out Transferable + func (out *TransferableOutput) Output() Transferable + func (out *TransferableOutput) Verify() error + type UTXO struct + Out verify.Verifiable + func (utxo *UTXO) Verify() error + type UTXOID struct + OutputIndex uint32 + Symbol bool + TxID ids.ID + func (utxo *UTXOID) InputID() ids.ID + func (utxo *UTXOID) InputSource() (ids.ID, uint32) + func (utxo *UTXOID) Symbolic() bool + func (utxo *UTXOID) Verify() error