Skip to content

Module BSV::Wallet::Interface::Store

Duck-typed storage interface for wallet persistence.

Include this module in storage adapters and override all methods. The default implementations raise NotImplementedError.

Public Instance Methods

count_actions(_query)

  • @raise [NotImplementedError]

count_certificates(_query)

  • @raise [NotImplementedError]

count_outputs(_query)

  • @raise [NotImplementedError]

delete_action(_txid)

  • @raise [NotImplementedError]

delete_certificate(type:, serial_number:, certifier:)

  • @raise [NotImplementedError]

delete_output(_outpoint)

  • @raise [NotImplementedError]

find_actions(_query)

  • @raise [NotImplementedError]

find_certificates(_query)

  • @raise [NotImplementedError]

find_outputs(_query)

  • @raise [NotImplementedError]

find_proof(_txid)

  • @raise [NotImplementedError]

find_setting(_key)

  • @raise [NotImplementedError]

find_spendable_outputs(basket: = nil, min_satoshis: = nil, sort_order: = :desc)

  • @raise [NotImplementedError]

find_transaction(_txid)

  • @raise [NotImplementedError]

lock_utxos(_outpoints, reference:, no_send: = false)

  • @raise [NotImplementedError]

release_stale_pending!(timeout: = 300)

  • @raise [NotImplementedError]

store_action(_action_data)

  • @raise [NotImplementedError]

store_certificate(_cert_data)

  • @raise [NotImplementedError]

store_output(_output_data)

  • @raise [NotImplementedError]

store_proof(_txid, _bump_hex)

  • @raise [NotImplementedError]

store_setting(_key, _value)

  • @raise [NotImplementedError]

store_transaction(_txid, _tx_hex)

  • @raise [NotImplementedError]

update_action_status(_txid, _new_status)

  • @raise [NotImplementedError]

update_output_basket(_outpoint, _new_basket)

  • @raise [NotImplementedError]

update_output_state(_outpoint, _new_state, pending_reference: = nil, no_send: = nil)

  • @raise [NotImplementedError]