Skip to content

Commit

Permalink
Feat: Add ERC1155RoyaltiesSoulboundV3 contract
Browse files Browse the repository at this point in the history
  • Loading branch information
vasinl124 committed Oct 14, 2024
1 parent e1ce1ae commit 1017c9f
Show file tree
Hide file tree
Showing 5 changed files with 2,094 additions and 1 deletion.
23 changes: 23 additions & 0 deletions contracts/soulbounds/ERC1155RoyaltiesSoulbound.sol
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,29 @@ contract ERC1155RoyaltiesSoulbound is
emit MintedId(to, id, amount, soulbound);
}

function adminBatchMintById(
address to,
uint256[] memory tokenIds,
uint256[] memory amounts,
bool soulbound
) external onlyRole(MINTER_ROLE) whenNotPaused {
for (uint256 i = 0; i < tokenIds.length; i++) {
uint256 _id = tokenIds[i];
uint256 _amount = amounts[i];
isTokenExist(_id);
if (isTokenMintPaused[_id]) {
revert("TokenMintPaused");
}

if (soulbound) {
_soulbound(to, _id, _amount);
}

_mint(to, _id, _amount, "");
emit MintedId(to, _id, _amount, soulbound);
}
}

function _update(
address from,
address to,
Expand Down
Loading

0 comments on commit 1017c9f

Please sign in to comment.