services

package
v0.0.0-...-43207eb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPoolPopulator

func NewPoolPopulator(router router.Router, store store.Store, rpcService services.RPCService) (*poolPopulator, error)

func NewTransactionManager

func NewTransactionManager(cfg TransactionManagerConfigs) *transactionManager

func NewTransactionService

func NewTransactionService(opts TransactionServiceOptions) (*transactionService, error)

Types

type PoolPopulator

type PoolPopulator interface {
	PopulatePools(ctx context.Context)
}

type TransactionManager

type TransactionManager interface {
	BuildAndSubmitTransaction(ctx context.Context, channelName string, payload tss.Payload) (tss.RPCSendTxResponse, error)
}

type TransactionManagerConfigs

type TransactionManagerConfigs struct {
	TxService  TransactionService
	RPCService services.RPCService
	Store      store.Store
}

type TransactionManagerMock

type TransactionManagerMock struct {
	mock.Mock
}

func (*TransactionManagerMock) BuildAndSubmitTransaction

func (t *TransactionManagerMock) BuildAndSubmitTransaction(ctx context.Context, channelName string, payload tss.Payload) (tss.RPCSendTxResponse, error)

type TransactionService

type TransactionService interface {
	NetworkPassphrase() string
	SignAndBuildNewFeeBumpTransaction(ctx context.Context, origTxXdr string) (*txnbuild.FeeBumpTransaction, error)
}

type TransactionServiceMock

type TransactionServiceMock struct {
	mock.Mock
}

func (*TransactionServiceMock) GetTransaction

func (t *TransactionServiceMock) GetTransaction(transactionHash string) (tss.RPCGetIngestTxResponse, error)

func (*TransactionServiceMock) NetworkPassphrase

func (t *TransactionServiceMock) NetworkPassphrase() string

func (*TransactionServiceMock) SendTransaction

func (t *TransactionServiceMock) SendTransaction(transactionXdr string) (tss.RPCSendTxResponse, error)

func (*TransactionServiceMock) SignAndBuildNewFeeBumpTransaction

func (t *TransactionServiceMock) SignAndBuildNewFeeBumpTransaction(ctx context.Context, origTxXdr string) (*txnbuild.FeeBumpTransaction, error)

type TransactionServiceOptions

type TransactionServiceOptions struct {
	DistributionAccountSignatureClient signing.SignatureClient
	ChannelAccountSignatureClient      signing.SignatureClient
	HorizonClient                      horizonclient.ClientInterface
	BaseFee                            int64
}

func (*TransactionServiceOptions) ValidateOptions

func (o *TransactionServiceOptions) ValidateOptions() error

Jump to

Keyboard shortcuts

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