Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
PreRevealOnChainMetadata
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 9999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IOnChainMetadata.sol"; import "./MetadataUtils.sol"; interface WithTokenTypes { function tokenTypes(uint256 tokenId) external view returns (uint256); } contract PreRevealOnChainMetadata is IOnChainMetadata { using Strings for uint256; string internal _base64Data; string internal _name; string internal _description; string internal _external_url; string internal _background_color; constructor( string memory base64Data_, string memory name_, string memory description_, string memory external_url_, string memory background_color_ ) { _base64Data = base64Data_; _name = name_; _description = description_; _external_url = external_url_; _background_color = background_color_; } function generateBase64(uint256 tokenId) external view returns (string memory) { return _base64Data; } function tokenImageDataURI(uint256 tokenId) public view returns (string memory) { return string(abi.encodePacked("data:image/svg+xml;base64,", _base64Data)); } function tokenURI(uint256 tokenId) external view returns (string memory) { string memory dataURI = MetadataUtils.tokenMetadataToString( TokenMetadata( _name, _description, tokenImageDataURI(tokenId), _external_url, _background_color, getAttributes(WithTokenTypes(msg.sender).tokenTypes(tokenId)) ) ); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode(bytes(dataURI)) ) ); } function getAttributes(uint256 tokenType) internal view returns (Attribute[] memory attributes) { attributes = new Attribute[](1); if (tokenType == 0) { attributes = new Attribute[](0); } else if (tokenType == 1) { attributes[0] = Attribute("type", "The Chosen One"); } else if (tokenType == 2) { attributes[0] = Attribute("type", "Unrevealed"); } else if (tokenType == 3) { attributes[0] = Attribute("type", "Unrevealed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; struct TokenMetadata { string name; string description; string image; string external_url; string background_color; Attribute[] attributes; } struct Attribute { string trait_type; string value; } library MetadataUtils { function tokenMetadataToString( TokenMetadata memory metadata ) internal pure returns (string memory) { bytes memory output = abi.encodePacked( "{", '"name": "', metadata.name, '",', '"description": "', metadata.description, '",', '"image": "', metadata.image, '",' ); output = abi.encodePacked( output, '"external_url": "', metadata.external_url, '",', '"background_color": "', metadata.background_color, '",', '"attributes": [' ); return string(abi.encodePacked(output, attributesToString(metadata.attributes), "]", "}")); } function attributesToString(Attribute[] memory attributes) internal pure returns (string memory) { string memory output = ""; for (uint256 i = 0; i < attributes.length; i++) { output = string( abi.encodePacked( output, "{", '"trait_type": "', attributes[i].trait_type, '",', '"value": "', attributes[i].value, '"', "}" ) ); if (i != attributes.length - 1) { output = string(abi.encodePacked(output, ",")); } } return output; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IOnChainMetadata { /** * Mint new tokens. */ function tokenURI(uint256 tokenId_) external view returns (string memory); function tokenImageDataURI(uint256 tokenId_) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 9999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"base64Data_","type":"string"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"description_","type":"string"},{"internalType":"string","name":"external_url_","type":"string"},{"internalType":"string","name":"background_color_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateBase64","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenImageDataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200150b3803806200150b83398101604081905262000034916200014f565b6000620000428682620002bf565b506001620000518582620002bf565b506002620000608482620002bf565b5060036200006f8382620002bf565b5060046200007e8282620002bf565b5050505050506200038b565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000b257600080fd5b81516001600160401b0380821115620000cf57620000cf6200008a565b604051601f8301601f19908116603f01168101908282118183101715620000fa57620000fa6200008a565b816040528381526020925086838588010111156200011757600080fd5b600091505b838210156200013b57858201830151818301840152908201906200011c565b600093810190920192909252949350505050565b600080600080600060a086880312156200016857600080fd5b85516001600160401b03808211156200018057600080fd5b6200018e89838a01620000a0565b96506020880151915080821115620001a557600080fd5b620001b389838a01620000a0565b95506040880151915080821115620001ca57600080fd5b620001d889838a01620000a0565b94506060880151915080821115620001ef57600080fd5b620001fd89838a01620000a0565b935060808801519150808211156200021457600080fd5b506200022388828901620000a0565b9150509295509295909350565b600181811c908216806200024557607f821691505b6020821081036200026657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ba57600081815260208120601f850160051c81016020861015620002955750805b601f850160051c820191505b81811015620002b657828155600101620002a1565b5050505b505050565b81516001600160401b03811115620002db57620002db6200008a565b620002f381620002ec845462000230565b846200026c565b602080601f8311600181146200032b5760008415620003125750858301515b600019600386901b1c1916600185901b178555620002b6565b600085815260208120601f198616915b828110156200035c578886015182559484019460019091019084016200033b565b50858210156200037b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611170806200039b6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063631e69f514610046578063c87b56dd1461006f578063e19e21b414610082575b600080fd5b61005961005436600461097c565b610095565b60405161006691906109b9565b60405180910390f35b61005961007d36600461097c565b6100bf565b61005961009036600461097c565b6103dc565b606060006040516020016100a99190610a5d565b6040516020818303038152906040529050919050565b606060006103aa6040518060c00160405280600180546100de90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461010a90610a0a565b80156101575780601f1061012c57610100808354040283529160200191610157565b820191906000526020600020905b81548152906001019060200180831161013a57829003601f168201915b505050505081526020016002805461016e90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461019a90610a0a565b80156101e75780601f106101bc576101008083540402835291602001916101e7565b820191906000526020600020905b8154815290600101906020018083116101ca57829003601f168201915b505050505081526020016101fa86610095565b81526020016003805461020c90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461023890610a0a565b80156102855780601f1061025a57610100808354040283529160200191610285565b820191906000526020600020905b81548152906001019060200180831161026857829003601f168201915b505050505081526020016004805461029c90610a0a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c890610a0a565b80156103155780601f106102ea57610100808354040283529160200191610315565b820191906000526020600020905b8154815290600101906020018083116102f857829003601f168201915b505050505081526020016103a33373ffffffffffffffffffffffffffffffffffffffff166333f6832a886040518263ffffffff1660e01b815260040161035d91815260200190565b602060405180830381865afa15801561037a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039e9190610b62565b610470565b90526106df565b90506103b581610762565b6040516020016103c59190610b7b565b604051602081830303815290604052915050919050565b6060600080546103eb90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461041790610a0a565b80156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b50505050509050919050565b604080516001808252818301909252606091816020015b6040805180820190915260608082526020820152815260200190600190039081610487579050509050816000036104fc5760408051600080825260208201909252906104f5565b60408051808201909152606080825260208201528152602001906001900390816104ce5790505b5092915050565b816001036105a65760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468652043686f73656e204f6e650000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b6020026020010181905250919050565b816002036106405760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f556e72657665616c6564000000000000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b816003036106da5760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f556e72657665616c6564000000000000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b919050565b6060600082600001518360200151846040015160405160200161070493929190610c1e565b6040516020818303038152906040529050808360600151846080015160405160200161073293929190610d38565b6040516020818303038152906040529050806107518460a001516108b5565b6040516020016103c5929190610e24565b6060815160000361078157505060408051602081019091526000815290565b60006040518060600160405280604081526020016110fb60409139905060006003845160026107b09190610ed0565b6107ba9190610ee9565b6107c5906004610f24565b67ffffffffffffffff8111156107dd576107dd610bc0565b6040519080825280601f01601f191660200182016040528015610807576020820181803683370190505b509050600182016020820185865187015b80821015610873576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610818565b505060038651066001811461088f57600281146108a2576108aa565b603d6001830353603d60028303536108aa565b603d60018303535b509195945050505050565b60408051602081019091526000808252606091905b83518110156104f557818482815181106108e6576108e6610bef565b60200260200101516000015185838151811061090457610904610bef565b60200260200101516020015160405160200161092293929190610f3b565b604051602081830303815290604052915060018451610941919061106e565b811461096a57816040516020016109589190611081565b60405160208183030381529060405291505b80610974816110c2565b9150506108ca565b60006020828403121561098e57600080fd5b5035919050565b60005b838110156109b0578181015183820152602001610998565b50506000910152565b60208152600082518060208401526109d8816040850160208701610995565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600181811c90821680610a1e57607f821691505b602082108103610a57577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000601a6000845481600182811c915080831680610a9f57607f831692505b60208084108203610ad7577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610aeb5760018114610b2257610b53565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616888b01528785151586028b01019650610b53565b60008b81526020902060005b86811015610b495781548c82018b0152908501908301610b2e565b505087858b010196505b50949998505050505050505050565b600060208284031215610b7457600080fd5b5051919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251610bb381601d850160208701610995565b91909101601d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20220000000000000000000000000000000000000000000000600182015260008451610c7c81600a850160208901610995565b80830190507f222c00000000000000000000000000000000000000000000000000000000000080600a8301527f226465736372697074696f6e223a202200000000000000000000000000000000600c8301528551610ce181601c850160208a01610995565b601c92019182018190527f22696d616765223a202200000000000000000000000000000000000000000000601e8301528451610d24816028850160208901610995565b6028920191820152602a0195945050505050565b60008451610d4a818460208901610995565b7f2265787465726e616c5f75726c223a20220000000000000000000000000000009083019081528451610d84816011840160208901610995565b8082019150507f222c0000000000000000000000000000000000000000000000000000000000008060118301527f226261636b67726f756e645f636f6c6f72223a2022000000000000000000000060138301528451610dea816028850160208901610995565b60289201918201527f2261747472696275746573223a205b0000000000000000000000000000000000602a82015260390195945050505050565b60008351610e36818460208801610995565b835190830190610e4a818360208801610995565b7f5d0000000000000000000000000000000000000000000000000000000000000091019081527f7d000000000000000000000000000000000000000000000000000000000000006001820152600201949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610ee357610ee3610ea1565b92915050565b600082610f1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082028115828204841417610ee357610ee3610ea1565b60008451610f4d818460208901610995565b7f7b000000000000000000000000000000000000000000000000000000000000009083019081527f2274726169745f74797065223a2022000000000000000000000000000000000060018201528451610fad816010840160208901610995565b7f222c000000000000000000000000000000000000000000000000000000000000601092909101918201527f2276616c7565223a2022000000000000000000000000000000000000000000006012820152835161101181601c840160208801610995565b7f2200000000000000000000000000000000000000000000000000000000000000601c92909101918201527f7d00000000000000000000000000000000000000000000000000000000000000601d820152601e0195945050505050565b81810381811115610ee357610ee3610ea1565b60008251611093818460208701610995565b7f2c00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110f3576110f3610ea1565b506001019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122014ba461218574b0d6973177f2d99ef44829952635f5c5be1382f37ee6cc7fe8564736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000006c00000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000005b450484e325a79423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d636949485a705a58644362336739496a41674d43417a4d4441674d7a417749694277636d567a5a584a325a55467a6347566a64464a6864476c7650534a3454576c7557553170626942745a575630496a3438636d566a6443426f5a576c6e61485139496a4d774d43496764326c6b64476739496a4d774d4349675a6d6c7362443069596d7868593273694c7a3438636d566a64434234505349314d434967655430694d5451774969426f5a576c6e61485139496a49774969423361575230614430694d6a416949475a7062477739496d78706257566e636d566c6269492b50474675615731686447556759585230636d6c696458526c546d46745a543069636e676949485a686248566c637a30694d4473774f7a41374d6a41374d6a41374d6a41374d6a41374d6a41374d6a416949475231636a30694d6a427a496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7868626d6c745958526c49475231636a30694d6a427a496942686448527961574a316447564f5957316c50534a3261584e70596d6c736158523549694232595778315a584d39496e5a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f3268705a47526c626a746f6157526b5a57343761476c6b5a475675496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7776636d566a64443438636d566a64434234505349784e44416949486b39496a45304d434967614756705a326830505349794d43496764326c6b64476739496a49774969426d6157787350534a736157316c5a334a6c5a573469506a7868626d6c745958526c4947463064484a70596e56305a55356862575539496e4a3449694232595778315a584d39496a41374d4473774f7a41374d6a41374d6a41374d6a41374d6a41374d6a416949475231636a30694d6a427a496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7868626d6c745958526c49475231636a30694d6a427a496942686448527961574a316447564f5957316c50534a3261584e70596d6c736158523549694232595778315a584d39496d68705a47526c626a743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54746f6157526b5a57343761476c6b5a475675496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7776636d566a64443438636d566a64434234505349794d7a416949486b39496a45304d434967614756705a326830505349794d43496764326c6b64476739496a49774969426d6157787350534a736157316c5a334a6c5a573469506a7868626d6c745958526c4947463064484a70596e56305a55356862575539496e4a3449694232595778315a584d39496a41374d4473774f7a41374d4473794d4473794d4473794d4473794d4349675a485679505349794d484d6949484a6c6347566864454e766457353050534a70626d526c5a6d6c756158526c4969382b5047467561573168644755675a485679505349794d484d694947463064484a70596e56305a55356862575539496e5a7063326c696157787064486b6949485a686248566c637a306961476c6b5a4756754f3268705a47526c626a743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54746f6157526b5a57346949484a6c6347566864454e766457353050534a70626d526c5a6d6c756158526c4969382b504339795a574e30506a777663335a6e50673d3d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d544520427920556269000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019556269204b756272656b206973207761746368696e672e2e2e0000000000000000000000000000000000000000000000000000000000000000000000000000166f6e636861696e69737468656675747572652e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000072330303030303000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063631e69f514610046578063c87b56dd1461006f578063e19e21b414610082575b600080fd5b61005961005436600461097c565b610095565b60405161006691906109b9565b60405180910390f35b61005961007d36600461097c565b6100bf565b61005961009036600461097c565b6103dc565b606060006040516020016100a99190610a5d565b6040516020818303038152906040529050919050565b606060006103aa6040518060c00160405280600180546100de90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461010a90610a0a565b80156101575780601f1061012c57610100808354040283529160200191610157565b820191906000526020600020905b81548152906001019060200180831161013a57829003601f168201915b505050505081526020016002805461016e90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461019a90610a0a565b80156101e75780601f106101bc576101008083540402835291602001916101e7565b820191906000526020600020905b8154815290600101906020018083116101ca57829003601f168201915b505050505081526020016101fa86610095565b81526020016003805461020c90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461023890610a0a565b80156102855780601f1061025a57610100808354040283529160200191610285565b820191906000526020600020905b81548152906001019060200180831161026857829003601f168201915b505050505081526020016004805461029c90610a0a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c890610a0a565b80156103155780601f106102ea57610100808354040283529160200191610315565b820191906000526020600020905b8154815290600101906020018083116102f857829003601f168201915b505050505081526020016103a33373ffffffffffffffffffffffffffffffffffffffff166333f6832a886040518263ffffffff1660e01b815260040161035d91815260200190565b602060405180830381865afa15801561037a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039e9190610b62565b610470565b90526106df565b90506103b581610762565b6040516020016103c59190610b7b565b604051602081830303815290604052915050919050565b6060600080546103eb90610a0a565b80601f016020809104026020016040519081016040528092919081815260200182805461041790610a0a565b80156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b50505050509050919050565b604080516001808252818301909252606091816020015b6040805180820190915260608082526020820152815260200190600190039081610487579050509050816000036104fc5760408051600080825260208201909252906104f5565b60408051808201909152606080825260208201528152602001906001900390816104ce5790505b5092915050565b816001036105a65760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468652043686f73656e204f6e650000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b6020026020010181905250919050565b816002036106405760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f556e72657665616c6564000000000000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b816003036106da5760405180604001604052806040518060400160405280600481526020017f747970650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f556e72657665616c6564000000000000000000000000000000000000000000008152508152508160008151811061059657610596610bef565b919050565b6060600082600001518360200151846040015160405160200161070493929190610c1e565b6040516020818303038152906040529050808360600151846080015160405160200161073293929190610d38565b6040516020818303038152906040529050806107518460a001516108b5565b6040516020016103c5929190610e24565b6060815160000361078157505060408051602081019091526000815290565b60006040518060600160405280604081526020016110fb60409139905060006003845160026107b09190610ed0565b6107ba9190610ee9565b6107c5906004610f24565b67ffffffffffffffff8111156107dd576107dd610bc0565b6040519080825280601f01601f191660200182016040528015610807576020820181803683370190505b509050600182016020820185865187015b80821015610873576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610818565b505060038651066001811461088f57600281146108a2576108aa565b603d6001830353603d60028303536108aa565b603d60018303535b509195945050505050565b60408051602081019091526000808252606091905b83518110156104f557818482815181106108e6576108e6610bef565b60200260200101516000015185838151811061090457610904610bef565b60200260200101516020015160405160200161092293929190610f3b565b604051602081830303815290604052915060018451610941919061106e565b811461096a57816040516020016109589190611081565b60405160208183030381529060405291505b80610974816110c2565b9150506108ca565b60006020828403121561098e57600080fd5b5035919050565b60005b838110156109b0578181015183820152602001610998565b50506000910152565b60208152600082518060208401526109d8816040850160208701610995565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600181811c90821680610a1e57607f821691505b602082108103610a57577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000601a6000845481600182811c915080831680610a9f57607f831692505b60208084108203610ad7577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610aeb5760018114610b2257610b53565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616888b01528785151586028b01019650610b53565b60008b81526020902060005b86811015610b495781548c82018b0152908501908301610b2e565b505087858b010196505b50949998505050505050505050565b600060208284031215610b7457600080fd5b5051919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251610bb381601d850160208701610995565b91909101601d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20220000000000000000000000000000000000000000000000600182015260008451610c7c81600a850160208901610995565b80830190507f222c00000000000000000000000000000000000000000000000000000000000080600a8301527f226465736372697074696f6e223a202200000000000000000000000000000000600c8301528551610ce181601c850160208a01610995565b601c92019182018190527f22696d616765223a202200000000000000000000000000000000000000000000601e8301528451610d24816028850160208901610995565b6028920191820152602a0195945050505050565b60008451610d4a818460208901610995565b7f2265787465726e616c5f75726c223a20220000000000000000000000000000009083019081528451610d84816011840160208901610995565b8082019150507f222c0000000000000000000000000000000000000000000000000000000000008060118301527f226261636b67726f756e645f636f6c6f72223a2022000000000000000000000060138301528451610dea816028850160208901610995565b60289201918201527f2261747472696275746573223a205b0000000000000000000000000000000000602a82015260390195945050505050565b60008351610e36818460208801610995565b835190830190610e4a818360208801610995565b7f5d0000000000000000000000000000000000000000000000000000000000000091019081527f7d000000000000000000000000000000000000000000000000000000000000006001820152600201949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610ee357610ee3610ea1565b92915050565b600082610f1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082028115828204841417610ee357610ee3610ea1565b60008451610f4d818460208901610995565b7f7b000000000000000000000000000000000000000000000000000000000000009083019081527f2274726169745f74797065223a2022000000000000000000000000000000000060018201528451610fad816010840160208901610995565b7f222c000000000000000000000000000000000000000000000000000000000000601092909101918201527f2276616c7565223a2022000000000000000000000000000000000000000000006012820152835161101181601c840160208801610995565b7f2200000000000000000000000000000000000000000000000000000000000000601c92909101918201527f7d00000000000000000000000000000000000000000000000000000000000000601d820152601e0195945050505050565b81810381811115610ee357610ee3610ea1565b60008251611093818460208701610995565b7f2c00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110f3576110f3610ea1565b506001019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122014ba461218574b0d6973177f2d99ef44829952635f5c5be1382f37ee6cc7fe8564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000006c00000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000005b450484e325a79423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d636949485a705a58644362336739496a41674d43417a4d4441674d7a417749694277636d567a5a584a325a55467a6347566a64464a6864476c7650534a3454576c7557553170626942745a575630496a3438636d566a6443426f5a576c6e61485139496a4d774d43496764326c6b64476739496a4d774d4349675a6d6c7362443069596d7868593273694c7a3438636d566a64434234505349314d434967655430694d5451774969426f5a576c6e61485139496a49774969423361575230614430694d6a416949475a7062477739496d78706257566e636d566c6269492b50474675615731686447556759585230636d6c696458526c546d46745a543069636e676949485a686248566c637a30694d4473774f7a41374d6a41374d6a41374d6a41374d6a41374d6a41374d6a416949475231636a30694d6a427a496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7868626d6c745958526c49475231636a30694d6a427a496942686448527961574a316447564f5957316c50534a3261584e70596d6c736158523549694232595778315a584d39496e5a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f3268705a47526c626a746f6157526b5a57343761476c6b5a475675496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7776636d566a64443438636d566a64434234505349784e44416949486b39496a45304d434967614756705a326830505349794d43496764326c6b64476739496a49774969426d6157787350534a736157316c5a334a6c5a573469506a7868626d6c745958526c4947463064484a70596e56305a55356862575539496e4a3449694232595778315a584d39496a41374d4473774f7a41374d6a41374d6a41374d6a41374d6a41374d6a416949475231636a30694d6a427a496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7868626d6c745958526c49475231636a30694d6a427a496942686448527961574a316447564f5957316c50534a3261584e70596d6c736158523549694232595778315a584d39496d68705a47526c626a743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54746f6157526b5a57343761476c6b5a475675496942795a58426c5958524462335675644430696157356b5a575a70626d6c305a534976506a7776636d566a64443438636d566a64434234505349794d7a416949486b39496a45304d434967614756705a326830505349794d43496764326c6b64476739496a49774969426d6157787350534a736157316c5a334a6c5a573469506a7868626d6c745958526c4947463064484a70596e56305a55356862575539496e4a3449694232595778315a584d39496a41374d4473774f7a41374d4473794d4473794d4473794d4473794d4349675a485679505349794d484d6949484a6c6347566864454e766457353050534a70626d526c5a6d6c756158526c4969382b5047467561573168644755675a485679505349794d484d694947463064484a70596e56305a55356862575539496e5a7063326c696157787064486b6949485a686248566c637a306961476c6b5a4756754f3268705a47526c626a743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a61574a735a54746f6157526b5a57346949484a6c6347566864454e766457353050534a70626d526c5a6d6c756158526c4969382b504339795a574e30506a777663335a6e50673d3d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d544520427920556269000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019556269204b756272656b206973207761746368696e672e2e2e0000000000000000000000000000000000000000000000000000000000000000000000000000166f6e636861696e69737468656675747572652e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000072330303030303000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : base64Data_ (string): PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij48cmVjdCBoZWlnaHQ9IjMwMCIgd2lkdGg9IjMwMCIgZmlsbD0iYmxhY2siLz48cmVjdCB4PSI1MCIgeT0iMTQwIiBoZWlnaHQ9IjIwIiB3aWR0aD0iMjAiIGZpbGw9ImxpbWVncmVlbiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0icngiIHZhbHVlcz0iMDswOzA7MjA7MjA7MjA7MjA7MjA7MjAiIGR1cj0iMjBzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjxhbmltYXRlIGR1cj0iMjBzIiBhdHRyaWJ1dGVOYW1lPSJ2aXNpYmlsaXR5IiB2YWx1ZXM9InZpc2libGU7dmlzaWJsZTt2aXNpYmxlO3Zpc2libGU7dmlzaWJsZTt2aXNpYmxlO2hpZGRlbjtoaWRkZW47aGlkZGVuIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvcmVjdD48cmVjdCB4PSIxNDAiIHk9IjE0MCIgaGVpZ2h0PSIyMCIgd2lkdGg9IjIwIiBmaWxsPSJsaW1lZ3JlZW4iPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InJ4IiB2YWx1ZXM9IjA7MDswOzA7MjA7MjA7MjA7MjA7MjAiIGR1cj0iMjBzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjxhbmltYXRlIGR1cj0iMjBzIiBhdHRyaWJ1dGVOYW1lPSJ2aXNpYmlsaXR5IiB2YWx1ZXM9ImhpZGRlbjt2aXNpYmxlO3Zpc2libGU7dmlzaWJsZTt2aXNpYmxlO3Zpc2libGU7dmlzaWJsZTtoaWRkZW47aGlkZGVuIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvcmVjdD48cmVjdCB4PSIyMzAiIHk9IjE0MCIgaGVpZ2h0PSIyMCIgd2lkdGg9IjIwIiBmaWxsPSJsaW1lZ3JlZW4iPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InJ4IiB2YWx1ZXM9IjA7MDswOzA7MDsyMDsyMDsyMDsyMCIgZHVyPSIyMHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+PGFuaW1hdGUgZHVyPSIyMHMiIGF0dHJpYnV0ZU5hbWU9InZpc2liaWxpdHkiIHZhbHVlcz0iaGlkZGVuO2hpZGRlbjt2aXNpYmxlO3Zpc2libGU7dmlzaWJsZTt2aXNpYmxlO3Zpc2libGU7dmlzaWJsZTtoaWRkZW4iIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+PC9yZWN0Pjwvc3ZnPg==
Arg [1] : name_ (string): MTE By Ubi
Arg [2] : description_ (string): Ubi Kubrek is watching...
Arg [3] : external_url_ (string): onchainisthefuture.com
Arg [4] : background_color_ (string): #000000
-----Encoded View---------------
60 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000680
Arg [2] : 00000000000000000000000000000000000000000000000000000000000006c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000700
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000740
Arg [5] : 00000000000000000000000000000000000000000000000000000000000005b4
Arg [6] : 50484e325a79423462577875637a30696148523063446f764c33643364793533
Arg [7] : 4d793576636d63764d6a41774d43397a646d636949485a705a58644362336739
Arg [8] : 496a41674d43417a4d4441674d7a417749694277636d567a5a584a325a55467a
Arg [9] : 6347566a64464a6864476c7650534a3454576c7557553170626942745a575630
Arg [10] : 496a3438636d566a6443426f5a576c6e61485139496a4d774d43496764326c6b
Arg [11] : 64476739496a4d774d4349675a6d6c7362443069596d7868593273694c7a3438
Arg [12] : 636d566a64434234505349314d434967655430694d5451774969426f5a576c6e
Arg [13] : 61485139496a49774969423361575230614430694d6a416949475a7062477739
Arg [14] : 496d78706257566e636d566c6269492b50474675615731686447556759585230
Arg [15] : 636d6c696458526c546d46745a543069636e676949485a686248566c637a3069
Arg [16] : 4d4473774f7a41374d6a41374d6a41374d6a41374d6a41374d6a41374d6a4169
Arg [17] : 49475231636a30694d6a427a496942795a58426c595852446233567564443069
Arg [18] : 6157356b5a575a70626d6c305a534976506a7868626d6c745958526c49475231
Arg [19] : 636a30694d6a427a496942686448527961574a316447564f5957316c50534a32
Arg [20] : 61584e70596d6c736158523549694232595778315a584d39496e5a7063326c69
Arg [21] : 62475537646d6c7a61574a735a54743261584e70596d786c4f335a7063326c69
Arg [22] : 62475537646d6c7a61574a735a54743261584e70596d786c4f3268705a47526c
Arg [23] : 626a746f6157526b5a57343761476c6b5a475675496942795a58426c59585244
Arg [24] : 62335675644430696157356b5a575a70626d6c305a534976506a7776636d566a
Arg [25] : 64443438636d566a64434234505349784e44416949486b39496a45304d434967
Arg [26] : 614756705a326830505349794d43496764326c6b64476739496a49774969426d
Arg [27] : 6157787350534a736157316c5a334a6c5a573469506a7868626d6c745958526c
Arg [28] : 4947463064484a70596e56305a55356862575539496e4a344969423259577831
Arg [29] : 5a584d39496a41374d4473774f7a41374d6a41374d6a41374d6a41374d6a4137
Arg [30] : 4d6a416949475231636a30694d6a427a496942795a58426c5958524462335675
Arg [31] : 644430696157356b5a575a70626d6c305a534976506a7868626d6c745958526c
Arg [32] : 49475231636a30694d6a427a496942686448527961574a316447564f5957316c
Arg [33] : 50534a3261584e70596d6c736158523549694232595778315a584d39496d6870
Arg [34] : 5a47526c626a743261584e70596d786c4f335a7063326c6962475537646d6c7a
Arg [35] : 61574a735a54743261584e70596d786c4f335a7063326c6962475537646d6c7a
Arg [36] : 61574a735a54746f6157526b5a57343761476c6b5a475675496942795a58426c
Arg [37] : 5958524462335675644430696157356b5a575a70626d6c305a534976506a7776
Arg [38] : 636d566a64443438636d566a64434234505349794d7a416949486b39496a4530
Arg [39] : 4d434967614756705a326830505349794d43496764326c6b64476739496a4977
Arg [40] : 4969426d6157787350534a736157316c5a334a6c5a573469506a7868626d6c74
Arg [41] : 5958526c4947463064484a70596e56305a55356862575539496e4a3449694232
Arg [42] : 595778315a584d39496a41374d4473774f7a41374d4473794d4473794d447379
Arg [43] : 4d4473794d4349675a485679505349794d484d6949484a6c6347566864454e76
Arg [44] : 6457353050534a70626d526c5a6d6c756158526c4969382b5047467561573168
Arg [45] : 644755675a485679505349794d484d694947463064484a70596e56305a553568
Arg [46] : 62575539496e5a7063326c696157787064486b6949485a686248566c637a3069
Arg [47] : 61476c6b5a4756754f3268705a47526c626a743261584e70596d786c4f335a70
Arg [48] : 63326c6962475537646d6c7a61574a735a54743261584e70596d786c4f335a70
Arg [49] : 63326c6962475537646d6c7a61574a735a54746f6157526b5a57346949484a6c
Arg [50] : 6347566864454e766457353050534a70626d526c5a6d6c756158526c4969382b
Arg [51] : 504339795a574e30506a777663335a6e50673d3d000000000000000000000000
Arg [52] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [53] : 4d54452042792055626900000000000000000000000000000000000000000000
Arg [54] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [55] : 556269204b756272656b206973207761746368696e672e2e2e00000000000000
Arg [56] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [57] : 6f6e636861696e69737468656675747572652e636f6d00000000000000000000
Arg [58] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [59] : 2330303030303000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.