Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- ERC721RaribleFactoryC2
- Optimization enabled
- true
- Compiler version
- v0.7.6+commit.7338295f
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2024-02-09T13:55:15.385770Z
Constructor Arguments
0x000000000000000000000000519d6a81b2894fc5e0f2a8b900f6f5cde1132dbb000000000000000000000000f65ef65a95821a16e02973b1c2200fa58898e3c0000000000000000000000000ce4bf732f53a76c463ae8822be858017b02779c8
Arg [0] (address) : 0x519d6a81b2894fc5e0f2a8b900f6f5cde1132dbb
Arg [1] (address) : 0xf65ef65a95821a16e02973b1c2200fa58898e3c0
Arg [2] (address) : 0xce4bf732f53a76c463ae8822be858017b02779c8
@rarible/tokens/contracts/create-2/ERC721RaribleFactoryC2.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;pragma abicoder v2;import "../erc-721-minimal/ERC721RaribleMinimal.sol";import "@openzeppelin/contracts/proxy/BeaconProxy.sol";import "@openzeppelin/contracts/access/Ownable.sol";/*** @dev This contract is for creating proxy to access ERC721Rarible token.** The beacon should be initialized before call ERC721RaribleFactoryC2 constructor.**/contract ERC721RaribleFactoryC2 is Ownable {address public beacon;address transferProxy;address lazyTransferProxy;event Create721RaribleProxy(address proxy);event Create721RaribleUserProxy(address proxy);constructor(address _beacon, address _transferProxy, address _lazyTransferProxy) {beacon = _beacon;transferProxy = _transferProxy;lazyTransferProxy = _lazyTransferProxy;}function createToken(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, uint salt) external {address beaconProxy = deployProxy(getData(_name, _symbol, baseURI, contractURI), salt);ERC721RaribleMinimal token = ERC721RaribleMinimal(address(beaconProxy));token.transferOwnership(_msgSender());emit Create721RaribleProxy(beaconProxy);}function createToken(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, address[] memory operators, uint salt) external {address beaconProxy = deployProxy(getData(_name, _symbol, baseURI, contractURI, operators), salt);ERC721RaribleMinimal token = ERC721RaribleMinimal(address(beaconProxy));token.transferOwnership(_msgSender());emit Create721RaribleUserProxy(beaconProxy);
@rarible/tokens/contracts/HasContractURI.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol";abstract contract HasContractURI is ERC165Upgradeable {string public contractURI;/** bytes4(keccak256('contractURI()')) == 0xe8a3d485*/bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485;function __HasContractURI_init_unchained(string memory _contractURI) internal initializer {contractURI = _contractURI;_registerInterface(_INTERFACE_ID_CONTRACT_URI);}/*** @dev Internal function to set the contract URI* @param _contractURI string URI prefix to assign*/function _setContractURI(string memory _contractURI) internal {contractURI = _contractURI;}uint256[49] private __gap;}
@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "../proxy/Initializable.sol";/*** @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.** The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,* thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding* they need in their contracts using a combination of `abi.encode` and `keccak256`.** This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA* ({_hashTypedDataV4}).** The implementation of the domain separator was designed to be as efficient as possible while still properly updating* the chain id to protect against replay attacks on an eventual fork of the chain.** NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].** _Available since v3.4._*/abstract contract EIP712Upgradeable is Initializable {/* solhint-disable var-name-mixedcase */bytes32 private _HASHED_NAME;bytes32 private _HASHED_VERSION;bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");/* solhint-enable var-name-mixedcase *//*** @dev Initializes the domain separator and parameter caches.** The meaning of `name` and `version` is specified in* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:** - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.* - `version`: the current major version of the signing domain.** NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <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 GSN 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 payable) {return msg.sender;}function _msgData() internal view virtual returns (bytes memory) {this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691return msg.data;}}
@openzeppelin/contracts/proxy/Proxy.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;/*** @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to* be specified by overriding the virtual {_implementation} function.** Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a* different contract through the {_delegate} function.** The success and return data of the delegated call will be returned back to the caller of the proxy.*/abstract contract Proxy {/*** @dev Delegates the current call to `implementation`.** This function does not return to its internall call site, it will return directly to the external caller.*/function _delegate(address implementation) internal virtual {// solhint-disable-next-line no-inline-assemblyassembly {// Copy msg.data. We take full control of memory in this inline assembly// block because it will not return to Solidity code. We overwrite the// Solidity scratch pad at memory position 0.calldatacopy(0, 0, calldatasize())// Call the implementation.// out and outsize are 0 because we don't know the size yet.let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)// Copy the returned data.returndatacopy(0, 0, returndatasize())switch result// delegatecall returns 0 on error.case 0 { revert(0, returndatasize()) }default { return(0, returndatasize()) }}}
@openzeppelin/contracts-upgradeable/introspection/IERC165Upgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <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 IERC165Upgradeable {/*** @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);}
@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;/*** @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* ====*/function isContract(address account) internal view returns (bool) {// This method relies on extcodesize, which returns 0 for contracts in// construction, since the code is only stored at the end of the// constructor execution.uint256 size;// solhint-disable-next-line no-inline-assemblyassembly { size := extcodesize(account) }return size > 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
@rarible/lib-signature/contracts/ERC1271.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;abstract contract ERC1271 {bytes4 constant public ERC1271_INTERFACE_ID = 0xfb855dc9; // this.isValidSignature.selectorbytes4 constant public ERC1271_RETURN_VALID_SIGNATURE = 0x1626ba7e;bytes4 constant public ERC1271_RETURN_INVALID_SIGNATURE = 0x00000000;/*** @dev Function must be implemented by deriving contract* @param _hash Arbitrary length data signed on the behalf of address(this)* @param _signature Signature byte array associated with _data* @return A bytes4 magic value 0x1626ba7e if the signature check passes, 0x00000000 if not** MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)* MUST allow external calls*/function isValidSignature(bytes32 _hash, bytes memory _signature) public virtual view returns (bytes4);function returnIsValidSignatureMagicNumber(bool isValid) internal pure returns (bytes4) {return isValid ? ERC1271_RETURN_VALID_SIGNATURE : ERC1271_RETURN_INVALID_SIGNATURE;}}
@rarible/royalties-upgradeable/contracts/RoyaltiesV2Upgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;pragma abicoder v2;import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol";import "@rarible/royalties/contracts/LibRoyaltiesV2.sol";import "@rarible/royalties/contracts/RoyaltiesV2.sol";abstract contract RoyaltiesV2Upgradeable is ERC165Upgradeable, RoyaltiesV2 {function __RoyaltiesV2Upgradeable_init_unchained() internal initializer {_registerInterface(LibRoyaltiesV2._INTERFACE_ID_ROYALTIES);}}
@rarible/tokens/contracts/erc-721-minimal/ERC721BurnableUpgradeableMinimal.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";import "./ERC721UpgradeableMinimal.sol";/*** @title ERC721 Burnable Token* @dev ERC721 Token that can be irreversibly burned (destroyed).*/abstract contract ERC721BurnableUpgradeableMinimal is Initializable, ContextUpgradeable, ERC721UpgradeableMinimal {function __ERC721Burnable_init() internal initializer {__Context_init_unchained();__ERC165_init_unchained();__ERC721Burnable_init_unchained();}function __ERC721Burnable_init_unchained() internal initializer {}/*** @dev Burns `tokenId`. See {ERC721-_burn}.** Requirements:** - The caller must own `tokenId` or be an approved operator.*/function burn(uint256 tokenId) public virtual {if(!_exists(tokenId)) {address owner = address(tokenId >> 96);require(owner == _msgSender(), "ERC721Burnable: caller is not owner, not burn");_setBurned(tokenId);} else {//solhint-disable-next-line max-line-lengthrequire(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");_burn(tokenId);}}uint256[50] private __gap;
@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;/*** @title ERC721 token receiver interface* @dev Interface for any contract that wants to support safeTransfers* from ERC721 asset contracts.*/interface IERC721ReceiverUpgradeable {/*** @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}* by `operator` from `from`, this function is called.** It must return its Solidity selector to confirm the token transfer.* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.** The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.*/function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);}
@rarible/tokens/contracts/erc-721-minimal/ERC721LazyMinimal.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;pragma abicoder v2;import "./ERC721UpgradeableMinimal.sol";import "@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol";import "@rarible/royalties-upgradeable/contracts/RoyaltiesV2Upgradeable.sol";import "@rarible/lazy-mint/contracts/erc-721/IERC721LazyMint.sol";import "../Mint721Validator.sol";import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";import "./ERC721URI.sol";abstract contract ERC721LazyMinimal is IERC721LazyMint, ERC721UpgradeableMinimal, Mint721Validator, RoyaltiesV2Upgradeable, RoyaltiesV2Impl, ERC721URI {using SafeMathUpgradeable for uint;bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;// tokenId => creatorsmapping(uint256 => LibPart.Part[]) private creators;function __ERC721Lazy_init_unchained() internal initializer {}function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC165Upgradeable) returns (bool) {return interfaceId == LibERC721LazyMint._INTERFACE_ID_MINT_AND_TRANSFER|| interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES|| interfaceId == LibRoyalties2981._INTERFACE_ID_ROYALTIES|| interfaceId == _INTERFACE_ID_ERC165|| interfaceId == _INTERFACE_ID_ERC721|| interfaceId == _INTERFACE_ID_ERC721_METADATA|| interfaceId == _INTERFACE_ID_ERC721_ENUMERABLE;}function transferFromOrMint(LibERC721LazyMint.Mint721Data memory data,address from,
@rarible/tokens/contracts/Mint721Validator.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;import "./erc-1271/ERC1271Validator.sol";import "@rarible/lazy-mint/contracts/erc-721/LibERC721LazyMint.sol";contract Mint721Validator is ERC1271Validator {function __Mint721Validator_init_unchained() internal initializer {__EIP712_init_unchained("Mint721", "1");}function validate(address account, bytes32 hash, bytes memory signature) internal view {validate1271(account, hash, signature);}uint256[50] private __gap;}
@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "./IERC165Upgradeable.sol";import "../proxy/Initializable.sol";/*** @dev Implementation of the {IERC165} interface.** Contracts may inherit from this and call {_registerInterface} to declare* their support of an interface.*/abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {/** bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7*/bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;/*** @dev Mapping of interface ids to whether or not it's supported.*/mapping(bytes4 => bool) private _supportedInterfaces;function __ERC165_init() internal initializer {__ERC165_init_unchained();}function __ERC165_init_unchained() internal initializer {// Derived contracts need only register support for their own interfaces,// we register support for ERC165 itself here_registerInterface(_INTERFACE_ID_ERC165);}/*** @dev See {IERC165-supportsInterface}.** Time complexity O(1), guaranteed to always use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {return _supportedInterfaces[interfaceId];
@openzeppelin/contracts-upgradeable/proxy/Initializable.sol
// SPDX-License-Identifier: MIT// solhint-disable-next-line compiler-versionpragma solidity >=0.4.24 <0.8.0;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 a proxied contract can't have 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.** 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 {UpgradeableProxy-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.*/abstract contract Initializable {/*** @dev Indicates that the contract has been initialized.*/bool private _initialized;/*** @dev Indicates that the contract is in the process of being initialized.*/bool private _initializing;/*** @dev Modifier to protect an initializer function from being invoked twice.*/modifier initializer() {require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");bool isTopLevelCall = !_initializing;if (isTopLevelCall) {_initializing = true;_initialized = true;
@rarible/tokens/contracts/IsPrivateCollection.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;contract IsPrivateCollection {/// @dev true if collection is private, false if publicbool isPrivate;uint256[49] private __gap;}
@rarible/lib-signature/contracts/LibSignature.sol
// SPDX-License-Identifier: MITpragma solidity ^0.7.0;library LibSignature {/*** @dev Returns the address that signed a hashed message (`hash`) with* `signature`. This address can then be used for verification purposes.** The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:* this function rejects them by requiring the `s` value to be in the lower* half order, and the `v` value to be either 27 or 28.** IMPORTANT: `hash` _must_ be the result of a hash operation for the* verification to be secure: it is possible to craft signatures that* recover to arbitrary addresses for non-hashed data. A safe way to ensure* this is by receiving a hash of the original message (which may otherwise* be too long), and then calling {toEthSignedMessageHash} on it.*/function recover(bytes32 hash, bytes memory signature)internalpurereturns (address){// Check the signature lengthif (signature.length != 65) {revert("ECDSA: invalid signature length");}// Divide the signature in r, s and v variablesbytes32 r;bytes32 s;uint8 v;// ecrecover takes the signature parameters, and the only way to get them// currently is to use assembly.// solhint-disable-next-line no-inline-assemblyassembly {r := mload(add(signature, 0x20))s := mload(add(signature, 0x40))v := byte(0, mload(add(signature, 0x60)))
@rarible/royalties/contracts/impl/AbstractRoyalties.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "@rarible/lib-part/contracts/LibPart.sol";abstract contract AbstractRoyalties {mapping (uint256 => LibPart.Part[]) internal royalties;function _saveRoyalties(uint256 id, LibPart.Part[] memory _royalties) internal {uint256 totalValue;for (uint i = 0; i < _royalties.length; ++i) {require(_royalties[i].account != address(0x0), "Recipient should be present");require(_royalties[i].value != 0, "Royalty value should be positive");totalValue += _royalties[i].value;royalties[id].push(_royalties[i]);}require(totalValue < 10000, "Royalty total value should be < 10000");_onRoyaltiesSet(id, _royalties);}function _updateAccount(uint256 _id, address _from, address _to) internal {uint length = royalties[_id].length;for(uint i = 0; i < length; ++i) {if (royalties[_id][i].account == _from) {royalties[_id][i].account = payable(address(uint160(_to)));}}}function _onRoyaltiesSet(uint256 id, LibPart.Part[] memory _royalties) virtual internal;}
@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;/*** @dev String operations.*/library StringsUpgradeable {/*** @dev Converts a `uint256` to its ASCII `string` representation.*/function toString(uint256 value) internal pure returns (string memory) {// Inspired by OraclizeAPI's implementation - MIT licence// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.solif (value == 0) {return "0";}uint256 temp = value;uint256 digits;while (temp != 0) {digits++;temp /= 10;}bytes memory buffer = new bytes(digits);uint256 index = digits - 1;temp = value;while (temp != 0) {buffer[index--] = bytes1(uint8(48 + temp % 10));temp /= 10;}return string(buffer);}}
@rarible/tokens/contracts/erc-721-minimal/ERC721URI.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";import "./ERC721UpgradeableMinimal.sol";import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";import "../LibURI.sol";/*** @title ERC721 Burnable Token* @dev ERC721 Token that can be irreversibly burned (destroyed).*/abstract contract ERC721URI is ContextUpgradeable, ERC721UpgradeableMinimal {using StringsUpgradeable for uint256;// Optional mapping for token URIsmapping (uint256 => string) private _tokenURIs;// Base URIstring private _baseURI;/*** @dev Sets `_tokenURI` as the tokenURI of `tokenId`.** Requirements:** - `tokenId` must exist.*/function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");_tokenURIs[tokenId] = _tokenURI;}/*** @dev Internal function to set the base URI for all token IDs. It is* automatically added as a prefix to the value returned in {tokenURI},* or to the token ID if {tokenURI} is empty.*/function _setBaseURI(string memory baseURI_) internal virtual {
@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;/*** @dev Wrappers over Solidity's arithmetic operations with added overflow* checks.** Arithmetic operations in Solidity wrap on overflow. This can easily result* in bugs, because programmers usually assume that an overflow raises an* error, which is the standard behavior in high level programming languages.* `SafeMath` restores this intuition by reverting the transaction when an* operation overflows.** Using this library instead of the unchecked operations eliminates an entire* class of bugs, so it's recommended to use it always.*/library SafeMathUpgradeable {/*** @dev Returns the addition of two unsigned integers, with an overflow flag.** _Available since v3.4._*/function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {uint256 c = a + b;if (c < a) return (false, 0);return (true, c);}/*** @dev Returns the substraction of two unsigned integers, with an overflow flag.** _Available since v3.4._*/function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {if (b > a) return (false, 0);return (true, a - b);}/*** @dev Returns the multiplication of two unsigned integers, with an overflow flag.
@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;pragma abicoder v2;import "./AbstractRoyalties.sol";import "../RoyaltiesV2.sol";import "../IERC2981.sol";import "../LibRoyalties2981.sol";contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2, IERC2981 {function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {return royalties[id];}function _onRoyaltiesSet(uint256 id, LibPart.Part[] memory _royalties) override internal {emit RoyaltiesSet(id, _royalties);}/**Token (ERC721, ERC721Minimal, ERC721MinimalMeta, ERC1155 ) can have a number of different royalties beneficiaries*calculate sum all royalties, but royalties beneficiary will be only one royalties[0].account, according to rules of IERC2981*/function royaltyInfo(uint256 id, uint256 _salePrice) override external view returns (address receiver, uint256 royaltyAmount) {if (royalties[id].length == 0) {receiver = address(0);royaltyAmount = 0;return(receiver, royaltyAmount);}LibPart.Part[] memory _royalties = royalties[id];receiver = _royalties[0].account;uint percent;for (uint i = 0; i < _royalties.length; ++i) {percent += _royalties[i].value;}//don`t need require(percent < 10000, "Token royalty > 100%"); here, because check later in calculateRoyaltiesroyaltyAmount = percent * _salePrice / 10000;}}
@rarible/lazy-mint/contracts/erc-721/LibERC721LazyMint.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "@rarible/lib-part/contracts/LibPart.sol";library LibERC721LazyMint {bytes4 constant public ERC721_LAZY_ASSET_CLASS = bytes4(keccak256("ERC721_LAZY"));bytes4 constant _INTERFACE_ID_MINT_AND_TRANSFER = 0x8486f69f;struct Mint721Data {uint tokenId;string tokenURI;LibPart.Part[] creators;LibPart.Part[] royalties;bytes[] signatures;}bytes32 public constant MINT_AND_TRANSFER_TYPEHASH = keccak256("Mint721(uint256 tokenId,string tokenURI,Part[] creators,Part[] royalties)Part(address account,uint96 value)");function hash(Mint721Data memory data) internal pure returns (bytes32) {bytes32[] memory royaltiesBytes = new bytes32[](data.royalties.length);for (uint i = 0; i < data.royalties.length; ++i) {royaltiesBytes[i] = LibPart.hash(data.royalties[i]);}bytes32[] memory creatorsBytes = new bytes32[](data.creators.length);for (uint i = 0; i < data.creators.length; ++i) {creatorsBytes[i] = LibPart.hash(data.creators[i]);}return keccak256(abi.encode(MINT_AND_TRANSFER_TYPEHASH,data.tokenId,keccak256(bytes(data.tokenURI)),keccak256(abi.encodePacked(creatorsBytes)),keccak256(abi.encodePacked(royaltiesBytes))));}}
@rarible/royalties/contracts/LibRoyalties2981.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "@rarible/lib-part/contracts/LibPart.sol";library LibRoyalties2981 {/** https://eips.ethereum.org/EIPS/eip-2981: bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;*/bytes4 constant _INTERFACE_ID_ROYALTIES = 0x2a55205a;uint96 constant _WEIGHT_VALUE = 1000000;/*Method for converting amount to percent and forming LibPart*/function calculateRoyalties(address to, uint256 amount) internal view returns (LibPart.Part[] memory) {LibPart.Part[] memory result;if (amount == 0) {return result;}uint256 percent = amount * 10000 / _WEIGHT_VALUE;require(percent < 10000, "Royalties 2981 exceeds 100%");result = new LibPart.Part[](1);result[0].account = payable(to);result[0].value = uint96(percent);return result;}}
@rarible/tokens/contracts/access/MinterAccessControl.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";abstract contract MinterAccessControl is OwnableUpgradeable {mapping(address => bool) private _minters;event MinterStatusChanged(address indexed minter, bool indexed status);function __MinterAccessControl_init() internal initializer {__Ownable_init_unchained();__MinterAccessControl_init_unchained();}function __MinterAccessControl_init_unchained() internal initializer {}/*** @dev Add `minter` to the list of allowed minters.*/function addMinter(address minter) external onlyOwner {_minters[minter] = true;emit MinterStatusChanged(minter, true);}/*** @dev Add `minters` to the list of allowed minters.*/function addMinters(address[] memory minters) external onlyOwner {for (uint i = 0; i < minters.length; ++i) {address minter = minters[i];_minters[minter] = true;emit MinterStatusChanged(minter, true);}}/*** @dev Revoke `_minter` from the list of allowed minters.*/
@openzeppelin/contracts/proxy/IBeacon.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;/*** @dev This is the interface that {BeaconProxy} expects of its beacon.*/interface IBeacon {/*** @dev Must return an address that can be used as a delegate call target.** {BeaconProxy} will check that this address is a contract.*/function implementation() external view returns (address);}
@rarible/tokens/contracts/erc-721-minimal/ERC721RaribleMinimal.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;pragma abicoder v2;import "./ERC721BaseMinimal.sol";import "../IsPrivateCollection.sol";import "../access/MinterAccessControl.sol";contract ERC721RaribleMinimal is ERC721BaseMinimal, IsPrivateCollection, MinterAccessControl {event CreateERC721Rarible(address owner, string name, string symbol);event CreateERC721RaribleUser(address owner, string name, string symbol);function __ERC721RaribleUser_init(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, address[] memory operators, address transferProxy, address lazyTransferProxy) external virtual {__ERC721Rarible_init_unchained(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy);isPrivate = true;emit CreateERC721RaribleUser(_msgSender(), _name, _symbol);}function __ERC721Rarible_init(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, address transferProxy, address lazyTransferProxy) external virtual {__ERC721Rarible_init_unchained(_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy);isPrivate = false;emit CreateERC721Rarible(_msgSender(), _name, _symbol);}function __ERC721Rarible_init_unchained(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, address transferProxy, address lazyTransferProxy) internal initializer {_setBaseURI(baseURI);__ERC721Lazy_init_unchained();__RoyaltiesV2Upgradeable_init_unchained();__Context_init_unchained();__ERC165_init_unchained();__Ownable_init_unchained();__ERC721Burnable_init_unchained();__Mint721Validator_init_unchained();__MinterAccessControl_init_unchained();__HasContractURI_init_unchained(contractURI);__ERC721_init_unchained(_name, _symbol);//setting default approver for transferProxies
@rarible/tokens/contracts/erc-721-minimal/ERC721UpgradeableMinimal.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721MetadataUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol";/*** @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including* the Metadata extension, but not including the Enumerable extension, which is available separately as* {ERC721Enumerable}.*/contract ERC721UpgradeableMinimal is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {using AddressUpgradeable for address;using StringsUpgradeable for uint256;// Token namestring private _name;// Token symbolstring private _symbol;// Mapping from token ID to owner addressmapping(uint256 => address) private _owners;// Mapping owner address to token countmapping(address => uint256) private _balances;// Mapping from token ID to approved addressmapping(uint256 => address) private _tokenApprovals;// Mapping from owner to operator approvalsmapping(address => mapping(address => bool)) private _operatorApprovals;/** bytes4(keccak256('balanceOf(address)')) == 0x70a08231
@rarible/lib-part/contracts/LibPart.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;library LibPart {bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");struct Part {address payable account;uint96 value;}function hash(Part memory part) internal pure returns (bytes32) {return keccak256(abi.encode(TYPE_HASH, part.account, part.value));}}
@rarible/tokens/contracts/erc-721-minimal/ERC721DefaultApprovalMinimal.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;import "./ERC721UpgradeableMinimal.sol";abstract contract ERC721DefaultApprovalMinimal is ERC721UpgradeableMinimal {mapping(address => bool) private defaultApprovals;event DefaultApproval(address indexed operator, bool hasApproval);function _setDefaultApproval(address operator, bool hasApproval) internal {defaultApprovals[operator] = hasApproval;emit DefaultApproval(operator, hasApproval);}function _isApprovedOrOwner(address spender, uint256 tokenId) internal virtual override view returns (bool) {return defaultApprovals[spender] || super._isApprovedOrOwner(spender, tokenId);}function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {return defaultApprovals[operator] || super.isApprovedForAll(owner, operator);}uint256[50] private __gap;}
@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "../../introspection/IERC165Upgradeable.sol";/*** @dev Required interface of an ERC721 compliant contract.*/interface IERC721Upgradeable is IERC165Upgradeable {/*** @dev Emitted when `tokenId` token is transferred from `from` to `to`.*/event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.*/event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.*/event ApprovalForAll(address indexed owner, address indexed operator, bool approved);/*** @dev Returns the number of tokens in ``owner``'s account.*/function balanceOf(address owner) external view returns (uint256 balance);/*** @dev Returns the owner of the `tokenId` token.** Requirements:** - `tokenId` must exist.*/function ownerOf(uint256 tokenId) external view returns (address owner);/*** @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "../utils/ContextUpgradeable.sol";import "../proxy/Initializable.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {address private _owner;event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);/*** @dev Initializes the contract setting the deployer as the initial owner.*/function __Ownable_init() internal initializer {__Context_init_unchained();__Ownable_init_unchained();}function __Ownable_init_unchained() internal initializer {address msgSender = _msgSender();_owner = msgSender;emit OwnershipTransferred(address(0), msgSender);}/*** @dev Returns the address of the current owner.*/function owner() public view virtual returns (address) {
@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "../proxy/Initializable.sol";/** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with GSN meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract ContextUpgradeable is Initializable {function __Context_init() internal initializer {__Context_init_unchained();}function __Context_init_unchained() internal initializer {}function _msgSender() internal view virtual returns (address payable) {return msg.sender;}function _msgData() internal view virtual returns (bytes memory) {this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691return msg.data;}uint256[50] private __gap;}
@rarible/royalties/contracts/IERC2981.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "@rarible/lib-part/contracts/LibPart.sol";////// @dev Interface for the NFT Royalty Standard/////interface IERC2981 is IERC165 {interface IERC2981 {/// ERC165 bytes to add to interface array - set in parent contract/// implementing this standard////// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a/// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;/// _registerInterface(_INTERFACE_ID_ERC2981);/// @notice Called with the sale price to determine how much royalty// is owed and to whom./// @param _tokenId - the NFT asset queried for royalty information/// @param _salePrice - the sale price of the NFT asset specified by _tokenId/// @return receiver - address of who should be sent the royalty payment/// @return royaltyAmount - the royalty payment amount for _salePricefunction royaltyInfo(uint256 _tokenId,uint256 _salePrice) external view returns (address receiver,uint256 royaltyAmount);}
@openzeppelin/contracts/proxy/BeaconProxy.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <0.8.0;import "./Proxy.sol";import "../utils/Address.sol";import "./IBeacon.sol";/*** @dev This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}.** The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't* conflict with the storage layout of the implementation behind the proxy.** _Available since v3.4._*/contract BeaconProxy is Proxy {/*** @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.*/bytes32 private constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;/*** @dev Initializes the proxy with `beacon`.** If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This* will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity* constructor.** Requirements:** - `beacon` must be a contract with the interface {IBeacon}.*/constructor(address beacon, bytes memory data) public payable {assert(_BEACON_SLOT == bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1));_setBeacon(beacon, data);}/*** @dev Returns the current beacon address.
@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;/*** @dev Collection of functions related to the address type*/library Address {/*** @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* ====*/function isContract(address account) internal view returns (bool) {// This method relies on extcodesize, which returns 0 for contracts in// construction, since the code is only stored at the end of the// constructor execution.uint256 size;// solhint-disable-next-line no-inline-assemblyassembly { size := extcodesize(account) }return size > 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
@rarible/royalties/contracts/LibRoyaltiesV2.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;library LibRoyaltiesV2 {/** bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca*/bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;}
@rarible/tokens/contracts/erc-721-minimal/ERC721BaseMinimal.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;pragma abicoder v2;import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";import "./ERC721BurnableUpgradeableMinimal.sol";import "./ERC721DefaultApprovalMinimal.sol";import "./ERC721LazyMinimal.sol";import "../HasContractURI.sol";abstract contract ERC721BaseMinimal is OwnableUpgradeable, ERC721DefaultApprovalMinimal, ERC721BurnableUpgradeableMinimal, ERC721LazyMinimal, HasContractURI {event BaseUriChanged(string newBaseURI);function _isApprovedOrOwner(address spender, uint256 tokenId) internal virtual override(ERC721UpgradeableMinimal, ERC721DefaultApprovalMinimal) view returns (bool) {return ERC721DefaultApprovalMinimal._isApprovedOrOwner(spender, tokenId);}function isApprovedForAll(address owner, address operator) public view virtual override(ERC721DefaultApprovalMinimal, ERC721UpgradeableMinimal, IERC721Upgradeable) returns (bool) {return ERC721DefaultApprovalMinimal.isApprovedForAll(owner, operator);}function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, ERC721LazyMinimal) returns (bool) {return super.supportsInterface(interfaceId);}function tokenURI(uint256 tokenId) public view virtual override(ERC721UpgradeableMinimal, ERC721LazyMinimal) returns (string memory) {return ERC721LazyMinimal.tokenURI(tokenId);}function _clearMetadata(uint256 tokenId) internal override(ERC721UpgradeableMinimal, ERC721LazyMinimal) virtual {return ERC721LazyMinimal._clearMetadata(tokenId);}function _emitMintEvent(address to, uint tokenId) internal override(ERC721UpgradeableMinimal, ERC721LazyMinimal) virtual {return ERC721LazyMinimal._emitMintEvent(to, tokenId);}function setBaseURI(string memory newBaseURI) external onlyOwner {super._setBaseURI(newBaseURI);
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.0 <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 () internal {address msgSender = _msgSender();_owner = msgSender;emit OwnershipTransferred(address(0), msgSender);}/*** @dev Returns the address of the current owner.*/function owner() public view virtual returns (address) {return _owner;}/*** @dev Throws if called by any account other than the owner.*/
@rarible/lazy-mint/contracts/erc-721/IERC721LazyMint.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;pragma abicoder v2;import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";import "./LibERC721LazyMint.sol";import "@rarible/lib-part/contracts/LibPart.sol";interface IERC721LazyMint is IERC721Upgradeable {event Creators(uint256 tokenId,LibPart.Part[] creators);function mintAndTransfer(LibERC721LazyMint.Mint721Data memory data,address to) external;function transferFromOrMint(LibERC721LazyMint.Mint721Data memory data,address from,address to) external;}
@rarible/tokens/contracts/erc-1271/ERC1271Validator.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;import "@rarible/lib-signature/contracts/ERC1271.sol";import "@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol";import "@rarible/lib-signature/contracts/LibSignature.sol";abstract contract ERC1271Validator is EIP712Upgradeable {using AddressUpgradeable for address;using LibSignature for bytes32;string constant SIGNATURE_ERROR = "signature verification error";bytes4 constant internal MAGICVALUE = 0x1626ba7e;function validate1271(address signer, bytes32 structHash, bytes memory signature) internal view {bytes32 hash = _hashTypedDataV4(structHash);address signerFromSig;if (signature.length == 65) {signerFromSig = hash.recover(signature);}if (signerFromSig != signer) {if (signer.isContract()) {require(ERC1271(signer).isValidSignature(hash, signature) == MAGICVALUE,SIGNATURE_ERROR);} else {revert(SIGNATURE_ERROR);}}}uint256[50] private __gap;}
@rarible/tokens/contracts/LibURI.sol
// SPDX-License-Identifier: MITpragma solidity 0.7.6;library LibURI {/// @dev checks if _tokenURI starts with base. if true returns _tokenURI, else base + _tokenURIfunction checkPrefix(string memory base, string memory _tokenURI)internalpurereturns (string memory){bytes memory whatBytes = bytes(base);bytes memory whereBytes = bytes(_tokenURI);if (whatBytes.length > whereBytes.length) {return string(abi.encodePacked(base, _tokenURI));}for (uint256 j = 0; j < whatBytes.length; j++) {if (whereBytes[j] != whatBytes[j]) {return string(abi.encodePacked(base, _tokenURI));}}return _tokenURI;}}
@rarible/royalties/contracts/RoyaltiesV2.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;pragma abicoder v2;import "@rarible/lib-part/contracts/LibPart.sol";interface RoyaltiesV2 {event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);}
@openzeppelin/contracts-upgradeable/token/ERC721/IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MITpragma solidity >=0.6.2 <0.8.0;import "./IERC721Upgradeable.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional metadata extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721MetadataUpgradeable is IERC721Upgradeable {/*** @dev Returns the token collection name.*/function name() external view returns (string memory);/*** @dev Returns the token collection symbol.*/function symbol() external view returns (string memory);/*** @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.*/function tokenURI(uint256 tokenId) external view returns (string memory);}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":200,"enabled":true},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul"}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_beacon","internalType":"address"},{"type":"address","name":"_transferProxy","internalType":"address"},{"type":"address","name":"_lazyTransferProxy","internalType":"address"}]},{"type":"event","name":"Create721RaribleProxy","inputs":[{"type":"address","name":"proxy","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Create721RaribleUserProxy","inputs":[{"type":"address","name":"proxy","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"beacon","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"createToken","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"baseURI","internalType":"string"},{"type":"string","name":"contractURI","internalType":"string"},{"type":"address[]","name":"operators","internalType":"address[]"},{"type":"uint256","name":"salt","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"createToken","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"baseURI","internalType":"string"},{"type":"string","name":"contractURI","internalType":"string"},{"type":"uint256","name":"salt","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getAddress","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"baseURI","internalType":"string"},{"type":"string","name":"contractURI","internalType":"string"},{"type":"address[]","name":"operators","internalType":"address[]"},{"type":"uint256","name":"_salt","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getAddress","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"baseURI","internalType":"string"},{"type":"string","name":"contractURI","internalType":"string"},{"type":"uint256","name":"_salt","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b5060405161167638038061167683398101604081905261002f916100e5565b60006100396100c5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039485166001600160a01b031991821617909155600280549385169382169390931790925560038054919093169116179055610127565b3390565b80516001600160a01b03811681146100e057600080fd5b919050565b6000806000606084860312156100f9578283fd5b610102846100c9565b9250610110602085016100c9565b915061011e604085016100c9565b90509250925092565b611540806101366000396000f3fe60806040523480156200001157600080fd5b5060043610620000945760003560e01c806372397ad5116200006357806372397ad514620000f55780638da5cb5b146200010c5780639cf3178b1462000116578063f2fde38b146200012d5762000094565b806327050d1f14620000995780633928069514620000b257806359659e9014620000e1578063715018a614620000eb575b600080fd5b620000b0620000aa3660046200087b565b62000144565b005b620000c9620000c33660046200087b565b62000211565b604051620000d8919062000ac3565b60405180910390f35b620000c96200027a565b620000b062000289565b620000b0620001063660046200095f565b6200034c565b620000c962000410565b620000c9620001273660046200095f565b6200041f565b620000b06200013e36600462000857565b62000480565b6000620001606200015988888888886200059b565b8362000614565b9050806001600160a01b03811663f2fde38b6200017c62000643565b6040518263ffffffff1660e01b81526004016200019a919062000ac3565b600060405180830381600087803b158015620001b557600080fd5b505af1158015620001ca573d6000803e3d6000fd5b505050507f4768a3e06654c109507892e111851106a07f51f57cc0cfc3374a141e03c3f08f82604051620001ff919062000ac3565b60405180910390a15050505050505050565b6000806200022d6200022789898989896200059b565b62000647565b9050600060ff60f81b3085848051906020012060405160200162000255949392919062000a57565b60408051808303601f1901815291905280516020909101209998505050505050505050565b6001546001600160a01b031681565b6200029362000643565b6001600160a01b0316620002a662000410565b6001600160a01b03161462000302576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000620003606200015987878787620006c6565b9050806001600160a01b03811663f2fde38b6200037c62000643565b6040518263ffffffff1660e01b81526004016200039a919062000ac3565b600060405180830381600087803b158015620003b557600080fd5b505af1158015620003ca573d6000803e3d6000fd5b505050507fcc1a02f08b4aa92a7d307d9c65aec395a00ed50d5575adbd7447a85dfefdaf9282604051620003ff919062000ac3565b60405180910390a150505050505050565b6000546001600160a01b031690565b600080620004346200022788888888620006c6565b9050600060ff60f81b308584805190602001206040516020016200045c949392919062000a57565b60408051808303601f19018152919052805160209091012098975050505050505050565b6200048a62000643565b6001600160a01b03166200049d62000410565b6001600160a01b031614620004f9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620005405760405162461bcd60e51b8152600401808060200182810382526026815260200180620014e56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600254600354604051606092634648eb9d60e01b92620005d7928a928a928a928a928a926001600160a01b039182169291169060240162000b81565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b600080620006228462000647565b9050828151602083016000f59150813b6200063c57600080fd5b5092915050565b3390565b6060604051806020016200065b906200073b565b601f1982820381018352601f9091011660408190526001546200068f916001600160a01b0390911690859060200162000ad7565b60408051601f1981840301815290829052620006af929160200162000a90565b60405160208183030381529060405290505b919050565b600254600354604051606092631ed9cbe360e11b92620006ff9289928992899289926001600160a01b0390811692169060240162000b05565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050949350505050565b6108448062000ca183390190565b80356001600160a01b0381168114620006c157600080fd5b600082601f83011262000772578081fd5b8135602067ffffffffffffffff8211156200078957fe5b8082026200079982820162000c48565b838152828101908684018388018501891015620007b4578687fd5b8693505b85841015620007e157620007cc8162000749565b835260019390930192918401918401620007b8565b50979650505050505050565b600082601f830112620007fe578081fd5b813567ffffffffffffffff8111156200081357fe5b62000828601f8201601f191660200162000c48565b8181528460208386010111156200083d578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121562000869578081fd5b620008748262000749565b9392505050565b60008060008060008060c0878903121562000894578182fd5b863567ffffffffffffffff80821115620008ac578384fd5b620008ba8a838b01620007ed565b97506020890135915080821115620008d0578384fd5b620008de8a838b01620007ed565b96506040890135915080821115620008f4578384fd5b620009028a838b01620007ed565b9550606089013591508082111562000918578384fd5b620009268a838b01620007ed565b945060808901359150808211156200093c578384fd5b506200094b89828a0162000761565b92505060a087013590509295509295509295565b600080600080600060a0868803121562000977578081fd5b853567ffffffffffffffff808211156200098f578283fd5b6200099d89838a01620007ed565b96506020880135915080821115620009b3578283fd5b620009c189838a01620007ed565b95506040880135915080821115620009d7578283fd5b620009e589838a01620007ed565b94506060880135915080821115620009fb578283fd5b5062000a0a88828901620007ed565b95989497509295608001359392505050565b6001600160a01b03169052565b6000815180845262000a4381602086016020860162000c6d565b601f01601f19169290920160200192915050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b6000835162000aa481846020880162000c6d565b83519083019062000aba81836020880162000c6d565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038316815260406020820181905260009062000afd9083018462000a29565b949350505050565b600060c0825262000b1a60c083018962000a29565b828103602084015262000b2e818962000a29565b9050828103604084015262000b44818862000a29565b9050828103606084015262000b5a818762000a29565b6001600160a01b0395861660808501529390941660a0909201919091525095945050505050565b600060e0825262000b9660e083018a62000a29565b60208382038185015262000bab828b62000a29565b9150838203604085015262000bc1828a62000a29565b9150838203606085015262000bd7828962000a29565b84810360808601528751808252828901935090820190845b8181101562000c165784516001600160a01b03168352938301939183019160010162000bef565b505080935050505062000c2d60a083018562000a1c565b62000c3c60c083018462000a1c565b98975050505050505050565b60405181810167ffffffffffffffff8111828210171562000c6557fe5b604052919050565b60005b8381101562000c8a57818101518382015260200162000c70565b8381111562000c9a576000848401525b5050505056fe60806040526040516108443803806108448339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b50604052506100e3915050565b6100ed82826100f4565b505061047e565b6101078261024960201b6100311760201c565b6101425760405162461bcd60e51b81526004018080602001828103825260258152602001806107c56025913960400191505060405180910390fd5b6101ba826001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561017e57600080fd5b505afa158015610192573d6000803e3d6000fd5b505050506040513d60208110156101a857600080fd5b5051610249602090811b61003117901c565b6101f55760405162461bcd60e51b81526004018080602001828103825260348152602001806108106034913960400191505060405180910390fd5b6000805160206107848339815191528281558151156102445761024261021961024f565b836040518060600160405280602181526020016107a4602191396102c260201b6100371760201c565b505b505050565b3b151590565b60006102596103c7565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561029157600080fd5b505afa1580156102a5573d6000803e3d6000fd5b505050506040513d60208110156102bb57600080fd5b5051905090565b60606102cd84610249565b6103085760405162461bcd60e51b81526004018080602001828103825260268152602001806107ea6026913960400191505060405180910390fd5b600080856001600160a01b0316856040518082805190602001908083835b602083106103455780518252601f199092019160209182019101610326565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146103a5576040519150601f19603f3d011682016040523d82523d6000602084013e6103aa565b606091505b5090925090506103bb8282866103da565b925050505b9392505050565b6000805160206107848339815191525490565b606083156103e95750816103c0565b8251156103f95782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561044357818101518382015260200161042b565b50505050905090810190601f1680156104705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6102f78061048d6000396000f3fe60806040523661001357610011610017565b005b6100115b61001f61002f565b61002f61002a61013b565b6101ae565b565b3b151590565b606061004284610031565b61007d5760405162461bcd60e51b815260040180806020018281038252602681526020018061029c6026913960400191505060405180910390fd5b600080856001600160a01b0316856040518082805190602001908083835b602083106100ba5780518252601f19909201916020918201910161009b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461011a576040519150601f19603f3d011682016040523d82523d6000602084013e61011f565b606091505b509150915061012f8282866101d2565b925050505b9392505050565b6000610145610276565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561017d57600080fd5b505afa158015610191573d6000803e3d6000fd5b505050506040513d60208110156101a757600080fd5b5051905090565b3660008037600080366000845af43d6000803e8080156101cd573d6000f35b3d6000fd5b606083156101e1575081610134565b8251156101f15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561023b578181015183820152602001610223565b50505050905090810190601f1680156102685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b7fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50549056fe416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374a26469706673582212200d13fbc9dd1124e596f23eb7f271a5a242d59277784a0254458aae2e0fa4bbd364736f6c63430007060033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50426561636f6e50726f78793a2066756e6374696f6e2063616c6c206661696c6564426561636f6e50726f78793a20626561636f6e206973206e6f74206120636f6e7472616374416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374426561636f6e50726f78793a20626561636f6e20696d706c656d656e746174696f6e206973206e6f74206120636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220eddea18042d9f39d17b0a1fd61e2ed79324248e73c5a11bf15501760c458070264736f6c63430007060033000000000000000000000000519d6a81b2894fc5e0f2a8b900f6f5cde1132dbb000000000000000000000000f65ef65a95821a16e02973b1c2200fa58898e3c0000000000000000000000000ce4bf732f53a76c463ae8822be858017b02779c8
Deployed ByteCode
0x60806040523480156200001157600080fd5b5060043610620000945760003560e01c806372397ad5116200006357806372397ad514620000f55780638da5cb5b146200010c5780639cf3178b1462000116578063f2fde38b146200012d5762000094565b806327050d1f14620000995780633928069514620000b257806359659e9014620000e1578063715018a614620000eb575b600080fd5b620000b0620000aa3660046200087b565b62000144565b005b620000c9620000c33660046200087b565b62000211565b604051620000d8919062000ac3565b60405180910390f35b620000c96200027a565b620000b062000289565b620000b0620001063660046200095f565b6200034c565b620000c962000410565b620000c9620001273660046200095f565b6200041f565b620000b06200013e36600462000857565b62000480565b6000620001606200015988888888886200059b565b8362000614565b9050806001600160a01b03811663f2fde38b6200017c62000643565b6040518263ffffffff1660e01b81526004016200019a919062000ac3565b600060405180830381600087803b158015620001b557600080fd5b505af1158015620001ca573d6000803e3d6000fd5b505050507f4768a3e06654c109507892e111851106a07f51f57cc0cfc3374a141e03c3f08f82604051620001ff919062000ac3565b60405180910390a15050505050505050565b6000806200022d6200022789898989896200059b565b62000647565b9050600060ff60f81b3085848051906020012060405160200162000255949392919062000a57565b60408051808303601f1901815291905280516020909101209998505050505050505050565b6001546001600160a01b031681565b6200029362000643565b6001600160a01b0316620002a662000410565b6001600160a01b03161462000302576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000620003606200015987878787620006c6565b9050806001600160a01b03811663f2fde38b6200037c62000643565b6040518263ffffffff1660e01b81526004016200039a919062000ac3565b600060405180830381600087803b158015620003b557600080fd5b505af1158015620003ca573d6000803e3d6000fd5b505050507fcc1a02f08b4aa92a7d307d9c65aec395a00ed50d5575adbd7447a85dfefdaf9282604051620003ff919062000ac3565b60405180910390a150505050505050565b6000546001600160a01b031690565b600080620004346200022788888888620006c6565b9050600060ff60f81b308584805190602001206040516020016200045c949392919062000a57565b60408051808303601f19018152919052805160209091012098975050505050505050565b6200048a62000643565b6001600160a01b03166200049d62000410565b6001600160a01b031614620004f9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620005405760405162461bcd60e51b8152600401808060200182810382526026815260200180620014e56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600254600354604051606092634648eb9d60e01b92620005d7928a928a928a928a928a926001600160a01b039182169291169060240162000b81565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b600080620006228462000647565b9050828151602083016000f59150813b6200063c57600080fd5b5092915050565b3390565b6060604051806020016200065b906200073b565b601f1982820381018352601f9091011660408190526001546200068f916001600160a01b0390911690859060200162000ad7565b60408051601f1981840301815290829052620006af929160200162000a90565b60405160208183030381529060405290505b919050565b600254600354604051606092631ed9cbe360e11b92620006ff9289928992899289926001600160a01b0390811692169060240162000b05565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050949350505050565b6108448062000ca183390190565b80356001600160a01b0381168114620006c157600080fd5b600082601f83011262000772578081fd5b8135602067ffffffffffffffff8211156200078957fe5b8082026200079982820162000c48565b838152828101908684018388018501891015620007b4578687fd5b8693505b85841015620007e157620007cc8162000749565b835260019390930192918401918401620007b8565b50979650505050505050565b600082601f830112620007fe578081fd5b813567ffffffffffffffff8111156200081357fe5b62000828601f8201601f191660200162000c48565b8181528460208386010111156200083d578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121562000869578081fd5b620008748262000749565b9392505050565b60008060008060008060c0878903121562000894578182fd5b863567ffffffffffffffff80821115620008ac578384fd5b620008ba8a838b01620007ed565b97506020890135915080821115620008d0578384fd5b620008de8a838b01620007ed565b96506040890135915080821115620008f4578384fd5b620009028a838b01620007ed565b9550606089013591508082111562000918578384fd5b620009268a838b01620007ed565b945060808901359150808211156200093c578384fd5b506200094b89828a0162000761565b92505060a087013590509295509295509295565b600080600080600060a0868803121562000977578081fd5b853567ffffffffffffffff808211156200098f578283fd5b6200099d89838a01620007ed565b96506020880135915080821115620009b3578283fd5b620009c189838a01620007ed565b95506040880135915080821115620009d7578283fd5b620009e589838a01620007ed565b94506060880135915080821115620009fb578283fd5b5062000a0a88828901620007ed565b95989497509295608001359392505050565b6001600160a01b03169052565b6000815180845262000a4381602086016020860162000c6d565b601f01601f19169290920160200192915050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b6000835162000aa481846020880162000c6d565b83519083019062000aba81836020880162000c6d565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038316815260406020820181905260009062000afd9083018462000a29565b949350505050565b600060c0825262000b1a60c083018962000a29565b828103602084015262000b2e818962000a29565b9050828103604084015262000b44818862000a29565b9050828103606084015262000b5a818762000a29565b6001600160a01b0395861660808501529390941660a0909201919091525095945050505050565b600060e0825262000b9660e083018a62000a29565b60208382038185015262000bab828b62000a29565b9150838203604085015262000bc1828a62000a29565b9150838203606085015262000bd7828962000a29565b84810360808601528751808252828901935090820190845b8181101562000c165784516001600160a01b03168352938301939183019160010162000bef565b505080935050505062000c2d60a083018562000a1c565b62000c3c60c083018462000a1c565b98975050505050505050565b60405181810167ffffffffffffffff8111828210171562000c6557fe5b604052919050565b60005b8381101562000c8a57818101518382015260200162000c70565b8381111562000c9a576000848401525b5050505056fe60806040526040516108443803806108448339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b50604052506100e3915050565b6100ed82826100f4565b505061047e565b6101078261024960201b6100311760201c565b6101425760405162461bcd60e51b81526004018080602001828103825260258152602001806107c56025913960400191505060405180910390fd5b6101ba826001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561017e57600080fd5b505afa158015610192573d6000803e3d6000fd5b505050506040513d60208110156101a857600080fd5b5051610249602090811b61003117901c565b6101f55760405162461bcd60e51b81526004018080602001828103825260348152602001806108106034913960400191505060405180910390fd5b6000805160206107848339815191528281558151156102445761024261021961024f565b836040518060600160405280602181526020016107a4602191396102c260201b6100371760201c565b505b505050565b3b151590565b60006102596103c7565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561029157600080fd5b505afa1580156102a5573d6000803e3d6000fd5b505050506040513d60208110156102bb57600080fd5b5051905090565b60606102cd84610249565b6103085760405162461bcd60e51b81526004018080602001828103825260268152602001806107ea6026913960400191505060405180910390fd5b600080856001600160a01b0316856040518082805190602001908083835b602083106103455780518252601f199092019160209182019101610326565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146103a5576040519150601f19603f3d011682016040523d82523d6000602084013e6103aa565b606091505b5090925090506103bb8282866103da565b925050505b9392505050565b6000805160206107848339815191525490565b606083156103e95750816103c0565b8251156103f95782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561044357818101518382015260200161042b565b50505050905090810190601f1680156104705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6102f78061048d6000396000f3fe60806040523661001357610011610017565b005b6100115b61001f61002f565b61002f61002a61013b565b6101ae565b565b3b151590565b606061004284610031565b61007d5760405162461bcd60e51b815260040180806020018281038252602681526020018061029c6026913960400191505060405180910390fd5b600080856001600160a01b0316856040518082805190602001908083835b602083106100ba5780518252601f19909201916020918201910161009b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461011a576040519150601f19603f3d011682016040523d82523d6000602084013e61011f565b606091505b509150915061012f8282866101d2565b925050505b9392505050565b6000610145610276565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561017d57600080fd5b505afa158015610191573d6000803e3d6000fd5b505050506040513d60208110156101a757600080fd5b5051905090565b3660008037600080366000845af43d6000803e8080156101cd573d6000f35b3d6000fd5b606083156101e1575081610134565b8251156101f15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561023b578181015183820152602001610223565b50505050905090810190601f1680156102685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b7fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50549056fe416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374a26469706673582212200d13fbc9dd1124e596f23eb7f271a5a242d59277784a0254458aae2e0fa4bbd364736f6c63430007060033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50426561636f6e50726f78793a2066756e6374696f6e2063616c6c206661696c6564426561636f6e50726f78793a20626561636f6e206973206e6f74206120636f6e7472616374416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374426561636f6e50726f78793a20626561636f6e20696d706c656d656e746174696f6e206973206e6f74206120636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220eddea18042d9f39d17b0a1fd61e2ed79324248e73c5a11bf15501760c458070264736f6c63430007060033