Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + const IsInitializedKey + const MaxMemoSize + func IsSortedAndUniqueTransferableInputs(ins []*TransferableInput) bool + func IsSortedAndUniqueTransferableInputsWithSigners(ins []*TransferableInput, signers [][]*crypto.PrivateKeySECP256K1R) bool + func IsSortedAndUniqueUTXOIDs(utxos []*UTXOID) bool + func IsSortedTransferableOutputs(outs []*TransferableOutput, c codec.Manager) bool + func SortTransferableInputs(ins []*TransferableInput) + func SortTransferableInputsWithSigners(ins []*TransferableInput, signers [][]*crypto.PrivateKeySECP256K1R) + func SortTransferableOutputs(outs []*TransferableOutput, c codec.Manager) + func SortUTXOIDs(utxos []*UTXOID) + func VerifyTx(feeAmount uint64, feeAssetID ids.ID, allIns [][]*TransferableInput, ...) error + type AddressManager interface + FormatAddress func(chainID ids.ID, addr ids.ShortID) (string, error) + FormatLocalAddress func(addr ids.ShortID) (string, error) + ParseAddress func(addrStr string) (ids.ID, ids.ShortID, error) + ParseLocalAddress func(addrStr string) (ids.ShortID, error) + func NewAddressManager(ctx *snow.Context) AddressManager + type Addressable interface + Addresses func() [][]byte + type Amounter interface + Amount func() uint64 + type Asset struct + ID ids.ID + func (asset *Asset) AssetID() ids.ID + func (asset *Asset) Verify() error + type AtomicUTXOManager interface + GetAtomicUTXOs func(chainID ids.ID, addrs ids.ShortSet, startAddr ids.ShortID, startUTXOID ids.ID, ...) ([]*UTXO, ids.ShortID, ids.ID, error) + func NewAtomicUTXOManager(sm atomic.SharedMemory, codec codec.Manager) AtomicUTXOManager + type BaseTx struct + BlockchainID ids.ID + Ins []*TransferableInput + Memo types.JSONByteSlice + NetworkID uint32 + Outs []*TransferableOutput + func (t *BaseTx) AssetIDs() ids.Set + func (t *BaseTx) ConsumedAssetIDs() ids.Set + func (t *BaseTx) InputUTXOs() []*UTXOID + func (t *BaseTx) MetadataVerify(ctx *snow.Context) error + func (t *BaseTx) NumCredentials() int + func (t *BaseTx) UTXOs() []*UTXO + 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(unsignedBytes, bytes []byte) + func (md *Metadata) UnsignedBytes() []byte + func (md *Metadata) Verify() error + type SingletonState interface + IsInitialized func() (bool, error) + SetInitialized func() error + func NewSingletonState(db database.Database) SingletonState + type StatusState interface + DeleteStatus func(id ids.ID) error + GetStatus func(id ids.ID) (choices.Status, error) + PutStatus func(id ids.ID, status choices.Status) error + func NewMeteredStatusState(db database.Database, namespace string, metrics prometheus.Registerer) (StatusState, error) + func NewStatusState(db database.Database) StatusState + type TestAddressable struct + Addrs [][]byte + func (a *TestAddressable) Addresses() [][]byte + type TestTransferable struct + Val uint64 + func (t *TestTransferable) Amount() uint64 + func (t *TestTransferable) InitCtx(*snow.Context) + type TestVerifiable struct + Err error + func (v *TestVerifiable) InitCtx(ctx *snow.Context) + func (v *TestVerifiable) Verify() error + func (v *TestVerifiable) VerifyState() error + type TransferableIn interface + type TransferableInput struct + FxID ids.ID + In TransferableIn + func (in *TransferableInput) Input() TransferableIn + func (in *TransferableInput) Verify() error + type TransferableOut interface + type TransferableOutput struct + FxID ids.ID + Out TransferableOut + func (out *TransferableOutput) InitCtx(ctx *snow.Context) + func (out *TransferableOutput) Output() TransferableOut + func (out *TransferableOutput) Verify() error + type UTXO struct + Out verify.State + 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) String() string + func (utxo *UTXOID) Symbolic() bool + func (utxo *UTXOID) Verify() error + type UTXOState interface + DeleteUTXO func(utxoID ids.ID) error + GetUTXO func(utxoID ids.ID) (*UTXO, error) + PutUTXO func(utxoID ids.ID, utxo *UTXO) error + UTXOIDs func(addr []byte, previous ids.ID, limit int) ([]ids.ID, error) + func NewMeteredUTXOState(db database.Database, codec codec.Manager, namespace string, ...) (UTXOState, error) + func NewUTXOState(db database.Database, codec codec.Manager) UTXOState