Private
currentPrivate
ethersPrivate
Optional
feePrivate
providersPrivate
signersPrivate
tokensapproveFeeHandler
approves to the fee handler
computeContract
returns bridge and ERC20 contracts
Sygma bridge config
connector object
Private
computecomputeERC20Contracts
computes the sygma contracts
Private
connectPrivate
connectconnectToken
connects to token
createDepositEventListener
creates the deposit events and returns the callback to use
createHomeChainDepositEventListener
creates the homechain deposit event listener
createProposalExecutionEventListener
creates the event for proposal execution and returns the callback to use
deposit
make deposit between two networks
depositGeneric
call generic handler to achieve general message passing
destinationProposalExecutionEventListener
returns the proposal execution listener
fetchBasicFeeData
fetch the basic fee data from FeeOracle service
fetchFeeData
it fetches the fee data according to bridge setup
the amount of token to transfer
receiver of the deposit
Private
fetchfetchFeeOracleData
fetch the fee oracle data from FeeOracle service
formatPermissionlessGenericDepositData
formats the data for the permissionaless handler
getBridgeSetup
chain to select to return the configuration that was passed on intiantiation
getSelectedToken
getTokenInfo
gets token info from one chain
isEIP1559MaxFeePerGas
check if node is EIP1559
proposalExecutionEventListenerCount
computes the amount of listeners
removeDepositEventListener
remove the deposit event
removeProposalExecutionEventListener
removes the proposal execution listener
selectHomeNetwork
returns homechain object
selectOneForDestination
returns the destinaton chain object
setFeeSettings
the fee settings type: current options are oracle or basic
address of the fee handler
the token on which the fee settings are being set
the chain on which the token is going to be altered
Generated using TypeDoc
Deprecated
since version 1.4.0
Name
Sygma
Description
Sygma is the main class that allows you to have bridging capabilities with simple usage