Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Multi Mint Batch | 18831898 | 209 days ago | IN | 0 ETH | 0.08055096 | ||||
Multi Mint Batch | 18831894 | 209 days ago | IN | 0 ETH | 0.07446822 | ||||
Multi Mint Batch | 18831890 | 209 days ago | IN | 0 ETH | 0.07366976 | ||||
Multi Mint Batch | 18831886 | 209 days ago | IN | 0 ETH | 0.08128864 | ||||
Multi Mint Batch | 18831882 | 209 days ago | IN | 0 ETH | 0.03956757 | ||||
Multi Mint Batch | 18831878 | 209 days ago | IN | 0 ETH | 0.02071114 | ||||
Multi Mint Batch | 18831874 | 209 days ago | IN | 0 ETH | 0.0178715 | ||||
Multi Mint Batch | 18831870 | 209 days ago | IN | 0 ETH | 0.0216233 | ||||
Multi Mint Batch | 18831866 | 209 days ago | IN | 0 ETH | 0.01849444 | ||||
Multi Mint Batch | 18831862 | 209 days ago | IN | 0 ETH | 0.01559855 | ||||
Multi Mint Batch | 18831857 | 209 days ago | IN | 0 ETH | 0.00854609 | ||||
Multi Mint Batch | 18831834 | 209 days ago | IN | 0 ETH | 0.075299 | ||||
Multi Mint Batch | 18831763 | 209 days ago | IN | 0 ETH | 0.11572277 | ||||
Multi Mint Batch | 17318911 | 421 days ago | IN | 0 ETH | 0.04946195 | ||||
Multi Mint Batch | 17283950 | 426 days ago | IN | 0 ETH | 0.10279177 | ||||
Multi Mint | 17283913 | 426 days ago | IN | 0 ETH | 0.03424061 | ||||
Multi Mint | 17283793 | 426 days ago | IN | 0 ETH | 0.04709818 | ||||
0x60a06040 | 17283037 | 426 days ago | IN | Create: KaijuAugmintsBatchMintExtension | 0 ETH | 0.03004423 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
KaijuAugmintsBatchMintExtension
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/IAccessControl.sol"; interface IKaijuAugmints is IAccessControl { function mint(address to, uint256 id, uint256 amount) external; function mintBatch(address to, uint256[] calldata ids, uint256[] calldata amounts) external; } error KaijuAugmintsBatchMintExtension_NotAllowed(); /** . :++- *##- +####* -##+ *####- :%######%. -%###* *######: =##########= .######* *#######*-#############*-*#######* *################################* *################################* *################################* *################################* *################################* :*******************************+. .:. *###%*=: .##########+-. +###############=: %##################%+ =###################### -######################++++++++++++++++++=-: =###########################################*: =#############################################. +####%#*+=-:. -#############################################: %############################################################= %############################################################## %##############################################################%=----::. %#######################################################################%: %##########################################+: :+%#######################: *########################################* *####################### -%###################################### %###################### -%###################################% ####################### =###################################- :####################### ....+##################################*. .+######################## +###########################################%*++*%########################## %#########################################################################*. %#######################################################################+ ########################################################################- *#######################################################################- .######################################################################%. :+#################################################################- :=#####################################################:..... :--:.:##############################################+ :: +###############################################%- ####%+-. %##################################################. %#######%*-. :###################################################% %###########%*=*####################################################= %#################################################################### %####################################################################+ %#####################################################################. %#####################################################################% %######################################################################- .+*********************************************************************. * @title Kaiju Augmints Batch Mint Extension * @author Augminted Labs, LLC * @notice Additional functions used for mass minting/airdropping Kaiju Augmints more efficiently */ contract KaijuAugmintsBatchMintExtension { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); IKaijuAugmints public immutable AUGMINTS; constructor(IKaijuAugmints augmints) { AUGMINTS = augmints; } /** * @notice Modifier that requires the sender to have the `MINTER_ROLE` role */ modifier onlyMinter() { if (!AUGMINTS.hasRole(MINTER_ROLE, msg.sender)) revert KaijuAugmintsBatchMintExtension_NotAllowed(); _; } /** * @notice Mass mint tokens to specified addresses * @param receivers Addresses receiving the minted tokens * @param ids Token identifiers to mint * @param amounts Amounts of the tokens to mint */ function multiMint( address[] calldata receivers, uint256[] calldata ids, uint256[] calldata amounts ) public onlyMinter { uint256 length = receivers.length; for (uint i; i < length;) { AUGMINTS.mint(receivers[i], ids[i], amounts[i]); unchecked { ++i; } } } /** * @notice Mass mint batches of tokens to specified addresses * @param receivers Addresses receiving the minted tokens * @param idsBatches Batches of token identifiers to mint * @param amountsBatches Batches of amounts of the tokens to mint */ function multiMintBatch( address[] calldata receivers, uint256[][] calldata idsBatches, uint256[][] calldata amountsBatches ) public onlyMinter { uint256 length = receivers.length; for (uint i; i < length;) { AUGMINTS.mintBatch(receivers[i], idsBatches[i], amountsBatches[i]); unchecked { ++i; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IKaijuAugmints","name":"augmints","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KaijuAugmintsBatchMintExtension_NotAllowed","type":"error"},{"inputs":[],"name":"AUGMINTS","outputs":[{"internalType":"contract IKaijuAugmints","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"multiMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[][]","name":"idsBatches","type":"uint256[][]"},{"internalType":"uint256[][]","name":"amountsBatches","type":"uint256[][]"}],"name":"multiMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b50604051610cb0380380610cb0833981810160405281019061003291906100e1565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505061010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061009c82610071565b9050919050565b60006100ae82610091565b9050919050565b6100be816100a3565b81146100c957600080fd5b50565b6000815190506100db816100b5565b92915050565b6000602082840312156100f7576100f661006c565b5b6000610105848285016100cc565b91505092915050565b608051610b6d6101436000396000818160c70152818160eb015281816101f0015281816102ed01526103f20152610b6d6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806337eecca31461005157806368495f7a1461006f578063cf4918dd1461008b578063d5391393146100a7575b600080fd5b6100596100c5565b60405161006691906105a8565b60405180910390f35b61008960048036038101906100849190610688565b6100e9565b005b6100a560048036038101906100a09190610792565b6102eb565b005b6100af610505565b6040516100bc919061085f565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b815260040161016492919061089b565b602060405180830381865afa158015610181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a591906108fc565b6101db576040517f17f1c18c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600086869050905060005b818110156102e1577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663156e29f689898481811061023d5761023c610929565b5b90506020020160208101906102529190610984565b88888581811061026557610264610929565b5b9050602002013587878681811061027f5761027e610929565b5b905060200201356040518463ffffffff1660e01b81526004016102a4939291906109ca565b600060405180830381600087803b1580156102be57600080fd5b505af11580156102d2573d6000803e3d6000fd5b505050508060010190506101e6565b5050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b815260040161036692919061089b565b602060405180830381865afa158015610383573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a791906108fc565b6103dd576040517f17f1c18c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600086869050905060005b818110156104fb577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d81d0a1589898481811061043f5761043e610929565b5b90506020020160208101906104549190610984565b88888581811061046757610466610929565b5b90506020028101906104799190610a10565b88888781811061048c5761048b610929565b5b905060200281019061049e9190610a10565b6040518663ffffffff1660e01b81526004016104be959493929190610aee565b600060405180830381600087803b1580156104d857600080fd5b505af11580156104ec573d6000803e3d6000fd5b505050508060010190506103e8565b5050505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061056e61056961056484610529565b610549565b610529565b9050919050565b600061058082610553565b9050919050565b600061059282610575565b9050919050565b6105a281610587565b82525050565b60006020820190506105bd6000830184610599565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126105f2576105f16105cd565b5b8235905067ffffffffffffffff81111561060f5761060e6105d2565b5b60208301915083602082028301111561062b5761062a6105d7565b5b9250929050565b60008083601f840112610648576106476105cd565b5b8235905067ffffffffffffffff811115610665576106646105d2565b5b602083019150836020820283011115610681576106806105d7565b5b9250929050565b600080600080600080606087890312156106a5576106a46105c3565b5b600087013567ffffffffffffffff8111156106c3576106c26105c8565b5b6106cf89828a016105dc565b9650965050602087013567ffffffffffffffff8111156106f2576106f16105c8565b5b6106fe89828a01610632565b9450945050604087013567ffffffffffffffff811115610721576107206105c8565b5b61072d89828a01610632565b92509250509295509295509295565b60008083601f840112610752576107516105cd565b5b8235905067ffffffffffffffff81111561076f5761076e6105d2565b5b60208301915083602082028301111561078b5761078a6105d7565b5b9250929050565b600080600080600080606087890312156107af576107ae6105c3565b5b600087013567ffffffffffffffff8111156107cd576107cc6105c8565b5b6107d989828a016105dc565b9650965050602087013567ffffffffffffffff8111156107fc576107fb6105c8565b5b61080889828a0161073c565b9450945050604087013567ffffffffffffffff81111561082b5761082a6105c8565b5b61083789828a0161073c565b92509250509295509295509295565b6000819050919050565b61085981610846565b82525050565b60006020820190506108746000830184610850565b92915050565b600061088582610529565b9050919050565b6108958161087a565b82525050565b60006040820190506108b06000830185610850565b6108bd602083018461088c565b9392505050565b60008115159050919050565b6108d9816108c4565b81146108e457600080fd5b50565b6000815190506108f6816108d0565b92915050565b600060208284031215610912576109116105c3565b5b6000610920848285016108e7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6109618161087a565b811461096c57600080fd5b50565b60008135905061097e81610958565b92915050565b60006020828403121561099a576109996105c3565b5b60006109a88482850161096f565b91505092915050565b6000819050919050565b6109c4816109b1565b82525050565b60006060820190506109df600083018661088c565b6109ec60208301856109bb565b6109f960408301846109bb565b949350505050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112610a2d57610a2c610a01565b5b80840192508235915067ffffffffffffffff821115610a4f57610a4e610a06565b5b602083019250602082023603831315610a6b57610a6a610a0b565b5b509250929050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000610a9e8385610a73565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610ad157610ad0610a84565b5b602083029250610ae2838584610a89565b82840190509392505050565b6000606082019050610b03600083018861088c565b8181036020830152610b16818688610a92565b90508181036040830152610b2b818486610a92565b9050969550505050505056fea26469706673582212207efecb7ca0574be5121567c4f31b8d75a7ba5e212ad771279626680ea5d666af64736f6c6343000810003300000000000000000000000084beb95095033483fa195907497c77b31ba510e2
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806337eecca31461005157806368495f7a1461006f578063cf4918dd1461008b578063d5391393146100a7575b600080fd5b6100596100c5565b60405161006691906105a8565b60405180910390f35b61008960048036038101906100849190610688565b6100e9565b005b6100a560048036038101906100a09190610792565b6102eb565b005b6100af610505565b6040516100bc919061085f565b60405180910390f35b7f00000000000000000000000084beb95095033483fa195907497c77b31ba510e281565b7f00000000000000000000000084beb95095033483fa195907497c77b31ba510e273ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b815260040161016492919061089b565b602060405180830381865afa158015610181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a591906108fc565b6101db576040517f17f1c18c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600086869050905060005b818110156102e1577f00000000000000000000000084beb95095033483fa195907497c77b31ba510e273ffffffffffffffffffffffffffffffffffffffff1663156e29f689898481811061023d5761023c610929565b5b90506020020160208101906102529190610984565b88888581811061026557610264610929565b5b9050602002013587878681811061027f5761027e610929565b5b905060200201356040518463ffffffff1660e01b81526004016102a4939291906109ca565b600060405180830381600087803b1580156102be57600080fd5b505af11580156102d2573d6000803e3d6000fd5b505050508060010190506101e6565b5050505050505050565b7f00000000000000000000000084beb95095033483fa195907497c77b31ba510e273ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336040518363ffffffff1660e01b815260040161036692919061089b565b602060405180830381865afa158015610383573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a791906108fc565b6103dd576040517f17f1c18c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600086869050905060005b818110156104fb577f00000000000000000000000084beb95095033483fa195907497c77b31ba510e273ffffffffffffffffffffffffffffffffffffffff1663d81d0a1589898481811061043f5761043e610929565b5b90506020020160208101906104549190610984565b88888581811061046757610466610929565b5b90506020028101906104799190610a10565b88888781811061048c5761048b610929565b5b905060200281019061049e9190610a10565b6040518663ffffffff1660e01b81526004016104be959493929190610aee565b600060405180830381600087803b1580156104d857600080fd5b505af11580156104ec573d6000803e3d6000fd5b505050508060010190506103e8565b5050505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061056e61056961056484610529565b610549565b610529565b9050919050565b600061058082610553565b9050919050565b600061059282610575565b9050919050565b6105a281610587565b82525050565b60006020820190506105bd6000830184610599565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126105f2576105f16105cd565b5b8235905067ffffffffffffffff81111561060f5761060e6105d2565b5b60208301915083602082028301111561062b5761062a6105d7565b5b9250929050565b60008083601f840112610648576106476105cd565b5b8235905067ffffffffffffffff811115610665576106646105d2565b5b602083019150836020820283011115610681576106806105d7565b5b9250929050565b600080600080600080606087890312156106a5576106a46105c3565b5b600087013567ffffffffffffffff8111156106c3576106c26105c8565b5b6106cf89828a016105dc565b9650965050602087013567ffffffffffffffff8111156106f2576106f16105c8565b5b6106fe89828a01610632565b9450945050604087013567ffffffffffffffff811115610721576107206105c8565b5b61072d89828a01610632565b92509250509295509295509295565b60008083601f840112610752576107516105cd565b5b8235905067ffffffffffffffff81111561076f5761076e6105d2565b5b60208301915083602082028301111561078b5761078a6105d7565b5b9250929050565b600080600080600080606087890312156107af576107ae6105c3565b5b600087013567ffffffffffffffff8111156107cd576107cc6105c8565b5b6107d989828a016105dc565b9650965050602087013567ffffffffffffffff8111156107fc576107fb6105c8565b5b61080889828a0161073c565b9450945050604087013567ffffffffffffffff81111561082b5761082a6105c8565b5b61083789828a0161073c565b92509250509295509295509295565b6000819050919050565b61085981610846565b82525050565b60006020820190506108746000830184610850565b92915050565b600061088582610529565b9050919050565b6108958161087a565b82525050565b60006040820190506108b06000830185610850565b6108bd602083018461088c565b9392505050565b60008115159050919050565b6108d9816108c4565b81146108e457600080fd5b50565b6000815190506108f6816108d0565b92915050565b600060208284031215610912576109116105c3565b5b6000610920848285016108e7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6109618161087a565b811461096c57600080fd5b50565b60008135905061097e81610958565b92915050565b60006020828403121561099a576109996105c3565b5b60006109a88482850161096f565b91505092915050565b6000819050919050565b6109c4816109b1565b82525050565b60006060820190506109df600083018661088c565b6109ec60208301856109bb565b6109f960408301846109bb565b949350505050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112610a2d57610a2c610a01565b5b80840192508235915067ffffffffffffffff821115610a4f57610a4e610a06565b5b602083019250602082023603831315610a6b57610a6a610a0b565b5b509250929050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000610a9e8385610a73565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610ad157610ad0610a84565b5b602083029250610ae2838584610a89565b82840190509392505050565b6000606082019050610b03600083018861088c565b8181036020830152610b16818688610a92565b90508181036040830152610b2b818486610a92565b9050969550505050505056fea26469706673582212207efecb7ca0574be5121567c4f31b8d75a7ba5e212ad771279626680ea5d666af64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000084beb95095033483fa195907497c77b31ba510e2
-----Decoded View---------------
Arg [0] : augmints (address): 0x84bEb95095033483Fa195907497c77B31bA510E2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000084beb95095033483fa195907497c77b31ba510e2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.