Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
791129 | 69 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
GameRegistry
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import {GAME_LOGIC_CONTRACT_ROLE, MANAGER_ROLE, DEPLOYER_ROLE, PAUSER_ROLE, MINTER_ROLE} from "../constants/RoleConstants.sol"; import "./IGameRegistry.sol"; /** @title Contract to track and limit access by accounts in the same block */ contract GameRegistry is AccessControl, Ownable, Pausable, IGameRegistry { /** MEMBERS **/ /// @notice System registry mapping(uint256 => address) private _systemRegistry; /** EVENTS **/ /// @notice Emitted when a System address is registered event SystemRegistered(uint256 indexed id, address indexed systemAddress); /** ERRORS **/ /// @notice Not authorized to perform action error MissingRole(address account, bytes32 expectedRole); /** SETUP **/ constructor(address admin) Ownable() // Call Ownable constructor AccessControl() // Call AccessControl constructor Pausable() // Call Pausable constructor { _initialize(admin); } /** * Initializer for this upgradeable contract */ function _initialize(address admin) internal { // Move ownership to deployer _transferOwnership(admin); // Give admin access role to owner _grantRole(DEFAULT_ADMIN_ROLE, admin); _grantRole(GAME_LOGIC_CONTRACT_ROLE, admin); _grantRole(MANAGER_ROLE, admin); _grantRole(MINTER_ROLE, admin); _grantRole(DEPLOYER_ROLE, admin); _grantRole(PAUSER_ROLE, admin); _setRoleAdmin(PAUSER_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(MINTER_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(MANAGER_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(DEPLOYER_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(GAME_LOGIC_CONTRACT_ROLE, DEFAULT_ADMIN_ROLE); _pause(); } /** EXTERNAL **/ /** * Pause/Unpause the game and ALL the systems that utilize this game * * @param _paused Whether or pause or unpause */ function setPaused(bool _paused) external { if (msg.sender == owner() || hasRole(PAUSER_ROLE, msg.sender)) { if (_paused) { _pause(); } else { _unpause(); } } else { revert MissingRole(msg.sender, PAUSER_ROLE); } } /** * @inheritdoc IGameRegistry */ function paused() public view override(IGameRegistry, Pausable) returns (bool) { return Pausable.paused(); } /** * @inheritdoc IGameRegistry */ function registerSystem( uint256 systemId, address systemAddress, bool isGameLogicContract ) external onlyRole(DEPLOYER_ROLE) { _systemRegistry[systemId] = systemAddress; if (isGameLogicContract) { _grantRole(GAME_LOGIC_CONTRACT_ROLE, systemAddress); } emit SystemRegistered(systemId, systemAddress); } /** * @inheritdoc IGameRegistry */ function getSystem(uint256 systemId) external view returns (address) { return _systemRegistry[systemId]; } /** * @inheritdoc IERC165 */ function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, AccessControl) returns (bool) { return interfaceId == type(IGameRegistry).interfaceId || interfaceId == type(IERC165).interfaceId || AccessControl.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasAccessRole( bytes32 role, address account ) public view override returns (bool) { return AccessControl.hasRole(role, account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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 (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; // Pauser Role - Can pause the game bytes32 constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); // Minter Role - Can mint items, NFTs, and ERC20 currency bytes32 constant MINTER_ROLE = keccak256("MINTER_ROLE"); // Manager Role - Can manage the shop, loot tables, and other game data bytes32 constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); // Depoloyer Role - Can Deploy new Systems bytes32 constant DEPLOYER_ROLE = keccak256("DEPLOYER_ROLE"); // Game Logic Contract - Contract that executes game logic and accesses other systems bytes32 constant GAME_LOGIC_CONTRACT_ROLE = keccak256("GAME_LOGIC_CONTRACT_ROLE"); // For functions callable from game server bytes32 constant SERVER_JUDGE_ROLE = keccak256("SERVER_JUDGE_ROLE");
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; // @title Interface the game's ACL / Management Layer interface IGameRegistry is IERC165 { /** * @dev Returns `true` if `account` has been granted `role`. * @param role The role to query * @param account The address to query */ function hasAccessRole( bytes32 role, address account ) external view returns (bool); /** * @return Whether or not the registry is paused */ function paused() external view returns (bool); /** * Registers a system by id * * @param systemId Id of the system * @param systemAddress Address of the system contract */ function registerSystem(uint256 systemId, address systemAddress, bool isGameLogicContract) external; /** * @param systemId Id of the system * @return System based on an id */ function getSystem(uint256 systemId) external view returns (address); }
// 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 (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 (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 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); } } }
{ "viaIR": false, "codegen": "yul", "remappings": [ "@limitbreak/creator-token-standards/=lib/creator-token-standards/", "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "murky/=lib/murky/src/", "erc721a/=lib/ERC721A/", "@creator-token-standards/=lib/creator-token-standards/src/", "@limitbreak/permit-c/=lib/creator-token-standards/lib/PermitC/src/", "@opensea/tstorish/=lib/creator-token-standards/lib/tstorish/src/", "@rari-capital/solmate/=lib/creator-token-standards/lib/PermitC/lib/solmate/", "ERC721A/=lib/ERC721A/contracts/", "PermitC/=lib/creator-token-standards/lib/PermitC/", "creator-token-standards/=lib/creator-token-standards/", "erc4626-tests/=lib/murky/lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-gas-metering/=lib/creator-token-standards/lib/PermitC/lib/forge-gas-metering/", "forge-zksync-std/=lib/forge-zksync-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/creator-token-standards/lib/PermitC/lib/openzeppelin-contracts/contracts/", "solady/=lib/creator-token-standards/lib/PermitC/lib/forge-gas-metering/lib/solady/", "solmate/=lib/creator-token-standards/lib/PermitC/lib/solmate/src/", "tstorish/=lib/creator-token-standards/lib/tstorish/src/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "optimizer": { "enabled": true, "mode": "3", "fallback_to_optimizing_for_size": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"expectedRole","type":"bytes32"}],"name":"MissingRole","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"systemAddress","type":"address"}],"name":"SystemRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","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":"uint256","name":"systemId","type":"uint256"}],"name":"getSystem","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"hasAccessRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"systemId","type":"uint256"},{"internalType":"address","name":"systemAddress","type":"address"},{"internalType":"bool","name":"isGameLogicContract","type":"bool"}],"name":"registerSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"bool","name":"_paused","type":"bool"}],"name":"setPaused","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010002195456b1825f16c7fbc5c69b5c7b0a16f2ab9c29a8ce5e6df06d88038800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f62dceddd3a9aa9239f068a6dcd7a08c95d903d0
Deployed Bytecode
0x0002000000000002000300000000000200010000000103550000006003100270000001bd0030019d000001bd0330019700000001002001900000001d0000c13d0000008002000039000000400020043f000000040030008c000004690000413d000000000201043b000000e002200270000001de0020009c0000020b0000a13d000001df0020009c000002240000213d000001e50020009c000002400000213d000001e80020009c000002900000613d000001e90020009c000004690000c13d0000000001000416000000000001004b000004690000c13d00000001010000390000039a0000013d0000000002000416000000000002004b000004690000c13d0000001f02300039000001be022001970000008002200039000000400020043f0000001f0430018f000001bf0530019800000080025000390000002e0000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b0000002a0000c13d000000000004004b0000003b0000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c000004690000413d000000800100043d000300000001001d000001c00010009c000004690000213d0000000001000411000001c0061001970000000103000039000000000103041a000001c102100197000000000262019f000000000023041b0000000002000414000001c005100197000001bd0020009c000001bd02008041000000c001200210000001c2011001c70000800d020000390000000303000039000001c30400004106f006e60000040f0000000100200190000004690000613d0000000301000029000001c0061001970000000103000039000000000103041a000001c402100197000000000262019f000000000023041b0000000002000414000001c005100197000001bd0020009c000001bd02008041000000c001200210000001c2011001c70000800d020000390000000303000039000001c304000041000300000006001d06f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001c501000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000000990000c13d0000000301000029000000000010043f000001c501000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c70400004100000000050000190000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001c801000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000000ca0000c13d0000000301000029000000000010043f000001c801000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001c9050000410000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001ca01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000000fb0000c13d0000000301000029000000000010043f000001ca01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001cb050000410000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001cc01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff001001900000012c0000c13d0000000301000029000000000010043f000001cc01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001cd050000410000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001ce01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff001001900000015d0000c13d0000000301000029000000000010043f000001ce01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001cf050000410000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000301000029000000000010043f000001d001000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff001001900000018e0000c13d0000000301000029000000000010043f000001d001000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001d1050000410000000306000029000000000700041106f006e60000040f0000000100200190000004690000613d000001d201000041000000000601041a000001d102000041000000000020043f000000200000043f000000000001041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001d304000041000001d105000041000000000700001906f006e60000040f0000000100200190000004690000613d000001d401000041000000000601041a000001cd02000041000000000020043f000000200000043f000000000001041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001d304000041000001cd05000041000000000700001906f006e60000040f0000000100200190000004690000613d000001d501000041000000000601041a000001cb02000041000000000020043f000000200000043f000000000001041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001d304000041000001cb05000041000000000700001906f006e60000040f0000000100200190000004690000613d000001d601000041000000000601041a000001cf02000041000000000020043f000000200000043f000000000001041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001d304000041000001cf05000041000000000700001906f006e60000040f0000000100200190000004690000613d000001d701000041000000000601041a000001c902000041000000000020043f000000200000043f000000000001041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001d304000041000001c905000041000000000700001906f006e60000040f0000000100200190000004690000613d0000000101000039000000000101041a000001d800100198000003f30000c13d000001d901100197000001da011001c70000000103000039000000000013041b000000400100043d00000000020004110000000000210435000001bd0010009c000001bd0100804100000040011002100000000002000414000001bd0020009c000001bd02008041000000c002200210000000000112019f000001db011001c70000800d02000039000001dc0400004106f006e60000040f0000000100200190000004690000613d000000200100003900000100001004430000012000000443000001dd01000041000006f10001042e000001ea0020009c0000022b0000a13d000001eb0020009c0000024a0000213d000001ee0020009c000002a50000613d000001ef0020009c000004690000c13d000000440030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000002402100370000000000302043b000001c00030009c000004690000213d0000000002000411000000000023004b000003c70000c13d0000000401100370000000000101043b06f005e60000040f0000000001000019000006f10001042e000001e00020009c000002550000213d000001e30020009c000003070000613d000001e40020009c000002760000613d000004690000013d000001f00020009c0000034d0000613d000001f10020009c000003600000613d000001f20020009c000004690000c13d000000240030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000401100370000000000101043b06f004ff0000040f000000400200043d0000000000120435000001bd0020009c000001bd020080410000004001200210000001ff011001c7000006f10001042e000001e60020009c000002760000613d000001e70020009c000004690000c13d0000000001000416000000000001004b000004690000c13d000000800000043f000001f701000041000006f10001042e000001ec0020009c0000038f0000613d000001ed0020009c000004690000c13d0000000001000416000000000001004b000004690000c13d0000000101000039000000000101041a000001d8001001980000028b0000013d000001e10020009c0000039f0000613d000001e20020009c000004690000c13d000000240030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000401100370000000000201043b000001c00020009c000004690000213d0000000101000039000000000301041a000001c0043001970000000005000411000000000054004b000003b30000c13d000001c006200198000003e70000c13d000001f301000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f000001f401000041000000c40010043f000001f501000041000000e40010043f000001f601000041000006f200010430000000440030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000002402100370000000000202043b000300000002001d000001c00020009c000004690000213d0000000401100370000000000101043b000000000010043f000000200000043f06f006d90000040f0000000302000029000000000020043f000000200010043f06f006d90000040f000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f000001f701000041000006f10001042e0000000001000416000000000001004b000004690000c13d0000000101000039000000000201041a000001c0032001970000000005000411000000000053004b000003b30000c13d000001c102200197000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000303000039000001c3040000410000000006000019000004120000013d000000440030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000402100370000000000202043b000300000002001d0000002401100370000000000101043b000200000001001d000001c00010009c000004690000213d0000000301000029000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b0000000101100039000000000101041a06f005100000040f0000000301000029000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b0000000202000029000000000020043f000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000004150000c13d0000000301000029000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b0000000202000029000000000020043f000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d0200003900000004030000390000000007000411000001c704000041000004640000013d000000640030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000402100370000000000202043b000300000002001d0000002402100370000000000202043b000200000002001d000001c00020009c000004690000213d0000004401100370000000000201043b000000000002004b0000000001000039000000010100c039000100000002001d000000000012004b000004690000c13d0000000001000411000001c001100197000000000010043f000001ce01000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000004170000c13d000000000100041106f006470000040f000200000001001d000001cf0100004106f006900000040f000000400d00043d000000200cd00039000001f90200004100000000002c0435000000020200002900000000320204340000020b062001970000001f0520018f0000003704d00039000000000043004b0000046b0000813d000000000006004b0000034a0000613d00000000085300190000000007540019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c000003440000c13d000000000005004b000004770000c13d000004810000013d000000240030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000401100370000000000201043b0000020600200198000004690000c13d0000000101000039000002070020009c0000039c0000613d000002080020009c0000039c0000613d000002090020009c000000000100c019000000800010043f000001f701000041000006f10001042e000000240030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000401100370000000000201043b000000000002004b0000000001000039000000010100c039000300000002001d000000000012004b000004690000c13d0000000103000039000000000203041a000001c0012001970000000004000411000000000014004b000003bc0000613d000200000002001d000001c001400197000000000010043f000001d001000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff00100190000000010300003900000000040004110000000202000029000003bc0000c13d0000020001000041000000000010043f000000040040043f000001d101000041000000240010043f0000020101000041000006f200010430000000240030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000000401100370000000000101043b000000000010043f0000000201000039000000200010043f06f006d90000040f000000000101041a000001c001100197000000800010043f000001f701000041000006f10001042e000000440030008c000004690000413d0000000002000416000000000002004b000004690000c13d0000002402100370000000000202043b000300000002001d000001c00020009c000004690000213d0000000401100370000000000101043b000200000001001d06f004ff0000040f06f005100000040f0000000201000029000000030200002906f005e60000040f0000000001000019000006f10001042e000001f301000041000000800010043f0000002001000039000000840010043f000000a40010043f000001fb01000041000000c40010043f000001fc01000041000006f200010430000000030000006b000003d30000c13d000000400100043d000001d800200198000004040000c13d00000044021000390000020503000041000000000032043500000024021000390000001403000039000003f90000013d000001f301000041000000800010043f0000002001000039000000840010043f0000002f01000039000000a40010043f000001fd01000041000000c40010043f000001fe01000041000000e40010043f000001f601000041000006f200010430000000000103041a000001d800100198000003f30000c13d000001d901100197000001da011001c7000000000013041b000000400100043d0000000000410435000001bd0010009c000001bd0100804100000040011002100000000002000414000001bd0020009c000001bd02008041000000c002200210000000000112019f000001db011001c70000800d02000039000001dc04000041000004120000013d000001c102300197000000000262019f000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000303000039000001c304000041000004120000013d000000400100043d000000440210003900000202030000410000000000320435000000240210003900000010030000390000000000320435000001f3020000410000000000210435000000040210003900000020030000390000000000320435000001bd0010009c000001bd01008041000000400110021000000203011001c7000006f200010430000001d902200197000000000023041b0000000000410435000001bd0010009c000001bd0100804100000040011002100000000002000414000001bd0020009c000001bd02008041000000c002200210000000000112019f000001db011001c70000800d02000039000002040400004106f006e60000040f0000000100200190000004690000613d0000000001000019000006f10001042e0000000301000029000000000010043f0000000201000039000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a000001c10220019700000002022001af000000000021041b000000010000006b0000045c0000613d0000000201000029000000000010043f000001c801000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000101041a000000ff001001900000045c0000c13d0000000201000029000000000010043f000001c801000041000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000004690000613d000000000101043b000000000201041a0000020a0220019700000001022001bf000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000403000039000001c704000041000001c9050000410000000206000029000000000700041106f006e60000040f0000000100200190000004690000613d0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d020000390000000303000039000001f8040000410000000305000029000000020600002906f006e60000040f0000000100200190000004150000c13d0000000001000019000006f2000104300000000007640019000000000006004b000004730000613d000000000803001900000000890804340000000004940436000000000074004b0000046f0000c13d000000000005004b000004810000613d000000000363001900000000040700190000000305500210000000000604043300000000065601cf000000000656022f00000000030304330000010005500089000000000353022f00000000035301cf000000000363019f00000000003404350000000002d200190000003703200039000001fa04000041000000000043043500000000030104330000020b063001970000001f0530018f00000048042000390000002001100039000000000041004b00030000000c001d0000049c0000813d000000000006004b000004990000613d00000000085100190000000007540019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c000004930000c13d000000000005004b000004a80000c13d000004b20000013d0000000007640019000000000006004b000004a40000613d000000000801001900000000890804340000000004940436000000000074004b000004a00000c13d000000000005004b000004b20000613d000000000161001900000000040700190000000305500210000000000604043300000000065601cf000000000656022f00000000010104330000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000000001230019000000480210003900000000000204350000000001d10049000000280210003900000000002d0435000000480210003900000000010d001900020000000d001d06f006350000040f000001f302000041000000400100043d000000000021043500000020020000390000000403100039000000000023043500000002020000290000000002020433000000240310003900000000002304350000020b052001970000001f0420018f0000004403100039000000030b00002900000000003b004b000004dc0000813d000000000005004b000004d80000613d00000000074b00190000000006430019000000200660008a000000200770008a0000000008560019000000000957001900000000090904330000000000980435000000200550008c000004d20000c13d000000000004004b000004f20000613d0000000006030019000004e80000013d0000000006530019000000000005004b000004e50000613d00000000070b0019000000000803001900000000790704340000000008980436000000000068004b000004e10000c13d000000000004004b000004f20000613d000000000b5b00190000000304400210000000000506043300000000054501cf000000000545022f00000000070b04330000010004400089000000000747022f00000000044701cf000000000454019f00000000004604350000001f042000390000020b04400197000000000232001900000000000204350000004402400039000001bd0020009c000001bd020080410000006002200210000001bd0010009c000001bd010080410000004001100210000000000112019f000006f200010430000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f00000001002001900000050e0000613d000000000101043b0000000101100039000000000101041a000000000001042d0000000001000019000006f2000104300003000000000002000300000001001d000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000005300000613d000000000101043b0000000002000411000001c002200197000000000020043f000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000005300000613d000000000101043b000000000101041a000000ff00100190000005320000613d000000000001042d0000000001000019000006f200010430000000000100041106f006470000040f000200000001001d000000030100002906f006900000040f000000400700043d0000002003700039000001f902000041000300000003001d0000000000230435000000020200002900000000320204340000020b062001970000001f0520018f000000000b0700190000003704700039000000000043004b000005530000813d000000000006004b000005500000613d00000000085300190000000007540019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c0000054a0000c13d000000000005004b0000055f0000c13d000005690000013d0000000007640019000000000006004b0000055b0000613d000000000803001900000000890804340000000004940436000000000074004b000005570000c13d000000000005004b000005690000613d000000000363001900000000040700190000000305500210000000000604043300000000065601cf000000000656022f00000000030304330000010005500089000000000353022f00000000035301cf000000000363019f00000000003404350000000002b200190000003703200039000001fa04000041000000000043043500000000030104330000020b063001970000001f0530018f00000048042000390000002001100039000000000041004b000005830000813d000000000006004b000005800000613d00000000085100190000000007540019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c0000057a0000c13d000000000005004b0000058f0000c13d000005990000013d0000000007640019000000000006004b0000058b0000613d000000000801001900000000890804340000000004940436000000000074004b000005870000c13d000000000005004b000005990000613d000000000161001900000000040700190000000305500210000000000604043300000000065601cf000000000656022f00000000010104330000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000000012300190000004802100039000000000002043500010000000b001d0000000001b10049000000280210003900000000002b0435000000480210003900000000010b001906f006350000040f000001f302000041000000400100043d000000000021043500000020020000390000000403100039000000000023043500000001020000290000000002020433000000240310003900000000002304350000020b052001970000001f0420018f0000004403100039000000030030006b000005c20000813d000000000005004b000005be0000613d00000003074000290000000006430019000000200660008a000000200770008a0000000008560019000000000957001900000000090904330000000000980435000000200550008c000005b80000c13d000000000004004b000005d90000613d0000000006030019000005ce0000013d0000000006530019000000000005004b000005cb0000613d0000000307000029000000000803001900000000790704340000000008980436000000000068004b000005c70000c13d000000000004004b000005d90000613d000300030050002d0000000304400210000000000506043300000000054501cf000000000545022f000000030700002900000000070704330000010004400089000000000747022f00000000044701cf000000000454019f00000000004604350000001f042000390000020b04400197000000000223001900000000000204350000004402400039000001bd0020009c000001bd020080410000006002200210000001bd0010009c000001bd010080410000004001100210000000000112019f000006f2000104300002000000000002000100000002001d000200000001001d000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000006330000613d000000000101043b0000000102000029000001c002200197000100000002001d000000000020043f000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000006330000613d000000000101043b000000000101041a000000ff00100190000006320000613d0000000201000029000000000010043f000000200000043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000006330000613d000000000101043b0000000102000029000000000020043f000000200010043f0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000006330000613d000000000101043b000000000201041a0000020a02200197000000000021041b0000000001000414000001bd0010009c000001bd01008041000000c001100210000001c2011001c70000800d02000039000000040300003900000000070004110000020c040000410000000205000029000000010600002906f006e60000040f0000000100200190000006330000613d000000000001042d0000000001000019000006f2000104300000001f022000390000020b022001970000000001120019000000000021004b000000000200003900000001020040390000020d0010009c000006410000213d0000000100200190000006410000c13d000000400010043f000000000001042d0000020e01000041000000000010043f0000004101000039000000040010043f0000020f01000041000006f2000104300000000002010019000000400100043d000002100010009c0000067a0000813d0000006004100039000000400040043f0000002a030000390000000003310436000000000500003100000001055003670000000006030019000000005705043c0000000006760436000000000046004b000006520000c13d0000000004030433000002110440019700000212044001c7000000000043043500000021041000390000000005040433000002110550019700000213055001c70000000000540435000000290400003900000000050200190000000002010433000000000042004b000006740000a13d0000000002340019000000000602043300000211066001970000000307500210000000780770018f000002140770021f0000021507700197000000000676019f00000000006204350000000402500270000000010440008a000000010040008c000006600000213d000000100050008c000006800000813d000000000001042d0000020e01000041000000000010043f0000003201000039000000040010043f0000020f01000041000006f2000104300000020e01000041000000000010043f0000004101000039000000040010043f0000020f01000041000006f200010430000000400100043d000000440210003900000216030000410000000000320435000001f302000041000000000021043500000024021000390000002003000039000000000032043500000004021000390000000000320435000001bd0010009c000001bd01008041000000400110021000000203011001c7000006f2000104300000000002010019000000400100043d000002170010009c000006c30000813d0000008004100039000000400040043f00000042030000390000000003310436000000000500003100000001055003670000000006030019000000005705043c0000000006760436000000000046004b0000069b0000c13d0000000004030433000002110440019700000212044001c7000000000043043500000021041000390000000005040433000002110550019700000213055001c70000000000540435000000410400003900000000050200190000000002010433000000000042004b000006bd0000a13d0000000002340019000000000602043300000211066001970000000307500210000000780770018f000002140770021f0000021507700197000000000676019f00000000006204350000000402500270000000010440008a000000010040008c000006a90000213d000000100050008c000006c90000813d000000000001042d0000020e01000041000000000010043f0000003201000039000000040010043f0000020f01000041000006f2000104300000020e01000041000000000010043f0000004101000039000000040010043f0000020f01000041000006f200010430000000400100043d000000440210003900000216030000410000000000320435000001f302000041000000000021043500000024021000390000002003000039000000000032043500000004021000390000000000320435000001bd0010009c000001bd01008041000000400110021000000203011001c7000006f2000104300000000001000414000001bd0010009c000001bd01008041000000c001100210000001c6011001c7000080100200003906f006eb0000040f0000000100200190000006e40000613d000000000101043b000000000001042d0000000001000019000006f200010430000006e9002104210000000102000039000000000001042d0000000002000019000000000001042d000006ee002104230000000102000039000000000001042d0000000002000019000000000001042d000006f000000432000006f10001042e000006f200010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffffff000000000000000000000000000000000000000000ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb502000000000000000000000000000000000000400000000000000000000000002f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0dc61a984514949cac1d59f8eed2df66e5047198b4d9abbe2667b988aa1210dc0cd3dc2a3a14cbd0cdbf3069fc3927e48506f271b9dda2c21625b93e6a99d3eb53e84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee645241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b080781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6c9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6740c5e3e456bed56f053f960110118ba9b95a1f5359a82283516fb2e81b6e37efc425f2263d0df187444b70e47283d622c70181c5baebb1306a01edba1ce184cf7c9542c591017a21c74b6f3fab6263c7952fc0aaf9db4c22a2a04ddc7f8674f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862af7c9542c591017a21c74b6f3fab6263c7952fc0aaf9db4c22a2a04ddc7f86750bd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff0781d7cac9c378efa22a7481e4d4d29704a680ddf504b3bc50b517700ee11e6de84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee646740c5e3e456bed56f053f960110118ba9b95a1f5359a82283516fb2e81b6e37fc61a984514949cac1d59f8eed2df66e5047198b4d9abbe2667b988aa1210dc0d0000000000000000000000ff0000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff0000000000000000000000010000000000000000000000000000000000000000020000000000000000000000000000000000002000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000b26d7f1600000000000000000000000000000000000000000000000000000000d547741e00000000000000000000000000000000000000000000000000000000d547741f00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000b26d7f1700000000000000000000000000000000000000000000000000000000c36dd7ea0000000000000000000000000000000000000000000000000000000091d148530000000000000000000000000000000000000000000000000000000091d1485400000000000000000000000000000000000000000000000000000000a217fddf00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000002f2ff15c0000000000000000000000000000000000000000000000000000000053e41c1d0000000000000000000000000000000000000000000000000000000053e41c1e000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000002f2ff15d0000000000000000000000000000000000000000000000000000000036568abe0000000000000000000000000000000000000000000000000000000001ffc9a70000000000000000000000000000000000000000000000000000000016c38b3c00000000000000000000000000000000000000000000000000000000248a9ca308c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008400000080000000000000000000000000000000000000000000000000000000200000008000000000000000004ad49251ddae0b218995a7fd001ab79155bdbb25933c94a417e2d67103cfe349416363657373436f6e74726f6c3a206163636f756e7420000000000000000000206973206d697373696e6720726f6c65200000000000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000064000000800000000000000000416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000161a64a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000005061757361626c653a207061757365640000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000005db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f742070617573656400000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff01ffc9a7000000000000000000000000000000000000000000000000000000007965db0b000000000000000000000000000000000000000000000000000000007e73ee5800000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b000000000000000000000000000000000000000000000000ffffffffffffffff4e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffa000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff3000000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000000030313233343536373839616263646566000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000537472696e67733a20686578206c656e67746820696e73756666696369656e74000000000000000000000000000000000000000000000000ffffffffffffff8046d26fdb2b4752ae5ee0cc92f67093e7c6e821d79ed125207cc35cade3af05c1
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f62dceddd3a9aa9239f068a6dcd7a08c95d903d0
-----Decoded View---------------
Arg [0] : admin (address): 0xF62DcedDd3A9Aa9239f068A6DCD7a08C95D903D0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f62dceddd3a9aa9239f068a6dcd7a08c95d903d0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.