Contracts
  • console
  • amm
    • AaveSwap
    • AaveSwapWrapper
    • AmplificationUtils
    • ILendingPool
    • LPToken
    • MathUtils
    • OwnerPausableUpgradeable
    • Swap
    • SwapDeployer
    • SwapEthWrapper
    • SwapFlashLoan
    • SwapUtils
    • helper
      • BaseSwapDeposit
      • FlashLoanBorrowerExample
      • GenericERC20
      • Multicall2
      • test
        • TestMathUtils
        • TestSwapReturnValues
    • interfaces
      • IFlashLoanReceiver
      • IMetaSwap
      • IMetaSwapDeposit
      • ISwap
      • ISwapFlashLoan
  • auxiliary
    • DummyWeth
    • DummyWethProxy
  • bridge
    • BridgeConfigV3
    • ECDSAFactory
    • ECDSANodeManagement
    • ERC20Migrator
    • HarmonySynapseBridge
    • IERC20Mintable
    • IFrax
    • MRSynapseBridge
    • MiniChefV2
    • PoolConfig
    • SynapseBridge
    • SynapseERC20
    • SynapseERC20DeterministicFactory
    • SynapseERC20Factory
    • interfaces
      • IECDSANodeManagement
      • IERC20Migrator
      • IMasterChef
      • IMetaSwapDeposit
      • IMiniChefV2
      • IRewarder
      • ISwap
      • ISynapseBridge
      • ISynapseERC20
    • libraries
      • SignedSafeMath
    • mocks
      • ERC20Mock
      • RewarderBrokenMock
      • RewarderMock
    • testing
      • NodeEnv
      • Synapse
    • utils
      • AddressArrayUtils
      • EnumerableStringMap
      • TimelockController
    • wrappers
      • AvaxJewelMigration
      • AvaxJewelMigrationV2
      • AvaxJewelSwap
      • GMXWrapper
      • HarmonyBridgeZap
      • IERC20Mintable
      • IFrax
      • IGMX
      • L1BridgeZap
      • L2BridgeZap
      • MigratorBridgeZap
      • MoonriverBridgeZap
  • messaging
    • AuthVerifier
    • GasFeePricing
    • MessageBus
    • MessageBusReceiver
    • MessageBusSender
    • apps
      • BatchMessageSender
      • PingPong
    • dfk
      • HeroCoreUpgradeable
      • IAssistingAuction
      • IHeroCoreUpgradeable
      • IStatScienceUpgradeable
      • StatScienceUpgradeable
      • auctions
        • AssistingAuctionUpgradeable
        • ERC721AuctionBaseUpgradeable
        • HeroAuctionUpgradeable
        • helpers
          • CrystalFeesUpgradeable
        • interfaces
          • IAssistingAuctionUpgradeable
      • bridge
        • HeroBridgeUpgradeable
        • TearBridge
      • inventory
        • GaiaTears
        • IInventoryItem
        • InventoryItem
      • libs
        • LibGeneScience
      • random
        • IRandomGenerator
        • RandomGenerator
    • framework
      • SynMessagingReceiver
      • SynMessagingReceiverUpgradeable
    • interfaces
      • IAuthVerifier
      • IGasFeePricing
      • IMessageBus
      • ISynMessagingReceiver
  • elin
    • contracts-4.3.1
      • access
        • AccessControl
        • IAccessControl
      • utils
        • Context
        • Strings
        • introspection
          • ERC165
          • IERC165
        • math
          • SafeMath
    • contracts-4.5.0
      • access
        • AccessControl
        • AccessControlEnumerable
        • IAccessControl
        • IAccessControlEnumerable
        • Ownable
      • security
        • Pausable
      • utils
        • Context
        • Strings
        • introspection
          • ERC165
          • IERC165
        • structs
          • EnumerableSet
      • token
        • ERC20
          • ERC20
          • IERC20
          • extensions
            • ERC20Burnable
            • ERC20Pausable
            • IERC20Metadata
          • presets
            • ERC20PresetMinterPauser
    • contracts-upgradeable-4.5.0
      • access
        • AccessControlUpgradeable
        • IAccessControlUpgradeable
        • OwnableUpgradeable
      • security
        • PausableUpgradeable
      • utils
        • AddressUpgradeable
        • ContextUpgradeable
        • StringsUpgradeable
        • introspection
          • ERC165Upgradeable
          • IERC165Upgradeable
      • proxy
        • utils
          • Initializable
      • token
        • ERC20
          • IERC20Upgradeable
        • ERC721
          • ERC721Upgradeable
          • IERC721ReceiverUpgradeable
          • IERC721Upgradeable
          • extensions
            • ERC721EnumerableUpgradeable
            • IERC721EnumerableUpgradeable
            • IERC721MetadataUpgradeable
    • contracts-upgradeable
      • access
        • AccessControlUpgradeable
        • OwnableUpgradeable
      • cryptography
        • ECDSAUpgradeable
      • drafts
        • EIP712Upgradeable
        • ERC20PermitUpgradeable
        • IERC20PermitUpgradeable
      • math
        • SafeMathUpgradeable
      • proxy
        • Initializable
      • utils
        • AddressUpgradeable
        • ContextUpgradeable
        • CountersUpgradeable
        • EnumerableSetUpgradeable
        • PausableUpgradeable
        • ReentrancyGuardUpgradeable
      • token
        • ERC20
          • ERC20BurnableUpgradeable
          • ERC20Upgradeable
          • IERC20Upgradeable
    • contracts
      • access
        • AccessControl
        • Ownable
      • cryptography
        • ECDSA
      • drafts
        • EIP712
        • ERC20Permit
        • IERC20Permit
      • math
        • SafeMath
      • proxy
        • Clones
      • utils
        • Address
        • Context
        • Counters
        • EnumerableSet
        • ReentrancyGuard
      • token
        • ERC20
          • ERC20
          • ERC20Burnable
          • IERC20
          • SafeERC20
  • ypto
    • boring-solidity
      • contracts
        • BaseBoringBatchable
        • BoringBatchable
        • BoringOwnable
        • BoringOwnableData
        • interfaces
          • IERC20
        • libraries
          • BoringERC20
          • BoringMath
          • BoringMath128
          • BoringMath32
          • BoringMath64
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Last updated 2 years ago

