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
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
Blitkin
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 pragma solidity ^0.8.13; import "./ERC721.sol"; import "./interfaces/IBlitkinRenderV3.sol"; import {OwnableUpgradeable} from "openzeppelin-upgradeable/access/OwnableUpgradeable.sol"; import {UUPSUpgradeable} from "openzeppelin-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import {MerkleProofUpgradeable} from "openzeppelin-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol"; import {DefaultOperatorFiltererUpgradeable} from "operator-filter-registry/upgradeable/DefaultOperatorFiltererUpgradeable.sol"; contract Blitkin is ERC721, OwnableUpgradeable, UUPSUpgradeable, DefaultOperatorFiltererUpgradeable{ mapping(bytes32 => bool) private tokenPairs; mapping(uint8 => uint8) public mintedPerComposition; IBlitkinRenderV3 public blitkinRender; event CombinationMinted(uint8 indexed composition, uint8 indexed palette); bytes32 public ALRoot; bytes32 public teamRoot; uint256 public mintStatus; address public splitter; uint256 constant public MAX_SUPPLY = 1600; uint256 constant public MAX_PER_WALLET = 5; uint256 constant public MAX_ALLOW_LIST = 2; error PublicMintNotStarted(); error PayMintPrice(); error ALMintNotStarted(); error NotOnAL(); error MaxSupplyMinted(); error NoContracts(); error DoNotMintOriginals(); error OnlyCombineOriginals(); error ScrambleAlreadyMinted(); error AlreadyMintedAllowance(); error MaxLimitPerComposition(); error SplitterNotSet(); //Constructor / Initializer constructor() { _disableInitializers(); } function initialize() initializer public { __ERC721_init("Blitkin", "BLITKIN", 1); __Ownable_init(); __UUPSUpgradeable_init(); __DefaultOperatorFilterer_init(); } /// Admin setters function setBlitkinRender(address _newRender) external onlyOwner { blitkinRender = IBlitkinRenderV3(_newRender); } function setMintStatus(uint256 _newStatus) external onlyOwner { mintStatus = _newStatus; } function setALRoot(bytes32 _newRoot) external onlyOwner { ALRoot = _newRoot; } function setTeamRoot(bytes32 _newRoot) external onlyOwner { teamRoot = _newRoot; } function setSplitter(address _splitter) external onlyOwner { splitter = _splitter; } /// Mint function function mint(uint8 compositionId, uint8 paletteId) public payable { if(msg.value != 0.05 ether) revert PayMintPrice(); if(mintStatus != 2) revert PublicMintNotStarted(); if(_balanceOf[msg.sender].minted + 1 > MAX_PER_WALLET) revert AlreadyMintedAllowance(); _mintScramble(compositionId, paletteId); } function allowlistMint(uint8 compositionId, uint8 paletteId, bytes32[] calldata _proof) public payable { if(msg.value != 0.05 ether) revert PayMintPrice(); if(mintStatus != 1) revert ALMintNotStarted(); if(_balanceOf[msg.sender].minted + 1 > MAX_ALLOW_LIST) revert AlreadyMintedAllowance(); verify(_proof, msg.sender, ALRoot); _mintScramble(compositionId, paletteId); } function teamMint(uint8 compositionId, uint8 paletteId, bytes32[] calldata _proof) public payable { if(_balanceOf[msg.sender].minted > 0) revert AlreadyMintedAllowance(); verify(_proof, msg.sender, teamRoot); _mintScramble(compositionId, paletteId); } function _mintScramble(uint8 compositionId, uint8 paletteId) internal { if(totalSupply() + 1 > MAX_SUPPLY) revert MaxSupplyMinted(); if(msg.sender != tx.origin) revert NoContracts(); if(compositionId == paletteId) revert DoNotMintOriginals(); if(compositionId > 99 || paletteId > 99) revert OnlyCombineOriginals(); if(mintedPerComposition[compositionId] + 1 > 16) revert MaxLimitPerComposition(); // a given pair can only be minted once bytes32 pairHash = keccak256(abi.encodePacked(compositionId, '-', paletteId)); if(tokenPairs[pairHash]) revert ScrambleAlreadyMinted(); tokenPairs[pairHash] = true; unchecked { mintedPerComposition[compositionId]++; } emit CombinationMinted(compositionId, paletteId); _mintAndSet(msg.sender, compositionId, paletteId); } //Helper functions function pairIsTaken(uint256 tokenIdA, uint256 tokenIdB) public view returns (bool) { bytes32 pairHash = keccak256(abi.encodePacked(tokenIdA, '-', tokenIdB)); return tokenPairs[pairHash]; } function amountMinted(address _user) public view returns(uint16) { return _balanceOf[_user].minted; } function _authorizeUpgrade(address newImplementation) internal override onlyOwner {} function verify( bytes32[] memory proof, address addr, bytes32 _root ) internal pure { bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(addr)))); require(MerkleProofUpgradeable.verify(proof, _root, leaf), "Invalid proof"); } //TokenURI function tokenURI(uint256 tokenId) override public view returns (string memory) { if(tokenId == 0 || tokenId > tokenIndex) revert(); return blitkinRender.tokenURI(tokenId, _ownerOf[tokenId].compositionId, _ownerOf[tokenId].paletteId); } // function withdraw() external onlyOwner { if(splitter == address(0)) revert SplitterNotSet(); payable(splitter).transfer(address(this).balance); } function contractURI() public view returns (string memory) { return blitkinRender.getContractInfo(); } //////////////////////// Operatorfilter overrides //////////////////////// function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 id) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, id); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, id, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// 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 MerkleProofUpgradeable { /** * @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 pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFiltererUpgradeable} from "./OperatorFiltererUpgradeable.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "../lib/Constants.sol"; /** * @title DefaultOperatorFiltererUpgradeable * @notice Inherits from OperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription * when the init function is called. */ abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { /// @dev The upgradeable initialize function that should be called when the contract is being deployed. function __DefaultOperatorFilterer_init() internal onlyInitializing { OperatorFiltererUpgradeable.__OperatorFilterer_init(CANONICAL_CORI_SUBSCRIPTION, true); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "../IOperatorFilterRegistry.sol"; import {Initializable} from "openzeppelin-upgradeable/proxy/utils/Initializable.sol"; /** * @title OperatorFiltererUpgradeable * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry when the init function is called. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFiltererUpgradeable is Initializable { /// @notice Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); /// @dev The upgradeable initialize function that should be called when the contract is being upgraded. function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal onlyInitializing { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isRegistered(address(this))) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } } /** * @dev A helper modifier to check if the operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper modifier to check if the operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting or // upgraded contracts may specify their own OperatorFilterRegistry implementations, which may behave // differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {Initializable} from "openzeppelin-upgradeable/proxy/utils/Initializable.sol"; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Modified by 0xDala implementing the storage struct from ERC721G and making it upgradable /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 is Initializable { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ struct OwnerStruct { address owner; uint8 compositionId; uint8 paletteId; } struct BalanceStruct { uint16 balance; uint16 minted; } mapping(uint256 => OwnerStruct) internal _ownerOf; mapping(address => BalanceStruct) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id].owner) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner].balance; } uint256 public tokenIndex; // The running index for the next TokenId uint256 public startTokenId; // Bytes Storage for the starting TokenId // removed immuntable /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ function __ERC721_init( string memory name_, string memory symbol_, uint256 startId_ ) internal onlyInitializing { name = name_; symbol = symbol_; tokenIndex = startId_; startTokenId = startId_; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id].owner; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id].owner, "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from].balance--; _balanceOf[to].balance++; } _ownerOf[id].owner = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function totalSupply() public view virtual returns (uint256) { return tokenIndex - startTokenId; } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC721Metadata interfaceId == 0x7f5828d0 || // ERC165 Interface ID for OwnableContracts interfaceId == 0x49064906; // ERC165 Interface ID for EIP-4096 metadata update } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); uint256 id = tokenIndex; require(_ownerOf[id].owner == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to].balance++; _balanceOf[to].minted++; } _ownerOf[id].owner = to; tokenIndex = id + 1; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id].owner; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner].balance--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } function _mintAndSet(address to, uint8 compositionId, uint8 paletteId) internal virtual { // cannot mint to 0x0 require(to != address(0), "INVALID_RECIPIENT"); // process the token id data uint256 id = tokenIndex; require(_ownerOf[id].owner == address(0), "ALREADY_MINTED"); //this is not great because of all the storage write, I guess to avoid this need to change the way layers _ownerOf[id] = OwnerStruct(to, compositionId, paletteId); // process the balance changes and do a loop to phantom-mint the tokens to to_ unchecked { _balanceOf[to].balance++; _balanceOf[to].minted++; } // set the new token index tokenIndex = id + 1; emit Transfer(address(0), to, id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to) internal virtual { _mint(to); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), tokenIndex-1, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, bytes memory data ) internal virtual { _mint(to); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), tokenIndex-1, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IBlitkinRenderV3 { struct ContractInfo { string animationBase; string animationPostfix; string imageBase; string imagePostfix; string title; string description; string contractURI; uint16 royaltyFee; address royaltyReciever; address blitmapAddress; } struct Inscription { string artist; bytes32 btc_txn; string composition; } function getContractInfo() external view returns(string memory); function tokenURI(uint256 tokenId, uint256 inscriptionId, uint256 blitmapPaletteId) external view returns (string memory); }
{ "remappings": [ "bytesutils/=lib/solidity-bytes-utils/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/operator-filter-registry/lib/openzeppelin-contracts/lib/erc4626-tests/", "ethier/=lib/ethier/contracts/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/contracts/", "openzeppelin-contracts/=lib/operator-filter-registry/lib/openzeppelin-contracts/contracts/", "openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "operator-filter-registry/=lib/operator-filter-registry/src/", "solady/=lib/solady/src/", "solmate/=lib/solmate/src/", "stringutils/=lib/solidity-stringutils/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ALMintNotStarted","type":"error"},{"inputs":[],"name":"AlreadyMintedAllowance","type":"error"},{"inputs":[],"name":"DoNotMintOriginals","type":"error"},{"inputs":[],"name":"MaxLimitPerComposition","type":"error"},{"inputs":[],"name":"MaxSupplyMinted","type":"error"},{"inputs":[],"name":"NoContracts","type":"error"},{"inputs":[],"name":"NotOnAL","type":"error"},{"inputs":[],"name":"OnlyCombineOriginals","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"PayMintPrice","type":"error"},{"inputs":[],"name":"PublicMintNotStarted","type":"error"},{"inputs":[],"name":"ScrambleAlreadyMinted","type":"error"},{"inputs":[],"name":"SplitterNotSet","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"composition","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"palette","type":"uint8"}],"name":"CombinationMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"ALRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOW_LIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"compositionId","type":"uint8"},{"internalType":"uint8","name":"paletteId","type":"uint8"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"amountMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blitkinRender","outputs":[{"internalType":"contract IBlitkinRenderV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"compositionId","type":"uint8"},{"internalType":"uint8","name":"paletteId","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"mintedPerComposition","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdA","type":"uint256"},{"internalType":"uint256","name":"tokenIdB","type":"uint256"}],"name":"pairIsTaken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setALRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRender","type":"address"}],"name":"setBlitkinRender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStatus","type":"uint256"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_splitter","type":"address"}],"name":"setSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setTeamRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"compositionId","type":"uint8"},{"internalType":"uint8","name":"paletteId","type":"uint8"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"teamMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"teamRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e8565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000e6576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051612d9a62000120600039600081816109fa01528181610a4301528181610b7101528181610bb10152610c400152612d9a6000f3fe6080604052600436106102675760003560e01c806370a0823111610144578063c87b56dd116100b6578063e8a3d4851161007a578063e8a3d485146106f7578063e985e9c51461070c578063f0f7570514610747578063f2fde38b1461075a578063f7ca7c071461077a578063f8b02b5a1461079a57600080fd5b8063c87b56dd14610678578063c93fc83d14610698578063c96602d9146106b8578063d55f9273146106cb578063e6798baa146106e157600080fd5b806395d89b411161010857806395d89b41146105cd5780639da3f8fd146105e2578063a22cb465146105f8578063b88d4fde14610618578063bc04666b14610638578063c2218fdd1461065857600080fd5b806370a0823114610545578063715018a6146105655780638129fc1c1461057a578063887fee311461058f5780638da5cb5b146105af57600080fd5b80633659cfe6116101dd578063438a67e7116101a1578063438a67e71461046a5780634f1ef286146104bd57806352d1902d146104d057806359dbe842146104e55780636352211e14610505578063677044b81461052557600080fd5b80633659cfe6146103df5780633ccfd60b146103ff5780633cd8045e146104145780633f7dc1ca1461043457806342842e0e1461044a57600080fd5b80630f2cdd6c1161022f5780630f2cdd6c1461035657806318160ddd1461036b57806323b872dd1461038057806329a0eee8146103a057806331940cc0146103b357806332cb6b0c146103c957600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146103115780630b4f3d5114610333575b600080fd5b34801561027857600080fd5b5061028c6102873660046124e2565b6107dc565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b6610864565b6040516102989190612523565b3480156102cf57600080fd5b506102f96102de366004612556565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610298565b34801561031d57600080fd5b5061033161032c366004612586565b6108f2565b005b34801561033f57600080fd5b50610348600281565b604051908152602001610298565b34801561036257600080fd5b50610348600581565b34801561037757600080fd5b5061034861090b565b34801561038c57600080fd5b5061033161039b3660046125b0565b610922565b6103316103ae3660046125fd565b61094d565b3480156103bf57600080fd5b5061034860d55481565b3480156103d557600080fd5b5061034861064081565b3480156103eb57600080fd5b506103316103fa366004612630565b6109f0565b34801561040b57600080fd5b50610331610ad8565b34801561042057600080fd5b5060d7546102f9906001600160a01b031681565b34801561044057600080fd5b5061034860d45481565b34801561045657600080fd5b506103316104653660046125b0565b610b42565b34801561047657600080fd5b506104aa610485366004612630565b6001600160a01b031660009081526004602052604090205462010000900461ffff1690565b60405161ffff9091168152602001610298565b6103316104cb3660046126ba565b610b67565b3480156104dc57600080fd5b50610348610c33565b3480156104f157600080fd5b50610331610500366004612556565b610ce6565b34801561051157600080fd5b506102f9610520366004612556565b610cf3565b34801561053157600080fd5b5060d3546102f9906001600160a01b031681565b34801561055157600080fd5b50610348610560366004612630565b610d4a565b34801561057157600080fd5b50610331610db1565b34801561058657600080fd5b50610331610dc5565b34801561059b57600080fd5b506103316105aa366004612556565b610f2f565b3480156105bb57600080fd5b50603b546001600160a01b03166102f9565b3480156105d957600080fd5b506102b6610f3c565b3480156105ee57600080fd5b5061034860d65481565b34801561060457600080fd5b50610331610613366004612759565b610f49565b34801561062457600080fd5b50610331610633366004612790565b610f5d565b34801561064457600080fd5b5061028c61065336600461282b565b610f8c565b34801561066457600080fd5b50610331610673366004612556565b610fe5565b34801561068457600080fd5b506102b6610693366004612556565b610ff2565b3480156106a457600080fd5b506103316106b3366004612630565b6110ad565b6103316106c636600461284d565b6110d7565b3480156106d757600080fd5b5061034860055481565b3480156106ed57600080fd5b5061034860065481565b34801561070357600080fd5b506102b66111b7565b34801561071857600080fd5b5061028c6107273660046128de565b600860209081526000928352604080842090915290825290205460ff1681565b61033161075536600461284d565b611229565b34801561076657600080fd5b50610331610775366004612630565b6112a2565b34801561078657600080fd5b50610331610795366004612630565b611318565b3480156107a657600080fd5b506107ca6107b5366004612908565b60d26020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b60006301ffc9a760e01b6001600160e01b03198316148061080d57506380ac58cd60e01b6001600160e01b03198316145b806108285750635b5e139f60e01b6001600160e01b03198316145b8061084357506307f5828d60e41b6001600160e01b03198316145b8061085e5750632483248360e11b6001600160e01b03198316145b92915050565b6001805461087190612923565b80601f016020809104026020016040519081016040528092919081815260200182805461089d90612923565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b505050505081565b816108fc81611342565b61090683836113fb565b505050565b600060065460055461091d9190612973565b905090565b826001600160a01b038116331461093c5761093c33611342565b6109478484846114dd565b50505050565b3466b1a2bc2ec500001461097457604051635de88b5760e11b815260040160405180910390fd5b60d6546002146109975760405163b35ba98d60e01b815260040160405180910390fd5b336000908152600460205260409020546005906109bf9062010000900461ffff166001612986565b61ffff1611156109e25760405163f5d0b57d60e01b815260040160405180910390fd5b6109ec82826116c2565b5050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a415760405162461bcd60e51b8152600401610a38906129a8565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a8a600080516020612d1e833981519152546001600160a01b031690565b6001600160a01b031614610ab05760405162461bcd60e51b8152600401610a38906129f4565b610ab9816118a7565b60408051600080825260208201909252610ad5918391906118af565b50565b610ae0611a1a565b60d7546001600160a01b0316610b095760405163fef4d43d60e01b815260040160405180910390fd5b60d7546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad5573d6000803e3d6000fd5b826001600160a01b0381163314610b5c57610b5c33611342565b610947848484611a74565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610baf5760405162461bcd60e51b8152600401610a38906129a8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610bf8600080516020612d1e833981519152546001600160a01b031690565b6001600160a01b031614610c1e5760405162461bcd60e51b8152600401610a38906129f4565b610c27826118a7565b6109ec828260016118af565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cd35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a38565b50600080516020612d1e83398151915290565b610cee611a1a565b60d555565b6000818152600360205260409020546001600160a01b031680610d455760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610a38565b919050565b60006001600160a01b038216610d915760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610a38565b506001600160a01b031660009081526004602052604090205461ffff1690565b610db9611a1a565b610dc36000611b67565b565b600054610100900460ff1615808015610de55750600054600160ff909116105b80610dff5750303b158015610dff575060005460ff166001145b610e625760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a38565b6000805460ff191660011790558015610e85576000805461ff0019166101001790555b610ecf60405180604001604052806007815260200166213634ba35b4b760c91b81525060405180604001604052806007815260200166212624aa25a4a760c91b8152506001611bb9565b610ed7611c06565b610edf611c35565b610ee7611c5c565b8015610ad5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b610f37611a1a565b60d655565b6002805461087190612923565b81610f5381611342565b6109068383611ca2565b846001600160a01b0381163314610f7757610f7733611342565b610f848686868686611d0e565b505050505050565b6000808383604051602001610fb5929190918252602d60f81b6020830152602182015260410190565b60408051808303601f190181529181528151602092830120600090815260d190925290205460ff16949350505050565b610fed611a1a565b60d455565b6060811580611002575060055482115b1561100c57600080fd5b60d35460008381526003602052604090819020549051635f2ec82d60e01b81526004810185905260ff600160a01b830481166024830152600160a81b90920490911660448201526001600160a01b0390911690635f2ec82d90606401600060405180830381865afa158015611085573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261085e9190810190612a40565b6110b5611a1a565b60d780546001600160a01b0319166001600160a01b0392909216919091179055565b3466b1a2bc2ec50000146110fe57604051635de88b5760e11b815260040160405180910390fd5b60d65460011461112157604051632c8c9acd60e01b815260040160405180910390fd5b336000908152600460205260409020546002906111499062010000900461ffff166001612986565b61ffff16111561116c5760405163f5d0b57d60e01b815260040160405180910390fd5b6111ad8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d4543392509050611df6565b61094784846116c2565b60d35460408051637cc1f86760e01b815290516060926001600160a01b031691637cc1f8679160048083019260009291908290030181865afa158015611201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261091d9190810190612a40565b3360009081526004602052604090205462010000900461ffff16156112615760405163f5d0b57d60e01b815260040160405180910390fd5b6111ad8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d5543392509050611df6565b6112aa611a1a565b6001600160a01b03811661130f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a38565b610ad581611b67565b611320611a1a565b60d380546001600160a01b0319166001600160a01b0392909216919091179055565b6daaeb6d7670e522a718067333cd4e3b15610ad557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156113af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d39190612aae565b610ad557604051633b79c77360e21b81526001600160a01b0382166004820152602401610a38565b6000818152600360205260409020546001600160a01b03163381148061144457506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6114815760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610a38565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146115335760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610a38565b6001600160a01b03821661157d5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610a38565b336001600160a01b03841614806115b757506001600160a01b038316600090815260086020908152604080832033845290915290205460ff165b806115d857506000818152600760205260409020546001600160a01b031633145b6116155760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610a38565b6001600160a01b038381166000818152600460209081526040808320805461ffff1980821661ffff928316600019018316179092559588168085528285208054928316928816600101909716919091179095558583526003825280832080546001600160a01b031990811687179091556007909252808320805490921690915551849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106406116cd61090b565b6116d8906001612acb565b11156116f757604051632b8a905d60e11b815260040160405180910390fd5b3332146117175760405163875fdad760e01b815260040160405180910390fd5b8060ff168260ff160361173d57604051633bfdae0b60e01b815260040160405180910390fd5b60638260ff161180611752575060638160ff16115b156117705760405163a6d1592160e01b815260040160405180910390fd5b60ff808316600090815260d2602052604090205460109161179391166001612ade565b60ff1611156117b55760405163475dbc9760e11b815260040160405180910390fd5b6040516001600160f81b031960f884811b82166020840152602d60f81b602184015283901b16602282015260009060230160408051601f198184030181529181528151602092830120600081815260d190935291205490915060ff161561182f57604051632aca565960e11b815260040160405180910390fd5b600081815260d1602090815260408083208054600160ff19918216811790925560ff88811680875260d290955283862080549283169282169093018116919091179091559051908516927f3b7c6c5a9c3459db30e030176441d0882427978754d8d629982f8f6996aa768291a3610906338484611e89565b610ad5611a1a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156118e25761090683612034565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561193c575060408051601f3d908101601f1916820190925261193991810190612af7565b60015b61199f5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a38565b600080516020612d1e8339815191528114611a0e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a38565b506109068383836120d0565b603b546001600160a01b03163314610dc35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a38565b611a7f838383610922565b6001600160a01b0382163b1580611b285750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611af8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1c9190612b10565b6001600160e01b031916145b6109065760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610a38565b603b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611be05760405162461bcd60e51b8152600401610a3890612b2d565b6001611bec8482612bbe565b506002611bf98382612bbe565b5060058190556006555050565b600054610100900460ff16611c2d5760405162461bcd60e51b8152600401610a3890612b2d565b610dc36120f5565b600054610100900460ff16610dc35760405162461bcd60e51b8152600401610a3890612b2d565b600054610100900460ff16611c835760405162461bcd60e51b8152600401610a3890612b2d565b610dc3733cc6cdda760b79bafa08df41ecfa224f810dceb66001612125565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d19858585610922565b6001600160a01b0384163b1580611db05750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611d619033908a90899089908990600401612c7e565b6020604051808303816000875af1158015611d80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da49190612b10565b6001600160e01b031916145b611def5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610a38565b5050505050565b604080516001600160a01b03841660208201526000910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050611e4d8483836122c4565b6109475760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610a38565b6001600160a01b038316611ed35760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610a38565b6005546000818152600360205260409020546001600160a01b031615611f2c5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610a38565b604080516060810182526001600160a01b0380871680835260ff808816602080860191825288831686880190815260008981526003835288812097518854945192518616600160a81b0260ff60a81b1993909616600160a01b026001600160a81b0319909516971696909617929092179190911691909117909355815260049091522080546201000061ffff8083166001908101821661ffff19851681178490048316820190921690920263ffffffff199093161791909117909155611ff3908290612acb565b60055560405181906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450505050565b6001600160a01b0381163b6120a15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a38565b600080516020612d1e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6120d9836122dc565b6000825111806120e65750805b1561090657610947838361231c565b600054610100900460ff1661211c5760405162461bcd60e51b8152600401610a3890612b2d565b610dc333611b67565b600054610100900460ff1661214c5760405162461bcd60e51b8152600401610a3890612b2d565b6daaeb6d7670e522a718067333cd4e3b156109ec5760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156121ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d09190612aae565b6109ec57801561224457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561223057600080fd5b505af1158015610f84573d6000803e3d6000fd5b6001600160a01b038216156122935760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612216565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612216565b6000826122d18584612410565b1490505b9392505050565b6122e581612034565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6123845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a38565b600080846001600160a01b03168460405161239f9190612cd2565b600060405180830381855af49150503d80600081146123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b50915091506124078282604051806060016040528060278152602001612d3e6027913961245d565b95945050505050565b600081815b8451811015612455576124418286838151811061243457612434612cee565b6020026020010151612476565b91508061244d81612d04565b915050612415565b509392505050565b6060831561246c5750816122d5565b6122d583836124a2565b60008183106124925760008281526020849052604090206122d5565b5060009182526020526040902090565b8151156124b25781518083602001fd5b8060405162461bcd60e51b8152600401610a389190612523565b6001600160e01b031981168114610ad557600080fd5b6000602082840312156124f457600080fd5b81356122d5816124cc565b60005b8381101561251a578181015183820152602001612502565b50506000910152565b60208152600082518060208401526125428160408501602087016124ff565b601f01601f19169190910160400192915050565b60006020828403121561256857600080fd5b5035919050565b80356001600160a01b0381168114610d4557600080fd5b6000806040838503121561259957600080fd5b6125a28361256f565b946020939093013593505050565b6000806000606084860312156125c557600080fd5b6125ce8461256f565b92506125dc6020850161256f565b9150604084013590509250925092565b803560ff81168114610d4557600080fd5b6000806040838503121561261057600080fd5b612619836125ec565b9150612627602084016125ec565b90509250929050565b60006020828403121561264257600080fd5b6122d58261256f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561268a5761268a61264b565b604052919050565b600067ffffffffffffffff8211156126ac576126ac61264b565b50601f01601f191660200190565b600080604083850312156126cd57600080fd5b6126d68361256f565b9150602083013567ffffffffffffffff8111156126f257600080fd5b8301601f8101851361270357600080fd5b803561271661271182612692565b612661565b81815286602083850101111561272b57600080fd5b816020840160208301376000602083830101528093505050509250929050565b8015158114610ad557600080fd5b6000806040838503121561276c57600080fd5b6127758361256f565b915060208301356127858161274b565b809150509250929050565b6000806000806000608086880312156127a857600080fd5b6127b18661256f565b94506127bf6020870161256f565b935060408601359250606086013567ffffffffffffffff808211156127e357600080fd5b818801915088601f8301126127f757600080fd5b81358181111561280657600080fd5b89602082850101111561281857600080fd5b9699959850939650602001949392505050565b6000806040838503121561283e57600080fd5b50508035926020909101359150565b6000806000806060858703121561286357600080fd5b61286c856125ec565b935061287a602086016125ec565b9250604085013567ffffffffffffffff8082111561289757600080fd5b818701915087601f8301126128ab57600080fd5b8135818111156128ba57600080fd5b8860208260051b85010111156128cf57600080fd5b95989497505060200194505050565b600080604083850312156128f157600080fd5b6128fa8361256f565b91506126276020840161256f565b60006020828403121561291a57600080fd5b6122d5826125ec565b600181811c9082168061293757607f821691505b60208210810361295757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561085e5761085e61295d565b61ffff8181168382160190808211156129a1576129a161295d565b5092915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612a5257600080fd5b815167ffffffffffffffff811115612a6957600080fd5b8201601f81018413612a7a57600080fd5b8051612a8861271182612692565b818152856020838501011115612a9d57600080fd5b6124078260208301602086016124ff565b600060208284031215612ac057600080fd5b81516122d58161274b565b8082018082111561085e5761085e61295d565b60ff818116838216019081111561085e5761085e61295d565b600060208284031215612b0957600080fd5b5051919050565b600060208284031215612b2257600080fd5b81516122d5816124cc565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b601f82111561090657600081815260208120601f850160051c81016020861015612b9f5750805b601f850160051c820191505b81811015610f8457828155600101612bab565b815167ffffffffffffffff811115612bd857612bd861264b565b612bec81612be68454612923565b84612b78565b602080601f831160018114612c215760008415612c095750858301515b600019600386901b1c1916600185901b178555610f84565b600085815260208120601f198616915b82811015612c5057888601518255948401946001909101908401612c31565b5085821015612c6e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008251612ce48184602087016124ff565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201612d1657612d1661295d565b506001019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220fae3862bb30c43004e3840908646770d6e862b044c28e5c46a043bed72f1600964736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102675760003560e01c806370a0823111610144578063c87b56dd116100b6578063e8a3d4851161007a578063e8a3d485146106f7578063e985e9c51461070c578063f0f7570514610747578063f2fde38b1461075a578063f7ca7c071461077a578063f8b02b5a1461079a57600080fd5b8063c87b56dd14610678578063c93fc83d14610698578063c96602d9146106b8578063d55f9273146106cb578063e6798baa146106e157600080fd5b806395d89b411161010857806395d89b41146105cd5780639da3f8fd146105e2578063a22cb465146105f8578063b88d4fde14610618578063bc04666b14610638578063c2218fdd1461065857600080fd5b806370a0823114610545578063715018a6146105655780638129fc1c1461057a578063887fee311461058f5780638da5cb5b146105af57600080fd5b80633659cfe6116101dd578063438a67e7116101a1578063438a67e71461046a5780634f1ef286146104bd57806352d1902d146104d057806359dbe842146104e55780636352211e14610505578063677044b81461052557600080fd5b80633659cfe6146103df5780633ccfd60b146103ff5780633cd8045e146104145780633f7dc1ca1461043457806342842e0e1461044a57600080fd5b80630f2cdd6c1161022f5780630f2cdd6c1461035657806318160ddd1461036b57806323b872dd1461038057806329a0eee8146103a057806331940cc0146103b357806332cb6b0c146103c957600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146103115780630b4f3d5114610333575b600080fd5b34801561027857600080fd5b5061028c6102873660046124e2565b6107dc565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b6610864565b6040516102989190612523565b3480156102cf57600080fd5b506102f96102de366004612556565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610298565b34801561031d57600080fd5b5061033161032c366004612586565b6108f2565b005b34801561033f57600080fd5b50610348600281565b604051908152602001610298565b34801561036257600080fd5b50610348600581565b34801561037757600080fd5b5061034861090b565b34801561038c57600080fd5b5061033161039b3660046125b0565b610922565b6103316103ae3660046125fd565b61094d565b3480156103bf57600080fd5b5061034860d55481565b3480156103d557600080fd5b5061034861064081565b3480156103eb57600080fd5b506103316103fa366004612630565b6109f0565b34801561040b57600080fd5b50610331610ad8565b34801561042057600080fd5b5060d7546102f9906001600160a01b031681565b34801561044057600080fd5b5061034860d45481565b34801561045657600080fd5b506103316104653660046125b0565b610b42565b34801561047657600080fd5b506104aa610485366004612630565b6001600160a01b031660009081526004602052604090205462010000900461ffff1690565b60405161ffff9091168152602001610298565b6103316104cb3660046126ba565b610b67565b3480156104dc57600080fd5b50610348610c33565b3480156104f157600080fd5b50610331610500366004612556565b610ce6565b34801561051157600080fd5b506102f9610520366004612556565b610cf3565b34801561053157600080fd5b5060d3546102f9906001600160a01b031681565b34801561055157600080fd5b50610348610560366004612630565b610d4a565b34801561057157600080fd5b50610331610db1565b34801561058657600080fd5b50610331610dc5565b34801561059b57600080fd5b506103316105aa366004612556565b610f2f565b3480156105bb57600080fd5b50603b546001600160a01b03166102f9565b3480156105d957600080fd5b506102b6610f3c565b3480156105ee57600080fd5b5061034860d65481565b34801561060457600080fd5b50610331610613366004612759565b610f49565b34801561062457600080fd5b50610331610633366004612790565b610f5d565b34801561064457600080fd5b5061028c61065336600461282b565b610f8c565b34801561066457600080fd5b50610331610673366004612556565b610fe5565b34801561068457600080fd5b506102b6610693366004612556565b610ff2565b3480156106a457600080fd5b506103316106b3366004612630565b6110ad565b6103316106c636600461284d565b6110d7565b3480156106d757600080fd5b5061034860055481565b3480156106ed57600080fd5b5061034860065481565b34801561070357600080fd5b506102b66111b7565b34801561071857600080fd5b5061028c6107273660046128de565b600860209081526000928352604080842090915290825290205460ff1681565b61033161075536600461284d565b611229565b34801561076657600080fd5b50610331610775366004612630565b6112a2565b34801561078657600080fd5b50610331610795366004612630565b611318565b3480156107a657600080fd5b506107ca6107b5366004612908565b60d26020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b60006301ffc9a760e01b6001600160e01b03198316148061080d57506380ac58cd60e01b6001600160e01b03198316145b806108285750635b5e139f60e01b6001600160e01b03198316145b8061084357506307f5828d60e41b6001600160e01b03198316145b8061085e5750632483248360e11b6001600160e01b03198316145b92915050565b6001805461087190612923565b80601f016020809104026020016040519081016040528092919081815260200182805461089d90612923565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b505050505081565b816108fc81611342565b61090683836113fb565b505050565b600060065460055461091d9190612973565b905090565b826001600160a01b038116331461093c5761093c33611342565b6109478484846114dd565b50505050565b3466b1a2bc2ec500001461097457604051635de88b5760e11b815260040160405180910390fd5b60d6546002146109975760405163b35ba98d60e01b815260040160405180910390fd5b336000908152600460205260409020546005906109bf9062010000900461ffff166001612986565b61ffff1611156109e25760405163f5d0b57d60e01b815260040160405180910390fd5b6109ec82826116c2565b5050565b6001600160a01b037f000000000000000000000000046898045b351b57fb83421869c6e5d8e4bcc089163003610a415760405162461bcd60e51b8152600401610a38906129a8565b60405180910390fd5b7f000000000000000000000000046898045b351b57fb83421869c6e5d8e4bcc0896001600160a01b0316610a8a600080516020612d1e833981519152546001600160a01b031690565b6001600160a01b031614610ab05760405162461bcd60e51b8152600401610a38906129f4565b610ab9816118a7565b60408051600080825260208201909252610ad5918391906118af565b50565b610ae0611a1a565b60d7546001600160a01b0316610b095760405163fef4d43d60e01b815260040160405180910390fd5b60d7546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad5573d6000803e3d6000fd5b826001600160a01b0381163314610b5c57610b5c33611342565b610947848484611a74565b6001600160a01b037f000000000000000000000000046898045b351b57fb83421869c6e5d8e4bcc089163003610baf5760405162461bcd60e51b8152600401610a38906129a8565b7f000000000000000000000000046898045b351b57fb83421869c6e5d8e4bcc0896001600160a01b0316610bf8600080516020612d1e833981519152546001600160a01b031690565b6001600160a01b031614610c1e5760405162461bcd60e51b8152600401610a38906129f4565b610c27826118a7565b6109ec828260016118af565b6000306001600160a01b037f000000000000000000000000046898045b351b57fb83421869c6e5d8e4bcc0891614610cd35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a38565b50600080516020612d1e83398151915290565b610cee611a1a565b60d555565b6000818152600360205260409020546001600160a01b031680610d455760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610a38565b919050565b60006001600160a01b038216610d915760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610a38565b506001600160a01b031660009081526004602052604090205461ffff1690565b610db9611a1a565b610dc36000611b67565b565b600054610100900460ff1615808015610de55750600054600160ff909116105b80610dff5750303b158015610dff575060005460ff166001145b610e625760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a38565b6000805460ff191660011790558015610e85576000805461ff0019166101001790555b610ecf60405180604001604052806007815260200166213634ba35b4b760c91b81525060405180604001604052806007815260200166212624aa25a4a760c91b8152506001611bb9565b610ed7611c06565b610edf611c35565b610ee7611c5c565b8015610ad5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b610f37611a1a565b60d655565b6002805461087190612923565b81610f5381611342565b6109068383611ca2565b846001600160a01b0381163314610f7757610f7733611342565b610f848686868686611d0e565b505050505050565b6000808383604051602001610fb5929190918252602d60f81b6020830152602182015260410190565b60408051808303601f190181529181528151602092830120600090815260d190925290205460ff16949350505050565b610fed611a1a565b60d455565b6060811580611002575060055482115b1561100c57600080fd5b60d35460008381526003602052604090819020549051635f2ec82d60e01b81526004810185905260ff600160a01b830481166024830152600160a81b90920490911660448201526001600160a01b0390911690635f2ec82d90606401600060405180830381865afa158015611085573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261085e9190810190612a40565b6110b5611a1a565b60d780546001600160a01b0319166001600160a01b0392909216919091179055565b3466b1a2bc2ec50000146110fe57604051635de88b5760e11b815260040160405180910390fd5b60d65460011461112157604051632c8c9acd60e01b815260040160405180910390fd5b336000908152600460205260409020546002906111499062010000900461ffff166001612986565b61ffff16111561116c5760405163f5d0b57d60e01b815260040160405180910390fd5b6111ad8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d4543392509050611df6565b61094784846116c2565b60d35460408051637cc1f86760e01b815290516060926001600160a01b031691637cc1f8679160048083019260009291908290030181865afa158015611201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261091d9190810190612a40565b3360009081526004602052604090205462010000900461ffff16156112615760405163f5d0b57d60e01b815260040160405180910390fd5b6111ad8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d5543392509050611df6565b6112aa611a1a565b6001600160a01b03811661130f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a38565b610ad581611b67565b611320611a1a565b60d380546001600160a01b0319166001600160a01b0392909216919091179055565b6daaeb6d7670e522a718067333cd4e3b15610ad557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156113af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d39190612aae565b610ad557604051633b79c77360e21b81526001600160a01b0382166004820152602401610a38565b6000818152600360205260409020546001600160a01b03163381148061144457506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6114815760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610a38565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146115335760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610a38565b6001600160a01b03821661157d5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610a38565b336001600160a01b03841614806115b757506001600160a01b038316600090815260086020908152604080832033845290915290205460ff165b806115d857506000818152600760205260409020546001600160a01b031633145b6116155760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610a38565b6001600160a01b038381166000818152600460209081526040808320805461ffff1980821661ffff928316600019018316179092559588168085528285208054928316928816600101909716919091179095558583526003825280832080546001600160a01b031990811687179091556007909252808320805490921690915551849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106406116cd61090b565b6116d8906001612acb565b11156116f757604051632b8a905d60e11b815260040160405180910390fd5b3332146117175760405163875fdad760e01b815260040160405180910390fd5b8060ff168260ff160361173d57604051633bfdae0b60e01b815260040160405180910390fd5b60638260ff161180611752575060638160ff16115b156117705760405163a6d1592160e01b815260040160405180910390fd5b60ff808316600090815260d2602052604090205460109161179391166001612ade565b60ff1611156117b55760405163475dbc9760e11b815260040160405180910390fd5b6040516001600160f81b031960f884811b82166020840152602d60f81b602184015283901b16602282015260009060230160408051601f198184030181529181528151602092830120600081815260d190935291205490915060ff161561182f57604051632aca565960e11b815260040160405180910390fd5b600081815260d1602090815260408083208054600160ff19918216811790925560ff88811680875260d290955283862080549283169282169093018116919091179091559051908516927f3b7c6c5a9c3459db30e030176441d0882427978754d8d629982f8f6996aa768291a3610906338484611e89565b610ad5611a1a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156118e25761090683612034565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561193c575060408051601f3d908101601f1916820190925261193991810190612af7565b60015b61199f5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a38565b600080516020612d1e8339815191528114611a0e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a38565b506109068383836120d0565b603b546001600160a01b03163314610dc35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a38565b611a7f838383610922565b6001600160a01b0382163b1580611b285750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611af8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1c9190612b10565b6001600160e01b031916145b6109065760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610a38565b603b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611be05760405162461bcd60e51b8152600401610a3890612b2d565b6001611bec8482612bbe565b506002611bf98382612bbe565b5060058190556006555050565b600054610100900460ff16611c2d5760405162461bcd60e51b8152600401610a3890612b2d565b610dc36120f5565b600054610100900460ff16610dc35760405162461bcd60e51b8152600401610a3890612b2d565b600054610100900460ff16611c835760405162461bcd60e51b8152600401610a3890612b2d565b610dc3733cc6cdda760b79bafa08df41ecfa224f810dceb66001612125565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d19858585610922565b6001600160a01b0384163b1580611db05750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611d619033908a90899089908990600401612c7e565b6020604051808303816000875af1158015611d80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da49190612b10565b6001600160e01b031916145b611def5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610a38565b5050505050565b604080516001600160a01b03841660208201526000910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050611e4d8483836122c4565b6109475760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610a38565b6001600160a01b038316611ed35760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610a38565b6005546000818152600360205260409020546001600160a01b031615611f2c5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610a38565b604080516060810182526001600160a01b0380871680835260ff808816602080860191825288831686880190815260008981526003835288812097518854945192518616600160a81b0260ff60a81b1993909616600160a01b026001600160a81b0319909516971696909617929092179190911691909117909355815260049091522080546201000061ffff8083166001908101821661ffff19851681178490048316820190921690920263ffffffff199093161791909117909155611ff3908290612acb565b60055560405181906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450505050565b6001600160a01b0381163b6120a15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a38565b600080516020612d1e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6120d9836122dc565b6000825111806120e65750805b1561090657610947838361231c565b600054610100900460ff1661211c5760405162461bcd60e51b8152600401610a3890612b2d565b610dc333611b67565b600054610100900460ff1661214c5760405162461bcd60e51b8152600401610a3890612b2d565b6daaeb6d7670e522a718067333cd4e3b156109ec5760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156121ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d09190612aae565b6109ec57801561224457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561223057600080fd5b505af1158015610f84573d6000803e3d6000fd5b6001600160a01b038216156122935760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612216565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612216565b6000826122d18584612410565b1490505b9392505050565b6122e581612034565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6123845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a38565b600080846001600160a01b03168460405161239f9190612cd2565b600060405180830381855af49150503d80600081146123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b50915091506124078282604051806060016040528060278152602001612d3e6027913961245d565b95945050505050565b600081815b8451811015612455576124418286838151811061243457612434612cee565b6020026020010151612476565b91508061244d81612d04565b915050612415565b509392505050565b6060831561246c5750816122d5565b6122d583836124a2565b60008183106124925760008281526020849052604090206122d5565b5060009182526020526040902090565b8151156124b25781518083602001fd5b8060405162461bcd60e51b8152600401610a389190612523565b6001600160e01b031981168114610ad557600080fd5b6000602082840312156124f457600080fd5b81356122d5816124cc565b60005b8381101561251a578181015183820152602001612502565b50506000910152565b60208152600082518060208401526125428160408501602087016124ff565b601f01601f19169190910160400192915050565b60006020828403121561256857600080fd5b5035919050565b80356001600160a01b0381168114610d4557600080fd5b6000806040838503121561259957600080fd5b6125a28361256f565b946020939093013593505050565b6000806000606084860312156125c557600080fd5b6125ce8461256f565b92506125dc6020850161256f565b9150604084013590509250925092565b803560ff81168114610d4557600080fd5b6000806040838503121561261057600080fd5b612619836125ec565b9150612627602084016125ec565b90509250929050565b60006020828403121561264257600080fd5b6122d58261256f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561268a5761268a61264b565b604052919050565b600067ffffffffffffffff8211156126ac576126ac61264b565b50601f01601f191660200190565b600080604083850312156126cd57600080fd5b6126d68361256f565b9150602083013567ffffffffffffffff8111156126f257600080fd5b8301601f8101851361270357600080fd5b803561271661271182612692565b612661565b81815286602083850101111561272b57600080fd5b816020840160208301376000602083830101528093505050509250929050565b8015158114610ad557600080fd5b6000806040838503121561276c57600080fd5b6127758361256f565b915060208301356127858161274b565b809150509250929050565b6000806000806000608086880312156127a857600080fd5b6127b18661256f565b94506127bf6020870161256f565b935060408601359250606086013567ffffffffffffffff808211156127e357600080fd5b818801915088601f8301126127f757600080fd5b81358181111561280657600080fd5b89602082850101111561281857600080fd5b9699959850939650602001949392505050565b6000806040838503121561283e57600080fd5b50508035926020909101359150565b6000806000806060858703121561286357600080fd5b61286c856125ec565b935061287a602086016125ec565b9250604085013567ffffffffffffffff8082111561289757600080fd5b818701915087601f8301126128ab57600080fd5b8135818111156128ba57600080fd5b8860208260051b85010111156128cf57600080fd5b95989497505060200194505050565b600080604083850312156128f157600080fd5b6128fa8361256f565b91506126276020840161256f565b60006020828403121561291a57600080fd5b6122d5826125ec565b600181811c9082168061293757607f821691505b60208210810361295757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561085e5761085e61295d565b61ffff8181168382160190808211156129a1576129a161295d565b5092915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612a5257600080fd5b815167ffffffffffffffff811115612a6957600080fd5b8201601f81018413612a7a57600080fd5b8051612a8861271182612692565b818152856020838501011115612a9d57600080fd5b6124078260208301602086016124ff565b600060208284031215612ac057600080fd5b81516122d58161274b565b8082018082111561085e5761085e61295d565b60ff818116838216019081111561085e5761085e61295d565b600060208284031215612b0957600080fd5b5051919050565b600060208284031215612b2257600080fd5b81516122d5816124cc565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b601f82111561090657600081815260208120601f850160051c81016020861015612b9f5750805b601f850160051c820191505b81811015610f8457828155600101612bab565b815167ffffffffffffffff811115612bd857612bd861264b565b612bec81612be68454612923565b84612b78565b602080601f831160018114612c215760008415612c095750858301515b600019600386901b1c1916600185901b178555610f84565b600085815260208120601f198616915b82811015612c5057888601518255948401946001909101908401612c31565b5085821015612c6e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008251612ce48184602087016124ff565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201612d1657612d1661295d565b506001019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220fae3862bb30c43004e3840908646770d6e862b044c28e5c46a043bed72f1600964736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.