Documentation
¶
Index ¶
- type BridgeClient
- func (b BridgeClient) SubmitEthereumDeposit(ctx context.Context, token common.Address, stellarRecipient string, ...) (*types.Receipt, error)
- func (b BridgeClient) SubmitEthereumRefund(ctx context.Context, ethereumTxHash string, logIndex uint, gasPrice *big.Int) (*types.Receipt, error)
- func (b BridgeClient) SubmitEthereumWithdrawal(ctx context.Context, stellarTxHash string, gasPrice *big.Int) (*types.Receipt, error)
- func (b BridgeClient) SubmitStellarDeposit(amount, asset, ethereumRecipient string) (*horizon.Transaction, error)
- func (b BridgeClient) SubmitStellarRefund(stellarTxHash string) (*horizon.Transaction, error)
- func (b BridgeClient) SubmitStellarWithdrawal(ethereumTxHash string, logIndex uint) (*horizon.Transaction, error)
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 (BridgeClient) SubmitEthereumRefund ¶
func (BridgeClient) SubmitEthereumWithdrawal ¶
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)
Click to show internal directories.
Click to hide internal directories.