Was this helpful?

Methods

estimateFee

Returns srcGasToken fee to charge in wei for the cross-chain message based on the gas limit

Parameters

Name
Type
Description

Returns

Name
Type
Description

executeMessage

Relayer executes messages through an authenticated method to the destination receiver based on the originating transaction on source chain

Parameters

Name
Type
Description

sendMessage

Sends a message to a receiving contract address on another chain. Sender must make sure that the message is unique and not a duplicate message.

Parameters

withdrawFee

Withdraws message fee in the form of native gas token.

Parameters

Name
Type
Description
Name
Type
Description
function estimateFee(uint256 _dstChainId, bytes _options) external nonpayable returns (uint256)

_dstChainId

uint256

undefined

_options

bytes

Versioned struct used to instruct relayer on how to proceed with gas limits. Contains data on gas limit to submit tx with.

_0

uint256

undefined

function executeMessage(uint256 _srcChainId, bytes _srcAddress, address _dstAddress, uint256 _gasLimit, uint256 _nonce, bytes _message, bytes32 _messageId) external nonpayable

_srcChainId

uint256

Originating chain ID - typically a standard EVM chain ID, but may refer to a Synapse-specific chain ID on nonEVM chains

_srcAddress

bytes

Originating bytes address of the message sender on the srcChain

_dstAddress

address

Destination address that the arbitrary message will be passed to

_gasLimit

uint256

Gas limit to be passed alongside the message, depending on the fee paid on srcChain

_nonce

uint256

Nonce from origin chain

_message

bytes

Arbitrary message payload to pass to the destination chain receiver

_messageId

bytes32

MessageId for uniqueness of messages (alongisde nonce)

function sendMessage(bytes32 _receiver, uint256 _dstChainId, bytes _message, bytes _options) external payable

_receiver

bytes32

The bytes32 address of the destination contract to be called

_dstChainId

uint256

The destination chain ID - typically, standard EVM chain ID, but differs on nonEVM chains

_message

bytes

The arbitrary payload to pass to the destination chain receiver

_options

bytes

Versioned struct used to instruct relayer on how to proceed with gas limits

function withdrawFee(address _account) external nonpayable

_account

address

The address receiving the fee.

  1. messaging
  2. interfaces

IMessageBus

PreviousIGasFeePricingNextISynMessagingReceiver
  • Methods
  • estimateFee
  • executeMessage
  • sendMessage
  • withdrawFee