Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 160 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Metadata | 16221128 | 657 days ago | IN | 0 ETH | 0.00388746 | ||||
Create Metadata | 16221127 | 657 days ago | IN | 0 ETH | 0.0038881 | ||||
Create Metadata | 16221126 | 657 days ago | IN | 0 ETH | 0.00388702 | ||||
Create Metadata | 16221125 | 657 days ago | IN | 0 ETH | 0.00388681 | ||||
Create Metadata | 16221124 | 657 days ago | IN | 0 ETH | 0.00388854 | ||||
Create Metadata | 16221123 | 657 days ago | IN | 0 ETH | 0.00388767 | ||||
Create Metadata | 16221122 | 657 days ago | IN | 0 ETH | 0.00388875 | ||||
Create Metadata | 16221121 | 657 days ago | IN | 0 ETH | 0.00388854 | ||||
Create Metadata | 16221120 | 657 days ago | IN | 0 ETH | 0.00388789 | ||||
Create Metadata | 16221119 | 657 days ago | IN | 0 ETH | 0.0038881 | ||||
Create Metadata | 16221118 | 657 days ago | IN | 0 ETH | 0.00388702 | ||||
Create Metadata | 16221117 | 657 days ago | IN | 0 ETH | 0.00388702 | ||||
Create Metadata | 16221116 | 657 days ago | IN | 0 ETH | 0.00388681 | ||||
Create Metadata | 16221115 | 657 days ago | IN | 0 ETH | 0.00388702 | ||||
Create Metadata | 16221114 | 657 days ago | IN | 0 ETH | 0.00388616 | ||||
Create Metadata | 16221113 | 657 days ago | IN | 0 ETH | 0.00388746 | ||||
Create Metadata | 16221112 | 657 days ago | IN | 0 ETH | 0.00388789 | ||||
Create Metadata | 16221111 | 657 days ago | IN | 0 ETH | 0.00388638 | ||||
Create Metadata | 16221110 | 657 days ago | IN | 0 ETH | 0.00388681 | ||||
Create Metadata | 16221109 | 657 days ago | IN | 0 ETH | 0.00388724 | ||||
Create Metadata | 16221108 | 657 days ago | IN | 0 ETH | 0.00388746 | ||||
Create Metadata | 16221107 | 657 days ago | IN | 0 ETH | 0.00388789 | ||||
Create Metadata | 16221106 | 657 days ago | IN | 0 ETH | 0.00388854 | ||||
Create Metadata | 16221105 | 657 days ago | IN | 0 ETH | 0.0038881 | ||||
Create Metadata | 16221104 | 657 days ago | IN | 0 ETH | 0.00388789 |
Loading...
Loading
Contract Name:
AltariusMetadata
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 2500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./libs/Base64.sol"; /** * @title Altarius Metadata * * @dev This contract stores the metadata of the Altarius cards. * Metadata is stored on-chain, except for images. Only IPFS CID is stored for them. * * Full metadata is divided into 3 parts: * - Name: Stores the name of the card. * - Metadata: Stores card metadata to be used by other contracts. * - Images: Stores the IPFS CID of the images of the card. * * Type, rarity and edition strings are linked to their respective mappings for efficiency. */ contract AltariusMetadata is AccessControl { using Counters for Counters.Counter; struct Metadata { bool immortal; bool borderless; bool holographic; uint40 level; uint24 cardType; uint24 rarity; uint24 edition; uint24 moon; uint24 sun; uint24 swift; uint24 strong; uint24 sorcerous; } struct Images { bytes32 highCid1; bytes32 highCid2; bytes32 thumbnailCid1; bytes32 thumbnailCid2; bytes32 squareCid1; bytes32 squareCid2; } bytes32 public constant CREATOR_ROLE = keccak256("CREATOR_ROLE"); mapping(uint256 => bytes32) public cardTypes; Counters.Counter public cardTypeCounter; mapping(uint256 => bytes32) public rarities; Counters.Counter public rarityCounter; mapping(uint256 => bytes32) public editions; Counters.Counter public editionCounter; mapping(uint256 => Metadata) public tokensMetadata; mapping(uint256 => bytes32) public tokensName; mapping(uint256 => Images) public tokensImages; Counters.Counter public tokensMetadataCounter; event MetadataCreated(uint256 indexed id); constructor() { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); } function createCardType(bytes32 name) external onlyRole(CREATOR_ROLE) { cardTypes[cardTypeCounter.current()] = name; cardTypeCounter.increment(); } function createRarity(bytes32 name) external onlyRole(CREATOR_ROLE) { rarities[rarityCounter.current()] = name; rarityCounter.increment(); } function createEdition(bytes32 name) external onlyRole(CREATOR_ROLE) { editions[editionCounter.current()] = name; editionCounter.increment(); } function createMetadata( uint256 id, Metadata calldata metadata, bytes32 name, Images calldata images ) external onlyRole(CREATOR_ROLE) { tokensMetadataCounter.increment(); require(id == tokensMetadataCounter.current(), "Invalid id"); tokensMetadata[id] = metadata; tokensName[id] = name; tokensImages[id] = images; emit MetadataCreated(id); } function getMetadata( uint256 id ) external view returns (AltariusMetadata.Metadata memory) { return tokensMetadata[id]; } function getName(uint256 id) external view returns (bytes32) { return tokensName[id]; } function getImages( uint256 id ) external view returns (AltariusMetadata.Images memory) { return tokensImages[id]; } function getMetadataLength() external view returns (uint256) { return tokensMetadataCounter.current(); } function uri(uint256 id) external view returns (string memory) { Metadata memory metadata = tokensMetadata[id]; bytes32 name = tokensName[id]; Images memory images = tokensImages[id]; require(name.length > 0, "Metadata not found"); return _metadataUri(metadata, name, images); } function _metadataUri( Metadata memory metadata, bytes32 name, Images memory images ) private view returns (string memory) { string memory json = Base64.encode( bytes( string.concat( '{"name":"', _bytes32ToString(name), '","image": "ipfs://', string.concat( _bytes32ToString(images.highCid1), _bytes32ToString(images.highCid2) ), '","thumbnail": "ipfs://', string.concat( _bytes32ToString(images.thumbnailCid1), _bytes32ToString(images.thumbnailCid2) ), '","square": "ipfs://', string.concat( _bytes32ToString(images.squareCid1), _bytes32ToString(images.squareCid2) ), '",', _attributesUri(metadata), "}" ) ) ); return string.concat("data:application/json;base64,", json); } function _attributesUri( Metadata memory metadata ) private view returns (string memory) { return string.concat( '"attributes": [', _attributeUri( "Type", _bytes32ToString(cardTypes[metadata.cardType]), true, true ), _attributeUri( "Level", Strings.toString(metadata.level), false, true ), _attributeUri( "Rarity", _bytes32ToString(rarities[metadata.rarity]), true, true ), _attributeUri( "Edition", _bytes32ToString(editions[metadata.edition]), true, true ), _attributeUri( "Immortal", metadata.immortal ? "true" : "false", false, true ), _attributeUri( "Borderless", metadata.borderless ? "true" : "false", false, true ), _attributeUri( "Holographic", metadata.holographic ? "true" : "false", false, true ), _pipsUri(metadata), "]" ); } function _pipsUri( Metadata memory metadata ) private pure returns (string memory) { return string.concat( _attributeUri( "Moon", Strings.toString(metadata.moon), false, true ), _attributeUri( "Sun", Strings.toString(metadata.sun), false, true ), _attributeUri( "Swift", Strings.toString(metadata.swift), false, true ), _attributeUri( "Strong", Strings.toString(metadata.strong), false, true ), _attributeUri( "Sorcerous", Strings.toString(metadata.sorcerous), false, false ) ); } function _attributeUri( string memory traitType, string memory value, bool isString, bool trailingComma ) private pure returns (string memory) { return string.concat( '{"trait_type": "', traitType, '", "value": ', isString ? string.concat('"', value, '"') : value, "}", trailingComma ? "," : "" ); } function _bytes32ToString( bytes32 data ) private pure returns (string memory) { uint i = 0; while (i < 32 && uint8(data[i]) != 0) { ++i; } bytes memory result = new bytes(i); i = 0; while (i < 32 && data[i] != 0) { result[i] = data[i]; ++i; } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// 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 // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 2500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"MetadataCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"CREATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cardTypeCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardTypes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"createCardType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"createEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bool","name":"immortal","type":"bool"},{"internalType":"bool","name":"borderless","type":"bool"},{"internalType":"bool","name":"holographic","type":"bool"},{"internalType":"uint40","name":"level","type":"uint40"},{"internalType":"uint24","name":"cardType","type":"uint24"},{"internalType":"uint24","name":"rarity","type":"uint24"},{"internalType":"uint24","name":"edition","type":"uint24"},{"internalType":"uint24","name":"moon","type":"uint24"},{"internalType":"uint24","name":"sun","type":"uint24"},{"internalType":"uint24","name":"swift","type":"uint24"},{"internalType":"uint24","name":"strong","type":"uint24"},{"internalType":"uint24","name":"sorcerous","type":"uint24"}],"internalType":"struct AltariusMetadata.Metadata","name":"metadata","type":"tuple"},{"internalType":"bytes32","name":"name","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"highCid1","type":"bytes32"},{"internalType":"bytes32","name":"highCid2","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid1","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid2","type":"bytes32"},{"internalType":"bytes32","name":"squareCid1","type":"bytes32"},{"internalType":"bytes32","name":"squareCid2","type":"bytes32"}],"internalType":"struct AltariusMetadata.Images","name":"images","type":"tuple"}],"name":"createMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"createRarity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"editionCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"editions","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getImages","outputs":[{"components":[{"internalType":"bytes32","name":"highCid1","type":"bytes32"},{"internalType":"bytes32","name":"highCid2","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid1","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid2","type":"bytes32"},{"internalType":"bytes32","name":"squareCid1","type":"bytes32"},{"internalType":"bytes32","name":"squareCid2","type":"bytes32"}],"internalType":"struct AltariusMetadata.Images","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getMetadata","outputs":[{"components":[{"internalType":"bool","name":"immortal","type":"bool"},{"internalType":"bool","name":"borderless","type":"bool"},{"internalType":"bool","name":"holographic","type":"bool"},{"internalType":"uint40","name":"level","type":"uint40"},{"internalType":"uint24","name":"cardType","type":"uint24"},{"internalType":"uint24","name":"rarity","type":"uint24"},{"internalType":"uint24","name":"edition","type":"uint24"},{"internalType":"uint24","name":"moon","type":"uint24"},{"internalType":"uint24","name":"sun","type":"uint24"},{"internalType":"uint24","name":"swift","type":"uint24"},{"internalType":"uint24","name":"strong","type":"uint24"},{"internalType":"uint24","name":"sorcerous","type":"uint24"}],"internalType":"struct AltariusMetadata.Metadata","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetadataLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getName","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarities","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rarityCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensImages","outputs":[{"internalType":"bytes32","name":"highCid1","type":"bytes32"},{"internalType":"bytes32","name":"highCid2","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid1","type":"bytes32"},{"internalType":"bytes32","name":"thumbnailCid2","type":"bytes32"},{"internalType":"bytes32","name":"squareCid1","type":"bytes32"},{"internalType":"bytes32","name":"squareCid2","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensMetadata","outputs":[{"internalType":"bool","name":"immortal","type":"bool"},{"internalType":"bool","name":"borderless","type":"bool"},{"internalType":"bool","name":"holographic","type":"bool"},{"internalType":"uint40","name":"level","type":"uint40"},{"internalType":"uint24","name":"cardType","type":"uint24"},{"internalType":"uint24","name":"rarity","type":"uint24"},{"internalType":"uint24","name":"edition","type":"uint24"},{"internalType":"uint24","name":"moon","type":"uint24"},{"internalType":"uint24","name":"sun","type":"uint24"},{"internalType":"uint24","name":"swift","type":"uint24"},{"internalType":"uint24","name":"strong","type":"uint24"},{"internalType":"uint24","name":"sorcerous","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensMetadataCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensName","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001f60003362000025565b620000c6565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000813390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61296780620000d66000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80638168e7c2116100f9578063a87ae50911610097578063c6fbb71211610071578063c6fbb7121461082a578063d07bee2514610834578063d547741f14610847578063eaa6c0da1461085a57600080fd5b8063a87ae50914610691578063b438f1e21461069b578063be5eaaca146106bb57600080fd5b8063966447b8116100d3578063966447b8146104b95780639f9af1a6146104c1578063a217fddf146104d4578063a574cea4146104dc57600080fd5b80638168e7c21461043b5780638aeda25a1461044e57806391d148541461047557600080fd5b8063248a9ca3116101665780632f2ff15d116101405780632f2ff15d146103e057806336568abe146103f55780635f6ae0c9146104085780636b8ff5741461041b57600080fd5b8063248a9ca31461032d578063279c806e1461035057806329deb40b1461037057600080fd5b8063150aaf9d11610197578063150aaf9d1461021e57806317b8e1cf146102285780631b08413a1461024857600080fd5b806301ffc9a7146101be5780630c4fc2dd146101e65780630e89341c146101fe575b600080fd5b6101d16101cc366004611d0b565b61087a565b60405190151581526020015b60405180910390f35b6002546101f09081565b6040519081526020016101dd565b61021161020c366004611d4d565b610913565b6040516101dd9190611d8a565b600a546101f09081565b6101f0610236366004611d4d565b60036020526000908152604090205481565b6102e1610256366004611d4d565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915250600090815260096020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6040516101dd9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b6101f061033b366004611d4d565b60009081526020819052604090206001015490565b6101f061035e366004611d4d565b60056020526000908152604090205481565b6103b361037e366004611d4d565b600960205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016101dd565b6103f36103ee366004611dbd565b610ad0565b005b6103f3610403366004611dbd565b610afa565b6103f3610416366004611d4d565b610b93565b6101f0610429366004611d4d565b60009081526008602052604090205490565b6103f3610449366004611d4d565b610bea565b6101f07f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f81565b6101d1610483366004611dbd565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6101f0610c41565b6103f36104cf366004611d4d565b610c51565b6101f0600081565b6106846104ea366004611d4d565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905261016081019190915250600090815260076020908152604091829020825161018081018452905460ff8082161515835261010080830482161515948401949094526201000082041615159382019390935264ffffffffff6301000000840416606082015262ffffff680100000000000000008404811660808301526b0100000000000000000000008404811660a08301526e0100000000000000000000000000008404811660c0830152710100000000000000000000000000000000008404811660e083015274010000000000000000000000000000000000000000840481169282019290925277010000000000000000000000000000000000000000000000830482166101208201527a01000000000000000000000000000000000000000000000000000083048216610140820152600160e81b9092041661016082015290565b6040516101dd9190611e06565b6004546101f09081565b6101f06106a9366004611d4d565b60086020526000908152604090205481565b6107b46106c9366004611d4d565b60076020526000908152604090205460ff808216916101008104821691620100008204169064ffffffffff63010000008204169062ffffff6801000000000000000082048116916b01000000000000000000000081048216916e01000000000000000000000000000082048116917101000000000000000000000000000000000081048216917401000000000000000000000000000000000000000082048116917701000000000000000000000000000000000000000000000081048216917a0100000000000000000000000000000000000000000000000000008204811691600160e81b9004168c565b604080519c15158d529a151560208d0152981515998b019990995264ffffffffff90961660608a015262ffffff94851660808a015292841660a089015290831660c0880152821660e0870152811661010086015290811661012085015291821661014084015216610160820152610180016101dd565b6006546101f09081565b6103f3610842366004611ef0565b610ca8565b6103f3610855366004611dbd565b610dcd565b6101f0610868366004611d4d565b60016020526000908152604090205481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061090d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000818152600760209081526040808320815161018081018352905460ff80821615158352610100808304821615158487015262010000830490911615158385015264ffffffffff630100000083041660608481019190915262ffffff68010000000000000000840481166080808701919091526b0100000000000000000000008504821660a0808801919091526e0100000000000000000000000000008604831660c080890191909152710100000000000000000000000000000000008704841660e089015274010000000000000000000000000000000000000000870484169588019590955277010000000000000000000000000000000000000000000000860483166101208801527a01000000000000000000000000000000000000000000000000000086048316610140880152600160e81b9095049091166101608601528888526008875285882054600988529786902086519384018752805484526001810154978401979097526002870154958301959095526003860154828201526004860154948201949094526005909401549084015290929091610abc565b60405180910390fd5b610ac7838383610df2565b95945050505050565b600082815260208190526040902060010154610aeb81610f0b565b610af58383610f18565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610b855760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ab3565b610b8f8282610fea565b5050565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610bbd81610f0b565b8160036000610bcb60045490565b8152602081019190915260400160002055610b8f600480546001019055565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610c1481610f0b565b8160016000610c2260025490565b8152602081019190915260400160002055610b8f600280546001019055565b6000610c4c600a5490565b905090565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610c7b81610f0b565b8160056000610c8960065490565b8152602081019190915260400160002055610b8f600680546001019055565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610cd281610f0b565b610ce0600a80546001019055565b600a548514610d315760405162461bcd60e51b815260206004820152600a60248201527f496e76616c6964206964000000000000000000000000000000000000000000006044820152606401610ab3565b60008581526007602052604090208490610d4b8282611faa565b505060008581526008602090815260408083208690556009825280832085358155918501356001830155848101356002830155606085013560038301556080850135600483015560a08501356005909201919091555186917ffb2200027a50f8afba934f355c4562a80751d221a86d7e61d720050c6f44e81691a25050505050565b600082815260208190526040902060010154610de881610f0b565b610af58383610fea565b60606000610edf610e0285611083565b8451610e0d90611083565b610e1a8660200151611083565b604051602001610e2b929190612368565b604051602081830303815290604052610e478660400151611083565b610e548760600151611083565b604051602001610e65929190612368565b604051602081830303815290604052610e818760800151611083565b610e8e8860a00151611083565b604051602001610e9f929190612368565b604051602081830303815290604052610eb78a6111c4565b604051602001610ecb959493929190612397565b60405160208183030381529060405261152a565b905080604051602001610ef291906124f2565b6040516020818303038152906040529150509392505050565b610f15813361167d565b50565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610b8f5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091529020805460ff19166001179055610f8c3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610b8f5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060005b6020811080156110a957508281602081106110a5576110a5612537565b1a15155b156110be576110b781612563565b9050611088565b60008167ffffffffffffffff8111156110d9576110d961257d565b6040519080825280601f01601f191660200182016040528015611103576020820181803683370190505b509050600091505b602082108015611151575083826020811061112857611128612537565b1a60f81b7fff000000000000000000000000000000000000000000000000000000000000001615155b156111bd5783826020811061116857611168612537565b1a60f81b81838151811061117e5761117e612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506111b682612563565b915061110b565b9392505050565b606061122c6040518060400160405280600481526020017f547970650000000000000000000000000000000000000000000000000000000081525061122460016000866080015162ffffff16815260200190815260200160002054611083565b6001806116fd565b6112826040518060400160405280600581526020017f4c6576656c000000000000000000000000000000000000000000000000000000815250611279856060015164ffffffffff166117a8565b600060016116fd565b6112e06040518060400160405280600681526020017f5261726974790000000000000000000000000000000000000000000000000000815250611224600360008860a0015162ffffff16815260200190815260200160002054611083565b61133e6040518060400160405280600781526020017f45646974696f6e00000000000000000000000000000000000000000000000000815250611224600560008960c0015162ffffff16815260200190815260200160002054611083565b6113fa6040518060400160405280600881526020017f496d6d6f7274616c00000000000000000000000000000000000000000000000081525087600001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6040518060400160405280600481526020017f7472756500000000000000000000000000000000000000000000000000000000815250600060016116fd565b6114776040518060400160405280600a81526020017f426f726465726c6573730000000000000000000000000000000000000000000081525088602001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6114f46040518060400160405280600b81526020017f486f6c6f6772617068696300000000000000000000000000000000000000000081525089604001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6114fd89611848565b604051602001611514989796959493929190612593565b6040516020818303038152906040529050919050565b6060815160000361154957505060408051602081019091526000815290565b60006040518060600160405280604081526020016128f260409139905060006003845160026115789190612698565b61158291906126ab565b61158d9060046126cd565b67ffffffffffffffff8111156115a5576115a561257d565b6040519080825280601f01601f1916602001820160405280156115cf576020820181803683370190505b509050600182016020820185865187015b8082101561163b576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506115e0565b5050600386510660018114611657576002811461166a57611672565b603d6001830353603d6002830353611672565b603d60018303535b509195945050505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610b8f576116bb816119e1565b6116c6836020611a00565b6040516020016116d79291906126e4565b60408051601f198184030181529082905262461bcd60e51b8252610ab391600401611d8a565b6060848361170b578461172c565b8460405160200161171c9190612765565b6040516020818303038152906040525b83611746576040518060200160405280600081525061177d565b6040518060400160405280600181526020017f2c000000000000000000000000000000000000000000000000000000000000008152505b60405160200161178f939291906127af565b6040516020818303038152906040529050949350505050565b606060006117b583611c29565b600101905060008167ffffffffffffffff8111156117d5576117d561257d565b6040519080825280601f01601f1916602001820160405280156117ff576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461180957509392505050565b60606118956040518060400160405280600481526020017f4d6f6f6e000000000000000000000000000000000000000000000000000000008152506112798460e0015162ffffff166117a8565b6118e16040518060400160405280600381526020017f53756e000000000000000000000000000000000000000000000000000000000081525061127985610100015162ffffff166117a8565b61192d6040518060400160405280600581526020017f537769667400000000000000000000000000000000000000000000000000000081525061127986610120015162ffffff166117a8565b6119796040518060400160405280600681526020017f5374726f6e67000000000000000000000000000000000000000000000000000081525061127987610140015162ffffff166117a8565b6119cd6040518060400160405280600981526020017f536f726365726f757300000000000000000000000000000000000000000000008152506119c588610160015162ffffff166117a8565b6000806116fd565b60405160200161151495949392919061286f565b606061090d73ffffffffffffffffffffffffffffffffffffffff831660145b60606000611a0f8360026126cd565b611a1a906002612698565b67ffffffffffffffff811115611a3257611a3261257d565b6040519080825280601f01601f191660200182016040528015611a5c576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a9357611a93612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611af657611af6612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b328460026126cd565b611b3d906001612698565b90505b6001811115611bda577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611b7e57611b7e612537565b1a60f81b828281518110611b9457611b94612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93611bd3816128da565b9050611b40565b5083156111bd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ab3565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611c9e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611cbc57662386f26fc10000830492506010015b6305f5e1008310611cd4576305f5e100830492506008015b6127108310611ce857612710830492506004015b60648310611cfa576064830492506002015b600a831061090d5760010192915050565b600060208284031215611d1d57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146111bd57600080fd5b600060208284031215611d5f57600080fd5b5035919050565b60005b83811015611d81578181015183820152602001611d69565b50506000910152565b6020815260008251806020840152611da9816040850160208701611d66565b601f01601f19169190910160400192915050565b60008060408385031215611dd057600080fd5b82359150602083013573ffffffffffffffffffffffffffffffffffffffff81168114611dfb57600080fd5b809150509250929050565b81511515815261018081016020830151611e24602084018215159052565b506040830151611e38604084018215159052565b506060830151611e51606084018264ffffffffff169052565b506080830151611e68608084018262ffffff169052565b5060a0830151611e7f60a084018262ffffff169052565b5060c0830151611e9660c084018262ffffff169052565b5060e0830151611ead60e084018262ffffff169052565b506101008381015162ffffff9081169184019190915261012080850151821690840152610140808501518216908401526101609384015116929091019190915290565b600080600080848603610280811215611f0857600080fd5b85359450610180601f1982011215611f1f57600080fd5b6020860193506101a0860135925060c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4082011215611f5d57600080fd5b509295919450926101c0019150565b60008135801515811461090d57600080fd5b6000813564ffffffffff8116811461090d57600080fd5b6000813562ffffff8116811461090d57600080fd5b611fca611fb683611f6c565b825490151560ff1660ff1991909116178255565b612010611fd960208401611f6c565b8280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1691151560081b61ff0016919091179055565b61205761201f60408401611f6c565b8280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1691151560101b62ff000016919091179055565b61209f61206660608401611f7e565b82547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000ffffff1660189190911b67ffffffffff00000016178255565b6120ea6120ae60808401611f95565b82547fffffffffffffffffffffffffffffffffffffffffff000000ffffffffffffffff1660409190911b6affffff000000000000000016178255565b6121386120f960a08401611f95565b82547fffffffffffffffffffffffffffffffffffff000000ffffffffffffffffffffff1660589190911b6dffffff000000000000000000000016178255565b61218961214760c08401611f95565b82547fffffffffffffffffffffffffffffff000000ffffffffffffffffffffffffffff1660709190911b70ffffff000000000000000000000000000016178255565b6121dd61219860e08401611f95565b82547fffffffffffffffffffffffff000000ffffffffffffffffffffffffffffffffff1660889190911b73ffffff000000000000000000000000000000000016178255565b6122356121ed6101008401611f95565b82547fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff1660a09190911b76ffffff000000000000000000000000000000000000000016178255565b6122906122456101208401611f95565b82547fffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffffff1660b89190911b79ffffff000000000000000000000000000000000000000000000016178255565b6122ee6122a06101408401611f95565b82547fffffff000000ffffffffffffffffffffffffffffffffffffffffffffffffffff1660d09190911b7cffffff000000000000000000000000000000000000000000000000000016178255565b610b8f6122fe6101608401611f95565b82547cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660e89190911b7fffffff000000000000000000000000000000000000000000000000000000000016178255565b6000815161235e818560208601611d66565b9290920192915050565b6000835161237a818460208801611d66565b83519083019061238e818360208801611d66565b01949350505050565b7f7b226e616d65223a2200000000000000000000000000000000000000000000008152600086516123cf816009850160208b01611d66565b7f222c22696d616765223a2022697066733a2f2f00000000000000000000000000600991840191820152865161240c81601c840160208b01611d66565b7f222c227468756d626e61696c223a2022697066733a2f2f000000000000000000601c9290910191820152855161244a816033840160208a01611d66565b7f222c22737175617265223a2022697066733a2f2f000000000000000000000000603392909101918201528451612488816047840160208901611d66565b7f222c000000000000000000000000000000000000000000000000000000000000604792909101918201526124c0604982018561234c565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010198975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161252a81601d850160208701611d66565b91909101601d0192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982036125765761257661254d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b7f2261747472696275746573223a205b000000000000000000000000000000000081526000895160206125cc82600f8601838f01611d66565b8a51918401916125e281600f8501848f01611d66565b8a519201916125f781600f8501848e01611d66565b895192019161260c81600f8501848d01611d66565b885192019161262181600f8501848c01611d66565b875192019161263681600f8501848b01611d66565b865192019161264b81600f8501848a01611d66565b85519201600f01916126608184848901611d66565b7f5d000000000000000000000000000000000000000000000000000000000000009201918252506001019a9950505050505050505050565b8082018082111561090d5761090d61254d565b6000826126c857634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761090d5761090d61254d565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161271c816017850160208801611d66565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612759816028840160208801611d66565b01602801949350505050565b60007f2200000000000000000000000000000000000000000000000000000000000000808352835161279e816001860160208801611d66565b600193019283015250600201919050565b7f7b2274726169745f74797065223a2022000000000000000000000000000000008152600084516127e7816010850160208901611d66565b7f222c202276616c7565223a200000000000000000000000000000000000000000601091840191820152845161282481601c840160208901611d66565b7f7d00000000000000000000000000000000000000000000000000000000000000601c9290910191820152835161286281601d840160208801611d66565b01601d0195945050505050565b60008651612881818460208b01611d66565b865190830190612895818360208b01611d66565b86519101906128a8818360208a01611d66565b85519101906128bb818360208901611d66565b84519101906128ce818360208801611d66565b01979650505050505050565b6000816128e9576128e961254d565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220222d8a47666c2ab5132138094b3ec0d727c1d876a65a577cbf49c851ec0b9f6964736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80638168e7c2116100f9578063a87ae50911610097578063c6fbb71211610071578063c6fbb7121461082a578063d07bee2514610834578063d547741f14610847578063eaa6c0da1461085a57600080fd5b8063a87ae50914610691578063b438f1e21461069b578063be5eaaca146106bb57600080fd5b8063966447b8116100d3578063966447b8146104b95780639f9af1a6146104c1578063a217fddf146104d4578063a574cea4146104dc57600080fd5b80638168e7c21461043b5780638aeda25a1461044e57806391d148541461047557600080fd5b8063248a9ca3116101665780632f2ff15d116101405780632f2ff15d146103e057806336568abe146103f55780635f6ae0c9146104085780636b8ff5741461041b57600080fd5b8063248a9ca31461032d578063279c806e1461035057806329deb40b1461037057600080fd5b8063150aaf9d11610197578063150aaf9d1461021e57806317b8e1cf146102285780631b08413a1461024857600080fd5b806301ffc9a7146101be5780630c4fc2dd146101e65780630e89341c146101fe575b600080fd5b6101d16101cc366004611d0b565b61087a565b60405190151581526020015b60405180910390f35b6002546101f09081565b6040519081526020016101dd565b61021161020c366004611d4d565b610913565b6040516101dd9190611d8a565b600a546101f09081565b6101f0610236366004611d4d565b60036020526000908152604090205481565b6102e1610256366004611d4d565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915250600090815260096020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6040516101dd9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b6101f061033b366004611d4d565b60009081526020819052604090206001015490565b6101f061035e366004611d4d565b60056020526000908152604090205481565b6103b361037e366004611d4d565b600960205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016101dd565b6103f36103ee366004611dbd565b610ad0565b005b6103f3610403366004611dbd565b610afa565b6103f3610416366004611d4d565b610b93565b6101f0610429366004611d4d565b60009081526008602052604090205490565b6103f3610449366004611d4d565b610bea565b6101f07f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f81565b6101d1610483366004611dbd565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6101f0610c41565b6103f36104cf366004611d4d565b610c51565b6101f0600081565b6106846104ea366004611d4d565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905261016081019190915250600090815260076020908152604091829020825161018081018452905460ff8082161515835261010080830482161515948401949094526201000082041615159382019390935264ffffffffff6301000000840416606082015262ffffff680100000000000000008404811660808301526b0100000000000000000000008404811660a08301526e0100000000000000000000000000008404811660c0830152710100000000000000000000000000000000008404811660e083015274010000000000000000000000000000000000000000840481169282019290925277010000000000000000000000000000000000000000000000830482166101208201527a01000000000000000000000000000000000000000000000000000083048216610140820152600160e81b9092041661016082015290565b6040516101dd9190611e06565b6004546101f09081565b6101f06106a9366004611d4d565b60086020526000908152604090205481565b6107b46106c9366004611d4d565b60076020526000908152604090205460ff808216916101008104821691620100008204169064ffffffffff63010000008204169062ffffff6801000000000000000082048116916b01000000000000000000000081048216916e01000000000000000000000000000082048116917101000000000000000000000000000000000081048216917401000000000000000000000000000000000000000082048116917701000000000000000000000000000000000000000000000081048216917a0100000000000000000000000000000000000000000000000000008204811691600160e81b9004168c565b604080519c15158d529a151560208d0152981515998b019990995264ffffffffff90961660608a015262ffffff94851660808a015292841660a089015290831660c0880152821660e0870152811661010086015290811661012085015291821661014084015216610160820152610180016101dd565b6006546101f09081565b6103f3610842366004611ef0565b610ca8565b6103f3610855366004611dbd565b610dcd565b6101f0610868366004611d4d565b60016020526000908152604090205481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061090d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000818152600760209081526040808320815161018081018352905460ff80821615158352610100808304821615158487015262010000830490911615158385015264ffffffffff630100000083041660608481019190915262ffffff68010000000000000000840481166080808701919091526b0100000000000000000000008504821660a0808801919091526e0100000000000000000000000000008604831660c080890191909152710100000000000000000000000000000000008704841660e089015274010000000000000000000000000000000000000000870484169588019590955277010000000000000000000000000000000000000000000000860483166101208801527a01000000000000000000000000000000000000000000000000000086048316610140880152600160e81b9095049091166101608601528888526008875285882054600988529786902086519384018752805484526001810154978401979097526002870154958301959095526003860154828201526004860154948201949094526005909401549084015290929091610abc565b60405180910390fd5b610ac7838383610df2565b95945050505050565b600082815260208190526040902060010154610aeb81610f0b565b610af58383610f18565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610b855760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ab3565b610b8f8282610fea565b5050565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610bbd81610f0b565b8160036000610bcb60045490565b8152602081019190915260400160002055610b8f600480546001019055565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610c1481610f0b565b8160016000610c2260025490565b8152602081019190915260400160002055610b8f600280546001019055565b6000610c4c600a5490565b905090565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610c7b81610f0b565b8160056000610c8960065490565b8152602081019190915260400160002055610b8f600680546001019055565b7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f610cd281610f0b565b610ce0600a80546001019055565b600a548514610d315760405162461bcd60e51b815260206004820152600a60248201527f496e76616c6964206964000000000000000000000000000000000000000000006044820152606401610ab3565b60008581526007602052604090208490610d4b8282611faa565b505060008581526008602090815260408083208690556009825280832085358155918501356001830155848101356002830155606085013560038301556080850135600483015560a08501356005909201919091555186917ffb2200027a50f8afba934f355c4562a80751d221a86d7e61d720050c6f44e81691a25050505050565b600082815260208190526040902060010154610de881610f0b565b610af58383610fea565b60606000610edf610e0285611083565b8451610e0d90611083565b610e1a8660200151611083565b604051602001610e2b929190612368565b604051602081830303815290604052610e478660400151611083565b610e548760600151611083565b604051602001610e65929190612368565b604051602081830303815290604052610e818760800151611083565b610e8e8860a00151611083565b604051602001610e9f929190612368565b604051602081830303815290604052610eb78a6111c4565b604051602001610ecb959493929190612397565b60405160208183030381529060405261152a565b905080604051602001610ef291906124f2565b6040516020818303038152906040529150509392505050565b610f15813361167d565b50565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610b8f5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091529020805460ff19166001179055610f8c3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610b8f5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060005b6020811080156110a957508281602081106110a5576110a5612537565b1a15155b156110be576110b781612563565b9050611088565b60008167ffffffffffffffff8111156110d9576110d961257d565b6040519080825280601f01601f191660200182016040528015611103576020820181803683370190505b509050600091505b602082108015611151575083826020811061112857611128612537565b1a60f81b7fff000000000000000000000000000000000000000000000000000000000000001615155b156111bd5783826020811061116857611168612537565b1a60f81b81838151811061117e5761117e612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506111b682612563565b915061110b565b9392505050565b606061122c6040518060400160405280600481526020017f547970650000000000000000000000000000000000000000000000000000000081525061122460016000866080015162ffffff16815260200190815260200160002054611083565b6001806116fd565b6112826040518060400160405280600581526020017f4c6576656c000000000000000000000000000000000000000000000000000000815250611279856060015164ffffffffff166117a8565b600060016116fd565b6112e06040518060400160405280600681526020017f5261726974790000000000000000000000000000000000000000000000000000815250611224600360008860a0015162ffffff16815260200190815260200160002054611083565b61133e6040518060400160405280600781526020017f45646974696f6e00000000000000000000000000000000000000000000000000815250611224600560008960c0015162ffffff16815260200190815260200160002054611083565b6113fa6040518060400160405280600881526020017f496d6d6f7274616c00000000000000000000000000000000000000000000000081525087600001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6040518060400160405280600481526020017f7472756500000000000000000000000000000000000000000000000000000000815250600060016116fd565b6114776040518060400160405280600a81526020017f426f726465726c6573730000000000000000000000000000000000000000000081525088602001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6114f46040518060400160405280600b81526020017f486f6c6f6772617068696300000000000000000000000000000000000000000081525089604001516113bb576040518060400160405280600581526020017f66616c7365000000000000000000000000000000000000000000000000000000815250611279565b6114fd89611848565b604051602001611514989796959493929190612593565b6040516020818303038152906040529050919050565b6060815160000361154957505060408051602081019091526000815290565b60006040518060600160405280604081526020016128f260409139905060006003845160026115789190612698565b61158291906126ab565b61158d9060046126cd565b67ffffffffffffffff8111156115a5576115a561257d565b6040519080825280601f01601f1916602001820160405280156115cf576020820181803683370190505b509050600182016020820185865187015b8082101561163b576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506115e0565b5050600386510660018114611657576002811461166a57611672565b603d6001830353603d6002830353611672565b603d60018303535b509195945050505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610b8f576116bb816119e1565b6116c6836020611a00565b6040516020016116d79291906126e4565b60408051601f198184030181529082905262461bcd60e51b8252610ab391600401611d8a565b6060848361170b578461172c565b8460405160200161171c9190612765565b6040516020818303038152906040525b83611746576040518060200160405280600081525061177d565b6040518060400160405280600181526020017f2c000000000000000000000000000000000000000000000000000000000000008152505b60405160200161178f939291906127af565b6040516020818303038152906040529050949350505050565b606060006117b583611c29565b600101905060008167ffffffffffffffff8111156117d5576117d561257d565b6040519080825280601f01601f1916602001820160405280156117ff576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461180957509392505050565b60606118956040518060400160405280600481526020017f4d6f6f6e000000000000000000000000000000000000000000000000000000008152506112798460e0015162ffffff166117a8565b6118e16040518060400160405280600381526020017f53756e000000000000000000000000000000000000000000000000000000000081525061127985610100015162ffffff166117a8565b61192d6040518060400160405280600581526020017f537769667400000000000000000000000000000000000000000000000000000081525061127986610120015162ffffff166117a8565b6119796040518060400160405280600681526020017f5374726f6e67000000000000000000000000000000000000000000000000000081525061127987610140015162ffffff166117a8565b6119cd6040518060400160405280600981526020017f536f726365726f757300000000000000000000000000000000000000000000008152506119c588610160015162ffffff166117a8565b6000806116fd565b60405160200161151495949392919061286f565b606061090d73ffffffffffffffffffffffffffffffffffffffff831660145b60606000611a0f8360026126cd565b611a1a906002612698565b67ffffffffffffffff811115611a3257611a3261257d565b6040519080825280601f01601f191660200182016040528015611a5c576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a9357611a93612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611af657611af6612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b328460026126cd565b611b3d906001612698565b90505b6001811115611bda577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611b7e57611b7e612537565b1a60f81b828281518110611b9457611b94612537565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93611bd3816128da565b9050611b40565b5083156111bd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ab3565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611c9e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611cbc57662386f26fc10000830492506010015b6305f5e1008310611cd4576305f5e100830492506008015b6127108310611ce857612710830492506004015b60648310611cfa576064830492506002015b600a831061090d5760010192915050565b600060208284031215611d1d57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146111bd57600080fd5b600060208284031215611d5f57600080fd5b5035919050565b60005b83811015611d81578181015183820152602001611d69565b50506000910152565b6020815260008251806020840152611da9816040850160208701611d66565b601f01601f19169190910160400192915050565b60008060408385031215611dd057600080fd5b82359150602083013573ffffffffffffffffffffffffffffffffffffffff81168114611dfb57600080fd5b809150509250929050565b81511515815261018081016020830151611e24602084018215159052565b506040830151611e38604084018215159052565b506060830151611e51606084018264ffffffffff169052565b506080830151611e68608084018262ffffff169052565b5060a0830151611e7f60a084018262ffffff169052565b5060c0830151611e9660c084018262ffffff169052565b5060e0830151611ead60e084018262ffffff169052565b506101008381015162ffffff9081169184019190915261012080850151821690840152610140808501518216908401526101609384015116929091019190915290565b600080600080848603610280811215611f0857600080fd5b85359450610180601f1982011215611f1f57600080fd5b6020860193506101a0860135925060c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4082011215611f5d57600080fd5b509295919450926101c0019150565b60008135801515811461090d57600080fd5b6000813564ffffffffff8116811461090d57600080fd5b6000813562ffffff8116811461090d57600080fd5b611fca611fb683611f6c565b825490151560ff1660ff1991909116178255565b612010611fd960208401611f6c565b8280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1691151560081b61ff0016919091179055565b61205761201f60408401611f6c565b8280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1691151560101b62ff000016919091179055565b61209f61206660608401611f7e565b82547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000ffffff1660189190911b67ffffffffff00000016178255565b6120ea6120ae60808401611f95565b82547fffffffffffffffffffffffffffffffffffffffffff000000ffffffffffffffff1660409190911b6affffff000000000000000016178255565b6121386120f960a08401611f95565b82547fffffffffffffffffffffffffffffffffffff000000ffffffffffffffffffffff1660589190911b6dffffff000000000000000000000016178255565b61218961214760c08401611f95565b82547fffffffffffffffffffffffffffffff000000ffffffffffffffffffffffffffff1660709190911b70ffffff000000000000000000000000000016178255565b6121dd61219860e08401611f95565b82547fffffffffffffffffffffffff000000ffffffffffffffffffffffffffffffffff1660889190911b73ffffff000000000000000000000000000000000016178255565b6122356121ed6101008401611f95565b82547fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff1660a09190911b76ffffff000000000000000000000000000000000000000016178255565b6122906122456101208401611f95565b82547fffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffffff1660b89190911b79ffffff000000000000000000000000000000000000000000000016178255565b6122ee6122a06101408401611f95565b82547fffffff000000ffffffffffffffffffffffffffffffffffffffffffffffffffff1660d09190911b7cffffff000000000000000000000000000000000000000000000000000016178255565b610b8f6122fe6101608401611f95565b82547cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660e89190911b7fffffff000000000000000000000000000000000000000000000000000000000016178255565b6000815161235e818560208601611d66565b9290920192915050565b6000835161237a818460208801611d66565b83519083019061238e818360208801611d66565b01949350505050565b7f7b226e616d65223a2200000000000000000000000000000000000000000000008152600086516123cf816009850160208b01611d66565b7f222c22696d616765223a2022697066733a2f2f00000000000000000000000000600991840191820152865161240c81601c840160208b01611d66565b7f222c227468756d626e61696c223a2022697066733a2f2f000000000000000000601c9290910191820152855161244a816033840160208a01611d66565b7f222c22737175617265223a2022697066733a2f2f000000000000000000000000603392909101918201528451612488816047840160208901611d66565b7f222c000000000000000000000000000000000000000000000000000000000000604792909101918201526124c0604982018561234c565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010198975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161252a81601d850160208701611d66565b91909101601d0192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982036125765761257661254d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b7f2261747472696275746573223a205b000000000000000000000000000000000081526000895160206125cc82600f8601838f01611d66565b8a51918401916125e281600f8501848f01611d66565b8a519201916125f781600f8501848e01611d66565b895192019161260c81600f8501848d01611d66565b885192019161262181600f8501848c01611d66565b875192019161263681600f8501848b01611d66565b865192019161264b81600f8501848a01611d66565b85519201600f01916126608184848901611d66565b7f5d000000000000000000000000000000000000000000000000000000000000009201918252506001019a9950505050505050505050565b8082018082111561090d5761090d61254d565b6000826126c857634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761090d5761090d61254d565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161271c816017850160208801611d66565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612759816028840160208801611d66565b01602801949350505050565b60007f2200000000000000000000000000000000000000000000000000000000000000808352835161279e816001860160208801611d66565b600193019283015250600201919050565b7f7b2274726169745f74797065223a2022000000000000000000000000000000008152600084516127e7816010850160208901611d66565b7f222c202276616c7565223a200000000000000000000000000000000000000000601091840191820152845161282481601c840160208901611d66565b7f7d00000000000000000000000000000000000000000000000000000000000000601c9290910191820152835161286281601d840160208801611d66565b01601d0195945050505050565b60008651612881818460208b01611d66565b865190830190612895818360208b01611d66565b86519101906128a8818360208a01611d66565b85519101906128bb818360208901611d66565b84519101906128ce818360208801611d66565b01979650505050505050565b6000816128e9576128e961254d565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220222d8a47666c2ab5132138094b3ec0d727c1d876a65a577cbf49c851ec0b9f6964736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.