ERC-1155
Overview
Max Total Supply
1,500 FPD
Holders
30
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FellowshipPrintDeeds
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: AGPL-3.0-only pragma solidity ^0.8.17; import "./ERC1155.sol"; import "./interfaces/IDeedAuthorizer.sol"; import "./interfaces/IFPD.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "operator-filter-registry/src/upgradeable/RevokableDefaultOperatorFiltererUpgradeable.sol"; /// @title Fellowship Print Deeds contract FellowshipPrintDeeds is IFPD, RevokableDefaultOperatorFiltererUpgradeable, ERC2981, ERC1155Holder, ERC1155, Pausable, Ownable { string public constant name = "Fellowship Print Deeds"; string public constant symbol = "FPD"; mapping(address => CollectionInfo) private _collectionInfo; mapping(address => RoyaltyInfo) public collectionToRoyaltyInfo; mapping(uint256 => uint256) public deedsClaimed; address public printFactory = 0x11F32c8d5Ad08f844CA2E95f6ffE66E5Cd74457D; address public uriDelegate; /// @inheritdoc IERC165 function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC1155, ERC1155Receiver, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } // ONLY OWNER FUNCTIONS /// @notice Add a new collection's deeds to the contract, token ids MUST be continuous and no larger than uint96 /// @param collection The address of the collection to be added /// @param collectionStartId Lowest tokenId of collection, typically 0 or 1 /// @param collectionSupply The supply of the collection /// @param editionSize The size of the edition /// @param royaltyRecipient The address of the recipient of the royalties /// @param authorizer The address of the contract handling claim authorization function addCollection( address collection, uint256 collectionStartId, uint256 collectionSupply, uint256 editionSize, address royaltyRecipient, address authorizer ) external onlyOwner { require(_collectionInfo[collection].editionSize == 0); require(editionSize > 0 && royaltyRecipient != address(0) && authorizer != address(0)); uint256[] memory deedIds = new uint256[](collectionSupply); uint256[] memory amounts = new uint256[](collectionSupply); uint256 upperLimit = collectionStartId + collectionSupply; for (uint256 i = collectionStartId; i < upperLimit; ++i) { deedIds[i] = artTokentoDeedId(collection, i); amounts[i] = editionSize; } _collectionInfo[collection] = CollectionInfo( authorizer, uint96(collectionStartId), uint96(collectionSupply), uint96(editionSize) ); updateRoyalties(collection, royaltyRecipient, 500); emit TransferBatch(msg.sender, address(0), address(this), deedIds, amounts); } /// @notice Create additional deeds by extending an exisiting collections total supply /// @param collection The address of the collection to extend /// @param additionalSupply The amount of tokens to add to the collection function extendCollection( address collection, uint256 additionalSupply ) external onlyOwner { CollectionInfo storage cInfo = _collectionInfo[collection]; require(cInfo.editionSize > 0); uint256[] memory deedIds = new uint256[](additionalSupply); uint256[] memory amounts = new uint256[](additionalSupply); uint256 start = cInfo.startId + cInfo.supply; uint256 upperLimit = start + additionalSupply; uint256 editionSize = cInfo.editionSize; for (uint256 i = start; i < upperLimit; ++i) { deedIds[i] = artTokentoDeedId(collection, i); amounts[i] = editionSize; } cInfo.supply += uint96(additionalSupply); emit TransferBatch(msg.sender, address(0), address(this), deedIds, amounts); } /// @notice Create additional deeds for the existing supply of tokens of a collection /// @param collection The address of the collection to add editions to /// @param additionalEditions The amount of deeds to add function increaseEditions( address collection, uint256 additionalEditions ) external onlyOwner { CollectionInfo storage cInfo = _collectionInfo[collection]; require(cInfo.editionSize > 0); uint256 supply = cInfo.supply; uint256[] memory deedIds = new uint256[](supply); uint256[] memory amounts = new uint256[](supply); uint256 start = cInfo.startId; uint256 upperLimit = start + supply; for (uint256 i = start; i < upperLimit; ++i) { deedIds[i] = artTokentoDeedId(collection, i); amounts[i] = additionalEditions; } cInfo.editionSize += uint96(additionalEditions); emit TransferBatch(msg.sender, address(0), address(this), deedIds, amounts); } /// @notice Pause claim functionality function pauseClaims() external onlyOwner { _pause(); } /// @notice Unpause claim functionality function resumeClaims() external onlyOwner { _unpause(); } /// @notice Update the authoriztion contract associated with a given collection /// @param collection The address of the collection to update /// @param authorizer The contract which manages claim permissions function updateCollectionAuth( address collection, address authorizer ) external onlyOwner { _collectionInfo[collection].authorizer = authorizer; } /// @notice Update the "Print Factory" address /// @param factory The cannonical address representing submission of a deed for printing function updatePrintFactory( address factory ) external onlyOwner { printFactory = factory; } function updateRoyalties( address collection, address recipient, uint256 royaltyBps ) public onlyOwner { collectionToRoyaltyInfo[collection] = RoyaltyInfo(recipient, uint96(royaltyBps)); } function updateUriDelegate( address newUriDelegate ) external onlyOwner { uriDelegate = newUriDelegate; } // ERC2981 ROYALTIES /// @inheritdoc ERC2981 function royaltyInfo( uint256 tokenId, uint256 salePrice ) public view virtual override returns (address, uint256) { address collection = getCollectionFromDeedId(tokenId); RoyaltyInfo memory royalty = collectionToRoyaltyInfo[collection]; uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } // CLAIM FUNCTIONALITY function claimDeeds( address[] calldata collections, uint256[] calldata ids ) external { _claim(collections, ids, msg.sender); } function claimDeedsTo( address[] calldata collections, uint256[] calldata ids, address to ) external { _claim(collections, ids, to); } function claimPrintsDirectly( address[] calldata collections, uint256[] calldata ids ) external { _claim(collections, ids, printFactory); } function claimDeedsPartial( address[] calldata collections, uint256[] calldata ids, uint256[] calldata amounts ) external { _claimPartial(collections, ids, amounts, msg.sender); } function claimDeedsPartialTo( address[] calldata collections, uint256[] calldata ids, uint256[] calldata amounts, address to ) external { _claimPartial(collections, ids, amounts, to); } function claimPrintsDirectlyPartial( address[] calldata collections, uint256[] calldata ids, uint256[] calldata amounts ) external { _claimPartial(collections, ids, amounts, printFactory); } function _claim( address[] calldata collections, uint256[] calldata ids, address target ) internal whenNotPaused { require(collections.length == ids.length && collections.length > 0); uint256[] memory deedIds = new uint256[](collections.length); uint256[] memory amounts = new uint256[](collections.length); for (uint256 i; i < collections.length; ++i) { CollectionInfo memory cInfo = _collectionInfo[collections[i]]; require(cInfo.editionSize > 0); require(ids[i] >= cInfo.startId && ids[i] < cInfo.startId + cInfo.supply); uint256 deedId = artTokentoDeedId(collections[i], ids[i]); uint256 deedsLeft = cInfo.editionSize - deedsClaimed[deedId]; require(deedsLeft > 0); deedIds[i] = deedId; amounts[i] = deedsLeft; balanceOf[target][deedId] += deedsLeft; deedsClaimed[deedId] += deedsLeft; emit URI("", deedId); require(IDeedAuthorizer( cInfo.authorizer ).isAuthedForDeeds(msg.sender, collections[i], ids[i], amounts[i])); } emit TransferBatch(msg.sender, address(this), target, deedIds, amounts); } function _claimPartial( address[] calldata collections, uint256[] calldata ids, uint256[] calldata amounts, address target ) internal whenNotPaused { require(collections.length == ids.length && ids.length == amounts.length && collections.length > 0); uint256[] memory deedIds = new uint256[](collections.length); for (uint256 i; i < collections.length; ++i) { CollectionInfo memory cInfo = _collectionInfo[collections[i]]; require(cInfo.editionSize > 0); require(ids[i] >= cInfo.startId && ids[i] < cInfo.startId + cInfo.supply); uint256 deedId = artTokentoDeedId(collections[i], ids[i]); require(amounts[i] > 0); require(amounts[i] <= cInfo.editionSize - deedsClaimed[deedId]); deedIds[i] = deedId; balanceOf[target][deedId] += amounts[i]; deedsClaimed[deedId] += amounts[i]; emit URI("", deedId); require(IDeedAuthorizer( cInfo.authorizer ).isAuthedForDeeds(msg.sender, collections[i], ids[i], amounts[i])); } emit TransferBatch(msg.sender, address(this), target, deedIds, amounts); } // HELPER FUNCTIONS function artTokentoDeedId( address collection, uint256 id ) public pure returns (uint256) { return (uint256(uint160(collection)) << 96) | uint96(id); } function collectionInfo(address collection) external view returns (CollectionInfo memory) { return _collectionInfo[collection]; } function deedsLeftToClaim( address collection, uint256 id ) external view returns (uint256) { return _collectionInfo[collection].editionSize - deedsClaimed[artTokentoDeedId(collection, id)]; } function getCollectionFromDeedId( uint256 deedId ) public pure returns (address) { return address(uint160(deedId >> 96)); } function getArtTokenIdFromDeedId( uint256 deedId ) public pure returns (uint256) { return uint256(uint96(deedId)); } /// @inheritdoc Ownable function owner() public view virtual override(Ownable, RevokableOperatorFiltererUpgradeable) returns (address) { return Ownable.owner(); } // ERC1155 OVERRIDES /// @inheritdoc ERC1155 function setApprovalForAll( address operator, bool approved ) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } /// @inheritdoc ERC1155 function safeTransferFrom( address from, address to, uint256 tokenId, uint256 amount, bytes calldata data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, amount, data); if (to == printFactory) { emit URI("", tokenId); } } /// @inheritdoc ERC1155 function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) public virtual override onlyAllowedOperator(from) { super.safeBatchTransferFrom(from, to, ids, amounts, data); if (to == printFactory) { for (uint256 i; i < ids.length; ++i) { emit URI("", ids[i]); } } } /// @inheritdoc ERC1155 function uri( uint256 id ) public view override returns (string memory) { return ERC1155(uriDelegate).uri(id); } // UNCLAIM FUNCTIONALITY /// @inheritdoc IERC1155Receiver function onERC1155Received( address, address from, uint256 id, uint256 amount, bytes memory ) public virtual override returns (bytes4) { require(msg.sender == address(this)); balanceOf[address(this)][id] = 0; deedsClaimed[id] -= amount; emit URI("", id); address collection = getCollectionFromDeedId(id); uint256 tokenId = getArtTokenIdFromDeedId(id); require(IDeedAuthorizer(_collectionInfo[collection].authorizer).deedsMerged( from, collection, tokenId, amount )); return this.onERC1155Received.selector; } /// @inheritdoc IERC1155Receiver function onERC1155BatchReceived( address, address from, uint256[] memory ids, uint256[] memory amounts, bytes memory ) public virtual override returns (bytes4) { require(msg.sender == address(this)); for (uint256 i; i < ids.length; ++i) { balanceOf[address(this)][ids[i]] = 0; deedsClaimed[ids[i]] -= amounts[i]; emit URI("", ids[i]); address collection = getCollectionFromDeedId(ids[i]); uint256 tokenId = getArtTokenIdFromDeedId(ids[i]); require(IDeedAuthorizer(_collectionInfo[collection].authorizer).deedsMerged( from, collection, tokenId, amounts[i] )); } return this.onERC1155BatchReceived.selector; } // PRINT FACTORY FUNCTIONALITY /// @notice Allow Print Factory address to burn deeds sent to it function burnDeeds( uint256[] calldata ids, uint256[] calldata amounts ) external { require(msg.sender == printFactory); require(ids.length == amounts.length); for (uint256 i = 0; i < ids.length; ++i) { balanceOf[msg.sender][ids[i]] -= amounts[i]; balanceOf[address(0)][ids[i]] += amounts[i]; } emit TransferBatch(msg.sender, msg.sender, address(0), ids, amounts); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {RevokableOperatorFiltererUpgradeable} from "./RevokableOperatorFiltererUpgradeable.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "../lib/Constants.sol"; /** * @title RevokableDefaultOperatorFiltererUpgradeable * @notice Inherits from RevokableOperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription * when the init function is called. * Note that OpenSea will disable creator earnings enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableDefaultOperatorFiltererUpgradeable is RevokableOperatorFiltererUpgradeable { /// @dev The upgradeable initialize function that should be called when the contract is being upgraded. function __RevokableDefaultOperatorFilterer_init() internal onlyInitializing { RevokableOperatorFiltererUpgradeable.__RevokableOperatorFilterer_init(CANONICAL_CORI_SUBSCRIPTION, true); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.17; interface IFPD { struct CollectionInfo { address authorizer; uint96 startId; uint96 supply; uint96 editionSize; } function collectionInfo(address) external view returns (CollectionInfo memory); function deedsClaimed(uint256) external view returns (uint256); function getArtTokenIdFromDeedId(uint256) external view returns (uint256); function getCollectionFromDeedId(uint256) external view returns (address); function printFactory() external view returns (address); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.17; interface IDeedAuthorizer { /// @dev If this hook contains side effects, you MUST check msg.sender function isAuthedForDeeds( address claimant, address collection, uint256 tokenId, uint256 amount ) external returns (bool); /// @dev If this hook contains side effects, you MUST check msg.sender function deedsMerged( address returnee, address collection, uint256 tokenId, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Minimalist and gas efficient standard ERC1155 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol) abstract contract ERC1155 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event TransferSingle( address indexed operator, address indexed from, address indexed to, uint256 id, uint256 amount ); event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] amounts ); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); event URI(string value, uint256 indexed id); /*////////////////////////////////////////////////////////////// ERC1155 STORAGE //////////////////////////////////////////////////////////////*/ mapping(address => mapping(uint256 => uint256)) public balanceOf; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// METADATA LOGIC //////////////////////////////////////////////////////////////*/ function uri(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC1155 LOGIC //////////////////////////////////////////////////////////////*/ function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) public virtual { require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED"); balanceOf[from][id] -= amount; balanceOf[to][id] += amount; emit TransferSingle(msg.sender, from, to, id, amount); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) == ERC1155TokenReceiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) public virtual { require(ids.length == amounts.length, "LENGTH_MISMATCH"); require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED"); // Storing these outside the loop saves ~15 gas per iteration. uint256 id; uint256 amount; for (uint256 i = 0; i < ids.length; ) { id = ids[i]; amount = amounts[i]; balanceOf[from][id] -= amount; balanceOf[to][id] += amount; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, from, to, ids, amounts); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) == ERC1155TokenReceiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function balanceOfBatch(address[] calldata owners, uint256[] calldata ids) public view virtual returns (uint256[] memory balances) { require(owners.length == ids.length, "LENGTH_MISMATCH"); balances = new uint256[](owners.length); // Unchecked because the only math done is incrementing // the array index counter which cannot possibly overflow. unchecked { for (uint256 i = 0; i < owners.length; ++i) { balances[i] = balanceOf[owners[i]][ids[i]]; } } } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155 interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { balanceOf[to][id] += amount; emit TransferSingle(msg.sender, address(0), to, id, amount); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) == ERC1155TokenReceiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function _batchMint( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { uint256 idsLength = ids.length; // Saves MLOADs. require(idsLength == amounts.length, "LENGTH_MISMATCH"); for (uint256 i = 0; i < idsLength; ) { balanceOf[to][ids[i]] += amounts[i]; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, address(0), to, ids, amounts); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) == ERC1155TokenReceiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function _batchBurn( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { uint256 idsLength = ids.length; // Saves MLOADs. require(idsLength == amounts.length, "LENGTH_MISMATCH"); for (uint256 i = 0; i < idsLength; ) { balanceOf[from][ids[i]] -= amounts[i]; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, from, address(0), ids, amounts); } function _burn( address from, uint256 id, uint256 amount ) internal virtual { balanceOf[from][id] -= amount; emit TransferSingle(msg.sender, from, address(0), id, amount); } } /// @notice A generic interface for a contract which properly accepts ERC1155 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol) abstract contract ERC1155TokenReceiver { function onERC1155Received( address, address, uint256, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC1155TokenReceiver.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) external virtual returns (bytes4) { return ERC1155TokenReceiver.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; 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"; /** * @title Upgradeable storage layout for RevokableOperatorFiltererUpgradeable. * @notice Upgradeable contracts must use a storage layout that can be used across upgrades. * Only append new variables to the end of the layout. */ library RevokableOperatorFiltererUpgradeableStorage { struct Layout { /// @dev Whether the OperatorFilterRegistry has been revoked. bool _isOperatorFilterRegistryRevoked; } /// @dev The storage slot for the layout. bytes32 internal constant STORAGE_SLOT = keccak256("RevokableOperatorFiltererUpgradeable.contracts.storage"); /// @dev The layout of the storage. function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently opt out of the OperatorFilterRegistry. The Registry * itself has an "unregister" function, but if the contract is ownable, the owner can re-register at any point. * As implemented, this abstract contract allows the contract owner to toggle the * isOperatorFilterRegistryRevoked flag in order to permanently bypass the OperatorFilterRegistry checks. */ abstract contract RevokableOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { using RevokableOperatorFiltererUpgradeableStorage for RevokableOperatorFiltererUpgradeableStorage.Layout; error OnlyOwner(); error AlreadyRevoked(); event OperatorFilterRegistryRevoked(); function __RevokableOperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal { OperatorFiltererUpgradeable.__OperatorFilterer_init(subscriptionOrRegistrantToCopy, subscribe); } /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual override { // Check registry code length to facilitate testing in environments without a deployed registry. if ( !RevokableOperatorFiltererUpgradeableStorage.layout()._isOperatorFilterRegistryRevoked && 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); } } } /** * @notice Disable the isOperatorFilterRegistryRevoked flag. OnlyOwner. */ function revokeOperatorFilterRegistry() external { if (msg.sender != owner()) { revert OnlyOwner(); } if (RevokableOperatorFiltererUpgradeableStorage.layout()._isOperatorFilterRegistryRevoked) { revert AlreadyRevoked(); } RevokableOperatorFiltererUpgradeableStorage.layout()._isOperatorFilterRegistryRevoked = true; emit OperatorFilterRegistryRevoked(); } function isOperatorFilterRegistryRevoked() public view returns (bool) { return RevokableOperatorFiltererUpgradeableStorage.layout()._isOperatorFilterRegistryRevoked; } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "../IOperatorFilterRegistry.sol"; import {Initializable} from "@openzeppelin/contracts-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: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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] * ```solidity * 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 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 // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @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, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(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); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"AlreadyRevoked","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[],"name":"OperatorFilterRegistryRevoked","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"collectionStartId","type":"uint256"},{"internalType":"uint256","name":"collectionSupply","type":"uint256"},{"internalType":"uint256","name":"editionSize","type":"uint256"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"address","name":"authorizer","type":"address"}],"name":"addCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"artTokentoDeedId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnDeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"claimDeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"claimDeedsPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"claimDeedsPartialTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"claimDeedsTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"claimPrintsDirectly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"claimPrintsDirectlyPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"collectionInfo","outputs":[{"components":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"uint96","name":"startId","type":"uint96"},{"internalType":"uint96","name":"supply","type":"uint96"},{"internalType":"uint96","name":"editionSize","type":"uint96"}],"internalType":"struct IFPD.CollectionInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionToRoyaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"royaltyFraction","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deedsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"deedsLeftToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"additionalSupply","type":"uint256"}],"name":"extendCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"deedId","type":"uint256"}],"name":"getArtTokenIdFromDeedId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"deedId","type":"uint256"}],"name":"getCollectionFromDeedId","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"additionalEditions","type":"uint256"}],"name":"increaseEditions","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":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"printFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","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":"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"authorizer","type":"address"}],"name":"updateCollectionAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"}],"name":"updatePrintFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"royaltyBps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newUriDelegate","type":"address"}],"name":"updateUriDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriDelegate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600980546001600160a01b0319167311f32c8d5ad08f844ca2e95f6ffe66e5cd74457d1790553480156200003757600080fd5b506005805460ff191690556200004d3362000053565b620000ad565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61373680620000bd6000396000f3fe608060405234801561001057600080fd5b50600436106102725760003560e01c80635c975abb11610151578063a3adbda9116100c3578063e985e9c511610087578063e985e9c514610726578063ecba222a14610754578063f23a6e611461076c578063f242432a1461077f578063f2fde38b14610792578063fa0e4b20146107a557600080fd5b8063a3adbda9146106ae578063a86edcb4146106c1578063bc197c81146106d4578063d17d695714610700578063d4ca17771461071357600080fd5b80638b2a5ab7116101155780638b2a5ab71461062a5780638da5cb5b1461063d57806395d89b411461065357806397912e4e146106755780639ef98c1414610688578063a22cb4651461069b57600080fd5b80635c975abb146105dc5780635ef9432a146105e75780636d19c009146105ef578063715018a6146106025780638278fa4b1461060a57600080fd5b806320a3fccb116101ea578063307d9d32116101ae578063307d9d321461050e57806337d93c67146105705780633ba607a31461058357806346a9cabc146105965780634e1273f4146105a95780635a09dd2a146105c957600080fd5b806320a3fccb1461048f5780632a55205a146104a35780632e7755d9146104d55780632eb2c2d6146104e85780632feb8a3f146104fb57600080fd5b80630e89341c1161023c5780630e89341c146103585780630f3314e71461036b578063171c43bf146103755780631c388ade1461038f5780631cd1dba0146103a25780631f0c602d146103aa57600080fd5b806263bbbd14610277578062fdd58e146102a757806301ffc9a7146102e0578063042573c31461030357806306fdde0314610316575b600080fd5b600a5461028a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102d26102b5366004612aee565b600360209081526000928352604080842090915290825290205481565b60405190815260200161029e565b6102f36102ee366004612b2e565b6107b8565b604051901515815260200161029e565b6102d2610311366004612aee565b6107c9565b61034b6040518060400160405280601681526020017546656c6c6f7773686970205072696e7420446565647360501b81525081565b60405161029e9190612b6f565b61034b610366366004612ba2565b610826565b610373610898565b005b6102d2610383366004612ba2565b6001600160601b031690565b61037361039d366004612bbb565b6108aa565b6103736108e0565b6104426103b8366004612bee565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b03908116600090815260066020908152604091829020825160808101845281549485168152600160a01b9094046001600160601b03908116928501929092526001015480821692840192909252600160601b90910416606082015290565b60405161029e919081516001600160a01b031681526020808301516001600160601b0390811691830191909152604080840151821690830152606092830151169181019190915260800190565b61028a61049d366004612ba2565b60601c90565b6104b66104b1366004612c09565b6108f0565b604080516001600160a01b03909316835260208301919091520161029e565b6103736104e3366004612c6f565b61096e565b6103736104f6366004612d49565b61099a565b610373610509366004612e03565b610a4a565b61054961051c366004612bee565b6007602052600090815260409020546001600160a01b03811690600160a01b90046001600160601b031682565b604080516001600160a01b0390931683526001600160601b0390911660208301520161029e565b60095461028a906001600160a01b031681565b610373610591366004612c6f565b610bb2565b6103736105a4366004612bee565b610bc1565b6105bc6105b7366004612e03565b610beb565b60405161029e9190612ea9565b6103736105d7366004612aee565b610d25565b60055460ff166102f3565b610373610f3b565b6103736105fd366004612ebc565b610ff3565b6103736112c9565b6102d2610618366004612ba2565b60086020526000908152604090205481565b610373610638366004612bee565b6112db565b60055461010090046001600160a01b031661028a565b61034b6040518060400160405280600381526020016211941160ea1b81525081565b610373610683366004612f1b565b611305565b610373610696366004612e03565b611319565b6103736106a9366004612fa9565b61132c565b6103736106bc366004612fe0565b611345565b6103736106cf366004612aee565b61139b565b6106e76106e236600461315e565b61157d565b6040516001600160e01b0319909116815260200161029e565b61037361070e366004613207565b6117a5565b6102d2610721366004612aee565b6117bd565b6102f3610734366004612bbb565b600460209081526000928352604080842090915290825290205460ff1681565b6000805160206136c18339815191525460ff166102f3565b6106e761077a3660046132b1565b6117df565b61037361078d366004613315565b61190f565b6103736107a0366004612bee565b611986565b6103736107b3366004612e03565b6119ff565b60006107c382611a1c565b92915050565b6000600860006107d985856117bd565b815260208082019290925260409081016000908120546001600160a01b03871682526006909352206001015461081f9190600160601b90046001600160601b0316613390565b9392505050565b600a546040516303a24d0760e21b8152600481018390526060916001600160a01b031690630e89341c90602401600060405180830381865afa158015610870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107c391908101906133a3565b6108a0611a6a565b6108a8611aca565b565b6108b2611a6a565b6001600160a01b03918216600090815260066020526040902080546001600160a01b03191691909216179055565b6108e8611a6a565b6108a8611b24565b60008060006108ff8560601c90565b6001600160a01b0381811660009081526007602090815260408083208151808301909252549384168152600160a01b9093046001600160601b03169083018190529293509091612710906109539088613419565b61095d9190613430565b9151945090925050505b9250929050565b610992868686868686600960009054906101000a90046001600160a01b0316611b5d565b505050505050565b876001600160a01b03811633146109b4576109b433611fa7565b6109c4898989898989898961207e565b6009546001600160a01b0390811690891603610a3f5760005b86811015610a3d578787828181106109f7576109f7613452565b905060200201356000805160206136e1833981519152604051610a2590602080825260009082015260400190565b60405180910390a2610a3681613468565b90506109dd565b505b505050505050505050565b6009546001600160a01b03163314610a6157600080fd5b828114610a6d57600080fd5b60005b83811015610b7857828282818110610a8a57610a8a613452565b33600090815260036020908152604082209202939093013592909150878785818110610ab857610ab8613452565b9050602002013581526020019081526020016000206000828254610adc9190613390565b909155508390508282818110610af457610af4613452565b6000808052600360209081529091029290920135917f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff9150878785818110610b3e57610b3e613452565b9050602002013581526020019081526020016000206000828254610b629190613481565b90915550610b71905081613468565b9050610a70565b50604051600090339081906000805160206136a183398151915290610ba49089908990899089906134c6565b60405180910390a450505050565b61099286868686868633611b5d565b610bc9611a6a565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060838214610c335760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064015b60405180910390fd5b836001600160401b03811115610c4b57610c4b61301c565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b50905060005b84811015610d1c5760036000878784818110610c9857610c98613452565b9050602002016020810190610cad9190612bee565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610ce157610ce1613452565b90506020020135815260200190815260200160002054828281518110610d0957610d09613452565b6020908102919091010152600101610c7a565b50949350505050565b610d2d611a6a565b6001600160a01b03821660009081526006602052604090206001810154600160601b90046001600160601b0316610d6357600080fd5b6000826001600160401b03811115610d7d57610d7d61301c565b604051908082528060200260200182016040528015610da6578160200160208202803683370190505b5090506000836001600160401b03811115610dc357610dc361301c565b604051908082528060200260200182016040528015610dec578160200160208202803683370190505b5060018401548454919250600091610e17916001600160601b0390811691600160a01b9004166134ed565b6001600160601b031690506000610e2e8683613481565b6001860154909150600160601b90046001600160601b0316825b82811015610ea657610e5a89826117bd565b868281518110610e6c57610e6c613452565b60200260200101818152505081858281518110610e8b57610e8b613452565b6020908102919091010152610e9f81613468565b9050610e48565b50600186018054889190600090610ec79084906001600160601b03166134ed565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550306001600160a01b031660006001600160a01b0316336001600160a01b03166000805160206136a18339815191528888604051610f29929190613514565b60405180910390a45050505050505050565b60055461010090046001600160a01b03166001600160a01b0316336001600160a01b031614610f7d57604051635fc483c560e01b815260040160405180910390fd5b6000805160206136c18339815191525460ff1615610fae5760405163905e710760e01b815260040160405180910390fd5b6000805160206136c1833981519152805460ff191660011790556040517f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad1690600090a1565b610ffb611a6a565b6001600160a01b038616600090815260066020526040902060010154600160601b90046001600160601b03161561103157600080fd5b60008311801561104957506001600160a01b03821615155b801561105d57506001600160a01b03811615155b61106657600080fd5b6000846001600160401b038111156110805761108061301c565b6040519080825280602002602001820160405280156110a9578160200160208202803683370190505b5090506000856001600160401b038111156110c6576110c661301c565b6040519080825280602002602001820160405280156110ef578160200160208202803683370190505b50905060006110fe8789613481565b9050875b81811015611160576111148a826117bd565b84828151811061112657611126613452565b6020026020010181815250508683828151811061114557611145613452565b602090810291909101015261115981613468565b9050611102565b506040518060800160405280856001600160a01b03168152602001896001600160601b03168152602001886001600160601b03168152602001876001600160601b0316815250600660008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160010160006101000a8154816001600160601b0302191690836001600160601b03160217905550606082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555090505061128f89866101f4611345565b604051309060009033906000805160206136a1833981519152906112b69088908890613514565b60405180910390a4505050505050505050565b6112d1611a6a565b6108a8600061232a565b6112e3611a6a565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6113128585858585612384565b5050505050565b6113268484848433612384565b50505050565b8161133681611fa7565b61134083836127be565b505050565b61134d611a6a565b6040805180820182526001600160a01b0393841681526001600160601b039283166020808301918252958516600090815260079096529190942093519051909116600160a01b029116179055565b6113a3611a6a565b6001600160a01b03821660009081526006602052604090206001810154600160601b90046001600160601b03166113d957600080fd5b60018101546001600160601b03166000816001600160401b038111156114015761140161301c565b60405190808252806020026020018201604052801561142a578160200160208202803683370190505b5090506000826001600160401b038111156114475761144761301c565b604051908082528060200260200182016040528015611470578160200160208202803683370190505b508454909150600160a01b90046001600160601b031660006114928583613481565b9050815b818110156114f4576114a889826117bd565b8582815181106114ba576114ba613452565b602002602001018181525050878482815181106114d9576114d9613452565b60209081029190910101526114ed81613468565b9050611496565b508686600101600c8282829054906101000a90046001600160601b031661151b91906134ed565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550306001600160a01b031660006001600160a01b0316336001600160a01b03166000805160206136a18339815191528787604051610f29929190613514565b600033301461158b57600080fd5b60005b845181101561179257306000908152600360205260408120865182908890859081106115bc576115bc613452565b60200260200101518152602001908152602001600020819055508381815181106115e8576115e8613452565b60200260200101516008600087848151811061160657611606613452565b60200260200101518152602001908152602001600020600082825461162b9190613390565b9250508190555084818151811061164457611644613452565b60200260200101516000805160206136e183398151915260405161167390602080825260009082015260400190565b60405180910390a260006116a086838151811061169257611692613452565b602002602001015160601c90565b905060006116cd8784815181106116b9576116b9613452565b60200260200101516001600160601b031690565b6001600160a01b038084166000908152600660205260409020548851929350169063d6722ee7908a90859085908b908990811061170c5761170c613452565b60200260200101516040518563ffffffff1660e01b81526004016117339493929190613539565b6020604051808303816000875af1158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190613562565b61177f57600080fd5b50508061178b90613468565b905061158e565b5063bc197c8160e01b9695505050505050565b6117b487878787878787611b5d565b50505050505050565b6001600160601b031660609190911b6bffffffffffffffffffffffff19161790565b60003330146117ed57600080fd5b3060009081526003602090815260408083208784528252808320839055600890915281208054859290611821908490613390565b909155505060408051602080825260009082015285916000805160206136e1833981519152910160405180910390a2600061185c8560601c90565b6001600160a01b038082166000908152600660205260409081902054905163d6722ee760e01b81529293506001600160601b0388169291169063d6722ee7906118af908a90869086908b90600401613539565b6020604051808303816000875af11580156118ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f29190613562565b6118fb57600080fd5b5063f23a6e6160e01b979650505050505050565b856001600160a01b03811633146119295761192933611fa7565b61193787878787878761282a565b6009546001600160a01b03908116908716036117b457846000805160206136e183398151915260405161197590602080825260009082015260400190565b60405180910390a250505050505050565b61198e611a6a565b6001600160a01b0381166119f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c2a565b6119fc8161232a565b50565b6009546113269085908590859085906001600160a01b0316612384565b60006301ffc9a760e01b6001600160e01b031983161480611a4d5750636cdb3d1360e11b6001600160e01b03198316145b806107c35750506001600160e01b0319166303a24d0760e21b1490565b6005546001600160a01b036101009091041633146108a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2a565b611ad2612a43565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b073390565b6040516001600160a01b03909116815260200160405180910390a1565b611b2c612a89565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b07565b611b65612a43565b8584148015611b7357508382145b8015611b7e57508515155b611b8757600080fd5b6000866001600160401b03811115611ba157611ba161301c565b604051908082528060200260200182016040528015611bca578160200160208202803683370190505b50905060005b87811015611f67576000600660008b8b85818110611bf057611bf0613452565b9050602002016020810190611c059190612bee565b6001600160a01b03908116825260208083019390935260409182016000208251608081018452815492831681526001600160601b03600160a01b9093048316948101949094526001015480821692840192909252600160601b9091041660608201819052909150611c7557600080fd5b80602001516001600160601b0316888884818110611c9557611c95613452565b9050602002013510158015611cdd575080604001518160200151611cb991906134ed565b6001600160601b0316888884818110611cd457611cd4613452565b90506020020135105b611ce657600080fd5b6000611d308b8b85818110611cfd57611cfd613452565b9050602002016020810190611d129190612bee565b8a8a86818110611d2457611d24613452565b905060200201356117bd565b90506000878785818110611d4657611d46613452565b9050602002013511611d5757600080fd5b6000818152600860205260409020546060830151611d7e91906001600160601b0316613390565b878785818110611d9057611d90613452565b905060200201351115611da257600080fd5b80848481518110611db557611db5613452565b602002602001018181525050868684818110611dd357611dd3613452565b6001600160a01b038816600090815260036020908152604080832087845282528220805493909102949094013593925090611e0f908490613481565b909155508790508684818110611e2757611e27613452565b90506020020135600860008381526020019081526020016000206000828254611e509190613481565b909155505060408051602080825260009082015282916000805160206136e1833981519152910160405180910390a281516001600160a01b031663ad254071338d8d87818110611ea257611ea2613452565b9050602002016020810190611eb79190612bee565b8c8c88818110611ec957611ec9613452565b905060200201358b8b89818110611ee257611ee2613452565b905060200201356040518563ffffffff1660e01b8152600401611f089493929190613539565b6020604051808303816000875af1158015611f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4b9190613562565b611f5457600080fd5b505080611f6090613468565b9050611bd0565b50816001600160a01b0316306001600160a01b0316336001600160a01b03166000805160206136a1833981519152848888604051610f299392919061357f565b6000805160206136c18339815191525460ff16158015611fd557506daaeb6d7670e522a718067333cd4e3b15155b156119fc57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612032573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120569190613562565b6119fc57604051633b79c77360e21b81526001600160a01b0382166004820152602401610c2a565b8483146120bf5760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610c2a565b336001600160a01b03891614806120f957506001600160a01b038816600090815260046020908152604080832033845290915290205460ff165b6121365760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610c2a565b60008060005b878110156121f55788888281811061215657612156613452565b90506020020135925086868281811061217157612171613452565b6001600160a01b038e166000908152600360209081526040808320898452825282208054939091029490940135955085939250906121b0908490613390565b90915550506001600160a01b038a166000908152600360209081526040808320868452909152812080548492906121e8908490613481565b909155505060010161213c565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03166000805160206136a18339815191528b8b8b8b60405161223794939291906134c6565b60405180910390a46001600160a01b0389163b156122de5760405163bc197c8160e01b808252906001600160a01b038b169063bc197c819061228b9033908f908e908e908e908e908e908e906004016135d8565b6020604051808303816000875af11580156122aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ce919061363c565b6001600160e01b031916146122eb565b6001600160a01b03891615155b610a3d5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610c2a565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61238c612a43565b838214801561239a57508315155b6123a357600080fd5b6000846001600160401b038111156123bd576123bd61301c565b6040519080825280602002602001820160405280156123e6578160200160208202803683370190505b5090506000856001600160401b038111156124035761240361301c565b60405190808252806020026020018201604052801561242c578160200160208202803683370190505b50905060005b8681101561276f576000600660008a8a8581811061245257612452613452565b90506020020160208101906124679190612bee565b6001600160a01b03908116825260208083019390935260409182016000208251608081018452815492831681526001600160601b03600160a01b9093048316948101949094526001015480821692840192909252600160601b90910416606082018190529091506124d757600080fd5b80602001516001600160601b03168787848181106124f7576124f7613452565b905060200201351015801561253f57508060400151816020015161251b91906134ed565b6001600160601b031687878481811061253657612536613452565b90506020020135105b61254857600080fd5b60006125868a8a8581811061255f5761255f613452565b90506020020160208101906125749190612bee565b898986818110611d2457611d24613452565b600081815260086020526040812054606085015192935090916125b291906001600160601b0316613390565b9050600081116125c157600080fd5b818685815181106125d4576125d4613452565b602002602001018181525050808585815181106125f3576125f3613452565b6020908102919091018101919091526001600160a01b03881660009081526003825260408082208583529092529081208054839290612633908490613481565b909155505060008281526008602052604081208054839290612656908490613481565b909155505060408051602080825260009082015283916000805160206136e1833981519152910160405180910390a282516001600160a01b031663ad254071338d8d888181106126a8576126a8613452565b90506020020160208101906126bd9190612bee565b8c8c898181106126cf576126cf613452565b905060200201358989815181106126e8576126e8613452565b60200260200101516040518563ffffffff1660e01b815260040161270f9493929190613539565b6020604051808303816000875af115801561272e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127529190613562565b61275b57600080fd5b5050508061276890613468565b9050612432565b50826001600160a01b0316306001600160a01b0316336001600160a01b03166000805160206136a183398151915285856040516127ad929190613514565b60405180910390a450505050505050565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336001600160a01b038716148061286457506001600160a01b038616600090815260046020908152604080832033845290915290205460ff165b6128a15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610c2a565b6001600160a01b0386166000908152600360209081526040808320878452909152812080548592906128d4908490613390565b90915550506001600160a01b03851660009081526003602090815260408083208784529091528120805485929061290c908490613481565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156129f75760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906129a49033908b908a908a908a908a90600401613659565b6020604051808303816000875af11580156129c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129e7919061363c565b6001600160e01b03191614612a04565b6001600160a01b03851615155b6109925760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610c2a565b60055460ff16156108a85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c2a565b60055460ff166108a85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c2a565b80356001600160a01b0381168114612ae957600080fd5b919050565b60008060408385031215612b0157600080fd5b612b0a83612ad2565b946020939093013593505050565b6001600160e01b0319811681146119fc57600080fd5b600060208284031215612b4057600080fd5b813561081f81612b18565b60005b83811015612b66578181015183820152602001612b4e565b50506000910152565b6020815260008251806020840152612b8e816040850160208701612b4b565b601f01601f19169190910160400192915050565b600060208284031215612bb457600080fd5b5035919050565b60008060408385031215612bce57600080fd5b612bd783612ad2565b9150612be560208401612ad2565b90509250929050565b600060208284031215612c0057600080fd5b61081f82612ad2565b60008060408385031215612c1c57600080fd5b50508035926020909101359150565b60008083601f840112612c3d57600080fd5b5081356001600160401b03811115612c5457600080fd5b6020830191508360208260051b850101111561096757600080fd5b60008060008060008060608789031215612c8857600080fd5b86356001600160401b0380821115612c9f57600080fd5b612cab8a838b01612c2b565b90985096506020890135915080821115612cc457600080fd5b612cd08a838b01612c2b565b90965094506040890135915080821115612ce957600080fd5b50612cf689828a01612c2b565b979a9699509497509295939492505050565b60008083601f840112612d1a57600080fd5b5081356001600160401b03811115612d3157600080fd5b60208301915083602082850101111561096757600080fd5b60008060008060008060008060a0898b031215612d6557600080fd5b612d6e89612ad2565b9750612d7c60208a01612ad2565b965060408901356001600160401b0380821115612d9857600080fd5b612da48c838d01612c2b565b909850965060608b0135915080821115612dbd57600080fd5b612dc98c838d01612c2b565b909650945060808b0135915080821115612de257600080fd5b50612def8b828c01612d08565b999c989b5096995094979396929594505050565b60008060008060408587031215612e1957600080fd5b84356001600160401b0380821115612e3057600080fd5b612e3c88838901612c2b565b90965094506020870135915080821115612e5557600080fd5b50612e6287828801612c2b565b95989497509550505050565b600081518084526020808501945080840160005b83811015612e9e57815187529582019590820190600101612e82565b509495945050505050565b60208152600061081f6020830184612e6e565b60008060008060008060c08789031215612ed557600080fd5b612ede87612ad2565b9550602087013594506040870135935060608701359250612f0160808801612ad2565b9150612f0f60a08801612ad2565b90509295509295509295565b600080600080600060608688031215612f3357600080fd5b85356001600160401b0380821115612f4a57600080fd5b612f5689838a01612c2b565b90975095506020880135915080821115612f6f57600080fd5b50612f7c88828901612c2b565b9094509250612f8f905060408701612ad2565b90509295509295909350565b80151581146119fc57600080fd5b60008060408385031215612fbc57600080fd5b612fc583612ad2565b91506020830135612fd581612f9b565b809150509250929050565b600080600060608486031215612ff557600080fd5b612ffe84612ad2565b925061300c60208501612ad2565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561305a5761305a61301c565b604052919050565b600082601f83011261307357600080fd5b813560206001600160401b0382111561308e5761308e61301c565b8160051b61309d828201613032565b92835284810182019282810190878511156130b757600080fd5b83870192505b848310156130d6578235825291830191908301906130bd565b979650505050505050565b60006001600160401b038211156130fa576130fa61301c565b50601f01601f191660200190565b600082601f83011261311957600080fd5b813561312c613127826130e1565b613032565b81815284602083860101111561314157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561317657600080fd5b61317f86612ad2565b945061318d60208701612ad2565b935060408601356001600160401b03808211156131a957600080fd5b6131b589838a01613062565b945060608801359150808211156131cb57600080fd5b6131d789838a01613062565b935060808801359150808211156131ed57600080fd5b506131fa88828901613108565b9150509295509295909350565b60008060008060008060006080888a03121561322257600080fd5b87356001600160401b038082111561323957600080fd5b6132458b838c01612c2b565b909950975060208a013591508082111561325e57600080fd5b61326a8b838c01612c2b565b909750955060408a013591508082111561328357600080fd5b506132908a828b01612c2b565b90945092506132a3905060608901612ad2565b905092959891949750929550565b600080600080600060a086880312156132c957600080fd5b6132d286612ad2565b94506132e060208701612ad2565b9350604086013592506060860135915060808601356001600160401b0381111561330957600080fd5b6131fa88828901613108565b60008060008060008060a0878903121561332e57600080fd5b61333787612ad2565b955061334560208801612ad2565b9450604087013593506060870135925060808701356001600160401b0381111561336e57600080fd5b612cf689828a01612d08565b634e487b7160e01b600052601160045260246000fd5b818103818111156107c3576107c361337a565b6000602082840312156133b557600080fd5b81516001600160401b038111156133cb57600080fd5b8201601f810184136133dc57600080fd5b80516133ea613127826130e1565b8181528560208385010111156133ff57600080fd5b613410826020830160208601612b4b565b95945050505050565b80820281158282048414176107c3576107c361337a565b60008261344d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161347a5761347a61337a565b5060010190565b808201808211156107c3576107c361337a565b81835260006001600160fb1b038311156134ad57600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006134da604083018688613494565b82810360208401526130d6818587613494565b6001600160601b0381811683821601908082111561350d5761350d61337a565b5092915050565b6040815260006135276040830185612e6e565b82810360208401526134108185612e6e565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60006020828403121561357457600080fd5b815161081f81612f9b565b6040815260006135926040830186612e6e565b82810360208401526135a5818587613494565b9695505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090613605908301888a613494565b8281036060840152613618818789613494565b9050828103608084015261362d8185876135af565b9b9a5050505050505050505050565b60006020828403121561364e57600080fd5b815161081f81612b18565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905260009061369490830184866135af565b9897505050505050505056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb5763ff58c27377b9a9b40e9e2f5e53a9dd7cff5464aac8fc758a651823f78e5e6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529ba2646970667358221220807d7458c6df8512ab84d8a3e4c2a06e5893ef063aad12920874a5bf63c7546864736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102725760003560e01c80635c975abb11610151578063a3adbda9116100c3578063e985e9c511610087578063e985e9c514610726578063ecba222a14610754578063f23a6e611461076c578063f242432a1461077f578063f2fde38b14610792578063fa0e4b20146107a557600080fd5b8063a3adbda9146106ae578063a86edcb4146106c1578063bc197c81146106d4578063d17d695714610700578063d4ca17771461071357600080fd5b80638b2a5ab7116101155780638b2a5ab71461062a5780638da5cb5b1461063d57806395d89b411461065357806397912e4e146106755780639ef98c1414610688578063a22cb4651461069b57600080fd5b80635c975abb146105dc5780635ef9432a146105e75780636d19c009146105ef578063715018a6146106025780638278fa4b1461060a57600080fd5b806320a3fccb116101ea578063307d9d32116101ae578063307d9d321461050e57806337d93c67146105705780633ba607a31461058357806346a9cabc146105965780634e1273f4146105a95780635a09dd2a146105c957600080fd5b806320a3fccb1461048f5780632a55205a146104a35780632e7755d9146104d55780632eb2c2d6146104e85780632feb8a3f146104fb57600080fd5b80630e89341c1161023c5780630e89341c146103585780630f3314e71461036b578063171c43bf146103755780631c388ade1461038f5780631cd1dba0146103a25780631f0c602d146103aa57600080fd5b806263bbbd14610277578062fdd58e146102a757806301ffc9a7146102e0578063042573c31461030357806306fdde0314610316575b600080fd5b600a5461028a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102d26102b5366004612aee565b600360209081526000928352604080842090915290825290205481565b60405190815260200161029e565b6102f36102ee366004612b2e565b6107b8565b604051901515815260200161029e565b6102d2610311366004612aee565b6107c9565b61034b6040518060400160405280601681526020017546656c6c6f7773686970205072696e7420446565647360501b81525081565b60405161029e9190612b6f565b61034b610366366004612ba2565b610826565b610373610898565b005b6102d2610383366004612ba2565b6001600160601b031690565b61037361039d366004612bbb565b6108aa565b6103736108e0565b6104426103b8366004612bee565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b03908116600090815260066020908152604091829020825160808101845281549485168152600160a01b9094046001600160601b03908116928501929092526001015480821692840192909252600160601b90910416606082015290565b60405161029e919081516001600160a01b031681526020808301516001600160601b0390811691830191909152604080840151821690830152606092830151169181019190915260800190565b61028a61049d366004612ba2565b60601c90565b6104b66104b1366004612c09565b6108f0565b604080516001600160a01b03909316835260208301919091520161029e565b6103736104e3366004612c6f565b61096e565b6103736104f6366004612d49565b61099a565b610373610509366004612e03565b610a4a565b61054961051c366004612bee565b6007602052600090815260409020546001600160a01b03811690600160a01b90046001600160601b031682565b604080516001600160a01b0390931683526001600160601b0390911660208301520161029e565b60095461028a906001600160a01b031681565b610373610591366004612c6f565b610bb2565b6103736105a4366004612bee565b610bc1565b6105bc6105b7366004612e03565b610beb565b60405161029e9190612ea9565b6103736105d7366004612aee565b610d25565b60055460ff166102f3565b610373610f3b565b6103736105fd366004612ebc565b610ff3565b6103736112c9565b6102d2610618366004612ba2565b60086020526000908152604090205481565b610373610638366004612bee565b6112db565b60055461010090046001600160a01b031661028a565b61034b6040518060400160405280600381526020016211941160ea1b81525081565b610373610683366004612f1b565b611305565b610373610696366004612e03565b611319565b6103736106a9366004612fa9565b61132c565b6103736106bc366004612fe0565b611345565b6103736106cf366004612aee565b61139b565b6106e76106e236600461315e565b61157d565b6040516001600160e01b0319909116815260200161029e565b61037361070e366004613207565b6117a5565b6102d2610721366004612aee565b6117bd565b6102f3610734366004612bbb565b600460209081526000928352604080842090915290825290205460ff1681565b6000805160206136c18339815191525460ff166102f3565b6106e761077a3660046132b1565b6117df565b61037361078d366004613315565b61190f565b6103736107a0366004612bee565b611986565b6103736107b3366004612e03565b6119ff565b60006107c382611a1c565b92915050565b6000600860006107d985856117bd565b815260208082019290925260409081016000908120546001600160a01b03871682526006909352206001015461081f9190600160601b90046001600160601b0316613390565b9392505050565b600a546040516303a24d0760e21b8152600481018390526060916001600160a01b031690630e89341c90602401600060405180830381865afa158015610870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107c391908101906133a3565b6108a0611a6a565b6108a8611aca565b565b6108b2611a6a565b6001600160a01b03918216600090815260066020526040902080546001600160a01b03191691909216179055565b6108e8611a6a565b6108a8611b24565b60008060006108ff8560601c90565b6001600160a01b0381811660009081526007602090815260408083208151808301909252549384168152600160a01b9093046001600160601b03169083018190529293509091612710906109539088613419565b61095d9190613430565b9151945090925050505b9250929050565b610992868686868686600960009054906101000a90046001600160a01b0316611b5d565b505050505050565b876001600160a01b03811633146109b4576109b433611fa7565b6109c4898989898989898961207e565b6009546001600160a01b0390811690891603610a3f5760005b86811015610a3d578787828181106109f7576109f7613452565b905060200201356000805160206136e1833981519152604051610a2590602080825260009082015260400190565b60405180910390a2610a3681613468565b90506109dd565b505b505050505050505050565b6009546001600160a01b03163314610a6157600080fd5b828114610a6d57600080fd5b60005b83811015610b7857828282818110610a8a57610a8a613452565b33600090815260036020908152604082209202939093013592909150878785818110610ab857610ab8613452565b9050602002013581526020019081526020016000206000828254610adc9190613390565b909155508390508282818110610af457610af4613452565b6000808052600360209081529091029290920135917f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff9150878785818110610b3e57610b3e613452565b9050602002013581526020019081526020016000206000828254610b629190613481565b90915550610b71905081613468565b9050610a70565b50604051600090339081906000805160206136a183398151915290610ba49089908990899089906134c6565b60405180910390a450505050565b61099286868686868633611b5d565b610bc9611a6a565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060838214610c335760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064015b60405180910390fd5b836001600160401b03811115610c4b57610c4b61301c565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b50905060005b84811015610d1c5760036000878784818110610c9857610c98613452565b9050602002016020810190610cad9190612bee565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610ce157610ce1613452565b90506020020135815260200190815260200160002054828281518110610d0957610d09613452565b6020908102919091010152600101610c7a565b50949350505050565b610d2d611a6a565b6001600160a01b03821660009081526006602052604090206001810154600160601b90046001600160601b0316610d6357600080fd5b6000826001600160401b03811115610d7d57610d7d61301c565b604051908082528060200260200182016040528015610da6578160200160208202803683370190505b5090506000836001600160401b03811115610dc357610dc361301c565b604051908082528060200260200182016040528015610dec578160200160208202803683370190505b5060018401548454919250600091610e17916001600160601b0390811691600160a01b9004166134ed565b6001600160601b031690506000610e2e8683613481565b6001860154909150600160601b90046001600160601b0316825b82811015610ea657610e5a89826117bd565b868281518110610e6c57610e6c613452565b60200260200101818152505081858281518110610e8b57610e8b613452565b6020908102919091010152610e9f81613468565b9050610e48565b50600186018054889190600090610ec79084906001600160601b03166134ed565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550306001600160a01b031660006001600160a01b0316336001600160a01b03166000805160206136a18339815191528888604051610f29929190613514565b60405180910390a45050505050505050565b60055461010090046001600160a01b03166001600160a01b0316336001600160a01b031614610f7d57604051635fc483c560e01b815260040160405180910390fd5b6000805160206136c18339815191525460ff1615610fae5760405163905e710760e01b815260040160405180910390fd5b6000805160206136c1833981519152805460ff191660011790556040517f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad1690600090a1565b610ffb611a6a565b6001600160a01b038616600090815260066020526040902060010154600160601b90046001600160601b03161561103157600080fd5b60008311801561104957506001600160a01b03821615155b801561105d57506001600160a01b03811615155b61106657600080fd5b6000846001600160401b038111156110805761108061301c565b6040519080825280602002602001820160405280156110a9578160200160208202803683370190505b5090506000856001600160401b038111156110c6576110c661301c565b6040519080825280602002602001820160405280156110ef578160200160208202803683370190505b50905060006110fe8789613481565b9050875b81811015611160576111148a826117bd565b84828151811061112657611126613452565b6020026020010181815250508683828151811061114557611145613452565b602090810291909101015261115981613468565b9050611102565b506040518060800160405280856001600160a01b03168152602001896001600160601b03168152602001886001600160601b03168152602001876001600160601b0316815250600660008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160010160006101000a8154816001600160601b0302191690836001600160601b03160217905550606082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555090505061128f89866101f4611345565b604051309060009033906000805160206136a1833981519152906112b69088908890613514565b60405180910390a4505050505050505050565b6112d1611a6a565b6108a8600061232a565b6112e3611a6a565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6113128585858585612384565b5050505050565b6113268484848433612384565b50505050565b8161133681611fa7565b61134083836127be565b505050565b61134d611a6a565b6040805180820182526001600160a01b0393841681526001600160601b039283166020808301918252958516600090815260079096529190942093519051909116600160a01b029116179055565b6113a3611a6a565b6001600160a01b03821660009081526006602052604090206001810154600160601b90046001600160601b03166113d957600080fd5b60018101546001600160601b03166000816001600160401b038111156114015761140161301c565b60405190808252806020026020018201604052801561142a578160200160208202803683370190505b5090506000826001600160401b038111156114475761144761301c565b604051908082528060200260200182016040528015611470578160200160208202803683370190505b508454909150600160a01b90046001600160601b031660006114928583613481565b9050815b818110156114f4576114a889826117bd565b8582815181106114ba576114ba613452565b602002602001018181525050878482815181106114d9576114d9613452565b60209081029190910101526114ed81613468565b9050611496565b508686600101600c8282829054906101000a90046001600160601b031661151b91906134ed565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550306001600160a01b031660006001600160a01b0316336001600160a01b03166000805160206136a18339815191528787604051610f29929190613514565b600033301461158b57600080fd5b60005b845181101561179257306000908152600360205260408120865182908890859081106115bc576115bc613452565b60200260200101518152602001908152602001600020819055508381815181106115e8576115e8613452565b60200260200101516008600087848151811061160657611606613452565b60200260200101518152602001908152602001600020600082825461162b9190613390565b9250508190555084818151811061164457611644613452565b60200260200101516000805160206136e183398151915260405161167390602080825260009082015260400190565b60405180910390a260006116a086838151811061169257611692613452565b602002602001015160601c90565b905060006116cd8784815181106116b9576116b9613452565b60200260200101516001600160601b031690565b6001600160a01b038084166000908152600660205260409020548851929350169063d6722ee7908a90859085908b908990811061170c5761170c613452565b60200260200101516040518563ffffffff1660e01b81526004016117339493929190613539565b6020604051808303816000875af1158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190613562565b61177f57600080fd5b50508061178b90613468565b905061158e565b5063bc197c8160e01b9695505050505050565b6117b487878787878787611b5d565b50505050505050565b6001600160601b031660609190911b6bffffffffffffffffffffffff19161790565b60003330146117ed57600080fd5b3060009081526003602090815260408083208784528252808320839055600890915281208054859290611821908490613390565b909155505060408051602080825260009082015285916000805160206136e1833981519152910160405180910390a2600061185c8560601c90565b6001600160a01b038082166000908152600660205260409081902054905163d6722ee760e01b81529293506001600160601b0388169291169063d6722ee7906118af908a90869086908b90600401613539565b6020604051808303816000875af11580156118ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f29190613562565b6118fb57600080fd5b5063f23a6e6160e01b979650505050505050565b856001600160a01b03811633146119295761192933611fa7565b61193787878787878761282a565b6009546001600160a01b03908116908716036117b457846000805160206136e183398151915260405161197590602080825260009082015260400190565b60405180910390a250505050505050565b61198e611a6a565b6001600160a01b0381166119f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c2a565b6119fc8161232a565b50565b6009546113269085908590859085906001600160a01b0316612384565b60006301ffc9a760e01b6001600160e01b031983161480611a4d5750636cdb3d1360e11b6001600160e01b03198316145b806107c35750506001600160e01b0319166303a24d0760e21b1490565b6005546001600160a01b036101009091041633146108a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2a565b611ad2612a43565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b073390565b6040516001600160a01b03909116815260200160405180910390a1565b611b2c612a89565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b07565b611b65612a43565b8584148015611b7357508382145b8015611b7e57508515155b611b8757600080fd5b6000866001600160401b03811115611ba157611ba161301c565b604051908082528060200260200182016040528015611bca578160200160208202803683370190505b50905060005b87811015611f67576000600660008b8b85818110611bf057611bf0613452565b9050602002016020810190611c059190612bee565b6001600160a01b03908116825260208083019390935260409182016000208251608081018452815492831681526001600160601b03600160a01b9093048316948101949094526001015480821692840192909252600160601b9091041660608201819052909150611c7557600080fd5b80602001516001600160601b0316888884818110611c9557611c95613452565b9050602002013510158015611cdd575080604001518160200151611cb991906134ed565b6001600160601b0316888884818110611cd457611cd4613452565b90506020020135105b611ce657600080fd5b6000611d308b8b85818110611cfd57611cfd613452565b9050602002016020810190611d129190612bee565b8a8a86818110611d2457611d24613452565b905060200201356117bd565b90506000878785818110611d4657611d46613452565b9050602002013511611d5757600080fd5b6000818152600860205260409020546060830151611d7e91906001600160601b0316613390565b878785818110611d9057611d90613452565b905060200201351115611da257600080fd5b80848481518110611db557611db5613452565b602002602001018181525050868684818110611dd357611dd3613452565b6001600160a01b038816600090815260036020908152604080832087845282528220805493909102949094013593925090611e0f908490613481565b909155508790508684818110611e2757611e27613452565b90506020020135600860008381526020019081526020016000206000828254611e509190613481565b909155505060408051602080825260009082015282916000805160206136e1833981519152910160405180910390a281516001600160a01b031663ad254071338d8d87818110611ea257611ea2613452565b9050602002016020810190611eb79190612bee565b8c8c88818110611ec957611ec9613452565b905060200201358b8b89818110611ee257611ee2613452565b905060200201356040518563ffffffff1660e01b8152600401611f089493929190613539565b6020604051808303816000875af1158015611f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4b9190613562565b611f5457600080fd5b505080611f6090613468565b9050611bd0565b50816001600160a01b0316306001600160a01b0316336001600160a01b03166000805160206136a1833981519152848888604051610f299392919061357f565b6000805160206136c18339815191525460ff16158015611fd557506daaeb6d7670e522a718067333cd4e3b15155b156119fc57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612032573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120569190613562565b6119fc57604051633b79c77360e21b81526001600160a01b0382166004820152602401610c2a565b8483146120bf5760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610c2a565b336001600160a01b03891614806120f957506001600160a01b038816600090815260046020908152604080832033845290915290205460ff165b6121365760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610c2a565b60008060005b878110156121f55788888281811061215657612156613452565b90506020020135925086868281811061217157612171613452565b6001600160a01b038e166000908152600360209081526040808320898452825282208054939091029490940135955085939250906121b0908490613390565b90915550506001600160a01b038a166000908152600360209081526040808320868452909152812080548492906121e8908490613481565b909155505060010161213c565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03166000805160206136a18339815191528b8b8b8b60405161223794939291906134c6565b60405180910390a46001600160a01b0389163b156122de5760405163bc197c8160e01b808252906001600160a01b038b169063bc197c819061228b9033908f908e908e908e908e908e908e906004016135d8565b6020604051808303816000875af11580156122aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ce919061363c565b6001600160e01b031916146122eb565b6001600160a01b03891615155b610a3d5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610c2a565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61238c612a43565b838214801561239a57508315155b6123a357600080fd5b6000846001600160401b038111156123bd576123bd61301c565b6040519080825280602002602001820160405280156123e6578160200160208202803683370190505b5090506000856001600160401b038111156124035761240361301c565b60405190808252806020026020018201604052801561242c578160200160208202803683370190505b50905060005b8681101561276f576000600660008a8a8581811061245257612452613452565b90506020020160208101906124679190612bee565b6001600160a01b03908116825260208083019390935260409182016000208251608081018452815492831681526001600160601b03600160a01b9093048316948101949094526001015480821692840192909252600160601b90910416606082018190529091506124d757600080fd5b80602001516001600160601b03168787848181106124f7576124f7613452565b905060200201351015801561253f57508060400151816020015161251b91906134ed565b6001600160601b031687878481811061253657612536613452565b90506020020135105b61254857600080fd5b60006125868a8a8581811061255f5761255f613452565b90506020020160208101906125749190612bee565b898986818110611d2457611d24613452565b600081815260086020526040812054606085015192935090916125b291906001600160601b0316613390565b9050600081116125c157600080fd5b818685815181106125d4576125d4613452565b602002602001018181525050808585815181106125f3576125f3613452565b6020908102919091018101919091526001600160a01b03881660009081526003825260408082208583529092529081208054839290612633908490613481565b909155505060008281526008602052604081208054839290612656908490613481565b909155505060408051602080825260009082015283916000805160206136e1833981519152910160405180910390a282516001600160a01b031663ad254071338d8d888181106126a8576126a8613452565b90506020020160208101906126bd9190612bee565b8c8c898181106126cf576126cf613452565b905060200201358989815181106126e8576126e8613452565b60200260200101516040518563ffffffff1660e01b815260040161270f9493929190613539565b6020604051808303816000875af115801561272e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127529190613562565b61275b57600080fd5b5050508061276890613468565b9050612432565b50826001600160a01b0316306001600160a01b0316336001600160a01b03166000805160206136a183398151915285856040516127ad929190613514565b60405180910390a450505050505050565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336001600160a01b038716148061286457506001600160a01b038616600090815260046020908152604080832033845290915290205460ff165b6128a15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610c2a565b6001600160a01b0386166000908152600360209081526040808320878452909152812080548592906128d4908490613390565b90915550506001600160a01b03851660009081526003602090815260408083208784529091528120805485929061290c908490613481565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156129f75760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906129a49033908b908a908a908a908a90600401613659565b6020604051808303816000875af11580156129c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129e7919061363c565b6001600160e01b03191614612a04565b6001600160a01b03851615155b6109925760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610c2a565b60055460ff16156108a85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c2a565b60055460ff166108a85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c2a565b80356001600160a01b0381168114612ae957600080fd5b919050565b60008060408385031215612b0157600080fd5b612b0a83612ad2565b946020939093013593505050565b6001600160e01b0319811681146119fc57600080fd5b600060208284031215612b4057600080fd5b813561081f81612b18565b60005b83811015612b66578181015183820152602001612b4e565b50506000910152565b6020815260008251806020840152612b8e816040850160208701612b4b565b601f01601f19169190910160400192915050565b600060208284031215612bb457600080fd5b5035919050565b60008060408385031215612bce57600080fd5b612bd783612ad2565b9150612be560208401612ad2565b90509250929050565b600060208284031215612c0057600080fd5b61081f82612ad2565b60008060408385031215612c1c57600080fd5b50508035926020909101359150565b60008083601f840112612c3d57600080fd5b5081356001600160401b03811115612c5457600080fd5b6020830191508360208260051b850101111561096757600080fd5b60008060008060008060608789031215612c8857600080fd5b86356001600160401b0380821115612c9f57600080fd5b612cab8a838b01612c2b565b90985096506020890135915080821115612cc457600080fd5b612cd08a838b01612c2b565b90965094506040890135915080821115612ce957600080fd5b50612cf689828a01612c2b565b979a9699509497509295939492505050565b60008083601f840112612d1a57600080fd5b5081356001600160401b03811115612d3157600080fd5b60208301915083602082850101111561096757600080fd5b60008060008060008060008060a0898b031215612d6557600080fd5b612d6e89612ad2565b9750612d7c60208a01612ad2565b965060408901356001600160401b0380821115612d9857600080fd5b612da48c838d01612c2b565b909850965060608b0135915080821115612dbd57600080fd5b612dc98c838d01612c2b565b909650945060808b0135915080821115612de257600080fd5b50612def8b828c01612d08565b999c989b5096995094979396929594505050565b60008060008060408587031215612e1957600080fd5b84356001600160401b0380821115612e3057600080fd5b612e3c88838901612c2b565b90965094506020870135915080821115612e5557600080fd5b50612e6287828801612c2b565b95989497509550505050565b600081518084526020808501945080840160005b83811015612e9e57815187529582019590820190600101612e82565b509495945050505050565b60208152600061081f6020830184612e6e565b60008060008060008060c08789031215612ed557600080fd5b612ede87612ad2565b9550602087013594506040870135935060608701359250612f0160808801612ad2565b9150612f0f60a08801612ad2565b90509295509295509295565b600080600080600060608688031215612f3357600080fd5b85356001600160401b0380821115612f4a57600080fd5b612f5689838a01612c2b565b90975095506020880135915080821115612f6f57600080fd5b50612f7c88828901612c2b565b9094509250612f8f905060408701612ad2565b90509295509295909350565b80151581146119fc57600080fd5b60008060408385031215612fbc57600080fd5b612fc583612ad2565b91506020830135612fd581612f9b565b809150509250929050565b600080600060608486031215612ff557600080fd5b612ffe84612ad2565b925061300c60208501612ad2565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561305a5761305a61301c565b604052919050565b600082601f83011261307357600080fd5b813560206001600160401b0382111561308e5761308e61301c565b8160051b61309d828201613032565b92835284810182019282810190878511156130b757600080fd5b83870192505b848310156130d6578235825291830191908301906130bd565b979650505050505050565b60006001600160401b038211156130fa576130fa61301c565b50601f01601f191660200190565b600082601f83011261311957600080fd5b813561312c613127826130e1565b613032565b81815284602083860101111561314157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561317657600080fd5b61317f86612ad2565b945061318d60208701612ad2565b935060408601356001600160401b03808211156131a957600080fd5b6131b589838a01613062565b945060608801359150808211156131cb57600080fd5b6131d789838a01613062565b935060808801359150808211156131ed57600080fd5b506131fa88828901613108565b9150509295509295909350565b60008060008060008060006080888a03121561322257600080fd5b87356001600160401b038082111561323957600080fd5b6132458b838c01612c2b565b909950975060208a013591508082111561325e57600080fd5b61326a8b838c01612c2b565b909750955060408a013591508082111561328357600080fd5b506132908a828b01612c2b565b90945092506132a3905060608901612ad2565b905092959891949750929550565b600080600080600060a086880312156132c957600080fd5b6132d286612ad2565b94506132e060208701612ad2565b9350604086013592506060860135915060808601356001600160401b0381111561330957600080fd5b6131fa88828901613108565b60008060008060008060a0878903121561332e57600080fd5b61333787612ad2565b955061334560208801612ad2565b9450604087013593506060870135925060808701356001600160401b0381111561336e57600080fd5b612cf689828a01612d08565b634e487b7160e01b600052601160045260246000fd5b818103818111156107c3576107c361337a565b6000602082840312156133b557600080fd5b81516001600160401b038111156133cb57600080fd5b8201601f810184136133dc57600080fd5b80516133ea613127826130e1565b8181528560208385010111156133ff57600080fd5b613410826020830160208601612b4b565b95945050505050565b80820281158282048414176107c3576107c361337a565b60008261344d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161347a5761347a61337a565b5060010190565b808201808211156107c3576107c361337a565b81835260006001600160fb1b038311156134ad57600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006134da604083018688613494565b82810360208401526130d6818587613494565b6001600160601b0381811683821601908082111561350d5761350d61337a565b5092915050565b6040815260006135276040830185612e6e565b82810360208401526134108185612e6e565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60006020828403121561357457600080fd5b815161081f81612f9b565b6040815260006135926040830186612e6e565b82810360208401526135a5818587613494565b9695505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090613605908301888a613494565b8281036060840152613618818789613494565b9050828103608084015261362d8185876135af565b9b9a5050505050505050505050565b60006020828403121561364e57600080fd5b815161081f81612b18565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905260009061369490830184866135af565b9897505050505050505056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb5763ff58c27377b9a9b40e9e2f5e53a9dd7cff5464aac8fc758a651823f78e5e6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529ba2646970667358221220807d7458c6df8512ab84d8a3e4c2a06e5893ef063aad12920874a5bf63c7546864736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.