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 ¶
- func MapDestinationModelToEngine(d *response.Destination) *engine.Destination
- func MapFeeUnitModelToEngine(fu *response.FeeUnit) (fc *bsv.FeeUnit)
- func MapMapProtocolModelToEngine(mp *response.MapProtocol) *engine.MapProtocol
- func MapOldDestinationModelToEngine(d *models.Destination) *engine.Destination
- func MapOldFeeUnitModelToEngine(fu *models.FeeUnit) (fc *bsv.FeeUnit)
- func MapOldMapProtocolModelToEngine(mp *models.MapProtocol) *engine.MapProtocol
- func MapOldOpReturnModelToEngine(op *models.OpReturn) *engine.OpReturn
- func MapOldPaymailP4ModelToEngine(p *models.PaymailP4) *engine.PaymailP4
- func MapOldScriptOutputModelToEngine(so *models.ScriptOutput) (sc *engine.ScriptOutput)
- func MapOldSyncConfigModelToEngine(sc *models.SyncConfig) *engine.SyncConfig
- func MapOldToDestinationContract(d *engine.Destination) *models.Destination
- func MapOldTransactionConfigEngineToModel(tx *models.TransactionConfig) *engine.TransactionConfig
- func MapOldTransactionInputModelToEngine(inp *models.TransactionInput) *engine.TransactionInput
- func MapOldTransactionModelToEngine(t *models.Transaction) *engine.Transaction
- func MapOldTransactionOutputModelToEngine(out *models.TransactionOutput) *engine.TransactionOutput
- func MapOldUtxoModelToEngine(u *models.Utxo) *engine.Utxo
- func MapOldUtxoPointerModelToEngine(u *models.UtxoPointer) *engine.UtxoPointer
- func MapOpReturnModelToEngine(op *response.OpReturn) *engine.OpReturn
- func MapPaymailP4ModelToEngine(p *response.PaymailP4) *engine.PaymailP4
- func MapScriptOutputModelToEngine(so *response.ScriptOutput) (sc *engine.ScriptOutput)
- func MapSyncConfigModelToEngine(sc *response.SyncConfig) *engine.SyncConfig
- func MapToAccessKeyContract(ac *engine.AccessKey) *response.AccessKey
- func MapToAdminStatsContract(s *engine.AdminStats) *response.AdminStats
- func MapToContactContract(src *engine.Contact) *response.Contact
- func MapToContactContracts(src []*engine.Contact) []*response.Contact
- func MapToDbQueryParams(model *filter.Page) *datastore.QueryParams
- func MapToDestinationContract(d *engine.Destination) *response.Destination
- func MapToDraftTransactionContract(tx *engine.DraftTransaction) *response.DraftTransaction
- func MapToFeeUnitContract(fu *bsv.FeeUnit) (fc *response.FeeUnit)
- func MapToMapProtocolContract(mp *engine.MapProtocol) *response.MapProtocol
- func MapToMetadata(explicitMap map[string]interface{}) *engine.Metadata
- func MapToOldAccessKeyContract(ac *engine.AccessKey) *models.AccessKey
- func MapToOldAdminStatsContract(s *engine.AdminStats) *models.AdminStats
- func MapToOldContactContract(src *engine.Contact) *models.Contact
- func MapToOldContactContracts(src []*engine.Contact) []*models.Contact
- func MapToOldDraftTransactionContract(tx *engine.DraftTransaction) *models.DraftTransaction
- func MapToOldFeeUnitContract(fu *bsv.FeeUnit) (fc *models.FeeUnit)
- func MapToOldMapProtocolContract(mp *engine.MapProtocol) *models.MapProtocol
- func MapToOldOpReturnContract(op *engine.OpReturn) *models.OpReturn
- func MapToOldPaymailContract(pa *engine.PaymailAddress) *models.PaymailAddress
- func MapToOldPaymailP4Contract(p *engine.PaymailP4) *models.PaymailP4
- func MapToOldScriptOutputContract(so *engine.ScriptOutput) (sc *models.ScriptOutput)
- func MapToOldSyncConfigContract(sc *engine.SyncConfig) *models.SyncConfig
- func MapToOldTransactionConfigContract(tx *engine.TransactionConfig) *models.TransactionConfig
- func MapToOldTransactionContract(t *engine.Transaction) *models.Transaction
- func MapToOldTransactionContractForAdmin(t *engine.Transaction) *models.Transaction
- func MapToOldTransactionInputContract(inp *engine.TransactionInput) *models.TransactionInput
- func MapToOldTransactionOutputContract(out *engine.TransactionOutput) *models.TransactionOutput
- func MapToOldUtxoContract(u *engine.Utxo) *models.Utxo
- func MapToOldUtxoPointer(u *engine.UtxoPointer) *models.UtxoPointer
- func MapToOldXpubContract(xpub *engine.Xpub) *models.Xpub
- func MapToOpReturnContract(op *engine.OpReturn) *response.OpReturn
- func MapToPaymailContract(pa *engine.PaymailAddress) *response.PaymailAddress
- func MapToPaymailP4Contract(p *engine.PaymailP4) *response.PaymailP4
- func MapToQueryParams(model *filter.QueryParams) *datastore.QueryParams
- func MapToScriptOutputContract(so *engine.ScriptOutput) (sc *response.ScriptOutput)
- func MapToSpvWalletMetadata(metadata *models.Metadata) *engine.Metadata
- func MapToSyncConfigContract(sc *engine.SyncConfig) *response.SyncConfig
- func MapToTransactionConfigContract(tx *engine.TransactionConfig) *response.TransactionConfig
- func MapToTransactionContract(t *engine.Transaction) *response.Transaction
- func MapToTransactionContractForAdmin(t *engine.Transaction) *response.Transaction
- func MapToTransactionInputContract(inp *engine.TransactionInput) *response.TransactionInput
- func MapToTransactionOutputContract(out *engine.TransactionOutput) *response.TransactionOutput
- func MapToUtxoContract(u *engine.Utxo) *response.Utxo
- func MapToUtxoPointer(u *engine.UtxoPointer) *response.UtxoPointer
- func MapToWebhookContract(w notifications.ModelWebhook) *models.Webhook
- func MapToXpubContract(xpub *engine.Xpub) *response.Xpub
- func MapTransactionConfigEngineToModel(tx *response.TransactionConfig) *engine.TransactionConfig
- func MapTransactionInputModelToEngine(inp *response.TransactionInput) *engine.TransactionInput
- func MapTransactionModelToEngine(t *response.Transaction) *engine.Transaction
- func MapTransactionOutputModelToEngine(out *response.TransactionOutput) *engine.TransactionOutput
- func MapUtxoModelToEngine(u *response.Utxo) *engine.Utxo
- func MapUtxoPointerModelToEngine(u *response.UtxoPointer) *engine.UtxoPointer
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 ¶
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 ¶
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 ¶
MapOldOpReturnModelToEngine will map the op-return model from spv-wallet-models to the spv-wallet contract
func MapOldPaymailP4ModelToEngine ¶
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 ¶
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 ¶
MapOpReturnModelToEngine will map the op-return model from spv-wallet-models to the spv-wallet contract
func MapPaymailP4ModelToEngine ¶
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 ¶
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
MapToContactContract will map the contact to the spv-wallet-models contract
func MapToContactContracts ¶ added in v0.26.0
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 ¶
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
MapToMetadata converts "raw" key-value map to aliased engine.Metadata
func MapToOldAccessKeyContract ¶
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 ¶
MapToOldContactContract will map the contact to the spv-wallet-models contract
func MapToOldContactContracts ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MapToOldXpubContract will map the xpub model from spv-wallet to the spv-wallet-models contract
func MapToOpReturnContract ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
Source Files
¶
- access_keys.go
- access_keys_old.go
- admin_stats.go
- admin_stats_old.go
- contact.go
- destination.go
- destination_old.go
- fee_unit.go
- fee_unit_old.go
- filter_old.go
- metadata.go
- paymail_address.go
- paymail_address_old.go
- script_output.go
- script_output_old.go
- search.go
- sync_config.go
- sync_config_old.go
- transaction.go
- transactions_old.go
- utxo.go
- webhook.go
- xpub.go