service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressBalanceTypes

type AddressBalanceTypes string
const (
	RegularBalanceUpdate      AddressBalanceTypes = "REGULAR_BALANCE_UPDATE"
	SafeBalanceIncreaseUpdate AddressBalanceTypes = "SAFE_BALANCE_INCREASE_UPDATE"
	SafeBalanceDecreaseUpdate AddressBalanceTypes = "SAFE_BALANCE_DECREASE_UPDATE"
)

type BaseTransactionName

type BaseTransactionName string

type CurrencyService

type CurrencyService interface {
	// The exported functions
	NormalizeCurrencyHash(currencyHash *string) string
	GetNativeCurrencyHash() string
	GetCurrencyHashBySymbol(symbol string) (err error, currencyHash string)
}

func NewCurrencyService

func NewCurrencyService() CurrencyService

type SyncHistory

type SyncHistory struct {
	LastIndexMainNode   int64
	LastIndexBackupNode int64
	IsSynced            bool
}

type TokenGenerationCurrencyBuilder

type TokenGenerationCurrencyBuilder struct {
	ServiceDataRes *dto.TokenGenerationServiceDataRes
	DbServiceData  *entities.TokenGenerationServiceData
	TxId           int32
}

type TokenGenerationServiceDataBuilder

type TokenGenerationServiceDataBuilder struct {
	ServiceDataRes *dto.TokenGenerationServiceDataRes
	DbBaseTx       *entities.TokenGenerationFeeBaseTransaction
}

type TokenMintingServiceDataBuilder

type TokenMintingServiceDataBuilder struct {
	ServiceDataRes *dto.TokenMintingServiceDataRes
	DbBaseTx       *entities.TokenMintingFeeBaseTransaction
	DbTx           *entities.Transaction
}

type TransactionAddressBuilder

type TransactionAddressBuilder struct {
	// contains filtered or unexported fields
}

type TransactionCurrencyBuilder

type TransactionCurrencyBuilder struct {
	// contains filtered or unexported fields
}

type TransactionService

type TransactionService interface {
	RunSync()
	GetLastIndex(fullnodeUrl string) <-chan dto.TransactionsLastIndexChanelResult
	GetLastIteration() int64
	GetFullnodeUrl() string
	GetBackupFullnodeUrl() string
	GetSyncHistory() SyncHistory
}

func NewTransactionService

func NewTransactionService() TransactionService

NewTransactionService we made this one a singleton because it has a state

type TxBuilder

type TxBuilder struct {
	Tx   dto.TransactionResponse
	DbTx *entities.Transaction
}

type UpdateBalanceRes

type UpdateBalanceRes struct {
	Id         int32
	Identifier string
}

Jump to

Keyboard shortcuts

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