Skip to content

Commit

Permalink
Merge pull request #205 from skalenetwork/ima-interfaces-rc
Browse files Browse the repository at this point in the history
Ima interfaces M->S receiver field
  • Loading branch information
DimaStebaev authored Feb 16, 2023
2 parents c30a8c3 + f6f89e6 commit ab29e9d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contracts/mainnet/DepositBoxes/IDepositBoxERC1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,26 @@ import "../IDepositBox.sol";

interface IDepositBoxERC1155 is IDepositBox {
function depositERC1155(string calldata schainName, address erc1155OnMainnet, uint256 id, uint256 amount) external;
function depositERC1155Direct(
string calldata schainName,
address erc1155OnMainnet,
uint256 id,
uint256 amount,
address receiver
) external;
function depositERC1155Batch(
string calldata schainName,
address erc1155OnMainnet,
uint256[] calldata ids,
uint256[] calldata amounts
) external;
function depositERC1155BatchDirect(
string calldata schainName,
address erc1155OnMainnet,
uint256[] calldata ids,
uint256[] calldata amounts,
address receiver
) external;
function addERC1155TokenByOwner(string calldata schainName, address erc1155OnMainnet) external;
function getFunds(
string calldata schainName,
Expand Down
6 changes: 6 additions & 0 deletions contracts/mainnet/DepositBoxes/IDepositBoxERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ interface IDepositBoxERC20 is IDepositBox {
function depositERC20(string calldata schainName, address erc20OnMainnet, uint256 amount) external;
function doTransfer(address token, address receiver, uint256 amount) external;
function escalate(uint256 transferId) external;
function depositERC20Direct(
string calldata schainName,
address erc20OnMainnet,
uint256 amount,
address receiver
) external;
function getFunds(string calldata schainName, address erc20OnMainnet, address receiver, uint amount) external;
function rejectTransfer(uint transferId) external;
function retrieve() external;
Expand Down
6 changes: 6 additions & 0 deletions contracts/mainnet/DepositBoxes/IDepositBoxERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ import "../IDepositBox.sol";

interface IDepositBoxERC721 is IDepositBox {
function depositERC721(string calldata schainName, address erc721OnMainnet, uint256 tokenId) external;
function depositERC721Direct(
string calldata schainName,
address erc721OnMainnet,
uint256 tokenId,
address receiver
) external;
function addERC721TokenByOwner(string calldata schainName, address erc721OnMainnet) external;
function getFunds(string calldata schainName, address erc721OnMainnet, address receiver, uint tokenId) external;
function getSchainToERC721(string calldata schainName, address erc721OnMainnet) external view returns (bool);
Expand Down
1 change: 1 addition & 0 deletions contracts/mainnet/DepositBoxes/IDepositBoxEth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import "../IDepositBox.sol";
interface IDepositBoxEth is IDepositBox {
receive() external payable;
function deposit(string memory schainName) external payable;
function depositDirect(string memory schainName, address receiver) external payable;
function getMyEth() external;
function getFunds(string calldata schainName, address payable receiver, uint amount) external;
function enableActiveEthTransfers(string calldata schainName) external;
Expand Down

0 comments on commit ab29e9d

Please sign in to comment.