- Contract name:
- OriumMarketplaceRoyalties
- Optimization enabled
- false
- Compiler version
- v0.8.9+commit.e5eed63a
- Verified at
- 2024-01-24T13:37:20.496317Z
contracts/OriumMarketplaceRoyalties.sol
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.9; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import { IOriumMarketplaceRoyalties } from "./interfaces/IOriumMarketplaceRoyalties.sol"; /** * @title Orium Marketplace Royalties * @dev This contract is used to manage marketplace fees and royalties. * @author Orium Network Team - [email protected] */ contract OriumMarketplaceRoyalties is Initializable, OwnableUpgradeable, IOriumMarketplaceRoyalties { /** ######### Constants ########### **/ /// @dev 100 ether is 100% uint256 public constant MAX_PERCENTAGE = 100 ether; /// @dev 2.5 ether is 2.5% uint256 public constant DEFAULT_FEE_PERCENTAGE = 2.5 ether; /** ######### Global Variables ########### **/ /// @dev sftRolesRegistry is a ERC-7589 contract address public defaultSftRolesRegistry; /// @dev nftRolesRegistry is a ERC-7432 contract address public defaultNftRolesRegistry; /// @dev tokenAddress => sftRolesRegistry mapping(address => address) public tokenAddressToRolesRegistry; /// @dev maxDuration in seconds uint64 public maxDuration; /// @dev tokenAddress => feePercentageInWei mapping(address => FeeInfo) public feeInfo; /// @dev tokenAddress => tokenAddressToRoyaltyInfo mapping(address => RoyaltyInfo) public tokenAddressToRoyaltyInfo; /// @dev tokenAddress => bool mapping(address => bool) public isTrustedTokenAddress; /** ######### Structs ########### **/ /** ######### Events ########### **/ /** * @param tokenAddress The NFT or SFT address. * @param feePercentageInWei The fee percentage in wei. * @param isCustomFee If the fee is custom or not. Used to allow collections with no fee. */ event MarketplaceFeeSet(address indexed tokenAddress, uint256 feePercentageInWei, bool isCustomFee); /** * @param tokenAddress The NFT or SFT address. * @param creator The address of the creator. * @param royaltyPercentageInWei The royalty percentage in wei. * @param treasury The address where the fees will be sent. If the treasury is address(0), the fees will be burned. */ event CreatorRoyaltySet( address indexed tokenAddress, address indexed creator, uint256 royaltyPercentageInWei, address treasury ); /** * @param tokenAddress The NFT or SFT address. * @param rolesRegistry The address of the roles registry. */ event RolesRegistrySet(address indexed tokenAddress, address indexed rolesRegistry); /** * @param tokenAddress The NFT or SFT address. * @param isTrusted The boolean setting if the token address is trusted or not. */ event TrustedTokenAddressSet(address indexed tokenAddress, bool isTrusted); /** ######### Modifiers ########### **/ /** ######### Initializer ########### **/ /** * @notice Initializes the contract. * @dev The owner of the contract will be the owner of the protocol. * @param _owner The owner of the protocol. * @param _defaultSftRolesRegistry The address of the roles registry. * @param _defaultNftRolesRegistry The address of the roles registry. * @param _maxDuration The maximum duration of a rental offer. */ function initialize( address _owner, address _defaultSftRolesRegistry, address _defaultNftRolesRegistry, uint64 _maxDuration ) public initializer { __Ownable_init(); defaultSftRolesRegistry = _defaultSftRolesRegistry; defaultNftRolesRegistry = _defaultNftRolesRegistry; maxDuration = _maxDuration; transferOwnership(_owner); } /** ============================ Core Functions ================================== **/ /** ######### Setters ########### **/ /** * @notice Sets the marketplace fee for a collection. * @dev If no fee is set, the default fee will be used. * @param _tokenAddress The NFT or SFT address. * @param _feePercentageInWei The fee percentage in wei. * @param _isCustomFee If the fee is custom or not. */ function setMarketplaceFeeForCollection( address _tokenAddress, uint256 _feePercentageInWei, bool _isCustomFee ) external onlyOwner { uint256 _royaltyPercentage = tokenAddressToRoyaltyInfo[_tokenAddress].royaltyPercentageInWei; require( _royaltyPercentage + _feePercentageInWei < MAX_PERCENTAGE, "OriumMarketplaceRoyalties: Royalty percentage + marketplace fee cannot be greater than 100%" ); feeInfo[_tokenAddress] = FeeInfo({ feePercentageInWei: _feePercentageInWei, isCustomFee: _isCustomFee }); emit MarketplaceFeeSet(_tokenAddress, _feePercentageInWei, _isCustomFee); } /** * @notice Sets the royalty info. * @dev Only owner can associate a collection with a creator. * @param _creator The address of the creator. * @param _tokenAddress The NFT or SFT address. * @param _royaltyPercentageInWei The royalty percentage in wei. * @param _treasury The address where the fees will be sent. If the treasury is address(0), the fees will be burned. */ function setRoyaltyInfo( address _creator, address _tokenAddress, uint256 _royaltyPercentageInWei, address _treasury ) external { if (msg.sender != owner()) { require( msg.sender == tokenAddressToRoyaltyInfo[_tokenAddress].creator, "OriumMarketplaceRoyalties: Only creator or owner can set the royalty info" ); require(msg.sender == _creator, "OriumMarketplaceRoyalties: sender and creator mismatch"); } require( _royaltyPercentageInWei + marketplaceFeeOf(_tokenAddress) < MAX_PERCENTAGE, "OriumMarketplaceRoyalties: Royalty percentage + marketplace fee cannot be greater than 100%" ); tokenAddressToRoyaltyInfo[_tokenAddress] = RoyaltyInfo({ creator: _creator, royaltyPercentageInWei: _royaltyPercentageInWei, treasury: _treasury }); emit CreatorRoyaltySet(_tokenAddress, _creator, _royaltyPercentageInWei, _treasury); } /** * @notice Sets the Max duration for a rental offer. * @dev Only owner can set the maximum duration. * @param _maxDuration The maximum duration of a rental offer. */ function setMaxDuration(uint64 _maxDuration) external onlyOwner { require(_maxDuration > 0, "OriumMarketplaceRoyalties: Max duration should be greater than 0"); maxDuration = _maxDuration; } /** * @notice Sets the roles registry for a collection. * @dev Only owner can set the roles registry for a collection. * @param _tokenAddress The NFT or SFT address. * @param _rolesRegistry The roles registry address. */ function setRolesRegistry(address _tokenAddress, address _rolesRegistry) external onlyOwner { tokenAddressToRolesRegistry[_tokenAddress] = _rolesRegistry; emit RolesRegistrySet(_tokenAddress, _rolesRegistry); } /** * @notice Sets the default NFT roles registry. * @dev Only owner can set the default NFT roles registry. * @param _nftRolesRegistry The roles registry address. */ function setDefaultNftRolesRegistry(address _nftRolesRegistry) external onlyOwner { defaultNftRolesRegistry = _nftRolesRegistry; } /** * @notice Sets the default SFT roles registry. * @dev Only owner can set the default SFT roles registry. * @param _sftRolesRegistry The roles registry address. */ function setDefaultSftRolesRegistry(address _sftRolesRegistry) external onlyOwner { defaultSftRolesRegistry = _sftRolesRegistry; } /** * @notice Sets the trusted token addresses. * @dev Can only be called by the owner. Used to allow collections with no custom fee set. * @param _tokenAddresses The NFT or SFT addresses. * @param _isTrusted The boolean array. */ function setTrustedTokens(address[] calldata _tokenAddresses, bool[] calldata _isTrusted) external onlyOwner { require( _tokenAddresses.length == _isTrusted.length, "OriumMarketplaceRoyalties: Arrays should have the same length" ); for (uint256 i = 0; i < _tokenAddresses.length; i++) { isTrustedTokenAddress[_tokenAddresses[i]] = _isTrusted[i]; } } /** ######### Getters ########### **/ /** * @notice Gets the marketplace fee for a collection. * @dev If no custom fee is set, the default fee will be used. * @param _tokenAddress The NFT or SFT address. */ function marketplaceFeeOf(address _tokenAddress) public view returns (uint256) { return feeInfo[_tokenAddress].isCustomFee ? feeInfo[_tokenAddress].feePercentageInWei : DEFAULT_FEE_PERCENTAGE; } /** * @notice Gets the roles registry for a collection. * @dev If no custom roles registry is set, the default roles registry will be used. * @param _tokenAddress The NFT address. */ function nftRolesRegistryOf(address _tokenAddress) public view returns (address) { return tokenAddressToRolesRegistry[_tokenAddress] == address(0) ? defaultNftRolesRegistry : tokenAddressToRolesRegistry[_tokenAddress]; } /** * @notice Gets the roles registry for a collection. * @dev If no custom roles registry is set, the default roles registry will be used. * @param _tokenAddress The SFT address. */ function sftRolesRegistryOf(address _tokenAddress) public view returns (address) { return tokenAddressToRolesRegistry[_tokenAddress] == address(0) ? defaultSftRolesRegistry : tokenAddressToRolesRegistry[_tokenAddress]; } /** * @notice Gets the royalty info. * @param _tokenAddress The NFT or SFT address. */ function royaltyInfoOf(address _tokenAddress) public view returns (RoyaltyInfo memory _royaltyInfo) { _royaltyInfo = tokenAddressToRoyaltyInfo[_tokenAddress]; } }
@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
contracts/interfaces/IOriumMarketplaceRoyalties.sol
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.9; interface IOriumMarketplaceRoyalties { /// @dev Marketplace fee info. struct FeeInfo { uint256 feePercentageInWei; bool isCustomFee; } /// @dev Royalty info. Used to charge fees for the creator. struct RoyaltyInfo { address creator; uint256 royaltyPercentageInWei; address treasury; } /** * @notice Gets the roles registry for a collection. * @dev If no custom roles registry is set, the default roles registry will be used. * @param _tokenAddress The NFT address. */ function nftRolesRegistryOf(address _tokenAddress) external view returns (address); /** * @notice Gets the roles registry for a collection. * @dev If no custom roles registry is set, the default roles registry will be used. * @param _tokenAddress The SFT address. */ function sftRolesRegistryOf(address _tokenAddress) external view returns (address); /** * @notice Gets the marketplace fee for a collection. * @dev If no custom fee is set, the default fee will be used. * @param _tokenAddress The SFT address. */ function marketplaceFeeOf(address _tokenAddress) external view returns (uint256); /** * @notice Gets the trusted token addresses. * @param _tokenAddresses The SFT addresses. */ function isTrustedTokenAddress(address _tokenAddresses) external view returns (bool); /** * @notice Gets the royalty info. * @param _tokenAddress The SFT address. */ function royaltyInfoOf(address _tokenAddress) external view returns (RoyaltyInfo memory _royaltyInfo); /** * @notice Gets the max duration for a rental offer. * @dev The max duration is the maximum amount of time that a rental offer can be created for. */ function maxDuration() external view returns (uint64); }
Contract ABI
[{"type":"event","name":"CreatorRoyaltySet","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"address","name":"creator","internalType":"address","indexed":true},{"type":"uint256","name":"royaltyPercentageInWei","internalType":"uint256","indexed":false},{"type":"address","name":"treasury","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"MarketplaceFeeSet","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"uint256","name":"feePercentageInWei","internalType":"uint256","indexed":false},{"type":"bool","name":"isCustomFee","internalType":"bool","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":"event","name":"RolesRegistrySet","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"address","name":"rolesRegistry","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TrustedTokenAddressSet","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"bool","name":"isTrusted","internalType":"bool","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"DEFAULT_FEE_PERCENTAGE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_PERCENTAGE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"defaultNftRolesRegistry","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"defaultSftRolesRegistry","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"feePercentageInWei","internalType":"uint256"},{"type":"bool","name":"isCustomFee","internalType":"bool"}],"name":"feeInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_owner","internalType":"address"},{"type":"address","name":"_defaultSftRolesRegistry","internalType":"address"},{"type":"address","name":"_defaultNftRolesRegistry","internalType":"address"},{"type":"uint64","name":"_maxDuration","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isTrustedTokenAddress","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketplaceFeeOf","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"maxDuration","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nftRolesRegistryOf","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"_royaltyInfo","internalType":"struct IOriumMarketplaceRoyalties.RoyaltyInfo","components":[{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"royaltyPercentageInWei","internalType":"uint256"},{"type":"address","name":"treasury","internalType":"address"}]}],"name":"royaltyInfoOf","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultNftRolesRegistry","inputs":[{"type":"address","name":"_nftRolesRegistry","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultSftRolesRegistry","inputs":[{"type":"address","name":"_sftRolesRegistry","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMarketplaceFeeForCollection","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"},{"type":"uint256","name":"_feePercentageInWei","internalType":"uint256"},{"type":"bool","name":"_isCustomFee","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxDuration","inputs":[{"type":"uint64","name":"_maxDuration","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRolesRegistry","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"},{"type":"address","name":"_rolesRegistry","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoyaltyInfo","inputs":[{"type":"address","name":"_creator","internalType":"address"},{"type":"address","name":"_tokenAddress","internalType":"address"},{"type":"uint256","name":"_royaltyPercentageInWei","internalType":"uint256"},{"type":"address","name":"_treasury","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTrustedTokens","inputs":[{"type":"address[]","name":"_tokenAddresses","internalType":"address[]"},{"type":"bool[]","name":"_isTrusted","internalType":"bool[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"sftRolesRegistryOf","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"tokenAddressToRolesRegistry","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"royaltyPercentageInWei","internalType":"uint256"},{"type":"address","name":"treasury","internalType":"address"}],"name":"tokenAddressToRoyaltyInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063a8d04fe6116100c3578063ee53b2aa1161007c578063ee53b2aa146103f0578063f01478321461040c578063f2fde38b14610428578063f35f086b14610444578063f9b71b8914610460578063fefbb1561461047e57610158565b8063a8d04fe6146102f5578063ba7f0ee414610325578063bf432a0914610355578063bfcfa66b14610371578063e6fc57d4146103a2578063e7246042146103d257610158565b80635e36c564116101155780635e36c564146102455780636db5c8fd14610261578063715018a61461027f57806384208377146102895780638ab97df6146102a55780638da5cb5b146102d757610158565b806312ca619f1461015d57806317450e181461017b5780633242e24e146101ab5780633fe3f1cf146101db5780634c255c97146101f75780635ce7702114610215575b600080fd5b61016561049a565b6040516101729190611779565b60405180910390f35b610195600480360381019061019091906117ca565b6104c0565b6040516101a29190611810565b60405180910390f35b6101c560048036038101906101c091906117ca565b61056f565b6040516101d29190611779565b60405180910390f35b6101f560048036038101906101f0919061186b565b6105a2565b005b6101ff610798565b60405161020c9190611810565b60405180910390f35b61022f600480360381019061022a91906117ca565b6107a5565b60405161023c9190611779565b60405180910390f35b61025f600480360381019061025a91906118fe565b6108c9565b005b610269610c2e565b6040516102769190611974565b60405180910390f35b610287610c48565b005b6102a3600480360381019061029e9190611a4a565b610c5c565b005b6102bf60048036038101906102ba91906117ca565b610d79565b6040516102ce93929190611acb565b60405180910390f35b6102df610de3565b6040516102ec9190611779565b60405180910390f35b61030f600480360381019061030a91906117ca565b610e0d565b60405161031c9190611779565b60405180910390f35b61033f600480360381019061033a91906117ca565b610f31565b60405161034c9190611b1d565b60405180910390f35b61036f600480360381019061036a9190611b38565b610f51565b005b61038b600480360381019061038691906117ca565b611035565b604051610399929190611b78565b60405180910390f35b6103bc60048036038101906103b791906117ca565b611066565b6040516103c99190611c01565b60405180910390f35b6103da611175565b6040516103e79190611810565b60405180910390f35b61040a600480360381019061040591906117ca565b611181565b005b61042660048036038101906104219190611c1c565b6111cd565b005b610442600480360381019061043d91906117ca565b61124e565b005b61045e600480360381019061045991906117ca565b6112d2565b005b61046861131e565b6040516104759190611779565b60405180910390f35b61049860048036038101906104939190611c75565b611344565b005b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900460ff16610524576722b1c8c1227a0000610568565b606960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001545b9050919050565b60676020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff161590508080156105d35750600160008054906101000a900460ff1660ff16105b8061060057506105e2306114c2565b1580156105ff5750600160008054906101000a900460ff1660ff16145b5b61063f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063690611d4b565b60405180910390fd5b60016000806101000a81548160ff021916908360ff160217905550801561067c576001600060016101000a81548160ff0219169083151502179055505b6106846114e5565b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606860006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506107388561124e565b80156107915760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516107889190611dbd565b60405180910390a15b5050505050565b68056bc75e2d6310000081565b60008073ffffffffffffffffffffffffffffffffffffffff16606760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461089e57606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166108c2565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b9050919050565b6108d1610de3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4257606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ca90611e70565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3890611f02565b60405180910390fd5b5b68056bc75e2d63100000610a55846104c0565b83610a609190611f51565b10610aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a979061203f565b60405180910390fd5b60405180606001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815250606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f48ad8485693b9973ead8f2419c47217555f7b8197a637de45e68b507779aee778484604051610c2092919061205f565b60405180910390a350505050565b606860009054906101000a900467ffffffffffffffff1681565b610c5061153e565b610c5a60006115bc565b565b610c6461153e565b818190508484905014610cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca3906120fa565b60405180910390fd5b60005b84849050811015610d7257828282818110610ccd57610ccc61211a565b5b9050602002016020810190610ce29190612149565b606b6000878785818110610cf957610cf861211a565b5b9050602002016020810190610d0e91906117ca565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610d6a90612176565b915050610caf565b5050505050565b606a6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff16606760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f0657606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610f2a565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b9050919050565b606b6020528060005260406000206000915054906101000a900460ff1681565b610f5961153e565b80606760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fe4439c77c292ccd794f87871827c1bac9053f5900ac32b62c734678ddd1d01c760405160405180910390a35050565b60696020528060005260406000206000915090508060000154908060010160009054906101000a900460ff16905082565b61106e6116eb565b606a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b6722b1c8c1227a000081565b61118961153e565b80606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111d561153e565b60008167ffffffffffffffff1611611222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121990612231565b60405180910390fd5b80606860006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b61125661153e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bd906122c3565b60405180910390fd5b6112cf816115bc565b50565b6112da61153e565b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61134c61153e565b6000606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905068056bc75e2d6310000083826113a99190611f51565b106113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e09061203f565b60405180910390fd5b6040518060400160405280848152602001831515815250606960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff0219169083151502179055509050508373ffffffffffffffffffffffffffffffffffffffff167fc60e6f659e43dc4ad63d5a27cea2b5bd7b775ea5a9f1e8f4ba2dd4566809b50984846040516114b4929190611b78565b60405180910390a250505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152b90612355565b60405180910390fd5b61153c611682565b565b6115466116e3565b73ffffffffffffffffffffffffffffffffffffffff16611564610de3565b73ffffffffffffffffffffffffffffffffffffffff16146115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b1906123c1565b60405180910390fd5b565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff166116d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c890612355565b60405180910390fd5b6116e16116dc6116e3565b6115bc565b565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061176382611738565b9050919050565b61177381611758565b82525050565b600060208201905061178e600083018461176a565b92915050565b600080fd5b600080fd5b6117a781611758565b81146117b257600080fd5b50565b6000813590506117c48161179e565b92915050565b6000602082840312156117e0576117df611794565b5b60006117ee848285016117b5565b91505092915050565b6000819050919050565b61180a816117f7565b82525050565b60006020820190506118256000830184611801565b92915050565b600067ffffffffffffffff82169050919050565b6118488161182b565b811461185357600080fd5b50565b6000813590506118658161183f565b92915050565b6000806000806080858703121561188557611884611794565b5b6000611893878288016117b5565b94505060206118a4878288016117b5565b93505060406118b5878288016117b5565b92505060606118c687828801611856565b91505092959194509250565b6118db816117f7565b81146118e657600080fd5b50565b6000813590506118f8816118d2565b92915050565b6000806000806080858703121561191857611917611794565b5b6000611926878288016117b5565b9450506020611937878288016117b5565b9350506040611948878288016118e9565b9250506060611959878288016117b5565b91505092959194509250565b61196e8161182b565b82525050565b60006020820190506119896000830184611965565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126119b4576119b361198f565b5b8235905067ffffffffffffffff8111156119d1576119d0611994565b5b6020830191508360208202830111156119ed576119ec611999565b5b9250929050565b60008083601f840112611a0a57611a0961198f565b5b8235905067ffffffffffffffff811115611a2757611a26611994565b5b602083019150836020820283011115611a4357611a42611999565b5b9250929050565b60008060008060408587031215611a6457611a63611794565b5b600085013567ffffffffffffffff811115611a8257611a81611799565b5b611a8e8782880161199e565b9450945050602085013567ffffffffffffffff811115611ab157611ab0611799565b5b611abd878288016119f4565b925092505092959194509250565b6000606082019050611ae0600083018661176a565b611aed6020830185611801565b611afa604083018461176a565b949350505050565b60008115159050919050565b611b1781611b02565b82525050565b6000602082019050611b326000830184611b0e565b92915050565b60008060408385031215611b4f57611b4e611794565b5b6000611b5d858286016117b5565b9250506020611b6e858286016117b5565b9150509250929050565b6000604082019050611b8d6000830185611801565b611b9a6020830184611b0e565b9392505050565b611baa81611758565b82525050565b611bb9816117f7565b82525050565b606082016000820151611bd56000850182611ba1565b506020820151611be86020850182611bb0565b506040820151611bfb6040850182611ba1565b50505050565b6000606082019050611c166000830184611bbf565b92915050565b600060208284031215611c3257611c31611794565b5b6000611c4084828501611856565b91505092915050565b611c5281611b02565b8114611c5d57600080fd5b50565b600081359050611c6f81611c49565b92915050565b600080600060608486031215611c8e57611c8d611794565b5b6000611c9c868287016117b5565b9350506020611cad868287016118e9565b9250506040611cbe86828701611c60565b9150509250925092565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000611d35602e83611cc8565b9150611d4082611cd9565b604082019050919050565b60006020820190508181036000830152611d6481611d28565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000611da7611da2611d9d84611d6b565b611d82565b611d75565b9050919050565b611db781611d8c565b82525050565b6000602082019050611dd26000830184611dae565b92915050565b7f4f7269756d4d61726b6574706c616365526f79616c746965733a204f6e6c792060008201527f63726561746f72206f72206f776e65722063616e207365742074686520726f7960208201527f616c747920696e666f0000000000000000000000000000000000000000000000604082015250565b6000611e5a604983611cc8565b9150611e6582611dd8565b606082019050919050565b60006020820190508181036000830152611e8981611e4d565b9050919050565b7f4f7269756d4d61726b6574706c616365526f79616c746965733a2073656e646560008201527f7220616e642063726561746f72206d69736d6174636800000000000000000000602082015250565b6000611eec603683611cc8565b9150611ef782611e90565b604082019050919050565b60006020820190508181036000830152611f1b81611edf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f5c826117f7565b9150611f67836117f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f9c57611f9b611f22565b5b828201905092915050565b7f4f7269756d4d61726b6574706c616365526f79616c746965733a20526f79616c60008201527f74792070657263656e74616765202b206d61726b6574706c616365206665652060208201527f63616e6e6f742062652067726561746572207468616e20313030250000000000604082015250565b6000612029605b83611cc8565b915061203482611fa7565b606082019050919050565b600060208201905081810360008301526120588161201c565b9050919050565b60006040820190506120746000830185611801565b612081602083018461176a565b9392505050565b7f4f7269756d4d61726b6574706c616365526f79616c746965733a20417272617960008201527f732073686f756c642068617665207468652073616d65206c656e677468000000602082015250565b60006120e4603d83611cc8565b91506120ef82612088565b604082019050919050565b60006020820190508181036000830152612113816120d7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561215f5761215e611794565b5b600061216d84828501611c60565b91505092915050565b6000612181826117f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156121b4576121b3611f22565b5b600182019050919050565b7f4f7269756d4d61726b6574706c616365526f79616c746965733a204d6178206460008201527f75726174696f6e2073686f756c642062652067726561746572207468616e2030602082015250565b600061221b604083611cc8565b9150612226826121bf565b604082019050919050565b6000602082019050818103600083015261224a8161220e565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006122ad602683611cc8565b91506122b882612251565b604082019050919050565b600060208201905081810360008301526122dc816122a0565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b600061233f602b83611cc8565b915061234a826122e3565b604082019050919050565b6000602082019050818103600083015261236e81612332565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123ab602083611cc8565b91506123b682612375565b602082019050919050565b600060208201905081810360008301526123da8161239e565b905091905056fea2646970667358221220151bf2de49eabba73a4e33c2989ee0615c9d522ba9a362a6471c8207df32b42864736f6c63430008090033