mappings

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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

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 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 MapOldDestinationModelToEngine

func MapOldDestinationModelToEngine(d *models.Destination) *engine.Destination

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

func MapOldFeeUnitModelToEngine

func MapOldFeeUnitModelToEngine(fu *models.FeeUnit) (fc *bsv.FeeUnit)

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

func MapOldMapProtocolModelToEngine

func MapOldMapProtocolModelToEngine(mp *models.MapProtocol) *engine.MapProtocol

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

func MapOldOpReturnModelToEngine

func MapOldOpReturnModelToEngine(op *models.OpReturn) *engine.OpReturn

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

func MapOldPaymailP4ModelToEngine

func MapOldPaymailP4ModelToEngine(p *models.PaymailP4) *engine.PaymailP4

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

func MapOldScriptOutputModelToEngine

func MapOldScriptOutputModelToEngine(so *models.ScriptOutput) (sc *engine.ScriptOutput)

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

func MapOldSyncConfigModelToEngine

func MapOldSyncConfigModelToEngine(sc *models.SyncConfig) *engine.SyncConfig

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

func MapOldToDestinationContract

func MapOldToDestinationContract(d *engine.Destination) *models.Destination

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

func MapOldTransactionConfigEngineToModel

func MapOldTransactionConfigEngineToModel(tx *models.TransactionConfig) *engine.TransactionConfig

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

func MapOldTransactionInputModelToEngine

func MapOldTransactionInputModelToEngine(inp *models.TransactionInput) *engine.TransactionInput

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

func MapOldTransactionModelToEngine

func MapOldTransactionModelToEngine(t *models.Transaction) *engine.Transaction

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

func MapOldTransactionOutputModelToEngine

func MapOldTransactionOutputModelToEngine(out *models.TransactionOutput) *engine.TransactionOutput

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

func MapOldUtxoModelToEngine

func MapOldUtxoModelToEngine(u *models.Utxo) *engine.Utxo

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

func MapOldUtxoPointerModelToEngine

func MapOldUtxoPointerModelToEngine(u *models.UtxoPointer) *engine.UtxoPointer

MapOldUtxoPointerModelToEngine will map the utxo-pointer 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 added in v0.19.0

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

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

func MapToContactContracts added in v0.26.0

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 added in v0.28.0

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

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

func MapToOldAccessKeyContract

func MapToOldAccessKeyContract(ac *engine.AccessKey) *models.AccessKey

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

func MapToOldAdminStatsContract

func MapToOldAdminStatsContract(s *engine.AdminStats) *models.AdminStats

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

func MapToOldContactContract

func MapToOldContactContract(src *engine.Contact) *models.Contact

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

func MapToOldContactContracts

func MapToOldContactContracts(src []*engine.Contact) []*models.Contact

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

func MapToOldDraftTransactionContract

func MapToOldDraftTransactionContract(tx *engine.DraftTransaction) *models.DraftTransaction

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

func MapToOldFeeUnitContract

func MapToOldFeeUnitContract(fu *bsv.FeeUnit) (fc *models.FeeUnit)

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

func MapToOldMapProtocolContract

func MapToOldMapProtocolContract(mp *engine.MapProtocol) *models.MapProtocol

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

func MapToOldOpReturnContract

func MapToOldOpReturnContract(op *engine.OpReturn) *models.OpReturn

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

func MapToOldPaymailContract

func MapToOldPaymailContract(pa *engine.PaymailAddress) *models.PaymailAddress

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

func MapToOldPaymailP4Contract

func MapToOldPaymailP4Contract(p *engine.PaymailP4) *models.PaymailP4

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

func MapToOldScriptOutputContract

func MapToOldScriptOutputContract(so *engine.ScriptOutput) (sc *models.ScriptOutput)

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

func MapToOldSyncConfigContract

func MapToOldSyncConfigContract(sc *engine.SyncConfig) *models.SyncConfig

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

func MapToOldTransactionConfigContract

func MapToOldTransactionConfigContract(tx *engine.TransactionConfig) *models.TransactionConfig

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

func MapToOldTransactionContract

func MapToOldTransactionContract(t *engine.Transaction) *models.Transaction

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

func MapToOldTransactionContractForAdmin

func MapToOldTransactionContractForAdmin(t *engine.Transaction) *models.Transaction

MapToOldTransactionContractForAdmin will map the model from spv-wallet to the spv-wallet-models contract for admin

func MapToOldTransactionInputContract

func MapToOldTransactionInputContract(inp *engine.TransactionInput) *models.TransactionInput

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

func MapToOldTransactionOutputContract

func MapToOldTransactionOutputContract(out *engine.TransactionOutput) *models.TransactionOutput

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

func MapToOldUtxoContract

func MapToOldUtxoContract(u *engine.Utxo) *models.Utxo

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

func MapToOldUtxoPointer

func MapToOldUtxoPointer(u *engine.UtxoPointer) *models.UtxoPointer

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

func MapToOldXpubContract

func MapToOldXpubContract(xpub *engine.Xpub) *models.Xpub

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

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 MapToQueryParams added in v0.28.0

func MapToQueryParams(model *filter.QueryParams) *datastore.QueryParams

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

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 MapToSpvWalletMetadata

func MapToSpvWalletMetadata(metadata *models.Metadata) *engine.Metadata

MapToSpvWalletMetadata will map the *spvwalletmodels.Metadata to *spv.Metadata

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