client

package
v0.0.0-...-ddfbed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeClient

type BridgeClient struct {
	ValidatorURLs               []string
	EthereumURL                 string
	EthereumChainID             int
	HorizonURL                  string
	NetworkPassphrase           string
	EthereumBridgeAddress       string
	StellarBridgeAccount        string
	EthereumBridgeConfigVersion uint32
	StellarPrivateKey           string
	EthereumPrivateKey          string
}

func (BridgeClient) SubmitEthereumDeposit

func (b BridgeClient) SubmitEthereumDeposit(
	ctx context.Context,
	token common.Address,
	stellarRecipient string,
	amount,
	gasPrice *big.Int,
) (*types.Receipt, error)

func (BridgeClient) SubmitEthereumRefund

func (b BridgeClient) SubmitEthereumRefund(
	ctx context.Context,
	ethereumTxHash string,
	logIndex uint,
	gasPrice *big.Int,
) (*types.Receipt, error)

func (BridgeClient) SubmitEthereumWithdrawal

func (b BridgeClient) SubmitEthereumWithdrawal(
	ctx context.Context,
	stellarTxHash string,
	gasPrice *big.Int,
) (*types.Receipt, error)

func (BridgeClient) SubmitStellarDeposit

func (b BridgeClient) SubmitStellarDeposit(amount, asset, ethereumRecipient string) (*horizon.Transaction, error)

func (BridgeClient) SubmitStellarRefund

func (b BridgeClient) SubmitStellarRefund(
	stellarTxHash string,
) (*horizon.Transaction, error)

func (BridgeClient) SubmitStellarWithdrawal

func (b BridgeClient) SubmitStellarWithdrawal(
	ethereumTxHash string,
	logIndex uint,
) (*horizon.Transaction, error)

Jump to

Keyboard shortcuts

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