Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.03 KB

ReceiverStargateV2.md

File metadata and controls

26 lines (21 loc) · 1.03 KB

ReceiverStargateV2

Description

Periphery contract used for arbitrary cross-chain destination calls via StargateV2

How To Use

The contract has one method which will be called through the LayerZero endpoint:

  /// @notice Completes a stargateV2 cross-chain transaction on the receiving chain
  /// @dev This function is called by Stargate Router via LayerZero endpoint (sendCompose(...) function)
  /// @param _from The address initiating the composition, typically the OApp where the lzReceive was called
  /// @param * (unused) The unique identifier for the corresponding LayerZero src/dst tx
  /// @param _message The composed message payload in bytes. NOT necessarily the same payload passed via lzReceive
  /// @param * (unused) The address of the executor for the composed message
  /// @param * (unused) Additional arbitrary data in bytes passed by the entity who executes the lzCompose
    function lzCompose(
      address _from,
      bytes32,
      bytes calldata _message,
      address,
      bytes calldata
)