Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multi Chain
Multichain Addresses
N/ALatest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10159268 | 3 days 46 mins ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158162 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH | ||||
10158116 | 3 days 5 hrs ago | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x9dE208...a51a47E1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RoyaltyEngine
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; /** * @dev Fork of Manifold's RoyaltyEngineV1.sol with: * - Upgradeability removed * - ERC2981 lookups done first * - Function to bulk cache token address royalties * - invalidateCachedRoyaltySpec function removed * - _getRoyaltyAndSpec converted to an internal function */ import {ERC165, IERC165} from "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import {SuperRareContracts} from "manifoldxyz/libraries/SuperRareContracts.sol"; import {IManifold} from "manifoldxyz/specs/IManifold.sol"; import {IRaribleV1, IRaribleV2} from "manifoldxyz/specs/IRarible.sol"; import {IFoundation} from "manifoldxyz/specs/IFoundation.sol"; import {ISuperRareRegistry} from "manifoldxyz/specs/ISuperRare.sol"; import {IEIP2981} from "manifoldxyz/specs/IEIP2981.sol"; import {IZoraOverride} from "manifoldxyz/specs/IZoraOverride.sol"; import {IArtBlocksOverride} from "manifoldxyz/specs/IArtBlocksOverride.sol"; import {IKODAV2Override} from "manifoldxyz/specs/IKODAV2Override.sol"; import {IRoyaltyEngineV1} from "manifoldxyz/IRoyaltyEngineV1.sol"; import {IRoyaltyRegistry} from "manifoldxyz/IRoyaltyRegistry.sol"; /** * @dev Engine to lookup royalty configurations */ contract RoyaltyEngine is ERC165, IRoyaltyEngineV1 { // int16 values copied over from the manifold contract. // Anything <= NOT_CONFIGURED is considered not configured int16 private constant NONE = -1; int16 private constant NOT_CONFIGURED = 0; int16 private constant MANIFOLD = 1; int16 private constant RARIBLEV1 = 2; int16 private constant RARIBLEV2 = 3; int16 private constant FOUNDATION = 4; int16 private constant EIP2981 = 5; int16 private constant SUPERRARE = 6; int16 private constant ZORA = 7; int16 private constant ARTBLOCKS = 8; int16 private constant KNOWNORIGINV2 = 9; mapping(address => int16) _specCache; address public immutable ROYALTY_REGISTRY; error RoyaltyEngine__InvalidRoyaltyAmount(); constructor(address royaltyRegistry_) { ROYALTY_REGISTRY = royaltyRegistry_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IRoyaltyEngineV1).interfaceId || super.supportsInterface(interfaceId); } /** * @dev View function to get the cached spec of a token */ function getCachedRoyaltySpec(address tokenAddress) public view returns (int16) { address royaltyAddress = _getRoyaltyLookupAddress(tokenAddress); return _specCache[royaltyAddress]; } /** * @dev Bulk fetch the specs for multiple tokenAddresses and cache them for cheaper reads later. * If a spec is already cached for a token address, it will be invalidated and refetched. * There will be a double lookup for the royalty address which is fine because this function won't be * called often. */ function bulkCacheSpecs(address[] calldata tokenAddresses, uint256[] calldata tokenIds, uint256[] calldata values) public { uint256 numTokens = tokenAddresses.length; for (uint256 i; i < numTokens;) { // Invalidate cached value address royaltyAddress = _getRoyaltyLookupAddress(tokenAddresses[i]); delete _specCache[royaltyAddress]; (, uint256[] memory royaltyAmounts, int16 newSpec,,) = _getRoyaltyAndSpec(tokenAddresses[i], tokenIds[i], values[i]); _checkAmountsDoesNotExceedValue(values[i], royaltyAmounts); _specCache[royaltyAddress] = newSpec; unchecked { ++i; } } } /** * @dev See {IRoyaltyEngineV1-getRoyalty} */ function getRoyalty(address tokenAddress, uint256 tokenId, uint256 value) public override returns (address payable[] memory, uint256[] memory) { ( address payable[] memory _recipients, uint256[] memory _amounts, int16 spec, address royaltyAddress, bool addToCache ) = _getRoyaltyAndSpec(tokenAddress, tokenId, value); if (addToCache) _specCache[royaltyAddress] = spec; return (_recipients, _amounts); } /** * @dev See {IRoyaltyEngineV1-getRoyaltyView}. */ function getRoyaltyView(address tokenAddress, uint256 tokenId, uint256 value) public view override returns (address payable[] memory, uint256[] memory) { (address payable[] memory _recipients, uint256[] memory _amounts,,,) = _getRoyaltyAndSpec(tokenAddress, tokenId, value); return (_recipients, _amounts); } /** * @dev Get the royalty and royalty spec for a given token * * There is a potential DOS attack vector if a malicious contract consumes the gas limit of a txn. * We are ok with this because it will just lead to a swap erroring out. * * returns recipients array, amounts array, royalty spec, royalty address, whether or not to add to cache */ function _getRoyaltyAndSpec(address tokenAddress, uint256 tokenId, uint256 value) internal view returns ( address payable[] memory recipients, uint256[] memory amounts, int16 spec, address royaltyAddress, bool addToCache ) { royaltyAddress = _getRoyaltyLookupAddress(tokenAddress); spec = _specCache[royaltyAddress]; if (spec <= NOT_CONFIGURED) { // No spec configured yet, so we need to detect the spec addToCache = true; // Moved 2981 handling to the top because this will be the most prevalent type try IEIP2981(royaltyAddress).royaltyInfo(tokenId, value) returns (address recipient, uint256 amount) { // Supports EIP2981. Return amounts recipients = new address payable[](1); amounts = new uint256[](1); recipients[0] = payable(recipient); amounts[0] = amount; return (recipients, amounts, EIP2981, royaltyAddress, addToCache); } catch {} try IArtBlocksOverride(royaltyAddress).getRoyalties(tokenAddress, tokenId) returns ( address payable[] memory recipients_, uint256[] memory bps ) { // Support Art Blocks override return (recipients_, _computeAmounts(value, bps), ARTBLOCKS, royaltyAddress, addToCache); } catch {} try IManifold(royaltyAddress).getRoyalties(tokenId) returns ( address payable[] memory recipients_, uint256[] memory bps ) { // Supports manifold interface. Compute amounts return (recipients_, _computeAmounts(value, bps), MANIFOLD, royaltyAddress, addToCache); } catch {} try IRaribleV2(royaltyAddress).getRaribleV2Royalties(tokenId) returns (IRaribleV2.Part[] memory royalties) { // Supports rarible v2 interface. Compute amounts recipients = new address payable[](royalties.length); amounts = new uint256[](royalties.length); uint256 totalAmount; for (uint256 i; i < royalties.length;) { recipients[i] = royalties[i].account; amounts[i] = value * royalties[i].value / 10000; totalAmount += amounts[i]; unchecked { ++i; } } return (recipients, amounts, RARIBLEV2, royaltyAddress, addToCache); } catch {} try IRaribleV1(royaltyAddress).getFeeRecipients(tokenId) returns (address payable[] memory recipients_) { // Supports rarible v1 interface. Compute amounts recipients_ = IRaribleV1(royaltyAddress).getFeeRecipients(tokenId); try IRaribleV1(royaltyAddress).getFeeBps(tokenId) returns (uint256[] memory bps) { return (recipients_, _computeAmounts(value, bps), RARIBLEV1, royaltyAddress, addToCache); } catch {} } catch {} // SuperRare handling if (tokenAddress == SuperRareContracts.SUPERRARE_V1 || tokenAddress == SuperRareContracts.SUPERRARE_V2) { try ISuperRareRegistry(SuperRareContracts.SUPERRARE_REGISTRY).tokenCreator(tokenAddress, tokenId) returns (address payable creator) { try ISuperRareRegistry(SuperRareContracts.SUPERRARE_REGISTRY).calculateRoyaltyFee( tokenAddress, tokenId, value ) returns (uint256 amount) { recipients = new address payable[](1); amounts = new uint256[](1); recipients[0] = creator; amounts[0] = amount; return (recipients, amounts, SUPERRARE, royaltyAddress, addToCache); } catch {} } catch {} } try IFoundation(royaltyAddress).getFees(tokenId) returns ( address payable[] memory recipients_, uint256[] memory bps ) { // Supports foundation interface. Compute amounts return (recipients_, _computeAmounts(value, bps), FOUNDATION, royaltyAddress, addToCache); } catch {} try IZoraOverride(royaltyAddress).convertBidShares(tokenAddress, tokenId) returns ( address payable[] memory recipients_, uint256[] memory bps ) { // Support Zora override return (recipients_, _computeAmounts(value, bps), ZORA, royaltyAddress, addToCache); } catch {} try IKODAV2Override(royaltyAddress).getKODAV2RoyaltyInfo(tokenAddress, tokenId, value) returns ( address payable[] memory _recipients, uint256[] memory _amounts ) { // Support KODA V2 override return (_recipients, _amounts, KNOWNORIGINV2, royaltyAddress, addToCache); } catch {} // No supported royalties configured return (recipients, amounts, NONE, royaltyAddress, addToCache); } else { // Spec exists, just execute the appropriate one addToCache = false; if (spec == EIP2981) { // EIP2981 spec moved to the top because it will be the most prevalent type (address recipient, uint256 amount) = IEIP2981(royaltyAddress).royaltyInfo(tokenId, value); recipients = new address payable[](1); amounts = new uint256[](1); recipients[0] = payable(recipient); amounts[0] = amount; return (recipients, amounts, spec, royaltyAddress, addToCache); } else if (spec == MANIFOLD) { // Manifold spec uint256[] memory bps; (recipients, bps) = IManifold(royaltyAddress).getRoyalties(tokenId); return (recipients, _computeAmounts(value, bps), spec, royaltyAddress, addToCache); } else if (spec == ARTBLOCKS) { // Art Blocks spec uint256[] memory bps; (recipients, bps) = IArtBlocksOverride(royaltyAddress).getRoyalties(tokenAddress, tokenId); return (recipients, _computeAmounts(value, bps), spec, royaltyAddress, addToCache); } else if (spec == RARIBLEV2) { // Rarible v2 spec IRaribleV2.Part[] memory royalties; royalties = IRaribleV2(royaltyAddress).getRaribleV2Royalties(tokenId); recipients = new address payable[](royalties.length); amounts = new uint256[](royalties.length); uint256 totalAmount; for (uint256 i; i < royalties.length;) { recipients[i] = royalties[i].account; amounts[i] = value * royalties[i].value / 10000; totalAmount += amounts[i]; unchecked { ++i; } } return (recipients, amounts, spec, royaltyAddress, addToCache); } else if (spec == RARIBLEV1) { // Rarible v1 spec uint256[] memory bps; recipients = IRaribleV1(royaltyAddress).getFeeRecipients(tokenId); bps = IRaribleV1(royaltyAddress).getFeeBps(tokenId); return (recipients, _computeAmounts(value, bps), spec, royaltyAddress, addToCache); } else if (spec == FOUNDATION) { // Foundation spec uint256[] memory bps; (recipients, bps) = IFoundation(royaltyAddress).getFees(tokenId); return (recipients, _computeAmounts(value, bps), spec, royaltyAddress, addToCache); } else if (spec == SUPERRARE) { // SUPERRARE spec address payable creator = ISuperRareRegistry(SuperRareContracts.SUPERRARE_REGISTRY).tokenCreator(tokenAddress, tokenId); uint256 amount = ISuperRareRegistry(SuperRareContracts.SUPERRARE_REGISTRY).calculateRoyaltyFee( tokenAddress, tokenId, value ); recipients = new address payable[](1); amounts = new uint256[](1); recipients[0] = creator; amounts[0] = amount; return (recipients, amounts, spec, royaltyAddress, addToCache); } else if (spec == ZORA) { // Zora spec uint256[] memory bps; (recipients, bps) = IZoraOverride(royaltyAddress).convertBidShares(tokenAddress, tokenId); return (recipients, _computeAmounts(value, bps), spec, royaltyAddress, addToCache); } else if (spec == KNOWNORIGINV2) { // KnownOrigin.io V2 spec (V3 falls under EIP2981) (recipients, amounts) = IKODAV2Override(royaltyAddress).getKODAV2RoyaltyInfo(tokenAddress, tokenId, value); return (recipients, amounts, spec, royaltyAddress, addToCache); } } } /** * @dev Fetches the royalty lookup address from the Manifold registry. Has error handling to keep things working * in case the Manifold registry ever stops working (since it's an upgradeable contract). * @param tokenAddress The NFT address to look up * @return The royalty lookup address */ function _getRoyaltyLookupAddress(address tokenAddress) internal view returns (address) { (bool success, bytes memory result) = ROYALTY_REGISTRY.staticcall( abi.encodeWithSelector(IRoyaltyRegistry.getRoyaltyLookupAddress.selector, tokenAddress) ); if (success && result.length == 32) { return abi.decode(result, (address)); } else { // In the case where the Manifold registry stops working/goes rogue, we default to using the token address // as the royalty lookup address to continue supporting ERC2981 NFTs return tokenAddress; } } /** * Compute royalty amounts */ function _computeAmounts(uint256 value, uint256[] memory bps) private pure returns (uint256[] memory amounts) { uint256 numBps = bps.length; amounts = new uint256[](numBps); uint256 totalAmount; for (uint256 i; i < numBps;) { amounts[i] = value * bps[i] / 10000; totalAmount += amounts[i]; unchecked { ++i; } } return amounts; } function _checkAmountsDoesNotExceedValue(uint256 saleAmount, uint256[] memory royalties) private pure { uint256 numRoyalties = royalties.length; uint256 totalRoyalties; for (uint256 i; i < numRoyalties;) { totalRoyalties += royalties[i]; unchecked { ++i; } } if (totalRoyalties > saleAmount) revert RoyaltyEngine__InvalidRoyaltyAmount(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SuperRareContracts { address public constant SUPERRARE_REGISTRY = 0x17B0C8564E53f22364A6C8de6F7ca5CE9BEa4e5D; address public constant SUPERRARE_V1 = 0x41A322b28D0fF354040e2CbC676F0320d8c8850d; address public constant SUPERRARE_V2 = 0xb932a70A57673d89f4acfFBE830E8ed7f75Fb9e0; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz /** * @dev Royalty interface for creator core classes */ interface IManifold { /** * @dev Get royalites of a token. Returns list of receivers and basisPoints * * bytes4(keccak256('getRoyalties(uint256)')) == 0xbb3bafd6 * * => 0xbb3bafd6 = 0xbb3bafd6 */ function getRoyalties(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IRaribleV1 { /* * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584 */ function getFeeBps(uint256 id) external view returns (uint256[] memory); function getFeeRecipients(uint256 id) external view returns (address payable[] memory); } interface IRaribleV2 { /* * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca */ struct Part { address payable account; uint96 value; } function getRaribleV2Royalties(uint256 id) external view returns (Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IFoundation { /* * bytes4(keccak256('getFees(uint256)')) == 0xd5a06d4c * * => 0xd5a06d4c = 0xd5a06d4c */ function getFees(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); } interface IFoundationTreasuryNode { function getFoundationTreasury() external view returns (address payable); } interface IFoundationTreasury { function isAdmin(address account) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ISuperRareRegistry { /** * @dev Get the royalty fee percentage for a specific ERC721 contract. * @param _contractAddress address ERC721Contract address. * @param _tokenId uint256 token ID. * @return uint8 wei royalty fee. */ function getERC721TokenRoyaltyPercentage(address _contractAddress, uint256 _tokenId) external view returns (uint8); /** * @dev Utililty function to calculate the royalty fee for a token. * @param _contractAddress address ERC721Contract address. * @param _tokenId uint256 token ID. * @param _amount uint256 wei amount. * @return uint256 wei fee. */ function calculateRoyaltyFee(address _contractAddress, uint256 _tokenId, uint256 _amount) external view returns (uint256); /** * @dev Get the token creator which will receive royalties of the given token * @param _contractAddress address ERC721Contract address. * @param _tokenId uint256 token ID. */ function tokenCreator(address _contractAddress, uint256 _tokenId) external view returns (address payable); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * EIP-2981 */ interface IEIP2981 { /** * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a * * => 0x2a55205a = 0x2a55205a */ function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * Paired down version of the Zora Market interface */ interface IZoraMarket { struct ZoraDecimal { uint256 value; } struct ZoraBidShares { // % of sale value that goes to the _previous_ owner of the nft ZoraDecimal prevOwner; // % of sale value that goes to the original creator of the nft ZoraDecimal creator; // % of sale value that goes to the seller (current owner) of the nft ZoraDecimal owner; } function bidSharesForToken(uint256 tokenId) external view returns (ZoraBidShares memory); } /** * Paired down version of the Zora Media interface */ interface IZoraMedia { /** * Auto-generated accessors of public variables */ function marketContract() external view returns (address); function previousTokenOwners(uint256 tokenId) external view returns (address); function tokenCreators(uint256 tokenId) external view returns (address); /** * ERC721 function */ function ownerOf(uint256 tokenId) external view returns (address owner); } /** * Interface for a Zora media override */ interface IZoraOverride { /** * @dev Convert bid share configuration of a Zora Media token into an array of receivers and bps values * Does not support prevOwner and sell-on amounts as that is specific to Zora marketplace implementation * and requires updates on the Zora Media and Marketplace to update the sell-on amounts/previous owner values. * An off-Zora marketplace sale will break the sell-on functionality. */ function convertBidShares(address media, uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * Interface for an Art Blocks override */ interface IArtBlocksOverride { /** * @dev Get royalites of a token at a given tokenAddress. * Returns array of receivers and basisPoints. * * bytes4(keccak256('getRoyalties(address,uint256)')) == 0x9ca7dc7a * * => 0x9ca7dc7a = 0x9ca7dc7a */ function getRoyalties(address tokenAddress, uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); }
// SPDX-License-Identifier: MIT /// @author: knownorigin.io pragma solidity ^0.8.0; interface IKODAV2 { function editionOfTokenId(uint256 _tokenId) external view returns (uint256 _editionNumber); function artistCommission(uint256 _editionNumber) external view returns (address _artistAccount, uint256 _artistCommission); function editionOptionalCommission(uint256 _editionNumber) external view returns (uint256 _rate, address _recipient); } interface IKODAV2Override { /// @notice Emitted when the royalties fee changes event CreatorRoyaltiesFeeUpdated(uint256 _oldCreatorRoyaltiesFee, uint256 _newCreatorRoyaltiesFee); /// @notice For the given KO NFT and token ID, return the addresses and the amounts to pay function getKODAV2RoyaltyInfo(address _tokenAddress, uint256 _id, uint256 _amount) external view returns (address payable[] memory, uint256[] memory); /// @notice Allows the owner() to update the creator royalties function updateCreatorRoyalties(uint256 _creatorRoyaltiesFee) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Lookup engine interface */ interface IRoyaltyEngineV1 is IERC165 { /** * Get the royalty for a given token (address, id) and value amount. Does not cache the bps/amounts. Caches the spec for a given token address * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyalty(address tokenAddress, uint256 tokenId, uint256 value) external returns (address payable[] memory recipients, uint256[] memory amounts); /** * View only version of getRoyalty * * @param tokenAddress - The address of the token * @param tokenId - The id of the token * @param value - The value you wish to get the royalty of * * returns Two arrays of equal length, royalty recipients and the corresponding amount each recipient should get */ function getRoyaltyView(address tokenAddress, uint256 tokenId, uint256 value) external view returns (address payable[] memory recipients, uint256[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Royalty registry interface */ interface IRoyaltyRegistry is IERC165 { event RoyaltyOverride(address owner, address tokenAddress, address royaltyAddress); /** * Override the location of where to look up royalty information for a given token contract. * Allows for backwards compatibility and implementation of royalty logic for contracts that did not previously support them. * * @param tokenAddress - The token address you wish to override * @param royaltyAddress - The royalty override address */ function setRoyaltyLookupAddress(address tokenAddress, address royaltyAddress) external returns (bool); /** * Returns royalty address location. Returns the tokenAddress by default, or the override if it exists * * @param tokenAddress - The token address you are looking up the royalty for */ function getRoyaltyLookupAddress(address tokenAddress) external view returns (address); /** * Whether or not the message sender can override the royalty address for the given token address * * @param tokenAddress - The token address you are looking up the royalty for */ function overrideAllowed(address tokenAddress) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "@manifoldxyz/=lib/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@prb/math/=lib/prb-math/src/", "clones-with-immutable-args/=lib/clones-with-immutable-args/src/", "create3-factory/=lib/create3-factory/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "libraries-solidity/=lib/libraries-solidity/contracts/", "manifoldxyz/=lib/royalty-registry-solidity/contracts/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "royalty-registry-solidity/=lib/royalty-registry-solidity/contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 1000000 }, "metadata": { "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
[{"inputs":[{"internalType":"address","name":"royaltyRegistry_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"RoyaltyEngine__InvalidRoyaltyAmount","type":"error"},{"inputs":[],"name":"ROYALTY_REGISTRY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"bulkCacheSpecs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getCachedRoyaltySpec","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"getRoyalty","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"getRoyaltyView","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100725760003560e01c80637488f121116100505780637488f121146100d5578063bf47dac2146100fb578063f533b8021461014757600080fd5b806301ffc9a7146100775780633e1040141461009f5780635b35faf2146100c0575b600080fd5b61008a610085366004611f03565b61015a565b60405190151581526020015b60405180910390f35b6100b26100ad366004611f71565b6101f3565b604051610096929190611fa6565b6100d36100ce366004612083565b610216565b005b6100e86100e336600461211d565b610397565b60405160019190910b8152602001610096565b6101227f0000000000000000000000003d1151dc590ebf5c04501a7d4e1f8921546774ea81565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610096565b6100b2610155366004611f71565b6103d2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fcb23f8160000000000000000000000000000000000000000000000000000000014806101ed57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60608060008061020487878761045a565b50929a91995090975050505050505050565b8460005b8181101561038d5760006102538989848181106102395761023961213a565b905060200201602081019061024e919061211d565b611c31565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260208190526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169055909150806103038b8b868181106102b7576102b761213a565b90506020020160208101906102cc919061211d565b8a8a878181106102de576102de61213a565b905060200201358989888181106102f7576102f761213a565b9050602002013561045a565b5050925092505061032c87878681811061031f5761031f61213a565b9050602002013583611da7565b73ffffffffffffffffffffffffffffffffffffffff92909216600090815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff909316929092179091555060010161021a565b5050505050505050565b6000806103a383611c31565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205460010b9392505050565b60608060008060008060006103e88a8a8a61045a565b94509450945094509450801561044a5773ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff85161790555b5092989197509095505050505050565b606080600080600061046b88611c31565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081205460010b9450909250831361116257506040517f2a55205a000000000000000000000000000000000000000000000000000000008152600481018790526024810186905260019073ffffffffffffffffffffffffffffffffffffffff831690632a55205a906044016040805180830381865afa92505050801561054e575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261054b91810190612169565b60015b1561060c576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292995090506020808301908036833701905050955081876000815181106105a7576105a761213a565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080866000815181106105f5576105f561213a565b60209081029190910101525060059350611c269050565b6040517f9ca7dc7a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201899052831690639ca7dc7a90604401600060405180830381865afa9250505080156106be57506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526106bb9190810190612331565b60015b156106dd57816106ce8983611e25565b60089650965096505050611c26565b6040517fbb3bafd60000000000000000000000000000000000000000000000000000000081526004810188905273ffffffffffffffffffffffffffffffffffffffff83169063bb3bafd690602401600060405180830381865afa92505050801561078757506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526107849190810190612331565b60015b156107a657816107978983611e25565b60019650965096505050611c26565b6040517fcad96cca0000000000000000000000000000000000000000000000000000000081526004810188905273ffffffffffffffffffffffffffffffffffffffff83169063cad96cca90602401600060405180830381865afa92505050801561085057506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261084d9190810190612395565b60015b156109f657805167ffffffffffffffff81111561086f5761086f612197565b604051908082528060200260200182016040528015610898578160200160208202803683370190505b509550805167ffffffffffffffff8111156108b5576108b5612197565b6040519080825280602002602001820160405280156108de578160200160208202803683370190505b5094506000805b82518110156109e9578281815181106109005761090061213a565b60200260200101516000015188828151811061091e5761091e61213a565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061271083828151811061096d5761096d61213a565b6020026020010151602001516bffffffffffffffffffffffff168a610992919061249f565b61099c91906124b6565b8782815181106109ae576109ae61213a565b6020026020010181815250508681815181106109cc576109cc61213a565b6020026020010151826109df91906124f1565b91506001016108e5565b5060039450611c26915050565b6040517fb9c4d9fb0000000000000000000000000000000000000000000000000000000081526004810188905273ffffffffffffffffffffffffffffffffffffffff83169063b9c4d9fb90602401600060405180830381865afa925050508015610aa057506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a9d9190810190612504565b60015b15610c24576040517fb9c4d9fb0000000000000000000000000000000000000000000000000000000081526004810189905273ffffffffffffffffffffffffffffffffffffffff84169063b9c4d9fb90602401600060405180830381865afa158015610b10573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610b569190810190612504565b6040517f0ebd4c7f000000000000000000000000000000000000000000000000000000008152600481018a905290915073ffffffffffffffffffffffffffffffffffffffff841690630ebd4c7f90602401600060405180830381865afa925050508015610c0357506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610c009190810190612539565b60015b15610c225781610c138983611e25565b60029650965096505050611c26565b505b73ffffffffffffffffffffffffffffffffffffffff88167341a322b28d0ff354040e2cbc676f0320d8c8850d1480610c85575073ffffffffffffffffffffffffffffffffffffffff881673b932a70a57673d89f4acffbe830e8ed7f75fb9e0145b15610ed4576040517fb85ed7e400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89166004820152602481018890527317b0c8564e53f22364a6c8de6f7ca5ce9bea4e5d9063b85ed7e490604401602060405180830381865afa925050508015610d49575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610d469181019061256e565b60015b15610ed4576040517f860110f500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a16600482015260248101899052604481018890527317b0c8564e53f22364a6c8de6f7ca5ce9bea4e5d9063860110f590606401602060405180830381865afa925050508015610e14575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610e119181019061258b565b60015b15610ed257604080516001808252818301909252906020808301908036833750506040805160018082528183019092529299509050602080830190803683370190505095508187600081518110610e6d57610e6d61213a565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508086600081518110610ebb57610ebb61213a565b60209081029190910101525060069350611c269050565b505b6040517fd5a06d4c0000000000000000000000000000000000000000000000000000000081526004810188905273ffffffffffffffffffffffffffffffffffffffff83169063d5a06d4c90602401600060405180830381865afa925050508015610f7e57506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610f7b9190810190612331565b60015b15610f9d5781610f8e8983611e25565b60049650965096505050611c26565b6040517ff662207400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811660048301526024820189905283169063f662207490604401600060405180830381865afa92505050801561104f57506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261104c9190810190612331565b60015b1561106e578161105f8983611e25565b60079650965096505050611c26565b6040517ffbda03ab00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152602482018990526044820188905283169063fbda03ab90606401600060405180830381865afa92505050801561112757506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526111249190810190612331565b60015b1561113a57909550935060099250611c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9250611c26565b5060007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb600184900b016112f3576040517f2a55205a0000000000000000000000000000000000000000000000000000000081526004810188905260248101879052600090819073ffffffffffffffffffffffffffffffffffffffff851690632a55205a906044016040805180830381865afa158015611206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122a9190612169565b909250905060015b60405190808252806020026020018201604052801561125b578160200160208202803683370190505b506040805160018082528183019092529198506020808301908036833701905050955081876000815181106112925761129261213a565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080866000815181106112e0576112e061213a565b6020026020010181815250505050611c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600184900b016113ed576040517fbb3bafd60000000000000000000000000000000000000000000000000000000081526004810188905260609073ffffffffffffffffffffffffffffffffffffffff84169063bb3bafd6906024015b600060405180830381865afa15801561138d573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526113d39190810190612331565b9096509050856113e38883611e25565b9550955050611c26565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8600184900b01611477576040517f9ca7dc7a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811660048301526024820189905260609190841690639ca7dc7a90604401611370565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd600184900b016116f4576040517fcad96cca0000000000000000000000000000000000000000000000000000000081526004810188905260609073ffffffffffffffffffffffffffffffffffffffff84169063cad96cca90602401600060405180830381865afa158015611510573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526115569190810190612395565b9050805167ffffffffffffffff81111561157257611572612197565b60405190808252806020026020018201604052801561159b578160200160208202803683370190505b509550805167ffffffffffffffff8111156115b8576115b8612197565b6040519080825280602002602001820160405280156115e1578160200160208202803683370190505b5094506000805b82518110156116ec578281815181106116035761160361213a565b6020026020010151600001518882815181106116215761162161213a565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506127108382815181106116705761167061213a565b6020026020010151602001516bffffffffffffffffffffffff168a611695919061249f565b61169f91906124b6565b8782815181106116b1576116b161213a565b6020026020010181815250508681815181106116cf576116cf61213a565b6020026020010151826116e291906124f1565b91506001016115e8565b505050611c26565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe600184900b01611894576040517fb9c4d9fb0000000000000000000000000000000000000000000000000000000081526004810188905260609073ffffffffffffffffffffffffffffffffffffffff84169063b9c4d9fb90602401600060405180830381865afa15801561178d573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526117d39190810190612504565b6040517f0ebd4c7f000000000000000000000000000000000000000000000000000000008152600481018a905290965073ffffffffffffffffffffffffffffffffffffffff841690630ebd4c7f90602401600060405180830381865afa158015611841573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526118879190810190612539565b9050856113e38883611e25565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc600184900b01611915576040517fd5a06d4c0000000000000000000000000000000000000000000000000000000081526004810188905260609073ffffffffffffffffffffffffffffffffffffffff84169063d5a06d4c90602401611370565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600184900b01611aab576040517fb85ed7e400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89166004820152602481018890526000907317b0c8564e53f22364a6c8de6f7ca5ce9bea4e5d9063b85ed7e490604401602060405180830381865afa1580156119c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ec919061256e565b6040517f860110f500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b166004820152602481018a9052604481018990529091506000907317b0c8564e53f22364a6c8de6f7ca5ce9bea4e5d9063860110f590606401602060405180830381865afa158015611a7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa2919061258b565b90506001611232565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9600184900b01611b35576040517ff662207400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152602482018990526060919084169063f662207490604401611370565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7600184900b01611c26576040517ffbda03ab00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152602482018990526044820188905283169063fbda03ab90606401600060405180830381865afa158015611bda573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611c209190810190612331565b90955093505b939792965093509350565b60008060007f0000000000000000000000003d1151dc590ebf5c04501a7d4e1f8921546774ea73ffffffffffffffffffffffffffffffffffffffff1663de5488af60e01b85604051602401611ca2919073ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051611d2b91906125a4565b600060405180830381855afa9150503d8060008114611d66576040519150601f19603f3d011682016040523d82523d6000602084013e611d6b565b606091505b5091509150818015611d7e575080516020145b15611d9f5780806020019051810190611d97919061256e565b949350505050565b509192915050565b80516000805b82811015611de457838181518110611dc757611dc761213a565b602002602001015182611dda91906124f1565b9150600101611dad565b5083811115611e1f576040517f646cf17000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b80516060908067ffffffffffffffff811115611e4357611e43612197565b604051908082528060200260200182016040528015611e6c578160200160208202803683370190505b5091506000805b82811015611efa57612710858281518110611e9057611e9061213a565b602002602001015187611ea3919061249f565b611ead91906124b6565b848281518110611ebf57611ebf61213a565b602002602001018181525050838181518110611edd57611edd61213a565b602002602001015182611ef091906124f1565b9150600101611e73565b50505092915050565b600060208284031215611f1557600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611f4557600080fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611f6e57600080fd5b50565b600080600060608486031215611f8657600080fd5b8335611f9181611f4c565b95602085013595506040909401359392505050565b604080825283519082018190526000906020906060840190828701845b82811015611ff557815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101611fc3565b5050508381038285015284518082528583019183019060005b8181101561202a5783518352928401929184019160010161200e565b5090979650505050505050565b60008083601f84011261204957600080fd5b50813567ffffffffffffffff81111561206157600080fd5b6020830191508360208260051b850101111561207c57600080fd5b9250929050565b6000806000806000806060878903121561209c57600080fd5b863567ffffffffffffffff808211156120b457600080fd5b6120c08a838b01612037565b909850965060208901359150808211156120d957600080fd5b6120e58a838b01612037565b909650945060408901359150808211156120fe57600080fd5b5061210b89828a01612037565b979a9699509497509295939492505050565b60006020828403121561212f57600080fd5b8135611f4581611f4c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000806040838503121561217c57600080fd5b825161218781611f4c565b6020939093015192949293505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156121e9576121e9612197565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561223657612236612197565b604052919050565b600067ffffffffffffffff82111561225857612258612197565b5060051b60200190565b600082601f83011261227357600080fd5b815160206122886122838361223e565b6121ef565b82815260059290921b840181019181810190868411156122a757600080fd5b8286015b848110156122cb5780516122be81611f4c565b83529183019183016122ab565b509695505050505050565b600082601f8301126122e757600080fd5b815160206122f76122838361223e565b82815260059290921b8401810191818101908684111561231657600080fd5b8286015b848110156122cb578051835291830191830161231a565b6000806040838503121561234457600080fd5b825167ffffffffffffffff8082111561235c57600080fd5b61236886838701612262565b9350602085015191508082111561237e57600080fd5b5061238b858286016122d6565b9150509250929050565b600060208083850312156123a857600080fd5b825167ffffffffffffffff8111156123bf57600080fd5b8301601f810185136123d057600080fd5b80516123de6122838261223e565b81815260069190911b820183019083810190878311156123fd57600080fd5b928401925b82841015612465576040848903121561241b5760008081fd5b6124236121c6565b845161242e81611f4c565b8152848601516bffffffffffffffffffffffff8116811461244f5760008081fd5b8187015282526040939093019290840190612402565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176101ed576101ed612470565b6000826124ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808201808211156101ed576101ed612470565b60006020828403121561251657600080fd5b815167ffffffffffffffff81111561252d57600080fd5b611d9784828501612262565b60006020828403121561254b57600080fd5b815167ffffffffffffffff81111561256257600080fd5b611d97848285016122d6565b60006020828403121561258057600080fd5b8151611f4581611f4c565b60006020828403121561259d57600080fd5b5051919050565b6000825160005b818110156125c557602081860181015185830152016125ab565b50600092019182525091905056fea26469706673582212206a5104a24c5a76629641db3986ea54eee729d51bfe0aff11ffb750c83fe6ee4564736f6c63430008140033
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.