Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + const FundingSourceSubmitIntent + const FundingSourceUnknown + var ErrExists = errors.New("swap already exists") + var ErrNotFound = errors.New("swap not found") + var ErrStaleVersion = errors.New("swap version is stale") + type FundingSource uint8 + type Record struct + Amount uint64 + Blockhash string + CreatedAt time.Time + FromMint string + FundingId string + FundingSource FundingSource + Id uint64 + Nonce string + Owner string + ProofSignature string + State State + SwapId string + ToMint string + TransactionBlob []byte + TransactionSignature *string + Version uint64 + func (r *Record) Clone() Record + func (r *Record) CopyTo(dst *Record) + func (r *Record) Validate() error + type State uint8 + const StateCancelled + const StateCancelling + const StateCreated + const StateFailed + const StateFinalized + const StateFunded + const StateFunding + const StateSubmitting + const StateUnknown + func (s State) String() string + type Store interface + CountByState func(ctx context.Context, state State) (uint64, error) + GetAllByOwnerAndState func(ctx context.Context, owner string, state State) ([]*Record, error) + GetAllByState func(ctx context.Context, state State, cursor query.Cursor, limit uint64, ...) ([]*Record, error) + GetByFundingId func(ctx context.Context, fundingId string) (*Record, error) + GetById func(ctx context.Context, id string) (*Record, error) + Save func(ctx context.Context, record *Record) error