mappings

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mappings is a package that contains the mappings for the access keys package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDBQueryParams

func DefaultDBQueryParams() *datastore.QueryParams

DefaultDBQueryParams returns the default db query params

func MapDestinationModelToEngine

func MapDestinationModelToEngine(d *response.Destination) *engine.Destination

MapDestinationModelToEngine will map the spv-wallet-models destination contract to the spv-wallet destination model

func MapFeeUnitModelToEngine

func MapFeeUnitModelToEngine(fu *response.FeeUnit) (fc *bsv.FeeUnit)

MapFeeUnitModelToEngine will map the fee-unit model from spv-wallet-models to the spv-wallet contract

func MapMapProtocolModelToEngine

func MapMapProtocolModelToEngine(mp *response.MapProtocol) *engine.MapProtocol

MapMapProtocolModelToEngine will map the transaction-output model from spv-wallet-models to the spv-wallet contract

func MapOpReturnModelToEngine

func MapOpReturnModelToEngine(op *response.OpReturn) *engine.OpReturn

MapOpReturnModelToEngine will map the op-return model from spv-wallet-models to the spv-wallet contract

func MapPaymailP4ModelToEngine

func MapPaymailP4ModelToEngine(p *response.PaymailP4) *engine.PaymailP4

MapPaymailP4ModelToEngine will map the spv-wallet-models paymail-address contract to the spv-wallet paymail-address model

func MapScriptOutputModelToEngine

func MapScriptOutputModelToEngine(so *response.ScriptOutput) (sc *engine.ScriptOutput)

MapScriptOutputModelToEngine will map the script-output model from spv-wallet-models to the spv-wallet contract

func MapSyncConfigModelToEngine

func MapSyncConfigModelToEngine(sc *response.SyncConfig) *engine.SyncConfig

MapSyncConfigModelToEngine will map the sync-config model from spv-wallet-models to the spv-wallet contract

func MapToAccessKeyContract

func MapToAccessKeyContract(ac *engine.AccessKey) *response.AccessKey

MapToAccessKeyContract will map the access key to the spv-wallet-models contract

func MapToAdminStatsContract

func MapToAdminStatsContract(s *engine.AdminStats) *response.AdminStats

MapToAdminStatsContract will map the model from spv-wallet to the spv-wallet-models contract

func MapToContactContract

func MapToContactContract(src *engine.Contact) *response.Contact

MapToContactContract will map the contact to the spv-wallet-models contract

func MapToContactContracts

func MapToContactContracts(src []*engine.Contact) []*response.Contact

MapToContactContracts will map the contacts collection to the spv-wallet-models contracts collection

func MapToDbQueryParams

func MapToDbQueryParams(model *filter.Page) *datastore.QueryParams

MapToDbQueryParams converts filter.QueryParams from models to matching datastore.QueryParams

func MapToDestinationContract

func MapToDestinationContract(d *engine.Destination) *response.Destination

MapToDestinationContract will map the spv-wallet destination model to the spv-wallet-models contract

func MapToDraftTransactionContract

func MapToDraftTransactionContract(tx *engine.DraftTransaction) *response.DraftTransaction

MapToDraftTransactionContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract

func MapToFeeUnitContract

func MapToFeeUnitContract(fu *bsv.FeeUnit) (fc *response.FeeUnit)

MapToFeeUnitContract will map the fee-unit model from spv-wallet to the spv-wallet-models contract

func MapToMapProtocolContract

func MapToMapProtocolContract(mp *engine.MapProtocol) *response.MapProtocol

MapToMapProtocolContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract

func MapToMetadata

func MapToMetadata(explicitMap map[string]interface{}) *engine.Metadata

MapToMetadata converts "raw" key-value map to aliased engine.Metadata

func MapToOpReturnContract

func MapToOpReturnContract(op *engine.OpReturn) *response.OpReturn

MapToOpReturnContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract

func MapToPaymailContract

func MapToPaymailContract(pa *engine.PaymailAddress) *response.PaymailAddress

MapToPaymailContract will map the spv-wallet paymail-address model to the spv-wallet-models contract

func MapToPaymailP4Contract

