mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
add: events and interface
This commit is contained in:
parent
392a905f4d
commit
0406bcbf81
14
contracts/optimism/connectors/connext/events.sol
Normal file
14
contracts/optimism/connectors/connext/events.sol
Normal file
|
@ -0,0 +1,14 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.7.0;
|
||||
|
||||
contract Events {
|
||||
event LogXCall(
|
||||
uint32 destination,
|
||||
address to,
|
||||
address asset,
|
||||
address delegate,
|
||||
uint256 amount,
|
||||
uint256 slippage,
|
||||
uint256 getId
|
||||
);
|
||||
}
|
30
contracts/optimism/connectors/connext/interface.sol
Normal file
30
contracts/optimism/connectors/connext/interface.sol
Normal file
|
@ -0,0 +1,30 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.7.0;
|
||||
|
||||
interface IConnext {
|
||||
function xcall(
|
||||
uint32 _destination,
|
||||
address _to,
|
||||
address _asset,
|
||||
address _delegate,
|
||||
uint256 _amount,
|
||||
uint256 _slippage,
|
||||
bytes calldata _callData
|
||||
) external payable returns (bytes32);
|
||||
}
|
||||
|
||||
interface IInstaReceiver {
|
||||
function withdraw(
|
||||
address _asset,
|
||||
uint256 _amount
|
||||
) external returns (bytes memory);
|
||||
|
||||
function xReceive(
|
||||
bytes32 _transferId,
|
||||
uint256 _amount,
|
||||
address _asset,
|
||||
address _originSender,
|
||||
uint32 _origin,
|
||||
bytes memory _callData
|
||||
) external returns (bytes memory);
|
||||
}
|
Loading…
Reference in New Issue
Block a user