mapper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	FromV0VaultToV1Wallet(
		vault v0domain.Vault, walletPass string,
	) (*v1domain.Wallet, error)
	FromV0TradesToV1Trades(
		trades []*v0domain.Trade, net string,
	) ([]*domain.Trade, error)
	FromV0DepositsToV1Deposits(
		deposits []*v0domain.Deposit,
	) ([]domain.Deposit, error)
	FromV0WithdrawalsToV1Withdrawals(
		withdrawals []*v0domain.Withdrawal, net string,
	) ([]domain.Withdrawal, error)
	FromV0WebhooksToV1Subscriptions(
		webhooks []*v0webhook.Webhook,
	) ([]ports.Webhook, error)
	FromV0MarketsToV1Markets(
		markets []*v0domain.Market,
	) ([]*domain.Market, error)
	FromV0UnspentsToV1Utxos(
		unspents []*v0domain.Unspent,
	) ([]*v1domain.Utxo, error)
	FromV0TransactionsToV1Transactions(
		trades []*domain.Trade, deposits []*domain.Deposit,
		withdrawals []*domain.Withdrawal, accountsByLabel map[string]string,
	) map[string]*v1domain.Transaction
}

func NewService

func NewService(
	v0RepoManager v0domain.TdexRepoManager,
) Service

Jump to

Keyboard shortcuts

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