-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from axieinfinity/feature/ERC1155Common
chore(ERC1155Common): add interface and minor linter
- Loading branch information
Showing
3 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
interface IERC1155Common { | ||
/** | ||
* @dev Mints a single ERC1155 token and assigns it to the specified address. | ||
* @param to The address to which the minted token will be assigned. | ||
* @param id The ID of the token to mint. | ||
* @param amount The amount of tokens to mint. | ||
*/ | ||
function mint(address to, uint256 id, uint256 amount) external; | ||
|
||
/** | ||
* @dev Mints multiple ERC1155 tokens and assigns them to the specified address. | ||
* @param to The address to which the minted tokens will be assigned. | ||
* @param ids The IDs of the tokens to mint. | ||
* @param amounts The amounts of tokens to mint. | ||
*/ | ||
function batchMint(address to, uint256[] calldata ids, uint256[] calldata amounts) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters