Documentation ¶
Index ¶
- func FetchTxoV1(t *testing.T, tx TxoV1Fetcher) *types.TransactionOrder
- func NewTransactionOrder(t *testing.T, options ...Option) *types.TransactionOrder
- func NewTransactionOrderBytes(t *testing.T, options ...Option) types.TaggedCBOR
- func NewTransactionRecord(t *testing.T, options ...Option) *types.TransactionRecord
- func TxoFromBytes(t *testing.T, txBytes types.TaggedCBOR) *types.TransactionOrder
- func TxoToBytes(t *testing.T, tx *types.TransactionOrder) types.TaggedCBOR
- type Option
- func WithAttributes(attr any) Option
- func WithAuthProof(authProof any) Option
- func WithClientMetadata(m *types.ClientMetadata) Option
- func WithFeeProof(feeProof []byte) Option
- func WithNetworkID(id types.NetworkID) Option
- func WithPartitionID(id types.PartitionID) Option
- func WithStateLock(lock *types.StateLock) Option
- func WithTransactionType(t uint16) Option
- func WithUnitID(id []byte) Option
- func WithUnlockProof(unlockProof []byte) Option
- type TxoV1Fetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchTxoV1 ¶
func FetchTxoV1(t *testing.T, tx TxoV1Fetcher) *types.TransactionOrder
func NewTransactionOrder ¶
func NewTransactionOrder(t *testing.T, options ...Option) *types.TransactionOrder
func NewTransactionOrderBytes ¶
func NewTransactionOrderBytes(t *testing.T, options ...Option) types.TaggedCBOR
func NewTransactionRecord ¶
func NewTransactionRecord(t *testing.T, options ...Option) *types.TransactionRecord
func TxoFromBytes ¶
func TxoFromBytes(t *testing.T, txBytes types.TaggedCBOR) *types.TransactionOrder
func TxoToBytes ¶
func TxoToBytes(t *testing.T, tx *types.TransactionOrder) types.TaggedCBOR
Types ¶
type Option ¶
type Option func(*types.TransactionOrder) error
func WithAttributes ¶
func WithAuthProof ¶
func WithClientMetadata ¶
func WithClientMetadata(m *types.ClientMetadata) Option
func WithFeeProof ¶
func WithNetworkID ¶
func WithPartitionID ¶
func WithPartitionID(id types.PartitionID) Option
func WithStateLock ¶
func WithTransactionType ¶
func WithUnitID ¶
func WithUnlockProof ¶
type TxoV1Fetcher ¶
type TxoV1Fetcher interface {
GetTransactionOrderV1() (*types.TransactionOrder, error)
}
Click to show internal directories.
Click to hide internal directories.