func MapToPaymailP4Contract(p *engine.PaymailP4) *response.PaymailP4

MapToPaymailP4Contract will map the spv-wallet-models paymail-address contract to the spv-wallet paymail-address model

func MapToScriptOutputContract

func MapToScriptOutputContract(so *engine.ScriptOutput) (sc *response.ScriptOutput)

MapToScriptOutputContract will map the script-output model from spv-wallet to the spv-wallet-models contract

func MapToSyncConfigContract

func MapToSyncConfigContract(sc *engine.SyncConfig) *response.SyncConfig

MapToSyncConfigContract will map the sync-config model from spv-wallet to the spv-wallet-models contract

func MapToTransactionConfigContract

func MapToTransactionConfigContract(tx *engine.TransactionConfig) *response.TransactionConfig

MapToTransactionConfigContract will map the transaction-config model from spv-wallet-models to the spv-wallet contract

func MapToTransactionContract

func MapToTransactionContract(t *engine.Transaction) *response.Transaction

MapToTransactionContract will map the model from spv-wallet to the spv-wallet-models contract

func MapToTransactionContractForAdmin

func MapToTransactionContractForAdmin(t *engine.Transaction) *response.Transaction

MapToTransactionContractForAdmin will map the model from spv-wallet to the spv-wallet-response contract for admin

func MapToTransactionInputContract

func MapToTransactionInputContract(inp *engine.TransactionInput) *response.TransactionInput

MapToTransactionInputContract will map the transaction-output model from spv-wallet-models to the spv-wallet contract

func MapToTransactionOutputContract

func MapToTransactionOutputContract(out *engine.TransactionOutput) *response.TransactionOutput

MapToTransactionOutputContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract

func MapToUtxoContract

func MapToUtxoContract(u *engine.Utxo) *response.Utxo

MapToUtxoContract will map the utxo model from spv-wallet to the spv-wallet-models contract

func MapToUtxoPointer

func MapToUtxoPointer(u *engine.UtxoPointer) *response.UtxoPointer

MapToUtxoPointer will map the utxo-pointer model from spv-wallet to the spv-wallet-models contract

func MapToWebhookContract

func MapToWebhookContract(w notifications.ModelWebhook) *models.Webhook

MapToWebhookContract will map the webhook model from spv-wallet engine to the spv-wallet-models contract

func MapToXpubContract

func MapToXpubContract(xpub *engine.Xpub) *response.Xpub

MapToXpubContract will map the xpub model from spv-wallet to the spv-wallet-models contract

func MapTransactionConfigEngineToModel

func MapTransactionConfigEngineToModel(tx *response.TransactionConfig) *engine.TransactionConfig

MapTransactionConfigEngineToModel will map the transaction-config model from spv-wallet to the spv-wallet-response contract

func MapTransactionInputModelToEngine

func MapTransactionInputModelToEngine(inp *response.TransactionInput) *engine.TransactionInput

MapTransactionInputModelToEngine will map the transaction-output model from spv-wallet to the spv-wallet-models contract

func MapTransactionModelToEngine

func MapTransactionModelToEngine(t *response.Transaction) *engine.Transaction

MapTransactionModelToEngine will map the model from spv-wallet-response to the spv-wallet contract

func MapTransactionOutputModelToEngine

func MapTransactionOutputModelToEngine(out *response.TransactionOutput) *engine.TransactionOutput

MapTransactionOutputModelToEngine will map the transaction-output model from spv-wallet-models to the spv-wallet contract

func MapUtxoModelToEngine

func MapUtxoModelToEngine(u *response.Utxo) *engine.Utxo

MapUtxoModelToEngine will map the utxo model from spv-wallet-models to the spv-wallet contract

func MapUtxoPointerModelToEngine

func MapUtxoPointerModelToEngine(u *response.UtxoPointer) *engine.UtxoPointer

MapUtxoPointerModelToEngine will map the utxo-pointer model from spv-wallet-models to the spv-wallet contract

Types

This section is empty.

Directories

Path Synopsis
Package common is a package that contains common models & methods used by all other packages.
Package common is a package that contains common models & methods used by all other packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL