ETH Price: $3,273.15 (+0.82%)
Gas: 1 Gwei

Contract

0xe7BdF787128402f138E632bF59f6Ff6BFCF1D37C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Toggle Friendshi...162445842022-12-23 2:59:35582 days ago1671764375IN
0xe7BdF787...BFCF1D37C
0 ETH0.0004044313.55329496
Mint Friendship ...162437592022-12-23 0:13:35582 days ago1671754415IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0048668512.43814436
Mint Friendship ...162437482022-12-23 0:11:23582 days ago1671754283IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.004487411.99248497
Mint Friendship ...162420772022-12-22 18:36:47582 days ago1671734207IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0061085116.32484309
Mint Friendship ...162417912022-12-22 17:39:23582 days ago1671730763IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0065680316.78538327
Mint Friendship ...162391672022-12-22 8:52:23583 days ago1671699143IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0045785711.70109249
Mint Friendship ...162391502022-12-22 8:48:59583 days ago1671698939IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0041359111.05314012
Mint Friendship ...162389272022-12-22 8:04:11583 days ago1671696251IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.004864413
Mint Friendship ...162384352022-12-22 6:25:11583 days ago1671690311IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0043701412.32810338
Mint Friendship ...162384342022-12-22 6:24:59583 days ago1671690299IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.004768312.18595398
Mint Friendship ...162384252022-12-22 6:23:11583 days ago1671690191IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0046152511.7948312
Mint Friendship ...162382092022-12-22 5:39:59583 days ago1671687599IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0042327511.71207768
Mint Friendship ...162382062022-12-22 5:39:23583 days ago1671687563IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.004659411.70087978
Mint Friendship ...162379612022-12-22 4:50:11583 days ago1671684611IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0053845413.76119224
Mint Friendship ...162378702022-12-22 4:31:59583 days ago1671683519IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0049912113.33889033
Mint Friendship ...162371762022-12-22 2:12:59583 days ago1671675179IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0042868511.45620699
Mint Friendship ...162371592022-12-22 2:09:35583 days ago1671674975IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0046738311.94482796
Mint Friendship ...162371542022-12-22 2:08:35583 days ago1671674915IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.00442711.83113068
Mint Friendship ...162371062022-12-22 1:58:59583 days ago1671674339IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0048559312.97737109
Mint Friendship ...162362962022-12-21 23:16:35583 days ago1671664595IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0049218112.57827912
Mint Friendship ...162362302022-12-21 23:03:23583 days ago1671663803IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0056220314.36813156
Mint Friendship ...162359212022-12-21 22:00:35583 days ago1671660035IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.005046213.48550531
Mint Friendship ...162346352022-12-21 17:41:35583 days ago1671644495IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0063060716.85282932
Mint Friendship ...162342602022-12-21 16:26:23583 days ago1671639983IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0078265220.00159849
Mint Friendship ...162335712022-12-21 14:08:11583 days ago1671631691IN
0xe7BdF787...BFCF1D37C
0.02 ETH0.0057496414.69389902
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
162437592022-12-23 0:13:35582 days ago1671754415
0xe7BdF787...BFCF1D37C
0.02 ETH
162437482022-12-23 0:11:23582 days ago1671754283
0xe7BdF787...BFCF1D37C
0.02 ETH
162420772022-12-22 18:36:47582 days ago1671734207
0xe7BdF787...BFCF1D37C
0.02 ETH
162417912022-12-22 17:39:23582 days ago1671730763
0xe7BdF787...BFCF1D37C
0.02 ETH
162391672022-12-22 8:52:23583 days ago1671699143
0xe7BdF787...BFCF1D37C
0.02 ETH
162391502022-12-22 8:48:59583 days ago1671698939
0xe7BdF787...BFCF1D37C
0.02 ETH
162389272022-12-22 8:04:11583 days ago1671696251
0xe7BdF787...BFCF1D37C
0.02 ETH
162384352022-12-22 6:25:11583 days ago1671690311
0xe7BdF787...BFCF1D37C
0.02 ETH
162384342022-12-22 6:24:59583 days ago1671690299
0xe7BdF787...BFCF1D37C
0.02 ETH
162384252022-12-22 6:23:11583 days ago1671690191
0xe7BdF787...BFCF1D37C
0.02 ETH
162382092022-12-22 5:39:59583 days ago1671687599
0xe7BdF787...BFCF1D37C
0.02 ETH
162382062022-12-22 5:39:23583 days ago1671687563
0xe7BdF787...BFCF1D37C
0.02 ETH
162379612022-12-22 4:50:11583 days ago1671684611
0xe7BdF787...BFCF1D37C
0.02 ETH
162378702022-12-22 4:31:59583 days ago1671683519
0xe7BdF787...BFCF1D37C
0.02 ETH
162371762022-12-22 2:12:59583 days ago1671675179
0xe7BdF787...BFCF1D37C
0.02 ETH
162371592022-12-22 2:09:35583 days ago1671674975
0xe7BdF787...BFCF1D37C
0.02 ETH
162371542022-12-22 2:08:35583 days ago1671674915
0xe7BdF787...BFCF1D37C
0.02 ETH
162371062022-12-22 1:58:59583 days ago1671674339
0xe7BdF787...BFCF1D37C
0.02 ETH
162362962022-12-21 23:16:35583 days ago1671664595
0xe7BdF787...BFCF1D37C
0.02 ETH
162362302022-12-21 23:03:23583 days ago1671663803
0xe7BdF787...BFCF1D37C
0.02 ETH
162359212022-12-21 22:00:35583 days ago1671660035
0xe7BdF787...BFCF1D37C
0.02 ETH
162346352022-12-21 17:41:35583 days ago1671644495
0xe7BdF787...BFCF1D37C
0.02 ETH
162342602022-12-21 16:26:23583 days ago1671639983
0xe7BdF787...BFCF1D37C
0.02 ETH
162335712022-12-21 14:08:11583 days ago1671631691
0xe7BdF787...BFCF1D37C
0.02 ETH
162334502022-12-21 13:43:59583 days ago1671630239
0xe7BdF787...BFCF1D37C
0.02 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FriendshipDecagon

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : FriendshipDecagon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

