Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 631 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Burn2Mint | 21469343 | 2 days ago | IN | 0 ETH | 0.00096556 | ||||
Burn2Mint | 21426716 | 8 days ago | IN | 0 ETH | 0.00138367 | ||||
Burn2Mint | 21426426 | 8 days ago | IN | 0 ETH | 0.00150854 | ||||
Burn2Mint | 21425629 | 8 days ago | IN | 0 ETH | 0.00195593 | ||||
Burn2Mint | 21424797 | 8 days ago | IN | 0 ETH | 0.00228239 | ||||
Burn2Mint | 21413482 | 10 days ago | IN | 0 ETH | 0.00094466 | ||||
Burn2Mint | 21406914 | 10 days ago | IN | 0 ETH | 0.00073524 | ||||
Burn2Mint | 21377388 | 15 days ago | IN | 0 ETH | 0.00134723 | ||||
Burn2Mint | 21023217 | 64 days ago | IN | 0 ETH | 0.00133156 | ||||
Burn2Mint | 20956696 | 73 days ago | IN | 0 ETH | 0.00136693 | ||||
Burn2Mint | 20956173 | 73 days ago | IN | 0 ETH | 0.00102075 | ||||
Burn2Mint | 20954817 | 74 days ago | IN | 0 ETH | 0.00106819 | ||||
Burn2Mint | 20954382 | 74 days ago | IN | 0 ETH | 0.00101508 | ||||
Burn2Mint | 20930956 | 77 days ago | IN | 0 ETH | 0.00137531 | ||||
Burn2Mint | 20881927 | 84 days ago | IN | 0 ETH | 0.00074204 | ||||
Burn2Mint | 20881925 | 84 days ago | IN | 0 ETH | 0.00074508 | ||||
Burn2Mint | 20879745 | 84 days ago | IN | 0 ETH | 0.00560468 | ||||
Burn2Mint | 20877387 | 84 days ago | IN | 0 ETH | 0.00079766 | ||||
Burn2Mint | 20858712 | 87 days ago | IN | 0 ETH | 0.00127904 | ||||
Burn2Mint | 20833057 | 91 days ago | IN | 0 ETH | 0.00166804 | ||||
Burn2Mint | 20727771 | 105 days ago | IN | 0 ETH | 0.00048415 | ||||
Burn2Mint | 20718025 | 107 days ago | IN | 0 ETH | 0.00031988 | ||||
Burn2Mint | 20705591 | 108 days ago | IN | 0 ETH | 0.00015173 | ||||
Burn2Mint | 20704231 | 109 days ago | IN | 0 ETH | 0.0002211 | ||||
Burn2Mint | 20648135 | 116 days ago | IN | 0 ETH | 0.00016364 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18065239 | 478 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
BBFLootBoxMinter
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC1155Mintable} from "../interfaces/IERC1155Mintable.sol"; import {IERC1155Burnable} from "../interfaces/IERC1155Burnable.sol"; import {IERC721Transfer} from "../interfaces/IERC721Transfer.sol"; import {ECDSA} from "solady/src/utils/ECDSA.sol"; import {Ownable} from "solady/src/auth/Ownable.sol"; contract BBFLootBoxMinter is Ownable { error ArrayLengthMismatch(); error InvalidAmount(); error InvalidSignature(); error Paused(); address private constant DEAD_ADDRESS = 0x000000000000000000000000000000000000dEaD; uint256 public constant SCISSORS_TOKEN_ID = 5; IERC721Transfer public constant BBF = IERC721Transfer(0x68Bd8b7C45633de6d7AFD0B1F7B86b37B8a3C02A); IERC1155Burnable public constant NEXTENSIONS = IERC1155Burnable(0x232765be70a5f0B49E2D72Eee9765813894C1Fc4); IERC1155Mintable public immutable lootBox; bool public cuttingEnabled; address public signer; constructor(address lootBox_, address signer_) { lootBox = IERC1155Mintable(lootBox_); _initializeOwner(tx.origin); signer = signer_; } function burn2Mint( uint256[] calldata bbfIds, uint256[] calldata lootBoxIds, uint256[] calldata lootBoxAmounts, bytes calldata signature ) external { if (!cuttingEnabled) { revert Paused(); } uint256 lootBoxLength = lootBoxAmounts.length; if (lootBoxIds.length != lootBoxLength) { revert ArrayLengthMismatch(); } bytes memory mintData = abi.encode(bbfIds, lootBoxIds, lootBoxAmounts); checkValidity(signature, mintData); uint256 bbfLength = bbfIds.length; for (uint256 j; j < bbfLength;) { uint256 tokenId = bbfIds[j]; BBF.transferFrom(msg.sender, DEAD_ADDRESS, tokenId); unchecked { ++j; } } NEXTENSIONS.burn(msg.sender, SCISSORS_TOKEN_ID, bbfLength); lootBox.batchMint(msg.sender, lootBoxIds, lootBoxAmounts); } function setSigner(address signer_) external onlyOwner { signer = signer_; } function setEnabled(bool enabled) external onlyOwner { cuttingEnabled = enabled; } function checkValidity(bytes calldata signature, bytes memory data) private view { if ( ECDSA.recoverCalldata(ECDSA.toEthSignedMessageHash(keccak256(data)), signature) != signer ) { revert InvalidSignature(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; interface IERC1155Mintable { function mint(address to, uint256 id, uint256 amount) external; function batchMint(address to, uint256[] memory ids, uint256[] memory amounts) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; interface IERC1155Burnable { function burn(address from, uint256 id, uint256 amount) external; function batchBurn(address from, uint256[] memory ids, uint256[] memory amounts) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; interface IERC721Transfer { function transferFrom(address, address, uint256) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Gas optimized ECDSA wrapper. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol) library ECDSA { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The signature is invalid. error InvalidSignature(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CONSTANTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The number which `s` must be less than in order for /// the signature to be non-malleable. bytes32 private constant _MALLEABILITY_THRESHOLD_PLUS_ONE = 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* RECOVERY OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // Note: as of Solady version 0.0.68, these functions will // revert upon recovery failure for more safety by default. /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function recover(bytes32 hash, bytes memory signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`. mstore(0x40, mload(add(signature, 0x20))) // `r`. mstore(0x60, mload(add(signature, 0x40))) // `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(mload(signature), 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { mstore(0x00, 0x8baa579f) // `InvalidSignature()`. revert(0x1c, 0x04) } mstore(0x60, 0) // Restore the zero slot. mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function recoverCalldata(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`. calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(signature.length, 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { mstore(0x00, 0x8baa579f) // `InvalidSignature()`. revert(0x1c, 0x04) } mstore(0x60, 0) // Restore the zero slot. mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, add(shr(255, vs), 27)) // `v`. mstore(0x40, r) mstore(0x60, shr(1, shl(1, vs))) // `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { mstore(0x00, 0x8baa579f) // `InvalidSignature()`. revert(0x1c, 0x04) } mstore(0x60, 0) // Restore the zero slot. mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(s, _MALLEABILITY_THRESHOLD_PLUS_ONE), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { mstore(0x00, 0x8baa579f) // `InvalidSignature()`. revert(0x1c, 0x04) } mstore(0x60, 0) // Restore the zero slot. mstore(0x40, m) // Restore the free memory pointer. } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* TRY-RECOVER OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // WARNING! // These functions will NOT revert upon recovery failure. // Instead, they will return the zero address upon recovery failure. // It is critical that the returned address is NEVER compared against // a zero address (e.g. an uninitialized address variable). /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function tryRecover(bytes32 hash, bytes memory signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`. mstore(0x40, mload(add(signature, 0x20))) // `r`. mstore(0x60, mload(add(signature, 0x40))) // `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(mload(signature), 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) mstore(0x60, 0) // Restore the zero slot. // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function tryRecoverCalldata(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`. calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(signature.length, 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) mstore(0x60, 0) // Restore the zero slot. // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, add(shr(255, vs), 27)) // `v`. mstore(0x40, r) mstore(0x60, shr(1, shl(1, vs))) // `s`. pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), _MALLEABILITY_THRESHOLD_PLUS_ONE), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) mstore(0x60, 0) // Restore the zero slot. // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) mstore(0x40, m) // Restore the free memory pointer. } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { let m := mload(0x40) // Cache the free memory pointer. mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(s, _MALLEABILITY_THRESHOLD_PLUS_ONE), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) mstore(0x60, 0) // Restore the zero slot. // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) mstore(0x40, m) // Restore the free memory pointer. } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* HASHING OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns an Ethereum Signed Message, created from a `hash`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) { /// @solidity memory-safe-assembly assembly { mstore(0x20, hash) // Store into scratch space for keccak256. mstore(0x00, "\x00\x00\x00\x00\x19Ethereum Signed Message:\n32") // 28 bytes. result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`. } } /// @dev Returns an Ethereum Signed Message, created from `s`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. /// Note: Supports lengths of `s` up to 999999 bytes. function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) { /// @solidity memory-safe-assembly assembly { let sLength := mload(s) let o := 0x20 mstore(o, "\x19Ethereum Signed Message:\n") // 26 bytes, zero-right-padded. mstore(0x00, 0x00) // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`. for { let temp := sLength } 1 {} { o := sub(o, 1) mstore8(o, add(48, mod(temp, 10))) temp := div(temp, 10) if iszero(temp) { break } } let n := sub(0x3a, o) // Header length: `26 + 32 - o`. // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes. returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20)) mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header. result := keccak256(add(s, sub(0x20, n)), add(n, sLength)) mstore(s, sLength) // Restore the length. } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EMPTY CALLDATA HELPERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns an empty calldata bytes. function emptySignature() internal pure returns (bytes calldata signature) { /// @solidity memory-safe-assembly assembly { signature.length := 0 } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Simple single owner authorization mixin. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol) /// /// @dev Note: /// This implementation does NOT auto-initialize the owner to `msg.sender`. /// You MUST call the `_initializeOwner` in the constructor / initializer. /// /// While the ownable portion follows /// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility, /// the nomenclature for the 2-step ownership handover may be unique to this codebase. abstract contract Ownable { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The caller is not authorized to call the function. error Unauthorized(); /// @dev The `newOwner` cannot be the zero address. error NewOwnerIsZeroAddress(); /// @dev The `pendingOwner` does not have a valid handover request. error NoHandoverRequest(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EVENTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The ownership is transferred from `oldOwner` to `newOwner`. /// This event is intentionally kept the same as OpenZeppelin's Ownable to be /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173), /// despite it not being as lightweight as a single argument event. event OwnershipTransferred(address indexed oldOwner, address indexed newOwner); /// @dev An ownership handover to `pendingOwner` has been requested. event OwnershipHandoverRequested(address indexed pendingOwner); /// @dev The ownership handover to `pendingOwner` has been canceled. event OwnershipHandoverCanceled(address indexed pendingOwner); /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`. uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE = 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0; /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE = 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d; /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE = 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STORAGE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The owner slot is given by: `not(_OWNER_SLOT_NOT)`. /// It is intentionally chosen to be a high value /// to avoid collision with lower slots. /// The choice of manual storage layout is to enable compatibility /// with both regular and upgradeable contracts. uint256 private constant _OWNER_SLOT_NOT = 0x8b78c6d8; /// The ownership handover slot of `newOwner` is given by: /// ``` /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED)) /// let handoverSlot := keccak256(0x00, 0x20) /// ``` /// It stores the expiry timestamp of the two-step ownership handover. uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Initializes the owner directly without authorization guard. /// This function must be called upon initialization, /// regardless of whether the contract is upgradeable or not. /// This is to enable generalization to both regular and upgradeable contracts, /// and to save gas in case the initial owner is not the caller. /// For performance reasons, this function will not check if there /// is an existing owner. function _initializeOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Store the new value. sstore(not(_OWNER_SLOT_NOT), newOwner) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner) } } /// @dev Sets the owner directly without authorization guard. function _setOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { let ownerSlot := not(_OWNER_SLOT_NOT) // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner) // Store the new value. sstore(ownerSlot, newOwner) } } /// @dev Throws if the sender is not the owner. function _checkOwner() internal view virtual { /// @solidity memory-safe-assembly assembly { // If the caller is not the stored owner, revert. if iszero(eq(caller(), sload(not(_OWNER_SLOT_NOT)))) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } /// @dev Returns how long a two-step ownership handover is valid for in seconds. /// Override to return a different value if needed. /// Made internal to conserve bytecode. Wrap it in a public function if needed. function _ownershipHandoverValidFor() internal view virtual returns (uint64) { return 48 * 3600; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC UPDATE FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Allows the owner to transfer the ownership to `newOwner`. function transferOwnership(address newOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { if iszero(shl(96, newOwner)) { mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`. revert(0x1c, 0x04) } } _setOwner(newOwner); } /// @dev Allows the owner to renounce their ownership. function renounceOwnership() public payable virtual onlyOwner { _setOwner(address(0)); } /// @dev Request a two-step ownership handover to the caller. /// The request will automatically expire in 48 hours (172800 seconds) by default. function requestOwnershipHandover() public payable virtual { unchecked { uint256 expires = block.timestamp + _ownershipHandoverValidFor(); /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to `expires`. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), expires) // Emit the {OwnershipHandoverRequested} event. log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller()) } } } /// @dev Cancels the two-step ownership handover to the caller, if any. function cancelOwnershipHandover() public payable virtual { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), 0) // Emit the {OwnershipHandoverCanceled} event. log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller()) } } /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`. /// Reverts if there is no existing ownership handover requested by `pendingOwner`. function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) let handoverSlot := keccak256(0x0c, 0x20) // If the handover does not exist, or has expired. if gt(timestamp(), sload(handoverSlot)) { mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`. revert(0x1c, 0x04) } // Set the handover slot to 0. sstore(handoverSlot, 0) } _setOwner(pendingOwner); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC READ FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the owner of the contract. function owner() public view virtual returns (address result) { /// @solidity memory-safe-assembly assembly { result := sload(not(_OWNER_SLOT_NOT)) } } /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`. function ownershipHandoverExpiresAt(address pendingOwner) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { // Compute the handover slot. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) // Load the handover slot. result := sload(keccak256(0x0c, 0x20)) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* MODIFIERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Marks a function as only callable by the owner. modifier onlyOwner() virtual { _checkOwner(); _; } }
{ "remappings": [ "ERC1155P/=lib/ERC1155P/contracts/", "closedsea/=lib/closedsea/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "erc721a-upgradeable/=lib/closedsea/lib/erc721a-upgradeable/contracts/", "erc721a/=lib/closedsea/lib/erc721a/contracts/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/closedsea/lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "operator-filter-registry/=lib/closedsea/lib/operator-filter-registry/", "solady/=lib/solady/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"lootBox_","type":"address"},{"internalType":"address","name":"signer_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"Paused","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"BBF","outputs":[{"internalType":"contract IERC721Transfer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NEXTENSIONS","outputs":[{"internalType":"contract IERC1155Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCISSORS_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bbfIds","type":"uint256[]"},{"internalType":"uint256[]","name":"lootBoxIds","type":"uint256[]"},{"internalType":"uint256[]","name":"lootBoxAmounts","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"burn2Mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cuttingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootBox","outputs":[{"internalType":"contract IERC1155Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b50604051610b89380380610b8983398101604081905261002f916100c9565b6001600160a01b03821660805261004532610071565b600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055506100fc565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b80516001600160a01b03811681146100c457600080fd5b919050565b600080604083850312156100dc57600080fd5b6100e5836100ad565b91506100f3602084016100ad565b90509250929050565b608051610a6b61011e6000396000818161021101526104a70152610a6b6000f3fe6080604052600436106100f35760003560e01c8063715018a61161008a578063ceb9d80e11610059578063ceb9d80e14610274578063f04e283e1461029e578063f2fde38b146102b1578063fee81cf4146102c457600080fd5b8063715018a6146101f757806371fa4958146101ff5780638da5cb5b14610233578063c772d25d1461024c57600080fd5b8063328d8f72116100c6578063328d8f72146101875780633d8d4633146101a757806354d1f13d146101cf5780636c19e783146101d757600080fd5b80630ee59218146100f8578063238ac9331461011a578063256929621461015c57806326d5fbbb14610164575b600080fd5b34801561010457600080fd5b5061011861011336600461081d565b6102f7565b005b34801561012657600080fd5b5060005461013f9061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610118610525565b34801561017057600080fd5b50610179600581565b604051908152602001610153565b34801561019357600080fd5b506101186101a236600461090e565b610575565b3480156101b357600080fd5b5061013f7368bd8b7c45633de6d7afd0b1f7b86b37b8a3c02a81565b610118610590565b3480156101e357600080fd5b506101186101f2366004610937565b6105cc565b6101186105fc565b34801561020b57600080fd5b5061013f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561023f57600080fd5b50638b78c6d8195461013f565b34801561025857600080fd5b5061013f73232765be70a5f0b49e2d72eee9765813894c1fc481565b34801561028057600080fd5b5060005461028e9060ff1681565b6040519015158152602001610153565b6101186102ac366004610937565b610610565b6101186102bf366004610937565b610650565b3480156102d057600080fd5b506101796102df366004610937565b63389a75e1600c908152600091909152602090205490565b60005460ff1661031a576040516313d0ff5960e31b815260040160405180910390fd5b8285811461033b5760405163512509d360e11b815260040160405180910390fd5b600089898989898960405160200161035896959493929190610992565b6040516020818303038152906040529050610374848483610677565b8860005b818110156104205760008c8c83818110610394576103946109db565b6040516323b872dd60e01b815233600482015261dead6024820152602090910292909201356044830181905292507368bd8b7c45633de6d7afd0b1f7b86b37b8a3c02a916323b872dd9150606401600060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b5050505081600101915050610378565b50604051637a94c56560e11b8152336004820152600560248201526044810182905273232765be70a5f0b49e2d72eee9765813894c1fc49063f5298aca90606401600060405180830381600087803b15801561047b57600080fd5b505af115801561048f573d6000803e3d6000fd5b50506040516219506960e71b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169250630ca8348091506104e69033908d908d908d908d906004016109f1565b600060405180830381600087803b15801561050057600080fd5b505af1158015610514573d6000803e3d6000fd5b505050505050505050505050505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b61057d610702565b6000805460ff1916911515919091179055565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b6105d4610702565b600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610604610702565b61060e600061071d565b565b610618610702565b63389a75e1600c52806000526020600c20805442111561064057636f5e88186000526004601cfd5b6000905561064d8161071d565b50565b610658610702565b8060601b61066e57637448fbae6000526004601cfd5b61064d8161071d565b600060019054906101000a90046001600160a01b03166001600160a01b03166106d66106cf83805190602001206020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b858561075b565b6001600160a01b0316146106fd57604051638baa579f60e01b815260040160405180910390fd5b505050565b638b78c6d81954331461060e576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b600060405184600052604084013560001a60205260408460403760206000608060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060511060418814165afa5060005191503d6107c257638baa579f6000526004601cfd5b60006060526040529392505050565b60008083601f8401126107e357600080fd5b50813567ffffffffffffffff8111156107fb57600080fd5b6020830191508360208260051b850101111561081657600080fd5b9250929050565b6000806000806000806000806080898b03121561083957600080fd5b883567ffffffffffffffff8082111561085157600080fd5b61085d8c838d016107d1565b909a50985060208b013591508082111561087657600080fd5b6108828c838d016107d1565b909850965060408b013591508082111561089b57600080fd5b6108a78c838d016107d1565b909650945060608b01359150808211156108c057600080fd5b818b0191508b601f8301126108d457600080fd5b8135818111156108e357600080fd5b8c60208285010111156108f557600080fd5b6020830194508093505050509295985092959890939650565b60006020828403121561092057600080fd5b8135801515811461093057600080fd5b9392505050565b60006020828403121561094957600080fd5b81356001600160a01b038116811461093057600080fd5b81835260006001600160fb1b0383111561097957600080fd5b8260051b80836020870137939093016020019392505050565b6060815260006109a660608301888a610960565b82810360208401526109b9818789610960565b905082810360408401526109ce818587610960565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0386168152606060208201819052600090610a169083018688610960565b8281036040840152610a29818587610960565b9897505050505050505056fea2646970667358221220ae83c988cab6514da02d6d87243f4bb543d7d8ccac9bcadf36b0dca4ac368c6a64736f6c634300081400330000000000000000000000000074c3db008c00000020733a003f000a93ad00fd0000000000000000000000001f70b19a3fba2db21e51c93a546d6b28cdb2a19e
Deployed Bytecode
0x6080604052600436106100f35760003560e01c8063715018a61161008a578063ceb9d80e11610059578063ceb9d80e14610274578063f04e283e1461029e578063f2fde38b146102b1578063fee81cf4146102c457600080fd5b8063715018a6146101f757806371fa4958146101ff5780638da5cb5b14610233578063c772d25d1461024c57600080fd5b8063328d8f72116100c6578063328d8f72146101875780633d8d4633146101a757806354d1f13d146101cf5780636c19e783146101d757600080fd5b80630ee59218146100f8578063238ac9331461011a578063256929621461015c57806326d5fbbb14610164575b600080fd5b34801561010457600080fd5b5061011861011336600461081d565b6102f7565b005b34801561012657600080fd5b5060005461013f9061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610118610525565b34801561017057600080fd5b50610179600581565b604051908152602001610153565b34801561019357600080fd5b506101186101a236600461090e565b610575565b3480156101b357600080fd5b5061013f7368bd8b7c45633de6d7afd0b1f7b86b37b8a3c02a81565b610118610590565b3480156101e357600080fd5b506101186101f2366004610937565b6105cc565b6101186105fc565b34801561020b57600080fd5b5061013f7f0000000000000000000000000074c3db008c00000020733a003f000a93ad00fd81565b34801561023f57600080fd5b50638b78c6d8195461013f565b34801561025857600080fd5b5061013f73232765be70a5f0b49e2d72eee9765813894c1fc481565b34801561028057600080fd5b5060005461028e9060ff1681565b6040519015158152602001610153565b6101186102ac366004610937565b610610565b6101186102bf366004610937565b610650565b3480156102d057600080fd5b506101796102df366004610937565b63389a75e1600c908152600091909152602090205490565b60005460ff1661031a576040516313d0ff5960e31b815260040160405180910390fd5b8285811461033b5760405163512509d360e11b815260040160405180910390fd5b600089898989898960405160200161035896959493929190610992565b6040516020818303038152906040529050610374848483610677565b8860005b818110156104205760008c8c83818110610394576103946109db565b6040516323b872dd60e01b815233600482015261dead6024820152602090910292909201356044830181905292507368bd8b7c45633de6d7afd0b1f7b86b37b8a3c02a916323b872dd9150606401600060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b5050505081600101915050610378565b50604051637a94c56560e11b8152336004820152600560248201526044810182905273232765be70a5f0b49e2d72eee9765813894c1fc49063f5298aca90606401600060405180830381600087803b15801561047b57600080fd5b505af115801561048f573d6000803e3d6000fd5b50506040516219506960e71b81526001600160a01b037f0000000000000000000000000074c3db008c00000020733a003f000a93ad00fd169250630ca8348091506104e69033908d908d908d908d906004016109f1565b600060405180830381600087803b15801561050057600080fd5b505af1158015610514573d6000803e3d6000fd5b505050505050505050505050505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b61057d610702565b6000805460ff1916911515919091179055565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b6105d4610702565b600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610604610702565b61060e600061071d565b565b610618610702565b63389a75e1600c52806000526020600c20805442111561064057636f5e88186000526004601cfd5b6000905561064d8161071d565b50565b610658610702565b8060601b61066e57637448fbae6000526004601cfd5b61064d8161071d565b600060019054906101000a90046001600160a01b03166001600160a01b03166106d66106cf83805190602001206020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b858561075b565b6001600160a01b0316146106fd57604051638baa579f60e01b815260040160405180910390fd5b505050565b638b78c6d81954331461060e576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b600060405184600052604084013560001a60205260408460403760206000608060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060511060418814165afa5060005191503d6107c257638baa579f6000526004601cfd5b60006060526040529392505050565b60008083601f8401126107e357600080fd5b50813567ffffffffffffffff8111156107fb57600080fd5b6020830191508360208260051b850101111561081657600080fd5b9250929050565b6000806000806000806000806080898b03121561083957600080fd5b883567ffffffffffffffff8082111561085157600080fd5b61085d8c838d016107d1565b909a50985060208b013591508082111561087657600080fd5b6108828c838d016107d1565b909850965060408b013591508082111561089b57600080fd5b6108a78c838d016107d1565b909650945060608b01359150808211156108c057600080fd5b818b0191508b601f8301126108d457600080fd5b8135818111156108e357600080fd5b8c60208285010111156108f557600080fd5b6020830194508093505050509295985092959890939650565b60006020828403121561092057600080fd5b8135801515811461093057600080fd5b9392505050565b60006020828403121561094957600080fd5b81356001600160a01b038116811461093057600080fd5b81835260006001600160fb1b0383111561097957600080fd5b8260051b80836020870137939093016020019392505050565b6060815260006109a660608301888a610960565b82810360208401526109b9818789610960565b905082810360408401526109ce818587610960565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0386168152606060208201819052600090610a169083018688610960565b8281036040840152610a29818587610960565b9897505050505050505056fea2646970667358221220ae83c988cab6514da02d6d87243f4bb543d7d8ccac9bcadf36b0dca4ac368c6a64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000074c3db008c00000020733a003f000a93ad00fd0000000000000000000000001f70b19a3fba2db21e51c93a546d6b28cdb2a19e
-----Decoded View---------------
Arg [0] : lootBox_ (address): 0x0074C3dB008c00000020733a003f000a93ad00Fd
Arg [1] : signer_ (address): 0x1F70b19A3fbA2DB21E51C93a546D6b28CdB2a19e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000074c3db008c00000020733a003f000a93ad00fd
Arg [1] : 0000000000000000000000001f70b19a3fba2db21e51c93a546d6b28cdb2a19e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.