Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 110 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Inc Burnin Index | 20201225 | 5 days ago | IN | 0 ETH | 0.0000737 | ||||
Set Paused | 20201152 | 5 days ago | IN | 0 ETH | 0.00005661 | ||||
Burnin Registory | 20190944 | 6 days ago | IN | 0 ETH | 0.00082552 | ||||
Burnin Registory | 20189736 | 7 days ago | IN | 0 ETH | 0.00037682 | ||||
Burnin Registory | 20175193 | 9 days ago | IN | 0 ETH | 0.00023009 | ||||
Burnin Registory | 20161782 | 10 days ago | IN | 0 ETH | 0.00073907 | ||||
Burnin Registory | 20151051 | 12 days ago | IN | 0 ETH | 0.0001486 | ||||
Burnin Registory | 20145864 | 13 days ago | IN | 0 ETH | 0.00020332 | ||||
Burnin Registory | 20111470 | 17 days ago | IN | 0 ETH | 0.00040771 | ||||
Burnin Registory | 20108265 | 18 days ago | IN | 0 ETH | 0.00025198 | ||||
Burnin Registory | 20107734 | 18 days ago | IN | 0 ETH | 0.00025713 | ||||
Burnin Registory | 20100742 | 19 days ago | IN | 0 ETH | 0.00020227 | ||||
Burnin Registory | 20096777 | 20 days ago | IN | 0 ETH | 0.00027712 | ||||
Burnin Registory | 20096612 | 20 days ago | IN | 0 ETH | 0.00029586 | ||||
Burnin Registory | 20096233 | 20 days ago | IN | 0 ETH | 0.00031654 | ||||
Burnin Registory | 20096197 | 20 days ago | IN | 0 ETH | 0.00039128 | ||||
Burnin Registory | 20096142 | 20 days ago | IN | 0 ETH | 0.00030649 | ||||
Burnin Registory | 20095455 | 20 days ago | IN | 0 ETH | 0.00031967 | ||||
Set Merkle Root | 20095444 | 20 days ago | IN | 0 ETH | 0.00011508 | ||||
Set Paused | 20095436 | 20 days ago | IN | 0 ETH | 0.00012604 | ||||
Inc Burnin Index | 20094015 | 20 days ago | IN | 0 ETH | 0.00009211 | ||||
Set Paused | 20093885 | 20 days ago | IN | 0 ETH | 0.00008755 | ||||
Burnin Registory | 20090198 | 20 days ago | IN | 0 ETH | 0.00057687 | ||||
Burnin Registory | 20086828 | 21 days ago | IN | 0 ETH | 0.00067631 | ||||
Burnin Registory | 20085459 | 21 days ago | IN | 0 ETH | 0.00075899 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenURIforAPP
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* * Created by masataka.eth (@masataka_net) */ import "./interface/ITokenURIforAPP.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; pragma solidity >=0.7.0 <0.9.0; contract TokenURIforAPP is ITokenURIforAPP,AccessControl{ using Strings for uint256; struct WalletMng { uint128 burninIndex; uint128 burninCount; } IERC721 public burninNFT; address public constant WITHDRAW_ADDRESS = 0x62314D5A0F7CBed83Df49C53B9f2C687d2c18289; mapping(uint256 => uint256) public burninIndexTokenId; mapping(address => WalletMng) public _walletMng; uint128 public currentBurninIndex = 1; // First time burnin is 1 and original is 0. bool public paused = true; // uint256 public cost = 0.001 ether; uint256 public cost = 0 ether; bytes32 public merkleRoot; string public baseURI; string public baseURI_lock; string public baseExtension = ".json"; string public beforeRevealURI; event Registory(uint256 indexed burningIndex, address indexed owner, uint256 tokenId); error OnlyOperatedByTokenOwner(uint256 tokenId, address operator); constructor() { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); // default baseURI = "https://nft.aopanda.ainy-llc.com/site/app/metadata/"; baseURI_lock = "https://nft.aopanda.ainy-llc.com/site/app_lock/metadata/"; beforeRevealURI = "https://nft.aopanda.ainy-llc.com/site/app/reveal/metadata/"; } // modifier modifier onlyAdmin() { _checkRole(DEFAULT_ADMIN_ROLE); _; } // onlyAdmin function setBurninNFT(IERC721 _address) external onlyAdmin { burninNFT = _address; } function setCost(uint256 _value) external onlyAdmin { cost = _value; } function setMerkleRoot(bytes32 _merkleRoot) external onlyAdmin { merkleRoot = _merkleRoot; } function setBaseURI(string memory newURI) external virtual onlyAdmin { baseURI = newURI; } function setBaseURI_lock(string memory newURI) external virtual onlyAdmin { baseURI_lock = newURI; } function setBaseExtension(string memory newExt) external virtual onlyAdmin { baseExtension = newExt; } function setBeforeRevealURI(string memory newURI) external virtual onlyAdmin { beforeRevealURI = newURI; } function IncBurninIndex() external onlyAdmin { currentBurninIndex += 1; } function setPaused(bool _value) external onlyAdmin { paused = _value; } function withdraw() external onlyAdmin { (bool os, ) = payable(WITHDRAW_ADDRESS).call{value: address(this).balance}(""); require(os); } // external function burninRegistory (uint256[] memory _burnTokenIds,uint256 _alAmountMax,bytes32[] calldata _merkleProof) external payable{ require(paused == false,"sale is not active"); require(tx.origin == msg.sender,"the caller is another controler"); require(getALAuth(msg.sender,_alAmountMax,_merkleProof) == true,"You don't have a Allowlist!"); require(_burnTokenIds.length > 0, "need to burnin at least 1 NFT"); require(_burnTokenIds.length <= _getRemainWithCheck(msg.sender,_alAmountMax), "claim is over max amount"); if(cost > 0){ require(msg.value >= cost * _burnTokenIds.length, "not enough eth"); } _walletMng[msg.sender].burninCount += uint128(_burnTokenIds.length); for (uint256 i = 0; i < _burnTokenIds.length; i++) { uint256 tokenId = _burnTokenIds[i]; if(burninNFT.ownerOf(tokenId) != msg.sender) revert OnlyOperatedByTokenOwner(tokenId, msg.sender); burninIndexTokenId[tokenId] = currentBurninIndex; emit Registory(currentBurninIndex,msg.sender,tokenId); } } function getALAuth(address _address,uint256 _wlAmountMax,bytes32[] calldata _merkleProof) public view returns (bool) { bool _exit = false; bytes32 _leaf = keccak256(abi.encodePacked(_address,_wlAmountMax)); if(MerkleProof.verifyCalldata(_merkleProof, merkleRoot, _leaf) == true){ _exit = true; } return _exit; } function getRemain(address _address,uint256 _alAmountMax,bytes32[] calldata _merkleProof ) external view returns (uint256) { uint256 _Amount = 0; if(paused == false){ if(getALAuth(_address,_alAmountMax,_merkleProof) == true){ _Amount = _getRemain(_address,_alAmountMax); } } return _Amount; } function tokenURI_future(uint256 _tokkenId,uint256 _locked) external view returns(string memory URI){ if(burninIndexTokenId[_tokkenId] < currentBurninIndex){ string memory _baseURI = baseURI; if(_locked == 1){ // locked _baseURI = baseURI_lock; } // Show Image if(burninIndexTokenId[_tokkenId] == 0){ // original URI = string.concat( _baseURI, _tokkenId.toString(), baseExtension ); }else{ // burnin URI = string.concat( _baseURI, burninIndexTokenId[_tokkenId].toString(), "/", _tokkenId.toString(), baseExtension ); } }else{ // before rebeal string memory _metadata = "0.json"; if(_locked == 1){ // locked _metadata = "1.json"; } URI = string.concat( beforeRevealURI, _metadata ); } } // @dev Call carefully to avoid blockgaslimit function isBurnin(uint256[] calldata _tokenIds) external view returns(bool[] memory){ bool[] memory _isBurnin = new bool[](_tokenIds.length); for (uint256 i = 0; i < _tokenIds.length; i++) { _isBurnin[i] = (burninIndexTokenId[_tokenIds[i]] == currentBurninIndex); } return _isBurnin; } // internal function _resetCount(address _owner) internal{ if(_walletMng[_owner].burninIndex < currentBurninIndex){ _walletMng[_owner].burninIndex = currentBurninIndex; _walletMng[_owner].burninCount = 0; } } function _getRemain(address _address,uint256 _alAmountMax) internal view returns (uint256){ uint256 _Amount = 0; if(_walletMng[_address].burninIndex < currentBurninIndex){ _Amount = _alAmountMax; }else{ _Amount = _alAmountMax - _walletMng[_address].burninCount; } return _Amount; } function _getRemainWithCheck(address _address,uint256 _alAmountMax) internal returns (uint256){ _resetCount(_address); // Always check reset return _getRemain(_address,_alAmountMax); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @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. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.7.0 <0.9.0; interface ITokenURIforAPP{ function tokenURI_future(uint256 _tokenId,uint256 _locked) external view returns(string memory); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"operator","type":"address"}],"name":"OnlyOperatedByTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"burningIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Registory","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IncBurninIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"WITHDRAW_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_walletMng","outputs":[{"internalType":"uint128","name":"burninIndex","type":"uint128"},{"internalType":"uint128","name":"burninCount","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI_lock","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeRevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burninIndexTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burninNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_alAmountMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"burninRegistory","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBurninIndex","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_wlAmountMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"getALAuth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_alAmountMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"getRemain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isBurnin","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newExt","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI_lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBeforeRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_address","type":"address"}],"name":"setBurninNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokkenId","type":"uint256"},{"internalType":"uint256","name":"_locked","type":"uint256"}],"name":"tokenURI_future","outputs":[{"internalType":"string","name":"URI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600480546001600160881b0319167001000000000000000000000000000000011790556000600590815560c0604052608090815264173539b7b760d91b60a0526009906200004e908262000234565b503480156200005c57600080fd5b506200006a600033620000ee565b604051806060016040528060338152602001620022886033913960079062000093908262000234565b50604051806060016040528060388152602001620022f560389139600890620000bd908262000234565b506040518060600160405280603a8152602001620022bb603a9139600a90620000e7908262000234565b5062000300565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200018b576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200014a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001ba57607f821691505b602082108103620001db57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022f57600081815260208120601f850160051c810160208610156200020a5750805b601f850160051c820191505b818110156200022b5782815560010162000216565b5050505b505050565b81516001600160401b038111156200025057620002506200018f565b6200026881620002618454620001a5565b84620001e1565b602080601f831160018114620002a05760008415620002875750858301515b600019600386901b1c1916600185901b1785556200022b565b600085815260208120601f198616915b82811015620002d157888601518255948401946001909101908401620002b0565b5085821015620002f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f7880620003106000396000f3fe6080604052600436106101f95760003560e01c806360ac98191161010d578063bb6c34e6116100a0578063d547741f1161006f578063d547741f1461061e578063da3ef23f1461063e578063df45bbcc1461065e578063f67a54dd1461067e578063fcf0a0511461069357600080fd5b8063bb6c34e614610543578063c6682862146105a4578063cc11cdb4146105b9578063ceef0f6a146105f157600080fd5b80638d9cc507116100dc5780638d9cc507146104ce57806391d14854146104ee578063a217fddf1461050e578063b5c9843a1461052357600080fd5b806360ac9819146104645780636c0360eb146104795780637cb647591461048e57806385101ac3146104ae57600080fd5b80632eb4a7ab1161019057806341bd8c3f1161015f57806341bd8c3f146103b657806344a0d68a146103d65780634559a1f6146103f657806355f804b3146104235780635c975abb1461044357600080fd5b80632eb4a7ab1461034b5780632f2ff15d1461036157806336568abe146103815780633ccfd60b146103a157600080fd5b806316c38b3c116101cc57806316c38b3c146102b9578063173e81df146102d957806321c06908146102fb578063248a9ca31461031b57600080fd5b806301ffc9a7146101fe5780630dbc2ce014610233578063122e04a81461025557806313faede614610295575b600080fd5b34801561020a57600080fd5b5061021e610219366004611761565b6106a6565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061025361024e3660046117d2565b6106dd565b005b34801561026157600080fd5b5061027d7362314d5a0f7cbed83df49c53b9f2c687d2c1828981565b6040516001600160a01b03909116815260200161022a565b3480156102a157600080fd5b506102ab60055481565b60405190815260200161022a565b3480156102c557600080fd5b506102536102d4366004611867565b6106f7565b3480156102e557600080fd5b506102ee61071f565b60405161022a91906118ad565b34801561030757600080fd5b5060015461027d906001600160a01b031681565b34801561032757600080fd5b506102ab6103363660046118e0565b60009081526020819052604090206001015490565b34801561035757600080fd5b506102ab60065481565b34801561036d57600080fd5b5061025361037c36600461190e565b6107ad565b34801561038d57600080fd5b5061025361039c36600461190e565b6107d7565b3480156103ad57600080fd5b50610253610856565b3480156103c257600080fd5b506102ab6103d136600461198a565b6108cc565b3480156103e257600080fd5b506102536103f13660046118e0565b610911565b34801561040257600080fd5b506102ab6104113660046118e0565b60026020526000908152604090205481565b34801561042f57600080fd5b5061025361043e3660046117d2565b610920565b34801561044f57600080fd5b5060045461021e90600160801b900460ff1681565b34801561047057600080fd5b506102ee610936565b34801561048557600080fd5b506102ee610943565b34801561049a57600080fd5b506102536104a93660046118e0565b610950565b3480156104ba57600080fd5b5061021e6104c936600461198a565b61095f565b3480156104da57600080fd5b506102536104e93660046119e6565b6109ca565b3480156104fa57600080fd5b5061021e61050936600461190e565b6109f6565b34801561051a57600080fd5b506102ab600081565b34801561052f57600080fd5b506102ee61053e366004611a03565b610a1f565b34801561054f57600080fd5b5061058461055e3660046119e6565b6003602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b0393841681529290911660208301520161022a565b3480156105b057600080fd5b506102ee610c72565b3480156105c557600080fd5b506004546105d9906001600160801b031681565b6040516001600160801b03909116815260200161022a565b3480156105fd57600080fd5b5061061161060c366004611a25565b610c7f565b60405161022a9190611a67565b34801561062a57600080fd5b5061025361063936600461190e565b610d48565b34801561064a57600080fd5b506102536106593660046117d2565b610d6d565b34801561066a57600080fd5b506102536106793660046117d2565b610d83565b34801561068a57600080fd5b50610253610d99565b6102536106a1366004611aad565b610de8565b60006001600160e01b03198216637965db0b60e01b14806106d757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106e76000611183565b60086106f38282611bfd565b5050565b6107016000611183565b60048054911515600160801b0260ff60801b19909216919091179055565b600a805461072c90611b75565b80601f016020809104026020016040519081016040528092919081815260200182805461075890611b75565b80156107a55780601f1061077a576101008083540402835291602001916107a5565b820191906000526020600020905b81548152906001019060200180831161078857829003601f168201915b505050505081565b6000828152602081905260409020600101546107c881611183565b6107d2838361118d565b505050565b6001600160a01b038116331461084c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6106f38282611211565b6108606000611183565b6040516000907362314d5a0f7cbed83df49c53b9f2c687d2c182899047908381818185875af1925050503d80600081146108b6576040519150601f19603f3d011682016040523d82523d6000602084013e6108bb565b606091505b50509050806108c957600080fd5b50565b6004546000908190600160801b900460ff1615158103610908576108f28686868661095f565b1515600103610908576109058686611276565b90505b95945050505050565b61091b6000611183565b600555565b61092a6000611183565b60076106f38282611bfd565b6008805461072c90611b75565b6007805461072c90611b75565b61095a6000611183565b600655565b6040516bffffffffffffffffffffffff19606086901b16602082015260348101849052600090819081906054016040516020818303038152906040528051906020012090506109b28585600654846112ed565b15156001036109c057600191505b5095945050505050565b6109d46000611183565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6004546000838152600260205260409020546060916001600160801b03161115610c0157600060078054610a5290611b75565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7e90611b75565b8015610acb5780601f10610aa057610100808354040283529160200191610acb565b820191906000526020600020905b815481529060010190602001808311610aae57829003601f168201915b5050505050905082600103610b685760088054610ae790611b75565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1390611b75565b8015610b605780601f10610b3557610100808354040283529160200191610b60565b820191906000526020600020905b815481529060010190602001808311610b4357829003601f168201915b505050505090505b6000848152600260205260408120549003610bb15780610b8785611305565b6009604051602001610b9b93929190611d30565b6040516020818303038152906040529150610bfb565b6000848152600260205260409020548190610bcb90611305565b610bd486611305565b6009604051602001610be99493929190611d6d565b60405160208183030381529060405291505b506106d7565b60408051808201909152600681526518173539b7b760d11b60208201526001839003610c46575060408051808201909152600681526518973539b7b760d11b60208201525b600a81604051602001610c5a929190611dcb565b60405160208183030381529060405291505092915050565b6009805461072c90611b75565b606060008267ffffffffffffffff811115610c9c57610c9c61178b565b604051908082528060200260200182016040528015610cc5578160200160208202803683370190505b50905060005b83811015610d40576004546001600160801b031660026000878785818110610cf557610cf5611df0565b9050602002013581526020019081526020016000205414828281518110610d1e57610d1e611df0565b9115156020928302919091019091015280610d3881611e1c565b915050610ccb565b509392505050565b600082815260208190526040902060010154610d6381611183565b6107d28383611211565b610d776000611183565b60096106f38282611bfd565b610d8d6000611183565b600a6106f38282611bfd565b610da36000611183565b6004805460019190600090610dc29084906001600160801b0316611e35565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550565b600454600160801b900460ff1615610e375760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b6044820152606401610843565b323314610e865760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c6572006044820152606401610843565b610e923384848461095f565b1515600114610ee35760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e27742068617665206120416c6c6f776c6973742100000000006044820152606401610843565b6000845111610f345760405162461bcd60e51b815260206004820152601d60248201527f6e65656420746f206275726e696e206174206c656173742031204e46540000006044820152606401610843565b610f3e3384611398565b84511115610f8e5760405162461bcd60e51b815260206004820152601860248201527f636c61696d206973206f766572206d617820616d6f756e7400000000000000006044820152606401610843565b60055415610fe5578351600554610fa59190611e5c565b341015610fe55760405162461bcd60e51b815260206004820152600e60248201526d0dcdee840cadcdeeaced040cae8d60931b6044820152606401610843565b83513360009081526003602052604090208054601090611016908490600160801b90046001600160801b0316611e35565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555060005b845181101561117c57600085828151811061105a5761105a611df0565b60209081029190910101516001546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156110b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d79190611e73565b6001600160a01b0316146111075760405163145041d560e31b815260048101829052336024820152604401610843565b60048054600083815260026020526040908190206001600160801b039283169055915491513392909116907fcc7455b37025e70cbd13b09c78b625a0e86b4b00a3b29769cb226fa6288d100c906111619085815260200190565b60405180910390a3508061117481611e1c565b91505061103d565b5050505050565b6108c981336113ad565b61119782826109f6565b6106f3576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556111cd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61121b82826109f6565b156106f3576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6004546001600160a01b038316600090815260036020526040812054909182916001600160801b03918216911610156112b05750816112e6565b6001600160a01b0384166000908152600360205260409020546112e390600160801b90046001600160801b031684611e90565b90505b9392505050565b6000826112fb868685611406565b1495945050505050565b6060600061131283611452565b600101905060008167ffffffffffffffff8111156113325761133261178b565b6040519080825280601f01601f19166020018201604052801561135c576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461136657509392505050565b60006113a38361152a565b6112e68383611276565b6113b782826109f6565b6106f3576113c481611584565b6113cf836020611596565b6040516020016113e0929190611ea3565b60408051601f198184030181529082905262461bcd60e51b8252610843916004016118ad565b600081815b84811015611449576114358287878481811061142957611429611df0565b90506020020135611732565b91508061144181611e1c565b91505061140b565b50949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114915772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114bd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114db57662386f26fc10000830492506010015b6305f5e10083106114f3576305f5e100830492506008015b612710831061150757612710830492506004015b60648310611519576064830492506002015b600a83106106d75760010192915050565b6004546001600160a01b0382166000908152600360205260409020546001600160801b03918216911610156108c9576004546001600160a01b03821660009081526003602052604090206001600160801b03909116905550565b60606106d76001600160a01b03831660145b606060006115a5836002611e5c565b6115b0906002611f18565b67ffffffffffffffff8111156115c8576115c861178b565b6040519080825280601f01601f1916602001820160405280156115f2576020820181803683370190505b509050600360fc1b8160008151811061160d5761160d611df0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061163c5761163c611df0565b60200101906001600160f81b031916908160001a9053506000611660846002611e5c565b61166b906001611f18565b90505b60018111156116e3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061169f5761169f611df0565b1a60f81b8282815181106116b5576116b5611df0565b60200101906001600160f81b031916908160001a90535060049490941c936116dc81611f2b565b905061166e565b5083156112e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610843565b600081831061174e5760008281526020849052604090206112e6565b60008381526020839052604090206112e6565b60006020828403121561177357600080fd5b81356001600160e01b0319811681146112e657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156117ca576117ca61178b565b604052919050565b600060208083850312156117e557600080fd5b823567ffffffffffffffff808211156117fd57600080fd5b818501915085601f83011261181157600080fd5b8135818111156118235761182361178b565b611835601f8201601f191685016117a1565b9150808252868482850101111561184b57600080fd5b8084840185840137600090820190930192909252509392505050565b60006020828403121561187957600080fd5b813580151581146112e657600080fd5b60005b838110156118a457818101518382015260200161188c565b50506000910152565b60208152600082518060208401526118cc816040850160208701611889565b601f01601f19169190910160400192915050565b6000602082840312156118f257600080fd5b5035919050565b6001600160a01b03811681146108c957600080fd5b6000806040838503121561192157600080fd5b823591506020830135611933816118f9565b809150509250929050565b60008083601f84011261195057600080fd5b50813567ffffffffffffffff81111561196857600080fd5b6020830191508360208260051b850101111561198357600080fd5b9250929050565b600080600080606085870312156119a057600080fd5b84356119ab816118f9565b935060208501359250604085013567ffffffffffffffff8111156119ce57600080fd5b6119da8782880161193e565b95989497509550505050565b6000602082840312156119f857600080fd5b81356112e6816118f9565b60008060408385031215611a1657600080fd5b50508035926020909101359150565b60008060208385031215611a3857600080fd5b823567ffffffffffffffff811115611a4f57600080fd5b611a5b8582860161193e565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa1578351151583529284019291840191600101611a83565b50909695505050505050565b60008060008060608587031215611ac357600080fd5b843567ffffffffffffffff80821115611adb57600080fd5b818701915087601f830112611aef57600080fd5b8135602082821115611b0357611b0361178b565b8160051b611b128282016117a1565b928352848101820192828101908c851115611b2c57600080fd5b958301955b84871015611b4a57863582529583019590830190611b31565b995050508801359550506040870135915080821115611b6857600080fd5b506119da8782880161193e565b600181811c90821680611b8957607f821691505b602082108103611ba957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156107d257600081815260208120601f850160051c81016020861015611bd65750805b601f850160051c820191505b81811015611bf557828155600101611be2565b505050505050565b815167ffffffffffffffff811115611c1757611c1761178b565b611c2b81611c258454611b75565b84611baf565b602080601f831160018114611c605760008415611c485750858301515b600019600386901b1c1916600185901b178555611bf5565b600085815260208120601f198616915b82811015611c8f57888601518255948401946001909101908401611c70565b5085821015611cad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008154611cca81611b75565b60018281168015611ce25760018114611cf757611d26565b60ff1984168752821515830287019450611d26565b8560005260208060002060005b85811015611d1d5781548a820152908401908201611d04565b50505082870194505b5050505092915050565b60008451611d42818460208901611889565b845190830190611d56818360208901611889565b611d6281830186611cbd565b979650505050505050565b60008551611d7f818460208a01611889565b855190830190611d93818360208a01611889565b602f60f81b91019081528451611db0816001840160208901611889565b611dbf60018284010186611cbd565b98975050505050505050565b6000611dd78285611cbd565b8351611de7818360208801611889565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2e57611e2e611e06565b5060010190565b6001600160801b03818116838216019080821115611e5557611e55611e06565b5092915050565b80820281158282048414176106d7576106d7611e06565b600060208284031215611e8557600080fd5b81516112e6816118f9565b818103818111156106d7576106d7611e06565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611edb816017850160208801611889565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f0c816028840160208801611889565b01602801949350505050565b808201808211156106d7576106d7611e06565b600081611f3a57611f3a611e06565b50600019019056fea2646970667358221220803457a3ce62a1a3909d6850f6024c58c5f7f280880befb0ef766a6574c78e6a64736f6c6343000811003368747470733a2f2f6e66742e616f70616e64612e61696e792d6c6c632e636f6d2f736974652f6170702f6d657461646174612f68747470733a2f2f6e66742e616f70616e64612e61696e792d6c6c632e636f6d2f736974652f6170702f72657665616c2f6d657461646174612f68747470733a2f2f6e66742e616f70616e64612e61696e792d6c6c632e636f6d2f736974652f6170705f6c6f636b2f6d657461646174612f
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806360ac98191161010d578063bb6c34e6116100a0578063d547741f1161006f578063d547741f1461061e578063da3ef23f1461063e578063df45bbcc1461065e578063f67a54dd1461067e578063fcf0a0511461069357600080fd5b8063bb6c34e614610543578063c6682862146105a4578063cc11cdb4146105b9578063ceef0f6a146105f157600080fd5b80638d9cc507116100dc5780638d9cc507146104ce57806391d14854146104ee578063a217fddf1461050e578063b5c9843a1461052357600080fd5b806360ac9819146104645780636c0360eb146104795780637cb647591461048e57806385101ac3146104ae57600080fd5b80632eb4a7ab1161019057806341bd8c3f1161015f57806341bd8c3f146103b657806344a0d68a146103d65780634559a1f6146103f657806355f804b3146104235780635c975abb1461044357600080fd5b80632eb4a7ab1461034b5780632f2ff15d1461036157806336568abe146103815780633ccfd60b146103a157600080fd5b806316c38b3c116101cc57806316c38b3c146102b9578063173e81df146102d957806321c06908146102fb578063248a9ca31461031b57600080fd5b806301ffc9a7146101fe5780630dbc2ce014610233578063122e04a81461025557806313faede614610295575b600080fd5b34801561020a57600080fd5b5061021e610219366004611761565b6106a6565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061025361024e3660046117d2565b6106dd565b005b34801561026157600080fd5b5061027d7362314d5a0f7cbed83df49c53b9f2c687d2c1828981565b6040516001600160a01b03909116815260200161022a565b3480156102a157600080fd5b506102ab60055481565b60405190815260200161022a565b3480156102c557600080fd5b506102536102d4366004611867565b6106f7565b3480156102e557600080fd5b506102ee61071f565b60405161022a91906118ad565b34801561030757600080fd5b5060015461027d906001600160a01b031681565b34801561032757600080fd5b506102ab6103363660046118e0565b60009081526020819052604090206001015490565b34801561035757600080fd5b506102ab60065481565b34801561036d57600080fd5b5061025361037c36600461190e565b6107ad565b34801561038d57600080fd5b5061025361039c36600461190e565b6107d7565b3480156103ad57600080fd5b50610253610856565b3480156103c257600080fd5b506102ab6103d136600461198a565b6108cc565b3480156103e257600080fd5b506102536103f13660046118e0565b610911565b34801561040257600080fd5b506102ab6104113660046118e0565b60026020526000908152604090205481565b34801561042f57600080fd5b5061025361043e3660046117d2565b610920565b34801561044f57600080fd5b5060045461021e90600160801b900460ff1681565b34801561047057600080fd5b506102ee610936565b34801561048557600080fd5b506102ee610943565b34801561049a57600080fd5b506102536104a93660046118e0565b610950565b3480156104ba57600080fd5b5061021e6104c936600461198a565b61095f565b3480156104da57600080fd5b506102536104e93660046119e6565b6109ca565b3480156104fa57600080fd5b5061021e61050936600461190e565b6109f6565b34801561051a57600080fd5b506102ab600081565b34801561052f57600080fd5b506102ee61053e366004611a03565b610a1f565b34801561054f57600080fd5b5061058461055e3660046119e6565b6003602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b0393841681529290911660208301520161022a565b3480156105b057600080fd5b506102ee610c72565b3480156105c557600080fd5b506004546105d9906001600160801b031681565b6040516001600160801b03909116815260200161022a565b3480156105fd57600080fd5b5061061161060c366004611a25565b610c7f565b60405161022a9190611a67565b34801561062a57600080fd5b5061025361063936600461190e565b610d48565b34801561064a57600080fd5b506102536106593660046117d2565b610d6d565b34801561066a57600080fd5b506102536106793660046117d2565b610d83565b34801561068a57600080fd5b50610253610d99565b6102536106a1366004611aad565b610de8565b60006001600160e01b03198216637965db0b60e01b14806106d757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106e76000611183565b60086106f38282611bfd565b5050565b6107016000611183565b60048054911515600160801b0260ff60801b19909216919091179055565b600a805461072c90611b75565b80601f016020809104026020016040519081016040528092919081815260200182805461075890611b75565b80156107a55780601f1061077a576101008083540402835291602001916107a5565b820191906000526020600020905b81548152906001019060200180831161078857829003601f168201915b505050505081565b6000828152602081905260409020600101546107c881611183565b6107d2838361118d565b505050565b6001600160a01b038116331461084c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6106f38282611211565b6108606000611183565b6040516000907362314d5a0f7cbed83df49c53b9f2c687d2c182899047908381818185875af1925050503d80600081146108b6576040519150601f19603f3d011682016040523d82523d6000602084013e6108bb565b606091505b50509050806108c957600080fd5b50565b6004546000908190600160801b900460ff1615158103610908576108f28686868661095f565b1515600103610908576109058686611276565b90505b95945050505050565b61091b6000611183565b600555565b61092a6000611183565b60076106f38282611bfd565b6008805461072c90611b75565b6007805461072c90611b75565b61095a6000611183565b600655565b6040516bffffffffffffffffffffffff19606086901b16602082015260348101849052600090819081906054016040516020818303038152906040528051906020012090506109b28585600654846112ed565b15156001036109c057600191505b5095945050505050565b6109d46000611183565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6004546000838152600260205260409020546060916001600160801b03161115610c0157600060078054610a5290611b75565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7e90611b75565b8015610acb5780601f10610aa057610100808354040283529160200191610acb565b820191906000526020600020905b815481529060010190602001808311610aae57829003601f168201915b5050505050905082600103610b685760088054610ae790611b75565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1390611b75565b8015610b605780601f10610b3557610100808354040283529160200191610b60565b820191906000526020600020905b815481529060010190602001808311610b4357829003601f168201915b505050505090505b6000848152600260205260408120549003610bb15780610b8785611305565b6009604051602001610b9b93929190611d30565b6040516020818303038152906040529150610bfb565b6000848152600260205260409020548190610bcb90611305565b610bd486611305565b6009604051602001610be99493929190611d6d565b60405160208183030381529060405291505b506106d7565b60408051808201909152600681526518173539b7b760d11b60208201526001839003610c46575060408051808201909152600681526518973539b7b760d11b60208201525b600a81604051602001610c5a929190611dcb565b60405160208183030381529060405291505092915050565b6009805461072c90611b75565b606060008267ffffffffffffffff811115610c9c57610c9c61178b565b604051908082528060200260200182016040528015610cc5578160200160208202803683370190505b50905060005b83811015610d40576004546001600160801b031660026000878785818110610cf557610cf5611df0565b9050602002013581526020019081526020016000205414828281518110610d1e57610d1e611df0565b9115156020928302919091019091015280610d3881611e1c565b915050610ccb565b509392505050565b600082815260208190526040902060010154610d6381611183565b6107d28383611211565b610d776000611183565b60096106f38282611bfd565b610d8d6000611183565b600a6106f38282611bfd565b610da36000611183565b6004805460019190600090610dc29084906001600160801b0316611e35565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550565b600454600160801b900460ff1615610e375760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b6044820152606401610843565b323314610e865760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c6572006044820152606401610843565b610e923384848461095f565b1515600114610ee35760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f6e27742068617665206120416c6c6f776c6973742100000000006044820152606401610843565b6000845111610f345760405162461bcd60e51b815260206004820152601d60248201527f6e65656420746f206275726e696e206174206c656173742031204e46540000006044820152606401610843565b610f3e3384611398565b84511115610f8e5760405162461bcd60e51b815260206004820152601860248201527f636c61696d206973206f766572206d617820616d6f756e7400000000000000006044820152606401610843565b60055415610fe5578351600554610fa59190611e5c565b341015610fe55760405162461bcd60e51b815260206004820152600e60248201526d0dcdee840cadcdeeaced040cae8d60931b6044820152606401610843565b83513360009081526003602052604090208054601090611016908490600160801b90046001600160801b0316611e35565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555060005b845181101561117c57600085828151811061105a5761105a611df0565b60209081029190910101516001546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156110b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d79190611e73565b6001600160a01b0316146111075760405163145041d560e31b815260048101829052336024820152604401610843565b60048054600083815260026020526040908190206001600160801b039283169055915491513392909116907fcc7455b37025e70cbd13b09c78b625a0e86b4b00a3b29769cb226fa6288d100c906111619085815260200190565b60405180910390a3508061117481611e1c565b91505061103d565b5050505050565b6108c981336113ad565b61119782826109f6565b6106f3576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556111cd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61121b82826109f6565b156106f3576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6004546001600160a01b038316600090815260036020526040812054909182916001600160801b03918216911610156112b05750816112e6565b6001600160a01b0384166000908152600360205260409020546112e390600160801b90046001600160801b031684611e90565b90505b9392505050565b6000826112fb868685611406565b1495945050505050565b6060600061131283611452565b600101905060008167ffffffffffffffff8111156113325761133261178b565b6040519080825280601f01601f19166020018201604052801561135c576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461136657509392505050565b60006113a38361152a565b6112e68383611276565b6113b782826109f6565b6106f3576113c481611584565b6113cf836020611596565b6040516020016113e0929190611ea3565b60408051601f198184030181529082905262461bcd60e51b8252610843916004016118ad565b600081815b84811015611449576114358287878481811061142957611429611df0565b90506020020135611732565b91508061144181611e1c565b91505061140b565b50949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114915772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114bd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114db57662386f26fc10000830492506010015b6305f5e10083106114f3576305f5e100830492506008015b612710831061150757612710830492506004015b60648310611519576064830492506002015b600a83106106d75760010192915050565b6004546001600160a01b0382166000908152600360205260409020546001600160801b03918216911610156108c9576004546001600160a01b03821660009081526003602052604090206001600160801b03909116905550565b60606106d76001600160a01b03831660145b606060006115a5836002611e5c565b6115b0906002611f18565b67ffffffffffffffff8111156115c8576115c861178b565b6040519080825280601f01601f1916602001820160405280156115f2576020820181803683370190505b509050600360fc1b8160008151811061160d5761160d611df0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061163c5761163c611df0565b60200101906001600160f81b031916908160001a9053506000611660846002611e5c565b61166b906001611f18565b90505b60018111156116e3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061169f5761169f611df0565b1a60f81b8282815181106116b5576116b5611df0565b60200101906001600160f81b031916908160001a90535060049490941c936116dc81611f2b565b905061166e565b5083156112e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610843565b600081831061174e5760008281526020849052604090206112e6565b60008381526020839052604090206112e6565b60006020828403121561177357600080fd5b81356001600160e01b0319811681146112e657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156117ca576117ca61178b565b604052919050565b600060208083850312156117e557600080fd5b823567ffffffffffffffff808211156117fd57600080fd5b818501915085601f83011261181157600080fd5b8135818111156118235761182361178b565b611835601f8201601f191685016117a1565b9150808252868482850101111561184b57600080fd5b8084840185840137600090820190930192909252509392505050565b60006020828403121561187957600080fd5b813580151581146112e657600080fd5b60005b838110156118a457818101518382015260200161188c565b50506000910152565b60208152600082518060208401526118cc816040850160208701611889565b601f01601f19169190910160400192915050565b6000602082840312156118f257600080fd5b5035919050565b6001600160a01b03811681146108c957600080fd5b6000806040838503121561192157600080fd5b823591506020830135611933816118f9565b809150509250929050565b60008083601f84011261195057600080fd5b50813567ffffffffffffffff81111561196857600080fd5b6020830191508360208260051b850101111561198357600080fd5b9250929050565b600080600080606085870312156119a057600080fd5b84356119ab816118f9565b935060208501359250604085013567ffffffffffffffff8111156119ce57600080fd5b6119da8782880161193e565b95989497509550505050565b6000602082840312156119f857600080fd5b81356112e6816118f9565b60008060408385031215611a1657600080fd5b50508035926020909101359150565b60008060208385031215611a3857600080fd5b823567ffffffffffffffff811115611a4f57600080fd5b611a5b8582860161193e565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa1578351151583529284019291840191600101611a83565b50909695505050505050565b60008060008060608587031215611ac357600080fd5b843567ffffffffffffffff80821115611adb57600080fd5b818701915087601f830112611aef57600080fd5b8135602082821115611b0357611b0361178b565b8160051b611b128282016117a1565b928352848101820192828101908c851115611b2c57600080fd5b958301955b84871015611b4a57863582529583019590830190611b31565b995050508801359550506040870135915080821115611b6857600080fd5b506119da8782880161193e565b600181811c90821680611b8957607f821691505b602082108103611ba957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156107d257600081815260208120601f850160051c81016020861015611bd65750805b601f850160051c820191505b81811015611bf557828155600101611be2565b505050505050565b815167ffffffffffffffff811115611c1757611c1761178b565b611c2b81611c258454611b75565b84611baf565b602080601f831160018114611c605760008415611c485750858301515b600019600386901b1c1916600185901b178555611bf5565b600085815260208120601f198616915b82811015611c8f57888601518255948401946001909101908401611c70565b5085821015611cad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008154611cca81611b75565b60018281168015611ce25760018114611cf757611d26565b60ff1984168752821515830287019450611d26565b8560005260208060002060005b85811015611d1d5781548a820152908401908201611d04565b50505082870194505b5050505092915050565b60008451611d42818460208901611889565b845190830190611d56818360208901611889565b611d6281830186611cbd565b979650505050505050565b60008551611d7f818460208a01611889565b855190830190611d93818360208a01611889565b602f60f81b91019081528451611db0816001840160208901611889565b611dbf60018284010186611cbd565b98975050505050505050565b6000611dd78285611cbd565b8351611de7818360208801611889565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2e57611e2e611e06565b5060010190565b6001600160801b03818116838216019080821115611e5557611e55611e06565b5092915050565b80820281158282048414176106d7576106d7611e06565b600060208284031215611e8557600080fd5b81516112e6816118f9565b818103818111156106d7576106d7611e06565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611edb816017850160208801611889565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f0c816028840160208801611889565b01602801949350505050565b808201808211156106d7576106d7611e06565b600081611f3a57611f3a611e06565b50600019019056fea2646970667358221220803457a3ce62a1a3909d6850f6024c58c5f7f280880befb0ef766a6574c78e6a64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.