error FriendshipAlreadyExists();
error FriendshipMintingDisabled();
error NotEnoughEth();
error TransferFailed();
error AddressNotSet();
error CannotMintFriendshipWithSelf();

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IPassport {
  function mintPassport(address to) external returns (uint256);
}

interface ITokenHashes {
  function storeTokenHash(uint256 tokenId) external;
}

interface IColourHashes {
  function storeColourHash(uint256 tokenId, bytes32 colourHash) external;
}

contract FriendshipDecagon is AccessControl, ReentrancyGuard {
  event FriendshipMintToggled();
  event OneMintPerFriendshipToggled();
  event TokenHashesSet(address indexed newTokenHashes);
  event FriendshipFeeSet(uint256 indexed newFee);
  event TreasuryAddressSet(address indexed newTreasuryAddress);
  event ColourHashesSet(address indexed newIColourHashesAddress);
  event FriendshipMinted(
    address friend1,
    uint256 indexed tokenId1,
    address friend2,
    uint256 indexed tokenId2,
    bytes32 indexed colourHash
  );

  uint256 public fee;

  address payable public treasury;

  IPassport public decagon;

  ITokenHashes public tokenHashes;

  IColourHashes public colourHashes;

  bool public friendshipMintEnabled;

  bool public oneMintPerFriendship;

  mapping(bytes32 => bool) public minted;

  constructor(
    uint256 _fee,
    address payable _treasuryAddress,
    address _decagonAddress,
    address _tokenHashesAddress,
    address _colourHashesAddress
  ) {
    if (
      _treasuryAddress == address(0) ||
      _decagonAddress == address(0) ||
      _tokenHashesAddress == address(0) ||
      _colourHashesAddress == address(0)
    ) revert AddressNotSet();
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    fee = _fee;
    treasury = _treasuryAddress;
    decagon = IPassport(_decagonAddress);
    tokenHashes = ITokenHashes(_tokenHashesAddress);
    colourHashes = IColourHashes(_colourHashesAddress);
    friendshipMintEnabled = false;
    oneMintPerFriendship = true;
  }

  function generateFriendshipHash(address _address1, address _address2)
    public
    pure
    returns (bytes32 friendshipHash)
  {
    if (_address1 < _address2) {
      friendshipHash = keccak256(abi.encodePacked(_address1, _address2));
    } else {
      friendshipHash = keccak256(abi.encodePacked(_address2, _address1));
    }
  }

  function generateColourHash(
    address _address1,
    uint256 _tokenId1,
    address _address2,
    uint256 _tokenId2
  ) public pure returns (bytes32 colourHash) {
    if ((_address1 < _address2) && (_tokenId1 < _tokenId2)) {
      colourHash = keccak256(
        abi.encodePacked(_address1, _tokenId1, _address2, _tokenId2)
      );
    }
    if ((_address1 < _address2) && (_tokenId2 < _tokenId1)) {
      colourHash = keccak256(
        abi.encodePacked(_address1, _tokenId2, _address2, _tokenId1)
      );
    }
    if ((_address2 < _address1) && (_tokenId1 < _tokenId2)) {
      colourHash = keccak256(
        abi.encodePacked(_address2, _tokenId1, _address1, _tokenId2)
      );
    }
    if ((_address2 < _address1) && (_tokenId2 < _tokenId1)) {
      colourHash = keccak256(
        abi.encodePacked(_address2, _tokenId2, _address1, _tokenId1)
      );
    }
  }

  function toggleFriendshipMint() external onlyRole(DEFAULT_ADMIN_ROLE) {
    friendshipMintEnabled = !friendshipMintEnabled;
    emit FriendshipMintToggled();
  }

  function toggleOneMintPerFriendship() external onlyRole(DEFAULT_ADMIN_ROLE) {
    oneMintPerFriendship = !oneMintPerFriendship;
    emit OneMintPerFriendshipToggled();
  }

  function setFee(uint256 _newFee) external onlyRole(DEFAULT_ADMIN_ROLE) {
    fee = _newFee;
    emit FriendshipFeeSet(_newFee);
  }

  function setTokenHashes(address _newTokenHashesAddress)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    if (_newTokenHashesAddress == address(0)) revert AddressNotSet();
    tokenHashes = ITokenHashes(_newTokenHashesAddress);
    emit TokenHashesSet(_newTokenHashesAddress);
  }

  function setColourHashes(address _newColourHashesAddress)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    if (_newColourHashesAddress == address(0)) revert AddressNotSet();
    colourHashes = IColourHashes(_newColourHashesAddress);
    emit ColourHashesSet(_newColourHashesAddress);
  }

  function setTreasury(address payable _newTreasury)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    if (_newTreasury == address(0)) revert AddressNotSet();
    treasury = _newTreasury;
    emit TreasuryAddressSet(_newTreasury);
  }

  function mintFriendshipDecagon(address _friend)
    external
    payable
    nonReentrant
    returns (uint256 tokenId1, uint256 tokenId2)
  {
    if (!friendshipMintEnabled) revert FriendshipMintingDisabled();
    if (msg.value < fee) revert NotEnoughEth();
    (tokenId1, tokenId2) = _mint(_friend);
    (bool sentTreasury, ) = treasury.call{value: msg.value}("");
    if (!sentTreasury) revert TransferFailed();
  }

  function _mint(address _friend)
    internal
    returns (uint256 tokenId1, uint256 tokenId2)
  {
    if (msg.sender == _friend) revert CannotMintFriendshipWithSelf();
    bytes32 friendshipHash = generateFriendshipHash(msg.sender, _friend);
    if (minted[friendshipHash] && oneMintPerFriendship)
      revert FriendshipAlreadyExists();
    minted[friendshipHash] = true;

    tokenId1 = decagon.mintPassport(msg.sender);
    tokenId2 = decagon.mintPassport(_friend);

    bytes32 colourHash = generateColourHash(
      msg.sender,
      tokenId1,
      _friend,
      tokenId2
    );

    emit FriendshipMinted(msg.sender, tokenId1, _friend, tokenId2, colourHash);

    colourHashes.storeColourHash(tokenId1, colourHash);
    colourHashes.storeColourHash(tokenId2, colourHash);

    tokenHashes.storeTokenHash(tokenId1);
    tokenHashes.storeTokenHash(tokenId2);
  }
}

