synapsebridge

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SynapseBridge

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

func NewSynapseBridge

func NewSynapseBridge(rpc bind.ContractBackend, address common.Address, chainID chainid.ChainID) (*SynapseBridge, error)

func (SynapseBridge) Address

func (s SynapseBridge) Address() common.Address

func (*SynapseBridge) Approve

func (s *SynapseBridge) Approve(ctx context.Context, opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

func (SynapseBridge) BridgeVersion

func (s SynapseBridge) BridgeVersion(ctx context.Context) (uint64, error)

BridgeVersion returns the current deployed version of this SynapseBridge's underlying contract on the SynapseBridge's chain.

func (SynapseBridge) ChainGasDropAmount

func (s SynapseBridge) ChainGasDropAmount(ctx context.Context) (*big.Int, error)

ChainGasDropAmount wraps the ChainGasAmount contract call. If a SynapseBridge contract for a given chain has a gas drop for users, that amount will be returned; otherwise, (barring an error) 0 will be returned.

func (SynapseBridge) KappaExists

func (s SynapseBridge) KappaExists(ctx context.Context, kappa_ kappa.Kappa) (bool, error)

KappaExists is primary for Synapse dev use only. Good luck.

func (SynapseBridge) ParseTokenDeposit

func (s SynapseBridge) ParseTokenDeposit(logItem types.Log) (*abis.SynapseBridgeTokenDeposit, error)

func (SynapseBridge) ParseTokenDepositAndSwap

func (s SynapseBridge) ParseTokenDepositAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenDepositAndSwap, error)

func (SynapseBridge) ParseTokenMint

func (s SynapseBridge) ParseTokenMint(logItem types.Log) (*abis.SynapseBridgeTokenMint, error)

func (SynapseBridge) ParseTokenMintAndSwap

func (s SynapseBridge) ParseTokenMintAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenMintAndSwap, error)

func (SynapseBridge) ParseTokenRedeem

func (s SynapseBridge) ParseTokenRedeem(logItem types.Log) (*abis.SynapseBridgeTokenRedeem, error)

func (SynapseBridge) ParseTokenRedeemAndRemove

func (s SynapseBridge) ParseTokenRedeemAndRemove(logItem types.Log) (*abis.SynapseBridgeTokenRedeemAndRemove, error)

func (SynapseBridge) ParseTokenRedeemAndSwap

func (s SynapseBridge) ParseTokenRedeemAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenRedeemAndSwap, error)

func (SynapseBridge) ParseTokenWithdraw

func (s SynapseBridge) ParseTokenWithdraw(logItem types.Log) (*abis.SynapseBridgeTokenWithdraw, error)

func (SynapseBridge) ParseTokenWithdrawAndRemove

func (s SynapseBridge) ParseTokenWithdrawAndRemove(logItem types.Log) (*abis.SynapseBridgeTokenWithdrawAndRemove, error)

func (SynapseBridge) SupportedTokens

func (s SynapseBridge) SupportedTokens() []token.Token

func (SynapseBridge) TokenAllowance

func (s SynapseBridge) TokenAllowance(ctx context.Context, token, address common.Address) (*big.Int, error)

func (SynapseBridge) WETHAddress

func (s SynapseBridge) WETHAddress(ctx context.Context) (common.Address, error)

WETHAddress wraps the WETH_ADDRESS contract call. It returns a valid address if the Synapse Bridge contract on a given network has a WETH (Wrapped ETH) address; otherwise, it returns the "zero address".

func (SynapseBridge) ZapBridgeAddress

func (s SynapseBridge) ZapBridgeAddress() common.Address

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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