Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interfaces add receiver field schain #171

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions contracts/schain/TokenManagers/ITokenManagerERC1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,26 @@ interface ITokenManagerERC1155 is ITokenContractManager {
uint256 id,
uint256 amount
) external;
function transferToSchainERC1155Direct(
string calldata targetSchainName,
address contractOnMainnet,
uint256 id,
uint256 amount,
address receiver
) external;
function transferToSchainERC1155Batch(
string calldata targetSchainName,
address contractOnMainnet,
uint256[] memory ids,
uint256[] memory amounts
) external;
function transferToSchainERC1155BatchDirect(
string calldata targetSchainName,
address contractOnMainnet,
uint256[] calldata ids,
uint256[] calldata amounts,
address receiver
) external;
function addERC1155TokenByOwner(
string calldata targetChainName,
address erc1155OnMainnet,
Expand Down
6 changes: 6 additions & 0 deletions contracts/schain/TokenManagers/ITokenManagerERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ interface ITokenManagerERC20 is ITokenContractManager {
address contractOnMainnet,
uint256 amount
) external;
function transferToSchainERC20Direct(
string calldata targetSchainName,
address contractOnMainnet,
uint256 amount,
address receiver
) external;
function addERC20TokenByOwner(
string calldata targetChainName,
address erc20OnMainnet,
Expand Down
6 changes: 6 additions & 0 deletions contracts/schain/TokenManagers/ITokenManagerERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ interface ITokenManagerERC721 is ITokenContractManager {
address contractOnMainnet,
uint256 tokenId
) external;
function transferToSchainERC721Direct(
string calldata targetSchainName,
address contractOnMainnet,
uint256 tokenId,
address receiver
) external;
function addERC721TokenByOwner(
string calldata targetChainName,
address erc721OnMainnet,
Expand Down
Loading