Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Whitelist Collec... | 11270444 | 27 hrs ago | IN | 0 APE | 0.00415712 |
Loading...
Loading
Contract Name:
CollectionRegistry
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./interfaces/ICollectionRegistry.sol"; /// @title CollectionRegistry /// @notice Manages whitelisted NFT collections and their base stats contract CollectionRegistry is ICollectionRegistry, Ownable { // Mapping from collection address to its stats mapping(address => CollectionStats) private collectionStats; // Array to keep track of all whitelisted collections address[] private whitelistedCollections; // Minimum and maximum stat values uint256 private constant MIN_STAT_VALUE = 50; uint256 private constant MAX_STAT_VALUE = 200; constructor() Ownable(msg.sender) {} /// @notice Whitelist a new NFT collection with base stats /// @param collection Address of the NFT collection /// @param baseHp Initial HP for NFTs from this collection /// @param baseAttack Initial Attack for NFTs from this collection /// @param baseSpeed Initial Speed for NFTs from this collection function whitelistCollection( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external onlyOwner { // Verify collection is a valid ERC721 contract require(collection != address(0), "Invalid collection address"); require( !collectionStats[collection].isWhitelisted, "Collection already whitelisted" ); _validateERC721(collection); // Validate stat values require(_isValidStatValue(baseHp), "Invalid HP value"); require(_isValidStatValue(baseAttack), "Invalid Attack value"); require(_isValidStatValue(baseSpeed), "Invalid Speed value"); // Store collection stats collectionStats[collection] = CollectionStats({ baseHp: baseHp, baseAttack: baseAttack, baseSpeed: baseSpeed, isWhitelisted: true }); whitelistedCollections.push(collection); emit CollectionWhitelisted(collection, baseHp, baseAttack, baseSpeed); } /// @notice Update base stats for a whitelisted collection /// @param collection Address of the NFT collection /// @param baseHp New base HP /// @param baseAttack New base Attack /// @param baseSpeed New base Speed function updateCollectionStats( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external onlyOwner { require( collectionStats[collection].isWhitelisted, "Collection not whitelisted" ); // Validate stat values require(_isValidStatValue(baseHp), "Invalid HP value"); require(_isValidStatValue(baseAttack), "Invalid Attack value"); require(_isValidStatValue(baseSpeed), "Invalid Speed value"); collectionStats[collection].baseHp = baseHp; collectionStats[collection].baseAttack = baseAttack; collectionStats[collection].baseSpeed = baseSpeed; emit CollectionStatsUpdated(collection, baseHp, baseAttack, baseSpeed); } /// @notice Remove a collection from the whitelist /// @param collection Address of the NFT collection to remove function removeCollection(address collection) external onlyOwner { require( collectionStats[collection].isWhitelisted, "Collection not whitelisted" ); // Remove from whitelist collectionStats[collection].isWhitelisted = false; // Remove from whitelisted collections array for (uint256 i = 0; i < whitelistedCollections.length; i++) { if (whitelistedCollections[i] == collection) { whitelistedCollections[i] = whitelistedCollections[ whitelistedCollections.length - 1 ]; whitelistedCollections.pop(); break; } } emit CollectionRemoved(collection); } /// @notice Check if a collection is whitelisted /// @param collection Address of the NFT collection to check /// @return bool True if collection is whitelisted function isWhitelisted(address collection) external view returns (bool) { return collectionStats[collection].isWhitelisted; } /// @notice Get base stats for a collection /// @param collection Address of the NFT collection /// @return CollectionStats struct containing base stats function getCollectionStats( address collection ) external view returns (CollectionStats memory) { return collectionStats[collection]; } /// @notice Get all whitelisted collections /// @return address[] Array of whitelisted collection addresses function getWhitelistedCollections() external view returns (address[] memory) { return whitelistedCollections; } /// @notice Validate that an address is an ERC721 contract /// @param collection Address to validate function _validateERC721(address collection) internal view { require(collection.code.length > 0, "Collection must be a contract"); try IERC721(collection).supportsInterface(0x80ac58cd) returns ( bool isERC721 ) { require(isERC721, "Collection must support ERC721 interface"); } catch { revert("Collection must support ERC721 interface"); } } /// @notice Check if a stat value is within valid range /// @param value Stat value to check /// @return bool True if value is valid function _isValidStatValue(uint256 value) internal pure returns (bool) { return value >= MIN_STAT_VALUE && value <= MAX_STAT_VALUE; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /// @title ICollectionRegistry /// @notice Interface for managing whitelisted NFT collections and their base stats interface ICollectionRegistry { /// @notice Stats structure for NFT collections struct CollectionStats { uint256 baseHp; uint256 baseAttack; uint256 baseSpeed; bool isWhitelisted; } /// @notice Event emitted when a collection is whitelisted event CollectionWhitelisted(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection's stats are updated event CollectionStatsUpdated(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection is removed from whitelist event CollectionRemoved(address indexed collection); /// @notice Whitelist a new NFT collection with base stats /// @param collection Address of the NFT collection /// @param baseHp Initial HP for NFTs from this collection /// @param baseAttack Initial Attack for NFTs from this collection /// @param baseSpeed Initial Speed for NFTs from this collection function whitelistCollection( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Update base stats for a whitelisted collection /// @param collection Address of the NFT collection /// @param baseHp New base HP /// @param baseAttack New base Attack /// @param baseSpeed New base Speed function updateCollectionStats( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Remove a collection from the whitelist /// @param collection Address of the NFT collection to remove function removeCollection(address collection) external; /// @notice Check if a collection is whitelisted /// @param collection Address of the NFT collection to check /// @return bool True if collection is whitelisted function isWhitelisted(address collection) external view returns (bool); /// @notice Get base stats for a collection /// @param collection Address of the NFT collection /// @return CollectionStats struct containing base stats function getCollectionStats(address collection) external view returns (CollectionStats memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@pythnetwork/entropy-sdk-solidity/=../node_modules/@pythnetwork/entropy-sdk-solidity/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "pyth-sdk-solidity/=lib/pyth-sdk-solidity/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "shanghai", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"}],"name":"CollectionRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"baseHp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseAttack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"CollectionStatsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"baseHp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseAttack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"CollectionWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getCollectionStats","outputs":[{"components":[{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"},{"internalType":"bool","name":"isWhitelisted","type":"bool"}],"internalType":"struct ICollectionRegistry.CollectionStats","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedCollections","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"removeCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"updateCollectionStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"whitelistCollection","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f80fd5b50338061003557604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61003e81610044565b50610093565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c3f806100a05f395ff3fe608060405234801561000f575f80fd5b5060043610610090575f3560e01c80638b0279d2116100635780638b0279d2146101075780638da5cb5b1461011c578063b094ae2c14610136578063e637941814610149578063f2fde38b14610191575f80fd5b80633af32abf146100945780635028d05a146100d757806360159688146100ec578063715018a6146100ff575b5f80fd5b6100c26100a2366004610a99565b6001600160a01b03165f9081526001602052604090206003015460ff1690565b60405190151581526020015b60405180910390f35b6100ea6100e5366004610a99565b6101a4565b005b6100ea6100fa366004610ab9565b610373565b6100ea610535565b61010f610548565b6040516100ce9190610aef565b5f546040516001600160a01b0390911681526020016100ce565b6100ea610144366004610ab9565b6105a8565b61015c610157366004610a99565b610836565b6040516100ce919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b6100ea61019f366004610a99565b6108b0565b6101ac6108ed565b6001600160a01b0381165f9081526001602052604090206003015460ff1661021b5760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c697374656400000000000060448201526064015b60405180910390fd5b6001600160a01b0381165f908152600160205260408120600301805460ff191690555b60025481101561033c57816001600160a01b03166002828154811061026557610265610b3b565b5f918252602090912001546001600160a01b03160361032a576002805461028e90600190610b63565b8154811061029e5761029e610b3b565b5f91825260209091200154600280546001600160a01b0390921691839081106102c9576102c9610b3b565b905f5260205f20015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550600280548061030557610305610b76565b5f8281526020902081015f1990810180546001600160a01b031916905501905561033c565b8061033481610b8a565b91505061023e565b506040516001600160a01b038216907fa0691bd707b2f65c33c8343d61c274df72c6b5007937dcfbc31aa5a0d0f6fe3c905f90a250565b61037b6108ed565b6001600160a01b0384165f9081526001602052604090206003015460ff166103e55760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c69737465640000000000006044820152606401610212565b6103ee83610919565b61042d5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610212565b61043682610919565b6104795760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610212565b61048281610919565b6104c45760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610212565b6001600160a01b0384165f81815260016020818152604092839020878155918201869055600290910184905581518681529081018590529081018390527f6ddb3cd71b6efe93c0d904aeb4c74aa59b472dfd7a7f4027370d954d6690c113906060015b60405180910390a250505050565b61053d6108ed565b6105465f610932565b565b6060600280548060200260200160405190810160405280929190818152602001828054801561059e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610580575b5050505050905090565b6105b06108ed565b6001600160a01b0384166106065760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420636f6c6c656374696f6e20616464726573730000000000006044820152606401610212565b6001600160a01b0384165f9081526001602052604090206003015460ff16156106715760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e20616c72656164792077686974656c697374656400006044820152606401610212565b61067a84610981565b61068383610919565b6106c25760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610212565b6106cb82610919565b61070e5760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610212565b61071781610919565b6107595760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610212565b604080516080810182528481526020808201858152828401858152600160608086018281526001600160a01b038c165f81815284885289812098518955955188850155935160028089019190915590516003909701805460ff19169715159790971790965585549182018655949092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b0319168217905583518781529182018690529281018490527f5711bcdc868b08d678b35a54d6367cac882eccdb5fbfdf4c0a6d48155bf8fc139101610527565b61085f60405180608001604052805f81526020015f81526020015f81526020015f151581525090565b506001600160a01b03165f90815260016020818152604092839020835160808101855281548152928101549183019190915260028101549282019290925260039091015460ff161515606082015290565b6108b86108ed565b6001600160a01b0381166108e157604051631e4fbdf760e01b81525f6004820152602401610212565b6108ea81610932565b50565b5f546001600160a01b031633146105465760405163118cdaa760e01b8152336004820152602401610212565b5f6032821015801561092c575060c88211155b92915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f816001600160a01b03163b116109da5760405162461bcd60e51b815260206004820152601d60248201527f436f6c6c656374696f6e206d757374206265206120636f6e74726163740000006044820152606401610212565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa925050508015610a41575060408051601f3d908101601f19168201909252610a3e91810190610ba2565b60015b610a5d5760405162461bcd60e51b815260040161021290610bc1565b80610a7a5760405162461bcd60e51b815260040161021290610bc1565b5050565b80356001600160a01b0381168114610a94575f80fd5b919050565b5f60208284031215610aa9575f80fd5b610ab282610a7e565b9392505050565b5f805f8060808587031215610acc575f80fd5b610ad585610a7e565b966020860135965060408601359560600135945092505050565b602080825282518282018190525f9190848201906040850190845b81811015610b2f5783516001600160a01b031683529284019291840191600101610b0a565b50909695505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561092c5761092c610b4f565b634e487b7160e01b5f52603160045260245ffd5b5f60018201610b9b57610b9b610b4f565b5060010190565b5f60208284031215610bb2575f80fd5b81518015158114610ab2575f80fd5b60208082526028908201527f436f6c6c656374696f6e206d75737420737570706f72742045524337323120696040820152676e7465726661636560c01b60608201526080019056fea264697066735822122067d3466f11a27392439bea39fbebfe5c7b603eb219ff71e28ea11d7a5d15ed0b64736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610090575f3560e01c80638b0279d2116100635780638b0279d2146101075780638da5cb5b1461011c578063b094ae2c14610136578063e637941814610149578063f2fde38b14610191575f80fd5b80633af32abf146100945780635028d05a146100d757806360159688146100ec578063715018a6146100ff575b5f80fd5b6100c26100a2366004610a99565b6001600160a01b03165f9081526001602052604090206003015460ff1690565b60405190151581526020015b60405180910390f35b6100ea6100e5366004610a99565b6101a4565b005b6100ea6100fa366004610ab9565b610373565b6100ea610535565b61010f610548565b6040516100ce9190610aef565b5f546040516001600160a01b0390911681526020016100ce565b6100ea610144366004610ab9565b6105a8565b61015c610157366004610a99565b610836565b6040516100ce919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b6100ea61019f366004610a99565b6108b0565b6101ac6108ed565b6001600160a01b0381165f9081526001602052604090206003015460ff1661021b5760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c697374656400000000000060448201526064015b60405180910390fd5b6001600160a01b0381165f908152600160205260408120600301805460ff191690555b60025481101561033c57816001600160a01b03166002828154811061026557610265610b3b565b5f918252602090912001546001600160a01b03160361032a576002805461028e90600190610b63565b8154811061029e5761029e610b3b565b5f91825260209091200154600280546001600160a01b0390921691839081106102c9576102c9610b3b565b905f5260205f20015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550600280548061030557610305610b76565b5f8281526020902081015f1990810180546001600160a01b031916905501905561033c565b8061033481610b8a565b91505061023e565b506040516001600160a01b038216907fa0691bd707b2f65c33c8343d61c274df72c6b5007937dcfbc31aa5a0d0f6fe3c905f90a250565b61037b6108ed565b6001600160a01b0384165f9081526001602052604090206003015460ff166103e55760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c69737465640000000000006044820152606401610212565b6103ee83610919565b61042d5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610212565b61043682610919565b6104795760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610212565b61048281610919565b6104c45760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610212565b6001600160a01b0384165f81815260016020818152604092839020878155918201869055600290910184905581518681529081018590529081018390527f6ddb3cd71b6efe93c0d904aeb4c74aa59b472dfd7a7f4027370d954d6690c113906060015b60405180910390a250505050565b61053d6108ed565b6105465f610932565b565b6060600280548060200260200160405190810160405280929190818152602001828054801561059e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610580575b5050505050905090565b6105b06108ed565b6001600160a01b0384166106065760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420636f6c6c656374696f6e20616464726573730000000000006044820152606401610212565b6001600160a01b0384165f9081526001602052604090206003015460ff16156106715760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e20616c72656164792077686974656c697374656400006044820152606401610212565b61067a84610981565b61068383610919565b6106c25760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610212565b6106cb82610919565b61070e5760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610212565b61071781610919565b6107595760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610212565b604080516080810182528481526020808201858152828401858152600160608086018281526001600160a01b038c165f81815284885289812098518955955188850155935160028089019190915590516003909701805460ff19169715159790971790965585549182018655949092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b0319168217905583518781529182018690529281018490527f5711bcdc868b08d678b35a54d6367cac882eccdb5fbfdf4c0a6d48155bf8fc139101610527565b61085f60405180608001604052805f81526020015f81526020015f81526020015f151581525090565b506001600160a01b03165f90815260016020818152604092839020835160808101855281548152928101549183019190915260028101549282019290925260039091015460ff161515606082015290565b6108b86108ed565b6001600160a01b0381166108e157604051631e4fbdf760e01b81525f6004820152602401610212565b6108ea81610932565b50565b5f546001600160a01b031633146105465760405163118cdaa760e01b8152336004820152602401610212565b5f6032821015801561092c575060c88211155b92915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f816001600160a01b03163b116109da5760405162461bcd60e51b815260206004820152601d60248201527f436f6c6c656374696f6e206d757374206265206120636f6e74726163740000006044820152606401610212565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa925050508015610a41575060408051601f3d908101601f19168201909252610a3e91810190610ba2565b60015b610a5d5760405162461bcd60e51b815260040161021290610bc1565b80610a7a5760405162461bcd60e51b815260040161021290610bc1565b5050565b80356001600160a01b0381168114610a94575f80fd5b919050565b5f60208284031215610aa9575f80fd5b610ab282610a7e565b9392505050565b5f805f8060808587031215610acc575f80fd5b610ad585610a7e565b966020860135965060408601359560600135945092505050565b602080825282518282018190525f9190848201906040850190845b81811015610b2f5783516001600160a01b031683529284019291840191600101610b0a565b50909695505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561092c5761092c610b4f565b634e487b7160e01b5f52603160045260245ffd5b5f60018201610b9b57610b9b610b4f565b5060010190565b5f60208284031215610bb2575f80fd5b81518015158114610ab2575f80fd5b60208082526028908201527f436f6c6c656374696f6e206d75737420737570706f72742045524337323120696040820152676e7465726661636560c01b60608201526080019056fea264697066735822122067d3466f11a27392439bea39fbebfe5c7b603eb219ff71e28ea11d7a5d15ed0b64736f6c63430008140033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.