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 + var ErrActionExists = errors.New("action already exists") + var ErrActionNotFound = errors.New("no action could be found") + var ErrMultipleActionsFound = errors.New("multiple actions found") + var ErrStaleVersion = errors.New("action version is stale") + type ByActionId []*Record + func (a ByActionId) Len() int + func (a ByActionId) Less(i, j int) bool + func (a ByActionId) Swap(i, j int) + type Record struct + ActionId uint32 + ActionType Type + CreatedAt time.Time + Destination *string + FeeType *transactionpb.FeePaymentAction_FeeType + Id uint64 + Intent string + IntentType intent.Type + Quantity *uint64 + Source string + State State + Version uint64 + func (r *Record) Clone() Record + func (r *Record) CopyTo(dst *Record) + func (r *Record) Validate() error + type State uint8 + const StateConfirmed + const StateFailed + const StatePending + const StateRevoked + const StateUnknown + func (s State) IsTerminal() bool + func (s State) String() string + type Store interface + CountFeeActions func(ctx context.Context, intent string, ...) (uint64, error) + GetAllByAddress func(ctx context.Context, address string) ([]*Record, error) + GetAllByIntent func(ctx context.Context, intent string) ([]*Record, error) + GetById func(ctx context.Context, intent string, actionId uint32) (*Record, error) + GetGiftCardAutoReturnAction func(ctx context.Context, giftCardVault string) (*Record, error) + GetGiftCardClaimedAction func(ctx context.Context, giftCardVault string) (*Record, error) + GetNetBalance func(ctx context.Context, account string) (int64, error) + GetNetBalanceBatch func(ctx context.Context, accounts ...string) (map[string]int64, error) + PutAll func(ctx context.Context, records ...*Record) error + Update func(ctx context.Context, record *Record) error + type Type uint8 + const CloseDormantAccount + const CloseEmptyAccount + const NoPrivacyTransfer + const NoPrivacyWithdraw + const OpenAccount + const PrivateTransfer + const SaveRecentRoot + const UnknownType