File 2 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 of 9 : AccessControl.sol
// 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());
        }
    }
}

File 4 of 9 : ERC165.sol
// 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;
    }
}

File 5 of 9 : Strings.sol
// 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);
    }
}

File 6 of 9 : Context.sol
// 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;
    }
}

File 7 of 9 : IAccessControl.sol
// 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;
}

File 8 of 9 : IERC165.sol
// 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);
}

File 9 of 9 : Math.sol
// 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);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address payable","name":"_treasuryAddress","type":"address"},{"internalType":"address","name":"_decagonAddress","type":"address"},{"internalType":"address","name":"_tokenHashesAddress","type":"address"},{"internalType":"address","name":"_colourHashesAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressNotSet","type":"error"},{"inputs":[],"name":"CannotMintFriendshipWithSelf","type":"error"},{"inputs":[],"name":"FriendshipAlreadyExists","type":"error"},{"inputs":[],"name":"FriendshipMintingDisabled","type":"error"},{"inputs":[],"name":"NotEnoughEth","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newIColourHashesAddress","type":"address"}],"name":"ColourHashesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"FriendshipFeeSet","type":"event"},{"anonymous":false,"inputs":[],"name":"FriendshipMintToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"friend1","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId1","type":"uint256"},{"indexed":false,"internalType":"address","name":"friend2","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId2","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"colourHash","type":"bytes32"}],"name":"FriendshipMinted","type":"event"},{"anonymous":false,"inputs":[],"name":"OneMintPerFriendshipToggled","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":"address","name":"newTokenHashes","type":"address"}],"name":"TokenHashesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTreasuryAddress","type":"address"}],"name":"TreasuryAddressSet","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"colourHashes","outputs":[{"internalType":"contract IColourHashes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decagon","outputs":[{"internalType":"contract IPassport","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"friendshipMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address1","type":"address"},{"internalType":"uint256","name":"_tokenId1","type":"uint256"},{"internalType":"address","name":"_address2","type":"address"},{"internalType":"uint256","name":"_tokenId2","type":"uint256"}],"name":"generateColourHash","outputs":[{"internalType":"bytes32","name":"colourHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_address1","type":"address"},{"internalType":"address","name":"_address2","type":"address"}],"name":"generateFriendshipHash","outputs":[{"internalType":"bytes32","name":"friendshipHash","type":"bytes32"}],"stateMutability":"pure","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":"address","name":"_friend","type":"address"}],"name":"mintFriendshipDecagon","outputs":[{"internalType":"uint256","name":"tokenId1","type":"uint256"},{"internalType":"uint256","name":"tokenId2","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneMintPerFriendship","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_newColourHashesAddress","type":"address"}],"name":"setColourHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokenHashesAddress","type":"address"}],"name":"setTokenHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newTreasury","type":"address"}],"name":"setTreasury","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":[],"name":"toggleFriendshipMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleOneMintPerFriendship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenHashes","outputs":[{"internalType":"contract ITokenHashes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162002b8538038062002b858339818101604052810190620000379190620004fc565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000a65750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000de5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001165750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156200014e576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620001636000801b33620002af60201b60201c565b8460028190555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600660146101000a81548160ff0219169083151502179055506001600660156101000a81548160ff021916908315150217905550505050505062000584565b620002c18282620003a060201b60201c565b6200039c57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003416200040a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b6000819050919050565b6200042c8162000417565b81146200043857600080fd5b50565b6000815190506200044c8162000421565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200047f8262000452565b9050919050565b620004918162000472565b81146200049d57600080fd5b50565b600081519050620004b18162000486565b92915050565b6000620004c48262000452565b9050919050565b620004d681620004b7565b8114620004e257600080fd5b50565b600081519050620004f681620004cb565b92915050565b600080600080600060a086880312156200051b576200051a62000412565b5b60006200052b888289016200043b565b95505060206200053e88828901620004a0565b94505060406200055188828901620004e5565b93505060606200056488828901620004e5565b92505060806200057788828901620004e5565b9150509295509295909350565b6125f180620005946000396000f3fe60806040526004361061014b5760003560e01c806369fe0e2d116100b6578063ae370b8c1161006f578063ae370b8c146104aa578063bef9ec74146104d5578063c429729514610500578063d547741f14610517578063ddca3f4314610540578063f0f442601461056b5761014b565b806369fe0e2d146103885780637c07bc7a146103b15780638c631a91146103dc5780638ccc5f801461040557806391d1485414610442578063a217fddf1461047f5761014b565b80634b387e82116101085780634b387e821461027057806350db5026146102a15780635c04f9a0146102de57806361d027b31461031b578063624849bd1461034657806368ec9d15146103715761014b565b8063014ba6011461015057806301ffc9a714610179578063248a9ca3146101b65780632add4041146101f35780632f2ff15d1461021e57806336568abe14610247575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611ae5565b610594565b005b34801561018557600080fd5b506101a0600480360381019061019b9190611b6a565b61068f565b6040516101ad9190611bb2565b60405180910390f35b3480156101c257600080fd5b506101dd60048036038101906101d89190611c03565b610709565b6040516101ea9190611c3f565b60405180910390f35b3480156101ff57600080fd5b50610208610728565b6040516102159190611bb2565b60405180910390f35b34801561022a57600080fd5b5061024560048036038101906102409190611c5a565b61073b565b005b34801561025357600080fd5b5061026e60048036038101906102699190611c5a565b61075c565b005b61028a60048036038101906102859190611ae5565b6107df565b604051610298929190611cb3565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190611d08565b610950565b6040516102d59190611c3f565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190611d6f565b610b16565b6040516103129190611c3f565b60405180910390f35b34801561032757600080fd5b50610330610bae565b60405161033d9190611dd0565b60405180910390f35b34801561035257600080fd5b5061035b610bd4565b6040516103689190611bb2565b60405180910390f35b34801561037d57600080fd5b50610386610be7565b005b34801561039457600080fd5b506103af60048036038101906103aa9190611deb565b610c4d565b005b3480156103bd57600080fd5b506103c6610c92565b6040516103d39190611e77565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190611ae5565b610cb8565b005b34801561041157600080fd5b5061042c60048036038101906104279190611c03565b610db3565b6040516104399190611bb2565b60405180910390f35b34801561044e57600080fd5b5061046960048036038101906104649190611c5a565b610dd3565b6040516104769190611bb2565b60405180910390f35b34801561048b57600080fd5b50610494610e3d565b6040516104a19190611c3f565b60405180910390f35b3480156104b657600080fd5b506104bf610e44565b6040516104cc9190611eb3565b60405180910390f35b3480156104e157600080fd5b506104ea610e6a565b6040516104f79190611eef565b60405180910390f35b34801561050c57600080fd5b50610515610e90565b005b34801561052357600080fd5b5061053e60048036038101906105399190611c5a565b610ef6565b005b34801561054c57600080fd5b50610555610f17565b6040516105629190611f0a565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190611f51565b610f1d565b005b6000801b6105a181611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610607576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f64ab85b98bcee677e96663af1e64df0f51d4664eebf0d39532b5a9f9a8c60aaf60405160405180910390a25050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070257506107018261102c565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b600660149054906101000a900460ff1681565b61074482610709565b61074d81611018565b6107578383611096565b505050565b610764611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c890612001565b60405180910390fd5b6107db828261117e565b5050565b6000806107ea61125f565b600660149054906101000a900460ff16610830576040517f30f6768400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025434101561086c576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610875836112ae565b80925081935050506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16346040516108c590612052565b60006040518083038185875af1925050503d8060008114610902576040519150601f19603f3d011682016040523d82523d6000602084013e610907565b606091505b5050905080610942576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5061094b61178b565b915091565b60008273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1610801561098c57508184105b156109c157848484846040516020016109a894939291906120d0565b6040516020818303038152906040528051906020012090505b8273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161080156109fb57508382105b15610a305784828486604051602001610a1794939291906120d0565b6040516020818303038152906040528051906020012090505b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16108015610a6a57508184105b15610a9f5782848684604051602001610a8694939291906120d0565b6040516020818303038152906040528051906020012090505b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16108015610ad957508382105b15610b0e5782828686604051602001610af594939291906120d0565b6040516020818303038152906040528051906020012090505b949350505050565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161015610b7c578282604051602001610b5f92919061211e565b604051602081830303815290604052805190602001209050610ba8565b8183604051602001610b8f92919061211e565b6040516020818303038152906040528051906020012090505b92915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660159054906101000a900460ff1681565b6000801b610bf481611018565b600660159054906101000a900460ff1615600660156101000a81548160ff0219169083151502179055507f424f5f78f8870d6493fddc1a19ff8256b62b5d45c29bd9ab5d018f63a91b3e0b60405160405180910390a150565b6000801b610c5a81611018565b81600281905550817fe6cba4a583ff180296a77567f0dc4b23b9faea3753e61828ecee528553c9d00b60405160405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610cc581611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d2b576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f1fd191d0962056f91fe7346755d28e92c4bc96012b1effb9b1ee1ec9c0d1728860405160405180910390a25050565b60076020528060005260406000206000915054906101000a900460ff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610e9d81611018565b600660149054906101000a900460ff1615600660146101000a81548160ff0219169083151502179055507f06468db887ca9b3e620072b204fe81e1ddc5facf88d438a7d67e84b5eb0b3d6360405160405180910390a150565b610eff82610709565b610f0881611018565b610f12838361117e565b505050565b60025481565b6000801b610f2a81611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f90576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce60405160405180910390a25050565b61102981611024611176565b611794565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6110a08282610dd3565b61117257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611117611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6111888282610dd3565b1561125b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611200611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6002600154036112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129b90612196565b60405180910390fd5b6002600181905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603611316576040517ff03cda4900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006113223385610b16565b90506007600082815260200190815260200160002060009054906101000a900460ff16801561135d5750600660159054906101000a900460ff165b15611394576040517f54aa427f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016007600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470336040518263ffffffff1660e01b815260040161141b91906121c5565b6020604051808303816000875af115801561143a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145e91906121f5565b9250600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470856040518263ffffffff1660e01b81526004016114bb91906121c5565b6020604051808303816000875af11580156114da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fe91906121f5565b9150600061150e33858786610950565b90508083857f2abbefbf69cb988db0a574983ea3cce83ada10d642cf223c94272ae7a63892cf3389604051611544929190612222565b60405180910390a4600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e34516885836040518363ffffffff1660e01b81526004016115a992919061224b565b600060405180830381600087803b1580156115c357600080fd5b505af11580156115d7573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e34516884836040518363ffffffff1660e01b815260040161163892919061224b565b600060405180830381600087803b15801561165257600080fd5b505af1158015611666573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552856040518263ffffffff1660e01b81526004016116c59190611f0a565b600060405180830381600087803b1580156116df57600080fd5b505af11580156116f3573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552846040518263ffffffff1660e01b81526004016117529190611f0a565b600060405180830381600087803b15801561176c57600080fd5b505af1158015611780573d6000803e3d6000fd5b505050505050915091565b60018081905550565b61179e8282610dd3565b611815576117ab81611819565b6117b98360001c6020611846565b6040516020016117ca92919061237d565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c9190612401565b60405180910390fd5b5050565b606061183f8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611846565b9050919050565b6060600060028360026118599190612452565b6118639190612494565b67ffffffffffffffff81111561187c5761187b6124c8565b5b6040519080825280601f01601f1916602001820160405280156118ae5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106118e6576118e56124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061194a576119496124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261198a9190612452565b6119949190612494565b90505b6001811115611a34577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106119d6576119d56124f7565b5b1a60f81b8282815181106119ed576119ec6124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611a2d90612526565b9050611997565b5060008414611a78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6f9061259b565b60405180910390fd5b8091505092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ab282611a87565b9050919050565b611ac281611aa7565b8114611acd57600080fd5b50565b600081359050611adf81611ab9565b92915050565b600060208284031215611afb57611afa611a82565b5b6000611b0984828501611ad0565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b4781611b12565b8114611b5257600080fd5b50565b600081359050611b6481611b3e565b92915050565b600060208284031215611b8057611b7f611a82565b5b6000611b8e84828501611b55565b91505092915050565b60008115159050919050565b611bac81611b97565b82525050565b6000602082019050611bc76000830184611ba3565b92915050565b6000819050919050565b611be081611bcd565b8114611beb57600080fd5b50565b600081359050611bfd81611bd7565b92915050565b600060208284031215611c1957611c18611a82565b5b6000611c2784828501611bee565b91505092915050565b611c3981611bcd565b82525050565b6000602082019050611c546000830184611c30565b92915050565b60008060408385031215611c7157611c70611a82565b5b6000611c7f85828601611bee565b9250506020611c9085828601611ad0565b9150509250929050565b6000819050919050565b611cad81611c9a565b82525050565b6000604082019050611cc86000830185611ca4565b611cd56020830184611ca4565b9392505050565b611ce581611c9a565b8114611cf057600080fd5b50565b600081359050611d0281611cdc565b92915050565b60008060008060808587031215611d2257611d21611a82565b5b6000611d3087828801611ad0565b9450506020611d4187828801611cf3565b9350506040611d5287828801611ad0565b9250506060611d6387828801611cf3565b91505092959194509250565b60008060408385031215611d8657611d85611a82565b5b6000611d9485828601611ad0565b9250506020611da585828601611ad0565b9150509250929050565b6000611dba82611a87565b9050919050565b611dca81611daf565b82525050565b6000602082019050611de56000830184611dc1565b92915050565b600060208284031215611e0157611e00611a82565b5b6000611e0f84828501611cf3565b91505092915050565b6000819050919050565b6000611e3d611e38611e3384611a87565b611e18565b611a87565b9050919050565b6000611e4f82611e22565b9050919050565b6000611e6182611e44565b9050919050565b611e7181611e56565b82525050565b6000602082019050611e8c6000830184611e68565b92915050565b6000611e9d82611e44565b9050919050565b611ead81611e92565b82525050565b6000602082019050611ec86000830184611ea4565b92915050565b6000611ed982611e44565b9050919050565b611ee981611ece565b82525050565b6000602082019050611f046000830184611ee0565b92915050565b6000602082019050611f1f6000830184611ca4565b92915050565b611f2e81611daf565b8114611f3957600080fd5b50565b600081359050611f4b81611f25565b92915050565b600060208284031215611f6757611f66611a82565b5b6000611f7584828501611f3c565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611feb602f83611f7e565b9150611ff682611f8f565b604082019050919050565b6000602082019050818103600083015261201a81611fde565b9050919050565b600081905092915050565b50565b600061203c600083612021565b91506120478261202c565b600082019050919050565b600061205d8261202f565b9150819050919050565b60008160601b9050919050565b600061207f82612067565b9050919050565b600061209182612074565b9050919050565b6120a96120a482611aa7565b612086565b82525050565b6000819050919050565b6120ca6120c582611c9a565b6120af565b82525050565b60006120dc8287612098565b6014820191506120ec82866120b9565b6020820191506120fc8285612098565b60148201915061210c82846120b9565b60208201915081905095945050505050565b600061212a8285612098565b60148201915061213a8284612098565b6014820191508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612180601f83611f7e565b915061218b8261214a565b602082019050919050565b600060208201905081810360008301526121af81612173565b9050919050565b6121bf81611aa7565b82525050565b60006020820190506121da60008301846121b6565b92915050565b6000815190506121ef81611cdc565b92915050565b60006020828403121561220b5761220a611a82565b5b6000612219848285016121e0565b91505092915050565b600060408201905061223760008301856121b6565b61224460208301846121b6565b9392505050565b60006040820190506122606000830185611ca4565b61226d6020830184611c30565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006122b5601783612274565b91506122c08261227f565b601782019050919050565b600081519050919050565b60005b838110156122f45780820151818401526020810190506122d9565b60008484015250505050565b600061230b826122cb565b6123158185612274565b93506123258185602086016122d6565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612367601183612274565b915061237282612331565b601182019050919050565b6000612388826122a8565b91506123948285612300565b915061239f8261235a565b91506123ab8284612300565b91508190509392505050565b6000601f19601f8301169050919050565b60006123d3826122cb565b6123dd8185611f7e565b93506123ed8185602086016122d6565b6123f6816123b7565b840191505092915050565b6000602082019050818103600083015261241b81846123c8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061245d82611c9a565b915061246883611c9a565b925082820261247681611c9a565b9150828204841483151761248d5761248c612423565b5b5092915050565b600061249f82611c9a565b91506124aa83611c9a565b92508282019050808211156124c2576124c1612423565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061253182611c9a565b91506000820361254457612543612423565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612585602083611f7e565b91506125908261254f565b602082019050919050565b600060208201905081810360008301526125b481612578565b905091905056fea264697066735822122039085b54d4528b89669369652d85c5e3c643a92e8c341bb69a5b635182a8bade64736f6c6343000811003300000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e000000000000000000000000563df01d07125c33a296de51335ec040517630e4

