Documentation ¶
Index ¶
- type SynapseBridge
- func (s SynapseBridge) Address() common.Address
- func (s *SynapseBridge) Approve(ctx context.Context, opts *bind.TransactOpts, token common.Address, ...) (*types.Transaction, error)
- func (s SynapseBridge) BridgeVersion(ctx context.Context) (uint64, error)
- func (s SynapseBridge) ChainGasDropAmount(ctx context.Context) (*big.Int, error)
- func (s SynapseBridge) KappaExists(ctx context.Context, kappa_ kappa.Kappa) (bool, error)
- func (s SynapseBridge) ParseTokenDeposit(logItem types.Log) (*abis.SynapseBridgeTokenDeposit, error)
- func (s SynapseBridge) ParseTokenDepositAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenDepositAndSwap, error)
- func (s SynapseBridge) ParseTokenMint(logItem types.Log) (*abis.SynapseBridgeTokenMint, error)
- func (s SynapseBridge) ParseTokenMintAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenMintAndSwap, error)
- func (s SynapseBridge) ParseTokenRedeem(logItem types.Log) (*abis.SynapseBridgeTokenRedeem, error)
- func (s SynapseBridge) ParseTokenRedeemAndRemove(logItem types.Log) (*abis.SynapseBridgeTokenRedeemAndRemove, error)
- func (s SynapseBridge) ParseTokenRedeemAndSwap(logItem types.Log) (*abis.SynapseBridgeTokenRedeemAndSwap, error)
- func (s SynapseBridge) ParseTokenWithdraw(logItem types.Log) (*abis.SynapseBridgeTokenWithdraw, error)
- func (s SynapseBridge) ParseTokenWithdrawAndRemove(logItem types.Log) (*abis.SynapseBridgeTokenWithdrawAndRemove, error)
- func (s SynapseBridge) SupportedTokens() []token.Token
- func (s SynapseBridge) TokenAllowance(ctx context.Context, token, address common.Address) (*big.Int, error)
- func (s SynapseBridge) WETHAddress(ctx context.Context) (common.Address, error)
- func (s SynapseBridge) ZapBridgeAddress() common.Address
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 ¶
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 ¶
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 (SynapseBridge) WETHAddress ¶
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
Click to show internal directories.
Click to hide internal directories.