Deployed Bytecode

0x60806040526004361061014b5760003560e01c806369fe0e2d116100b6578063ae370b8c1161006f578063ae370b8c146104aa578063bef9ec74146104d5578063c429729514610500578063d547741f14610517578063ddca3f4314610540578063f0f442601461056b5761014b565b806369fe0e2d146103885780637c07bc7a146103b15780638c631a91146103dc5780638ccc5f801461040557806391d1485414610442578063a217fddf1461047f5761014b565b80634b387e82116101085780634b387e821461027057806350db5026146102a15780635c04f9a0146102de57806361d027b31461031b578063624849bd1461034657806368ec9d15146103715761014b565b8063014ba6011461015057806301ffc9a714610179578063248a9ca3146101b65780632add4041146101f35780632f2ff15d1461021e57806336568abe14610247575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611ae5565b610594565b005b34801561018557600080fd5b506101a0600480360381019061019b9190611b6a565b61068f565b6040516101ad9190611bb2565b60405180910390f35b3480156101c257600080fd5b506101dd60048036038101906101d89190611c03565b610709565b6040516101ea9190611c3f565b60405180910390f35b3480156101ff57600080fd5b50610208610728565b6040516102159190611bb2565b60405180910390f35b34801561022a57600080fd5b5061024560048036038101906102409190611c5a565b61073b565b005b34801561025357600080fd5b5061026e60048036038101906102699190611c5a565b61075c565b005b61028a60048036038101906102859190611ae5565b6107df565b604051610298929190611cb3565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190611d08565b610950565b6040516102d59190611c3f565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190611d6f565b610b16565b6040516103129190611c3f565b60405180910390f35b34801561032757600080fd5b50610330610bae565b60405161033d9190611dd0565b60405180910390f35b34801561035257600080fd5b5061035b610bd4565b6040516103689190611bb2565b60405180910390f35b34801561037d57600080fd5b50610386610be7565b005b34801561039457600080fd5b506103af60048036038101906103aa9190611deb565b610c4d565b005b3480156103bd57600080fd5b506103c6610c92565b6040516103d39190611e77565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190611ae5565b610cb8565b005b34801561041157600080fd5b5061042c60048036038101906104279190611c03565b610db3565b6040516104399190611bb2565b60405180910390f35b34801561044e57600080fd5b5061046960048036038101906104649190611c5a565b610dd3565b6040516104769190611bb2565b60405180910390f35b34801561048b57600080fd5b50610494610e3d565b6040516104a19190611c3f565b60405180910390f35b3480156104b657600080fd5b506104bf610e44565b6040516104cc9190611eb3565b60405180910390f35b3480156104e157600080fd5b506104ea610e6a565b6040516104f79190611eef565b60405180910390f35b34801561050c57600080fd5b50610515610e90565b005b34801561052357600080fd5b5061053e60048036038101906105399190611c5a565b610ef6565b005b34801561054c57600080fd5b50610555610f17565b6040516105629190611f0a565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190611f51565b610f1d565b005b6000801b6105a181611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610607576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f64ab85b98bcee677e96663af1e64df0f51d4664eebf0d39532b5a9f9a8c60aaf60405160405180910390a25050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070257506107018261102c565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b600660149054906101000a900460ff1681565b61074482610709565b61074d81611018565b6107578383611096565b505050565b610764611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c890612001565b60405180910390fd5b6107db828261117e565b5050565b6000806107ea61125f565b600660149054906101000a900460ff16610830576040517f30f6768400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025434101561086c576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610875836112ae565b80925081935050506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16346040516108c590612052565b60006040518083038185875af1925050503d8060008114610902576040519150601f19603f3d011682016040523d82523d6000602084013e610907565b606091505b5050905080610942576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5061094b61178b565b915091565b60008273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1610801561098c57508184105b156109c157848484846040516020016109a894939291906120d0565b6040516020818303038152906040528051906020012090505b8273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161080156109fb57508382105b15610a305784828486604051602001610a1794939291906120d0565b6040516020818303038152906040528051906020012090505b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16108015610a6a57508184105b15610a9f5782848684604051602001610a8694939291906120d0565b6040516020818303038152906040528051906020012090505b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16108015610ad957508382105b15610b0e5782828686604051602001610af594939291906120d0565b6040516020818303038152906040528051906020012090505b949350505050565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161015610b7c578282604051602001610b5f92919061211e565b604051602081830303815290604052805190602001209050610ba8565b8183604051602001610b8f92919061211e565b6040516020818303038152906040528051906020012090505b92915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660159054906101000a900460ff1681565b6000801b610bf481611018565b600660159054906101000a900460ff1615600660156101000a81548160ff0219169083151502179055507f424f5f78f8870d6493fddc1a19ff8256b62b5d45c29bd9ab5d018f63a91b3e0b60405160405180910390a150565b6000801b610c5a81611018565b81600281905550817fe6cba4a583ff180296a77567f0dc4b23b9faea3753e61828ecee528553c9d00b60405160405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610cc581611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d2b576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f1fd191d0962056f91fe7346755d28e92c4bc96012b1effb9b1ee1ec9c0d1728860405160405180910390a25050565b60076020528060005260406000206000915054906101000a900460ff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610e9d81611018565b600660149054906101000a900460ff1615600660146101000a81548160ff0219169083151502179055507f06468db887ca9b3e620072b204fe81e1ddc5facf88d438a7d67e84b5eb0b3d6360405160405180910390a150565b610eff82610709565b610f0881611018565b610f12838361117e565b505050565b60025481565b6000801b610f2a81611018565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f90576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce60405160405180910390a25050565b61102981611024611176565b611794565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6110a08282610dd3565b61117257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611117611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6111888282610dd3565b1561125b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611200611176565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6002600154036112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129b90612196565b60405180910390fd5b6002600181905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603611316576040517ff03cda4900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006113223385610b16565b90506007600082815260200190815260200160002060009054906101000a900460ff16801561135d5750600660159054906101000a900460ff165b15611394576040517f54aa427f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016007600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470336040518263ffffffff1660e01b815260040161141b91906121c5565b6020604051808303816000875af115801561143a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145e91906121f5565b9250600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470856040518263ffffffff1660e01b81526004016114bb91906121c5565b6020604051808303816000875af11580156114da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fe91906121f5565b9150600061150e33858786610950565b90508083857f2abbefbf69cb988db0a574983ea3cce83ada10d642cf223c94272ae7a63892cf3389604051611544929190612222565b60405180910390a4600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e34516885836040518363ffffffff1660e01b81526004016115a992919061224b565b600060405180830381600087803b1580156115c357600080fd5b505af11580156115d7573d6000803e3d6000fd5b50505050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e34516884836040518363ffffffff1660e01b815260040161163892919061224b565b600060405180830381600087803b15801561165257600080fd5b505af1158015611666573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552856040518263ffffffff1660e01b81526004016116c59190611f0a565b600060405180830381600087803b1580156116df57600080fd5b505af11580156116f3573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552846040518263ffffffff1660e01b81526004016117529190611f0a565b600060405180830381600087803b15801561176c57600080fd5b505af1158015611780573d6000803e3d6000fd5b505050505050915091565b60018081905550565b61179e8282610dd3565b611815576117ab81611819565b6117b98360001c6020611846565b6040516020016117ca92919061237d565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c9190612401565b60405180910390fd5b5050565b606061183f8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611846565b9050919050565b6060600060028360026118599190612452565b6118639190612494565b67ffffffffffffffff81111561187c5761187b6124c8565b5b6040519080825280601f01601f1916602001820160405280156118ae5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106118e6576118e56124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061194a576119496124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261198a9190612452565b6119949190612494565b90505b6001811115611a34577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106119d6576119d56124f7565b5b1a60f81b8282815181106119ed576119ec6124f7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611a2d90612526565b9050611997565b5060008414611a78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6f9061259b565b60405180910390fd5b8091505092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ab282611a87565b9050919050565b611ac281611aa7565b8114611acd57600080fd5b50565b600081359050611adf81611ab9565b92915050565b600060208284031215611afb57611afa611a82565b5b6000611b0984828501611ad0565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b4781611b12565b8114611b5257600080fd5b50565b600081359050611b6481611b3e565b92915050565b600060208284031215611b8057611b7f611a82565b5b6000611b8e84828501611b55565b91505092915050565b60008115159050919050565b611bac81611b97565b82525050565b6000602082019050611bc76000830184611ba3565b92915050565b6000819050919050565b611be081611bcd565b8114611beb57600080fd5b50565b600081359050611bfd81611bd7565b92915050565b600060208284031215611c1957611c18611a82565b5b6000611c2784828501611bee565b91505092915050565b611c3981611bcd565b82525050565b6000602082019050611c546000830184611c30565b92915050565b60008060408385031215611c7157611c70611a82565b5b6000611c7f85828601611bee565b9250506020611c9085828601611ad0565b9150509250929050565b6000819050919050565b611cad81611c9a565b82525050565b6000604082019050611cc86000830185611ca4565b611cd56020830184611ca4565b9392505050565b611ce581611c9a565b8114611cf057600080fd5b50565b600081359050611d0281611cdc565b92915050565b60008060008060808587031215611d2257611d21611a82565b5b6000611d3087828801611ad0565b9450506020611d4187828801611cf3565b9350506040611d5287828801611ad0565b9250506060611d6387828801611cf3565b91505092959194509250565b60008060408385031215611d8657611d85611a82565b5b6000611d9485828601611ad0565b9250506020611da585828601611ad0565b9150509250929050565b6000611dba82611a87565b9050919050565b611dca81611daf565b82525050565b6000602082019050611de56000830184611dc1565b92915050565b600060208284031215611e0157611e00611a82565b5b6000611e0f84828501611cf3565b91505092915050565b6000819050919050565b6000611e3d611e38611e3384611a87565b611e18565b611a87565b9050919050565b6000611e4f82611e22565b9050919050565b6000611e6182611e44565b9050919050565b611e7181611e56565b82525050565b6000602082019050611e8c6000830184611e68565b92915050565b6000611e9d82611e44565b9050919050565b611ead81611e92565b82525050565b6000602082019050611ec86000830184611ea4565b92915050565b6000611ed982611e44565b9050919050565b611ee981611ece565b82525050565b6000602082019050611f046000830184611ee0565b92915050565b6000602082019050611f1f6000830184611ca4565b92915050565b611f2e81611daf565b8114611f3957600080fd5b50565b600081359050611f4b81611f25565b92915050565b600060208284031215611f6757611f66611a82565b5b6000611f7584828501611f3c565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611feb602f83611f7e565b9150611ff682611f8f565b604082019050919050565b6000602082019050818103600083015261201a81611fde565b9050919050565b600081905092915050565b50565b600061203c600083612021565b91506120478261202c565b600082019050919050565b600061205d8261202f565b9150819050919050565b60008160601b9050919050565b600061207f82612067565b9050919050565b600061209182612074565b9050919050565b6120a96120a482611aa7565b612086565b82525050565b6000819050919050565b6120ca6120c582611c9a565b6120af565b82525050565b60006120dc8287612098565b6014820191506120ec82866120b9565b6020820191506120fc8285612098565b60148201915061210c82846120b9565b60208201915081905095945050505050565b600061212a8285612098565b60148201915061213a8284612098565b6014820191508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612180601f83611f7e565b915061218b8261214a565b602082019050919050565b600060208201905081810360008301526121af81612173565b9050919050565b6121bf81611aa7565b82525050565b60006020820190506121da60008301846121b6565b92915050565b6000815190506121ef81611cdc565b92915050565b60006020828403121561220b5761220a611a82565b5b6000612219848285016121e0565b91505092915050565b600060408201905061223760008301856121b6565b61224460208301846121b6565b9392505050565b60006040820190506122606000830185611ca4565b61226d6020830184611c30565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006122b5601783612274565b91506122c08261227f565b601782019050919050565b600081519050919050565b60005b838110156122f45780820151818401526020810190506122d9565b60008484015250505050565b600061230b826122cb565b6123158185612274565b93506123258185602086016122d6565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612367601183612274565b915061237282612331565b601182019050919050565b6000612388826122a8565b91506123948285612300565b915061239f8261235a565b91506123ab8284612300565b91508190509392505050565b6000601f19601f8301169050919050565b60006123d3826122cb565b6123dd8185611f7e565b93506123ed8185602086016122d6565b6123f6816123b7565b840191505092915050565b6000602082019050818103600083015261241b81846123c8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061245d82611c9a565b915061246883611c9a565b925082820261247681611c9a565b9150828204841483151761248d5761248c612423565b5b5092915050565b600061249f82611c9a565b91506124aa83611c9a565b92508282019050808211156124c2576124c1612423565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061253182611c9a565b91506000820361254457612543612423565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612585602083611f7e565b91506125908261254f565b602082019050919050565b600060208201905081810360008301526125b481612578565b905091905056fea264697066735822122039085b54d4528b89669369652d85c5e3c643a92e8c341bb69a5b635182a8bade64736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e000000000000000000000000563df01d07125c33a296de51335ec040517630e4

-----Decoded View---------------
Arg [0] : _fee (uint256): 20000000000000000
Arg [1] : _treasuryAddress (address): 0x99f20BEA59CE9f464147b7De92E59684cfF14a08
Arg [2] : _decagonAddress (address): 0xd93206BD0062cC054E397eCCCdB8436c3fa5700e
Arg [3] : _tokenHashesAddress (address): 0xa3b92fE58563ce841F50Df08293237e4c866E14E
Arg [4] : _colourHashesAddress (address): 0x563Df01D07125c33a296De51335Ec040517630e4

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000470de4df820000
Arg [1] : 00000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08
Arg [2] : 000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e
Arg [3] : 000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e
Arg [4] : 000000000000000000000000563df01d07125c33a296de51335ec040517630e4


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.