Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 30 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Collection | 11923278 | 1251 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11923263 | 1251 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11923211 | 1251 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11923197 | 1251 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11923124 | 1251 days ago | IN | 0 ETH | 0.17536571 | ||||
Mint Collection | 11922884 | 1251 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11922873 | 1251 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11922861 | 1251 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11922852 | 1251 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11922833 | 1251 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11922759 | 1251 days ago | IN | 0 ETH | 0.1618746 | ||||
Mint Collection | 11922702 | 1251 days ago | IN | 0 ETH | 0.3360276 | ||||
Mint Collection | 11917480 | 1252 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11916934 | 1252 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11916431 | 1252 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11916363 | 1252 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11916282 | 1252 days ago | IN | 0 ETH | 0.20234325 | ||||
Mint Collection | 11916263 | 1252 days ago | IN | 0 ETH | 0.4200345 | ||||
Mint Collection | 11916180 | 1252 days ago | IN | 0 ETH | 0.2697934 | ||||
Mint Collection | 11916164 | 1252 days ago | IN | 0 ETH | 0.5600484 | ||||
Mint Collection | 11661960 | 1291 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11661945 | 1291 days ago | IN | 0 ETH | 0.16187604 | ||||
Mint Collection | 11661935 | 1291 days ago | IN | 0 ETH | 0.33422904 | ||||
Mint Collection | 11661809 | 1291 days ago | IN | 0 ETH | 0.33602904 | ||||
Mint Collection | 11661801 | 1291 days ago | IN | 0 ETH | 0.16187604 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DigitalaxGarmentCollection
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-15 */ // File: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.6.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]. */ 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 () internal { _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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol pragma solidity ^0.6.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File: @openzeppelin/contracts/introspection/IERC165.sol pragma solidity ^0.6.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: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol pragma solidity ^0.6.0; /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); } // File: @openzeppelin/contracts/introspection/ERC165.sol pragma solidity ^0.6.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // File: @openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol pragma solidity ^0.6.0; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { constructor() public { _registerInterface( ERC1155Receiver(0).onERC1155Received.selector ^ ERC1155Receiver(0).onERC1155BatchReceived.selector ); } } // File: @openzeppelin/contracts/utils/EnumerableSet.sol pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts/access/AccessControl.sol pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * 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 { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @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 {_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) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 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. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _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. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { 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. * * [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}. * ==== */ 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 { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/DigitalaxAccessControls.sol pragma solidity 0.6.12; /** * @notice Access Controls contract for the Digitalax Platform * @author BlockRocket.tech */ contract DigitalaxAccessControls is AccessControl { /// @notice Role definitions bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant SMART_CONTRACT_ROLE = keccak256("SMART_CONTRACT_ROLE"); bytes32 public constant VERIFIED_MINTER_ROLE = keccak256("VERIFIED_MINTER_ROLE"); /// @notice Events for adding and removing various roles event AdminRoleGranted( address indexed beneficiary, address indexed caller ); event AdminRoleRemoved( address indexed beneficiary, address indexed caller ); event MinterRoleGranted( address indexed beneficiary, address indexed caller ); event MinterRoleRemoved( address indexed beneficiary, address indexed caller ); event SmartContractRoleGranted( address indexed beneficiary, address indexed caller ); event SmartContractRoleRemoved( address indexed beneficiary, address indexed caller ); event VerifiedMinterRoleGranted( address indexed beneficiary, address indexed caller ); event VerifiedMinterRoleRemoved( address indexed beneficiary, address indexed caller ); /** * @notice The deployer is automatically given the admin role which will allow them to then grant roles to other addresses */ constructor() public { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } ///////////// // Lookups // ///////////// /** * @notice Used to check whether an address has the admin role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasAdminRole(address _address) external view returns (bool) { return hasRole(DEFAULT_ADMIN_ROLE, _address); } /** * @notice Used to check whether an address has the minter role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasMinterRole(address _address) external view returns (bool) { return hasRole(MINTER_ROLE, _address); } /** * @notice Used to check whether an address has the verified minter role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasVerifiedMinterRole(address _address) external view returns (bool) { return hasRole(VERIFIED_MINTER_ROLE, _address); } /** * @notice Used to check whether an address has the smart contract role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasSmartContractRole(address _address) external view returns (bool) { return hasRole(SMART_CONTRACT_ROLE, _address); } /////////////// // Modifiers // /////////////// /** * @notice Grants the admin role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addAdminRole(address _address) external { grantRole(DEFAULT_ADMIN_ROLE, _address); emit AdminRoleGranted(_address, _msgSender()); } /** * @notice Removes the admin role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeAdminRole(address _address) external { revokeRole(DEFAULT_ADMIN_ROLE, _address); emit AdminRoleRemoved(_address, _msgSender()); } /** * @notice Grants the minter role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addMinterRole(address _address) external { grantRole(MINTER_ROLE, _address); emit MinterRoleGranted(_address, _msgSender()); } /** * @notice Removes the minter role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeMinterRole(address _address) external { revokeRole(MINTER_ROLE, _address); emit MinterRoleRemoved(_address, _msgSender()); } /** * @notice Grants the verified minter role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addVerifiedMinterRole(address _address) external { grantRole(VERIFIED_MINTER_ROLE, _address); emit VerifiedMinterRoleGranted(_address, _msgSender()); } /** * @notice Removes the verified minter role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeVerifiedMinterRole(address _address) external { revokeRole(VERIFIED_MINTER_ROLE, _address); emit VerifiedMinterRoleRemoved(_address, _msgSender()); } /** * @notice Grants the smart contract role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addSmartContractRole(address _address) external { grantRole(SMART_CONTRACT_ROLE, _address); emit SmartContractRoleGranted(_address, _msgSender()); } /** * @notice Removes the smart contract role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeSmartContractRole(address _address) external { revokeRole(SMART_CONTRACT_ROLE, _address); emit SmartContractRoleRemoved(_address, _msgSender()); } } // File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol pragma solidity ^0.6.2; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; } // File: contracts/garment/IDigitalaxMaterials.sol pragma solidity 0.6.12; pragma experimental ABIEncoderV2; interface IDigitalaxMaterials is IERC1155 { function createChild(string calldata _uri) external returns (uint256); function batchCreateChildren(string[] calldata _uris) external returns (uint256[] memory); function mintChild(uint256 _childTokenId, uint256 _amount, address _beneficiary, bytes calldata _data) external; function batchMintChildren(uint256[] calldata _childTokenIds, uint256[] calldata _amounts, address _beneficiary, bytes calldata _data) external; } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol pragma solidity ^0.6.2; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // File: contracts/garment/IDigitalaxGarmentNFT.sol pragma solidity 0.6.12; interface IDigitalaxGarmentNFT is IERC721 { function isApproved(uint256 _tokenId, address _operator) external view returns (bool); function setPrimarySalePrice(uint256 _tokenId, uint256 _salePrice) external; function garmentDesigners(uint256 _tokenId) external view returns (address); function mint(address _beneficiary, string calldata _tokenUri, address _designer) external returns (uint256); function burn(uint256 _tokenId) external; } // File: contracts/garment/DigitalaxGarmentCollection.sol pragma solidity 0.6.12; /** * @notice Collection contract for Digitalax NFTs */ contract DigitalaxGarmentCollection is Context, ReentrancyGuard, IERC721Receiver, ERC1155Receiver { using SafeMath for uint256; using Address for address payable; /// @notice Event emitted only on construction. To be used by indexers event DigitalaxGarmentCollectionContractDeployed(); event MintGarmentCollection( uint256 collectionId, uint256 auctionTokenId, string rarity ); event BurnGarmentCollection( uint256 collectionId ); /// @notice Parameters of a NFTs Collection struct Collection { uint256[] garmentTokenIds; uint256 garmentAmount; string metadata; address designer; uint256 auctionTokenId; string rarity; } /// @notice Garment ERC721 NFT - the only NFT that can be offered in this contract IDigitalaxGarmentNFT public garmentNft; /// @notice responsible for enforcing admin access DigitalaxAccessControls public accessControls; /// @dev Array of garment collections Collection[] private garmentCollections; /// @notice the child ERC1155 strand tokens IDigitalaxMaterials public materials; /// @dev max ERC721 Garments a Collection can hold /// @dev if admin configuring this value, should test previously how many parents x children can do in one call due to gas uint256 public maxGarmentsPerCollection = 10; /** @param _accessControls Address of the Digitalax access control contract @param _garmentNft Garment NFT token address */ constructor( DigitalaxAccessControls _accessControls, IDigitalaxGarmentNFT _garmentNft, IDigitalaxMaterials _materials ) public { require(address(_accessControls) != address(0), "DigitalaxGarmentCollection: Invalid Access Controls"); require(address(_garmentNft) != address(0), "DigitalaxGarmentCollection: Invalid NFT"); require(address(_materials) != address(0), "DigitalaxGarmentCollection: Invalid Child ERC1155 address"); accessControls = _accessControls; garmentNft = _garmentNft; materials = _materials; emit DigitalaxGarmentCollectionContractDeployed(); } /** @notice Method for mint the NFT collection with the same metadata @param _tokenUri URI for the metadata @param _designer Garment designer address @param _amount NFTs amount of the collection */ function mintCollection( string calldata _tokenUri, address _designer, uint256 _amount, uint256 _auctionId, string calldata _rarity, uint256[] calldata _childTokenIds, uint256[] calldata _childTokenAmounts ) external returns (uint256) { require( accessControls.hasAdminRole(_msgSender()) || accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasMinterRole(_msgSender()), "DigitalaxGarmentCollection.mintCollection: Sender must have the minter or contract role" ); require( _amount <= maxGarmentsPerCollection, "DigitalaxGarmentCollection.mintCollection: Amount cannot exceed maxGarmentsPerCollection" ); Collection memory _newCollection = Collection(new uint256[](0), _amount, _tokenUri, _designer, _auctionId, _rarity); uint256 _collectionId = garmentCollections.length; garmentCollections.push(_newCollection); for (uint i = 0; i < _amount; i ++) { uint256 _mintedTokenId = garmentNft.mint(_msgSender(), _newCollection.metadata, _newCollection.designer); // Batch mint child tokens and assign to generated 721 token ID if(_childTokenIds.length > 0){ materials.batchMintChildren(_childTokenIds, _childTokenAmounts, address(garmentNft), abi.encodePacked(_mintedTokenId)); } garmentCollections[_collectionId].garmentTokenIds.push(_mintedTokenId); } emit MintGarmentCollection(_collectionId, _auctionId, _rarity); return _collectionId; } /** @notice Method for burn the NFT collection by given collection id @param _collectionId Id of the collection */ function burnCollection(uint256 _collectionId) external { Collection storage collection = garmentCollections[_collectionId]; for (uint i = 0; i < collection.garmentAmount; i ++) { uint256 tokenId = collection.garmentTokenIds[i]; garmentNft.safeTransferFrom(garmentNft.ownerOf(tokenId), address(this), tokenId); garmentNft.burn(tokenId); } emit BurnGarmentCollection(_collectionId); delete garmentCollections[_collectionId]; } /** @notice Method for updating max nfts garments a collection can hold @dev Only admin @param _maxGarmentsPerCollection uint256 the max children a token can hold */ function updateMaxGarmentsPerCollection(uint256 _maxGarmentsPerCollection) external { require(accessControls.hasAdminRole(_msgSender()), "DigitalaxGarmentCollection.updateMaxGarmentsPerCollection: Sender must be admin"); maxGarmentsPerCollection = _maxGarmentsPerCollection; } /** @notice Method for getting the collection by given collection id @param _collectionId Id of the collection */ function getCollection(uint256 _collectionId) external view returns (uint256[] memory _garmentTokenIds, uint256 _amount, string memory _tokenUri, address _designer) { Collection memory collection = garmentCollections[_collectionId]; return ( collection.garmentTokenIds, collection.garmentAmount, collection.metadata, collection.designer ); } /** @notice Method for getting NFT tokenIds of the collection. @param _collectionId Id of the collection */ function getTokenIds(uint256 _collectionId) external view returns (uint256[] memory _garmentTokenIds) { Collection memory collection = garmentCollections[_collectionId]; return collection.garmentTokenIds; } /** @notice Method for getting max supply of the collection. @param _collectionId Id of the collection */ function getSupply(uint256 _collectionId) external view returns (uint256) { Collection storage collection = garmentCollections[_collectionId]; return collection.garmentAmount; } /** @notice Method for getting the NFT amount for the given address and collection id @param _collectionId Id of the collection @param _address Given address */ function balanceOfAddress(uint256 _collectionId, address _address) external view returns (uint256) { return _balanceOfAddress(_collectionId, _address); } /** @notice Method for checking if someone owns the collection @param _collectionId Id of the collection @param _address Given address */ function hasOwnedOf(uint256 _collectionId, address _address) external view returns (bool) { Collection storage collection = garmentCollections[_collectionId]; uint256 amount = _balanceOfAddress(_collectionId, _address); return amount == collection.garmentAmount; } /** @notice Internal method for getting the NFT amount of the collection */ function _balanceOfAddress(uint256 _collectionId, address _address) internal virtual view returns (uint256) { Collection storage collection = garmentCollections[_collectionId]; uint256 _amount; for (uint i = 0; i < collection.garmentAmount; i ++) { if (garmentNft.ownerOf(collection.garmentTokenIds[i]) == _address) { _amount = _amount.add(1); } } return _amount; } /** @notice Method for updating the access controls contract @dev Only admin @param _accessControls Address of the new access controls contract */ function updateAccessControls(DigitalaxAccessControls _accessControls) external { require(accessControls.hasAdminRole(_msgSender()), "DigitalaxGarmentCollection.updateAccessControls: Sender must be admin"); accessControls = _accessControls; } /** @notice Single ERC721 receiver callback hook */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public override returns (bytes4) { return this.onERC721Received.selector; } /** @notice Single ERC1155 receiver callback hook, used to enforce children token binding to a given parent token */ function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes memory _data) virtual external override returns (bytes4) { return this.onERC1155Received.selector; } /** @notice Batch ERC1155 receiver callback hook, used to enforce child token bindings to a given parent token ID */ function onERC1155BatchReceived(address _operator, address _from, uint256[] memory _ids, uint256[] memory _values, bytes memory _data) virtual external override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract DigitalaxAccessControls","name":"_accessControls","type":"address"},{"internalType":"contract IDigitalaxGarmentNFT","name":"_garmentNft","type":"address"},{"internalType":"contract IDigitalaxMaterials","name":"_materials","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"BurnGarmentCollection","type":"event"},{"anonymous":false,"inputs":[],"name":"DigitalaxGarmentCollectionContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"auctionTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"rarity","type":"string"}],"name":"MintGarmentCollection","type":"event"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract DigitalaxAccessControls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"balanceOfAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"name":"burnCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"garmentNft","outputs":[{"internalType":"contract IDigitalaxGarmentNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"name":"getCollection","outputs":[{"internalType":"uint256[]","name":"_garmentTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_tokenUri","type":"string"},{"internalType":"address","name":"_designer","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"name":"getSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"name":"getTokenIds","outputs":[{"internalType":"uint256[]","name":"_garmentTokenIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"hasOwnedOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"materials","outputs":[{"internalType":"contract IDigitalaxMaterials","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGarmentsPerCollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenUri","type":"string"},{"internalType":"address","name":"_designer","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_auctionId","type":"uint256"},{"internalType":"string","name":"_rarity","type":"string"},{"internalType":"uint256[]","name":"_childTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_childTokenAmounts","type":"uint256[]"}],"name":"mintCollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract DigitalaxAccessControls","name":"_accessControls","type":"address"}],"name":"updateAccessControls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGarmentsPerCollection","type":"uint256"}],"name":"updateMaxGarmentsPerCollection","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6006553480156200001657600080fd5b5060405162001fc438038062001fc48339810160408190526200003991620001aa565b6001600055620000506301ffc9a760e01b62000155565b62000062630271189760e51b62000155565b6001600160a01b038316620000945760405162461bcd60e51b81526004016200008b9062000280565b60405180910390fd5b6001600160a01b038216620000bd5760405162461bcd60e51b81526004016200008b90620002cc565b6001600160a01b038116620000e65760405162461bcd60e51b81526004016200008b90620001fd565b600380546001600160a01b038086166001600160a01b0319928316179092556002805485841690831617905560058054928416929091169190911790556040517f70e59d41bb694197b78d7b2959290b9ed78d00f907754ca741dd9f93bd704d0790600090a15050506200031b565b6001600160e01b03198082161415620001825760405162461bcd60e51b81526004016200008b9062000249565b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b600080600060608486031215620001bf578283fd5b8351620001cc8162000302565b6020850151909350620001df8162000302565b6040850151909250620001f28162000302565b809150509250925092565b602080825260399082015260008051602062001fa483398151915260408201527f6c6964204368696c642045524331313535206164647265737300000000000000606082015260800190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b602080825260339082015260008051602062001fa483398151915260408201527f6c69642041636365737320436f6e74726f6c7300000000000000000000000000606082015260800190565b602080825260279082015260008051602062001fa48339815191526040820152661b1a590813919560ca1b606082015260800190565b6001600160a01b03811681146200031857600080fd5b50565b611c79806200032b6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80635a1f3c28116100a2578063b6b7ae5911610071578063b6b7ae591461022f578063bc197c8114610237578063d912f5061461024a578063f23a6e611461025d578063f77ee79d146102705761010b565b80635a1f3c28146101de5780636ef3da9414610201578063748365ef14610214578063a79bbb0a1461021c5761010b565b80631f159d2a116100de5780631f159d2a1461018e57806350b6bbc2146101a357806354f0e080146101b657806357991d30146101be5761010b565b806301ffc9a714610110578063150b7a02146101395780631a0c9831146101595780631ecc23411461016e575b600080fd5b61012361011e366004611624565b610283565b604051610130919061198d565b60405180910390f35b61014c610147366004611533565b6102a2565b6040516101309190611998565b61016c610167366004611750565b6102b2565b005b61018161017c366004611780565b6104ed565b6040516101309190611868565b610196610502565b6040516101309190611871565b61016c6101b1366004611750565b610511565b6101816105c0565b6101d16101cc366004611750565b6105c6565b6040516101309190611935565b6101f16101ec366004611750565b6107bd565b6040516101309493929190611948565b61016c61020f36600461164c565b6109d4565b610196610a97565b61012361022a366004611780565b610aa6565b610196610ae4565b61014c610245366004611489565b610af3565b610181610258366004611668565b610b04565b61014c61026b36600461159d565b611021565b61018161027e366004611750565b611032565b6001600160e01b03191660009081526001602052604090205460ff1690565b630a85bd0160e11b949350505050565b6000600482815481106102c157fe5b9060005260206000209060060201905060005b81600101548110156104475760008260000182815481106102f157fe5b6000918252602090912001546002546040516331a9108f60e11b81529192506001600160a01b0316906342842e0e908290636352211e90610336908690600401611868565b60206040518083038186803b15801561034e57600080fd5b505afa158015610362573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610386919061146d565b30846040518463ffffffff1660e01b81526004016103a6939291906118ba565b600060405180830381600087803b1580156103c057600080fd5b505af11580156103d4573d6000803e3d6000fd5b5050600254604051630852cd8d60e31b81526001600160a01b0390911692506342966c689150610408908490600401611868565b600060405180830381600087803b15801561042257600080fd5b505af1158015610436573d6000803e3d6000fd5b5050600190930192506102d4915050565b507f4ead478602203b7216c56822d984fca750ce428f5f9a21f801cc0f3df73be419826040516104779190611868565b60405180910390a16004828154811061048c57fe5b600091825260208220600690910201906104a6828261117f565b60018201600090556002820160006104be91906111a0565b6003820180546001600160a01b03191690556000600483018190556104e79060058401906111a0565b50505050565b60006104f9838361105d565b90505b92915050565b6002546001600160a01b031681565b6003546001600160a01b031663c395fcb361052a611156565b6040518263ffffffff1660e01b81526004016105469190611871565b60206040518083038186803b15801561055e57600080fd5b505afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611604565b6105bb5760405162461bcd60e51b81526004016105b290611b55565b60405180910390fd5b600655565b60065481565b60606105d06111e4565b600483815481106105dd57fe5b90600052602060002090600602016040518060c00160405290816000820180548060200260200160405190810160405280929190818152602001828054801561064557602002820191906000526020600020905b815481526020019060010190808311610631575b5050505050815260200160018201548152602001600282018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106f15780601f106106c6576101008083540402835291602001916106f1565b820191906000526020600020905b8154815290600101906020018083116106d457829003601f168201915b505050918352505060038201546001600160a01b03166020808301919091526004830154604080840191909152600584018054825160026101006001841615026000190190921691909104601f8101859004850282018501909352828152606090940193929091908301828280156107aa5780601f1061077f576101008083540402835291602001916107aa565b820191906000526020600020905b81548152906001019060200180831161078d57829003601f168201915b5050509190925250509051949350505050565b60606000606060006107cd6111e4565b600486815481106107da57fe5b90600052602060002090600602016040518060c00160405290816000820180548060200260200160405190810160405280929190818152602001828054801561084257602002820191906000526020600020905b81548152602001906001019080831161082e575b5050505050815260200160018201548152602001600282018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108ee5780601f106108c3576101008083540402835291602001916108ee565b820191906000526020600020905b8154815290600101906020018083116108d157829003601f168201915b505050918352505060038201546001600160a01b03166020808301919091526004830154604080840191909152600584018054825160026101006001841615026000190190921691909104601f8101859004850282018501909352828152606090940193929091908301828280156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b505050919092525050815160208301516040840151606090940151919a9099509297509550909350505050565b6003546001600160a01b031663c395fcb36109ed611156565b6040518263ffffffff1660e01b8152600401610a099190611871565b60206040518083038186803b158015610a2157600080fd5b505afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a599190611604565b610a755760405162461bcd60e51b81526004016105b290611a67565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b60008060048481548110610ab657fe5b906000526020600020906006020190506000610ad2858561105d565b60019092015490911491505092915050565b6005546001600160a01b031681565b63bc197c8160e01b95945050505050565b6003546000906001600160a01b031663c395fcb3610b20611156565b6040518263ffffffff1660e01b8152600401610b3c9190611871565b60206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c9190611604565b80610c1757506003546001600160a01b031663113b0ab2610bab611156565b6040518263ffffffff1660e01b8152600401610bc79190611871565b60206040518083038186803b158015610bdf57600080fd5b505afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c179190611604565b80610ca257506003546001600160a01b031663099db017610c36611156565b6040518263ffffffff1660e01b8152600401610c529190611871565b60206040518083038186803b158015610c6a57600080fd5b505afa158015610c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca29190611604565b610cbe5760405162461bcd60e51b81526004016105b2906119e4565b600654891115610ce05760405162461bcd60e51b81526004016105b290611ad2565b610ce86111e4565b60408051600060c0820181815260e08301909352909182915081526020018b81526020018e8e8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160a01b038d1660208083019190915260408083018d90528051601f8c018390048302810183019091528a8152606090920191908b908b90819084018382808284376000920182905250939094525050600480546001810182559152825180519394509092849250600684027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0191610de691839160200190611223565b50602082810151600183015560408301518051610e09926002850192019061126e565b5060608201516003820180546001600160a01b0319166001600160a01b039092169190911790556080820151600482015560a08201518051610e5591600584019160209091019061126e565b50505060005b8b811015610fd2576002546000906001600160a01b031663fa8509c8610e7f611156565b866040015187606001516040518463ffffffff1660e01b8152600401610ea793929190611885565b602060405180830381600087803b158015610ec157600080fd5b505af1158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef99190611768565b90508715610f98576005546002546040516001600160a01b039283169263310e2de0928d928d928d928d92911690610f35908990602001611868565b6040516020818303038152906040526040518763ffffffff1660e01b8152600401610f65969594939291906118de565b600060405180830381600087803b158015610f7f57600080fd5b505af1158015610f93573d6000803e3d6000fd5b505050505b60048381548110610fa557fe5b60009182526020808320600690920290910180546001818101835591845291909220019190915501610e5b565b507f7f798d2e13788c8dd4dca17fffc87b37312027b29db7c022df5135c758a73174818b8b8b6040516110089493929190611bca565b60405180910390a19d9c50505050505050505050505050565b63f23a6e6160e01b95945050505050565b6000806004838154811061104257fe5b60009182526020909120600160069092020101549392505050565b6000806004848154811061106d57fe5b6000918252602082206006909102019150805b826001015481101561114d5760025483546001600160a01b03808816921690636352211e908690859081106110b157fe5b90600052602060002001546040518263ffffffff1660e01b81526004016110d89190611868565b60206040518083038186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611128919061146d565b6001600160a01b031614156111455761114282600161115a565b91505b600101611080565b50949350505050565b3390565b6000828201838110156104f95760405162461bcd60e51b81526004016105b2906119ad565b508054600082559060005260206000209081019061119d91906112db565b50565b50805460018160011615610100020316600290046000825580601f106111c6575061119d565b601f01602090049060005260206000209081019061119d91906112db565b6040518060c0016040528060608152602001600081526020016060815260200160006001600160a01b0316815260200160008152602001606081525090565b82805482825590600052602060002090810192821561125e579160200282015b8281111561125e578251825591602001919060010190611243565b5061126a9291506112db565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112af57805160ff191683800117855561125e565b8280016001018555821561125e579182018281111561125e578251825591602001919060010190611243565b5b8082111561126a57600081556001016112dc565b80356104fc81611c2e565b60008083601f84011261130c578182fd5b50813567ffffffffffffffff811115611323578182fd5b602083019150836020808302850101111561133d57600080fd5b9250929050565b600082601f830112611354578081fd5b813567ffffffffffffffff81111561136a578182fd5b602080820261137a828201611c07565b8381529350818401858301828701840188101561139657600080fd5b600092505b848310156113b957803582526001929092019190830190830161139b565b505050505092915050565b600082601f8301126113d4578081fd5b813567ffffffffffffffff8111156113ea578182fd5b6113fd601f8201601f1916602001611c07565b915080825283602082850101111561141457600080fd5b8060208401602084013760009082016020015292915050565b60008083601f84011261143e578182fd5b50813567ffffffffffffffff811115611455578182fd5b60208301915083602082850101111561133d57600080fd5b60006020828403121561147e578081fd5b81516104f981611c2e565b600080600080600060a086880312156114a0578081fd5b85356114ab81611c2e565b945060208601356114bb81611c2e565b9350604086013567ffffffffffffffff808211156114d7578283fd5b6114e389838a01611344565b945060608801359150808211156114f8578283fd5b61150489838a01611344565b93506080880135915080821115611519578283fd5b50611526888289016113c4565b9150509295509295909350565b60008060008060808587031215611548578384fd5b843561155381611c2e565b9350602085013561156381611c2e565b925060408501359150606085013567ffffffffffffffff811115611585578182fd5b611591878288016113c4565b91505092959194509250565b600080600080600060a086880312156115b4578081fd5b85356115bf81611c2e565b945060208601356115cf81611c2e565b93506040860135925060608601359150608086013567ffffffffffffffff8111156115f8578182fd5b611526888289016113c4565b600060208284031215611615578081fd5b815180151581146104f9578182fd5b600060208284031215611635578081fd5b81356001600160e01b0319811681146104f9578182fd5b60006020828403121561165d578081fd5b81356104f981611c2e565b600080600080600080600080600080600060e08c8e031215611688578586fd5b67ffffffffffffffff808d35111561169e578687fd5b6116ab8e8e358f0161142d565b909c509a506116bd8e60208f016112f0565b995060408d0135985060608d013597508060808e013511156116dd578687fd5b6116ed8e60808f01358f0161142d565b909750955060a08d0135811015611702578485fd5b6117128e60a08f01358f016112fb565b909550935060c08d0135811015611727578283fd5b506117388d60c08e01358e016112fb565b81935080925050509295989b509295989b9093969950565b600060208284031215611761578081fd5b5035919050565b600060208284031215611779578081fd5b5051919050565b60008060408385031215611792578182fd5b8235915060208301356117a481611c2e565b809150509250929050565b81835260006001600160fb1b038311156117c7578081fd5b6020830280836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015611812578151875295820195908201906001016117f6565b509495945050505050565b60008151808452815b8181101561184257602081850181015186830182015201611826565b818111156118535782602083870101525b50601f01601f19169290920160200192915050565b90815260200190565b6001600160a01b0391909116815260200190565b600060018060a01b038086168352606060208401526118a7606084018661181d565b9150808416604084015250949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000608082526118f260808301888a6117af565b82810360208401526119058187896117af565b6001600160a01b038616604085015283810360608501529050611928818561181d565b9998505050505050505050565b6000602082526104f960208301846117e3565b60006080825261195b60808301876117e3565b8560208401528281036040840152611973818661181d565b91505060018060a01b038316606083015295945050505050565b901515815260200190565b6001600160e01b031991909116815260200190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526057908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e6d696e744360408201527f6f6c6c656374696f6e3a2053656e646572206d7573742068617665207468652060608201527f6d696e746572206f7220636f6e747261637420726f6c65000000000000000000608082015260a00190565b60208082526045908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e757064617460408201527f65416363657373436f6e74726f6c733a2053656e646572206d7573742062652060608201526430b236b4b760d91b608082015260a00190565b60208082526058908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e6d696e744360408201527f6f6c6c656374696f6e3a20416d6f756e742063616e6e6f74206578636565642060608201527f6d61784761726d656e7473506572436f6c6c656374696f6e0000000000000000608082015260a00190565b6020808252604f908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e757064617460408201527f654d61784761726d656e7473506572436f6c6c656374696f6e3a2053656e646560608201526e391036bab9ba1031329030b236b4b760891b608082015260a00190565b60008582528460208301526060604083015282606083015282846080840137818301608090810191909152601f909201601f191601019392505050565b60405181810167ffffffffffffffff81118282101715611c2657600080fd5b604052919050565b6001600160a01b038116811461119d57600080fdfea2646970667358221220d7231284f6637031393e9949d741553d71d117aa1177c61644867b111a09de8364736f6c634300060c00334469676974616c61784761726d656e74436f6c6c656374696f6e3a20496e7661000000000000000000000000980bc991b52240c6271f4fd607638e984c8886210000000000000000000000000b509f4b044f713a91bb50535914f7ad160532fe000000000000000000000000e6822e8b4d91b85f9ca00cca79bf92bab14bc221
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80635a1f3c28116100a2578063b6b7ae5911610071578063b6b7ae591461022f578063bc197c8114610237578063d912f5061461024a578063f23a6e611461025d578063f77ee79d146102705761010b565b80635a1f3c28146101de5780636ef3da9414610201578063748365ef14610214578063a79bbb0a1461021c5761010b565b80631f159d2a116100de5780631f159d2a1461018e57806350b6bbc2146101a357806354f0e080146101b657806357991d30146101be5761010b565b806301ffc9a714610110578063150b7a02146101395780631a0c9831146101595780631ecc23411461016e575b600080fd5b61012361011e366004611624565b610283565b604051610130919061198d565b60405180910390f35b61014c610147366004611533565b6102a2565b6040516101309190611998565b61016c610167366004611750565b6102b2565b005b61018161017c366004611780565b6104ed565b6040516101309190611868565b610196610502565b6040516101309190611871565b61016c6101b1366004611750565b610511565b6101816105c0565b6101d16101cc366004611750565b6105c6565b6040516101309190611935565b6101f16101ec366004611750565b6107bd565b6040516101309493929190611948565b61016c61020f36600461164c565b6109d4565b610196610a97565b61012361022a366004611780565b610aa6565b610196610ae4565b61014c610245366004611489565b610af3565b610181610258366004611668565b610b04565b61014c61026b36600461159d565b611021565b61018161027e366004611750565b611032565b6001600160e01b03191660009081526001602052604090205460ff1690565b630a85bd0160e11b949350505050565b6000600482815481106102c157fe5b9060005260206000209060060201905060005b81600101548110156104475760008260000182815481106102f157fe5b6000918252602090912001546002546040516331a9108f60e11b81529192506001600160a01b0316906342842e0e908290636352211e90610336908690600401611868565b60206040518083038186803b15801561034e57600080fd5b505afa158015610362573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610386919061146d565b30846040518463ffffffff1660e01b81526004016103a6939291906118ba565b600060405180830381600087803b1580156103c057600080fd5b505af11580156103d4573d6000803e3d6000fd5b5050600254604051630852cd8d60e31b81526001600160a01b0390911692506342966c689150610408908490600401611868565b600060405180830381600087803b15801561042257600080fd5b505af1158015610436573d6000803e3d6000fd5b5050600190930192506102d4915050565b507f4ead478602203b7216c56822d984fca750ce428f5f9a21f801cc0f3df73be419826040516104779190611868565b60405180910390a16004828154811061048c57fe5b600091825260208220600690910201906104a6828261117f565b60018201600090556002820160006104be91906111a0565b6003820180546001600160a01b03191690556000600483018190556104e79060058401906111a0565b50505050565b60006104f9838361105d565b90505b92915050565b6002546001600160a01b031681565b6003546001600160a01b031663c395fcb361052a611156565b6040518263ffffffff1660e01b81526004016105469190611871565b60206040518083038186803b15801561055e57600080fd5b505afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611604565b6105bb5760405162461bcd60e51b81526004016105b290611b55565b60405180910390fd5b600655565b60065481565b60606105d06111e4565b600483815481106105dd57fe5b90600052602060002090600602016040518060c00160405290816000820180548060200260200160405190810160405280929190818152602001828054801561064557602002820191906000526020600020905b815481526020019060010190808311610631575b5050505050815260200160018201548152602001600282018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106f15780601f106106c6576101008083540402835291602001916106f1565b820191906000526020600020905b8154815290600101906020018083116106d457829003601f168201915b505050918352505060038201546001600160a01b03166020808301919091526004830154604080840191909152600584018054825160026101006001841615026000190190921691909104601f8101859004850282018501909352828152606090940193929091908301828280156107aa5780601f1061077f576101008083540402835291602001916107aa565b820191906000526020600020905b81548152906001019060200180831161078d57829003601f168201915b5050509190925250509051949350505050565b60606000606060006107cd6111e4565b600486815481106107da57fe5b90600052602060002090600602016040518060c00160405290816000820180548060200260200160405190810160405280929190818152602001828054801561084257602002820191906000526020600020905b81548152602001906001019080831161082e575b5050505050815260200160018201548152602001600282018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108ee5780601f106108c3576101008083540402835291602001916108ee565b820191906000526020600020905b8154815290600101906020018083116108d157829003601f168201915b505050918352505060038201546001600160a01b03166020808301919091526004830154604080840191909152600584018054825160026101006001841615026000190190921691909104601f8101859004850282018501909352828152606090940193929091908301828280156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b505050919092525050815160208301516040840151606090940151919a9099509297509550909350505050565b6003546001600160a01b031663c395fcb36109ed611156565b6040518263ffffffff1660e01b8152600401610a099190611871565b60206040518083038186803b158015610a2157600080fd5b505afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a599190611604565b610a755760405162461bcd60e51b81526004016105b290611a67565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b60008060048481548110610ab657fe5b906000526020600020906006020190506000610ad2858561105d565b60019092015490911491505092915050565b6005546001600160a01b031681565b63bc197c8160e01b95945050505050565b6003546000906001600160a01b031663c395fcb3610b20611156565b6040518263ffffffff1660e01b8152600401610b3c9190611871565b60206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c9190611604565b80610c1757506003546001600160a01b031663113b0ab2610bab611156565b6040518263ffffffff1660e01b8152600401610bc79190611871565b60206040518083038186803b158015610bdf57600080fd5b505afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c179190611604565b80610ca257506003546001600160a01b031663099db017610c36611156565b6040518263ffffffff1660e01b8152600401610c529190611871565b60206040518083038186803b158015610c6a57600080fd5b505afa158015610c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca29190611604565b610cbe5760405162461bcd60e51b81526004016105b2906119e4565b600654891115610ce05760405162461bcd60e51b81526004016105b290611ad2565b610ce86111e4565b60408051600060c0820181815260e08301909352909182915081526020018b81526020018e8e8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160a01b038d1660208083019190915260408083018d90528051601f8c018390048302810183019091528a8152606090920191908b908b90819084018382808284376000920182905250939094525050600480546001810182559152825180519394509092849250600684027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0191610de691839160200190611223565b50602082810151600183015560408301518051610e09926002850192019061126e565b5060608201516003820180546001600160a01b0319166001600160a01b039092169190911790556080820151600482015560a08201518051610e5591600584019160209091019061126e565b50505060005b8b811015610fd2576002546000906001600160a01b031663fa8509c8610e7f611156565b866040015187606001516040518463ffffffff1660e01b8152600401610ea793929190611885565b602060405180830381600087803b158015610ec157600080fd5b505af1158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef99190611768565b90508715610f98576005546002546040516001600160a01b039283169263310e2de0928d928d928d928d92911690610f35908990602001611868565b6040516020818303038152906040526040518763ffffffff1660e01b8152600401610f65969594939291906118de565b600060405180830381600087803b158015610f7f57600080fd5b505af1158015610f93573d6000803e3d6000fd5b505050505b60048381548110610fa557fe5b60009182526020808320600690920290910180546001818101835591845291909220019190915501610e5b565b507f7f798d2e13788c8dd4dca17fffc87b37312027b29db7c022df5135c758a73174818b8b8b6040516110089493929190611bca565b60405180910390a19d9c50505050505050505050505050565b63f23a6e6160e01b95945050505050565b6000806004838154811061104257fe5b60009182526020909120600160069092020101549392505050565b6000806004848154811061106d57fe5b6000918252602082206006909102019150805b826001015481101561114d5760025483546001600160a01b03808816921690636352211e908690859081106110b157fe5b90600052602060002001546040518263ffffffff1660e01b81526004016110d89190611868565b60206040518083038186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611128919061146d565b6001600160a01b031614156111455761114282600161115a565b91505b600101611080565b50949350505050565b3390565b6000828201838110156104f95760405162461bcd60e51b81526004016105b2906119ad565b508054600082559060005260206000209081019061119d91906112db565b50565b50805460018160011615610100020316600290046000825580601f106111c6575061119d565b601f01602090049060005260206000209081019061119d91906112db565b6040518060c0016040528060608152602001600081526020016060815260200160006001600160a01b0316815260200160008152602001606081525090565b82805482825590600052602060002090810192821561125e579160200282015b8281111561125e578251825591602001919060010190611243565b5061126a9291506112db565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112af57805160ff191683800117855561125e565b8280016001018555821561125e579182018281111561125e578251825591602001919060010190611243565b5b8082111561126a57600081556001016112dc565b80356104fc81611c2e565b60008083601f84011261130c578182fd5b50813567ffffffffffffffff811115611323578182fd5b602083019150836020808302850101111561133d57600080fd5b9250929050565b600082601f830112611354578081fd5b813567ffffffffffffffff81111561136a578182fd5b602080820261137a828201611c07565b8381529350818401858301828701840188101561139657600080fd5b600092505b848310156113b957803582526001929092019190830190830161139b565b505050505092915050565b600082601f8301126113d4578081fd5b813567ffffffffffffffff8111156113ea578182fd5b6113fd601f8201601f1916602001611c07565b915080825283602082850101111561141457600080fd5b8060208401602084013760009082016020015292915050565b60008083601f84011261143e578182fd5b50813567ffffffffffffffff811115611455578182fd5b60208301915083602082850101111561133d57600080fd5b60006020828403121561147e578081fd5b81516104f981611c2e565b600080600080600060a086880312156114a0578081fd5b85356114ab81611c2e565b945060208601356114bb81611c2e565b9350604086013567ffffffffffffffff808211156114d7578283fd5b6114e389838a01611344565b945060608801359150808211156114f8578283fd5b61150489838a01611344565b93506080880135915080821115611519578283fd5b50611526888289016113c4565b9150509295509295909350565b60008060008060808587031215611548578384fd5b843561155381611c2e565b9350602085013561156381611c2e565b925060408501359150606085013567ffffffffffffffff811115611585578182fd5b611591878288016113c4565b91505092959194509250565b600080600080600060a086880312156115b4578081fd5b85356115bf81611c2e565b945060208601356115cf81611c2e565b93506040860135925060608601359150608086013567ffffffffffffffff8111156115f8578182fd5b611526888289016113c4565b600060208284031215611615578081fd5b815180151581146104f9578182fd5b600060208284031215611635578081fd5b81356001600160e01b0319811681146104f9578182fd5b60006020828403121561165d578081fd5b81356104f981611c2e565b600080600080600080600080600080600060e08c8e031215611688578586fd5b67ffffffffffffffff808d35111561169e578687fd5b6116ab8e8e358f0161142d565b909c509a506116bd8e60208f016112f0565b995060408d0135985060608d013597508060808e013511156116dd578687fd5b6116ed8e60808f01358f0161142d565b909750955060a08d0135811015611702578485fd5b6117128e60a08f01358f016112fb565b909550935060c08d0135811015611727578283fd5b506117388d60c08e01358e016112fb565b81935080925050509295989b509295989b9093969950565b600060208284031215611761578081fd5b5035919050565b600060208284031215611779578081fd5b5051919050565b60008060408385031215611792578182fd5b8235915060208301356117a481611c2e565b809150509250929050565b81835260006001600160fb1b038311156117c7578081fd5b6020830280836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b83811015611812578151875295820195908201906001016117f6565b509495945050505050565b60008151808452815b8181101561184257602081850181015186830182015201611826565b818111156118535782602083870101525b50601f01601f19169290920160200192915050565b90815260200190565b6001600160a01b0391909116815260200190565b600060018060a01b038086168352606060208401526118a7606084018661181d565b9150808416604084015250949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000608082526118f260808301888a6117af565b82810360208401526119058187896117af565b6001600160a01b038616604085015283810360608501529050611928818561181d565b9998505050505050505050565b6000602082526104f960208301846117e3565b60006080825261195b60808301876117e3565b8560208401528281036040840152611973818661181d565b91505060018060a01b038316606083015295945050505050565b901515815260200190565b6001600160e01b031991909116815260200190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526057908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e6d696e744360408201527f6f6c6c656374696f6e3a2053656e646572206d7573742068617665207468652060608201527f6d696e746572206f7220636f6e747261637420726f6c65000000000000000000608082015260a00190565b60208082526045908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e757064617460408201527f65416363657373436f6e74726f6c733a2053656e646572206d7573742062652060608201526430b236b4b760d91b608082015260a00190565b60208082526058908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e6d696e744360408201527f6f6c6c656374696f6e3a20416d6f756e742063616e6e6f74206578636565642060608201527f6d61784761726d656e7473506572436f6c6c656374696f6e0000000000000000608082015260a00190565b6020808252604f908201527f4469676974616c61784761726d656e74436f6c6c656374696f6e2e757064617460408201527f654d61784761726d656e7473506572436f6c6c656374696f6e3a2053656e646560608201526e391036bab9ba1031329030b236b4b760891b608082015260a00190565b60008582528460208301526060604083015282606083015282846080840137818301608090810191909152601f909201601f191601019392505050565b60405181810167ffffffffffffffff81118282101715611c2657600080fd5b604052919050565b6001600160a01b038116811461119d57600080fdfea2646970667358221220d7231284f6637031393e9949d741553d71d117aa1177c61644867b111a09de8364736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000980bc991b52240c6271f4fd607638e984c8886210000000000000000000000000b509f4b044f713a91bb50535914f7ad160532fe000000000000000000000000e6822e8b4d91b85f9ca00cca79bf92bab14bc221
-----Decoded View---------------
Arg [0] : _accessControls (address): 0x980bC991b52240C6271F4fd607638e984c888621
Arg [1] : _garmentNft (address): 0x0B509F4b044F713A91bB50535914f7ad160532fe
Arg [2] : _materials (address): 0xE6822E8b4d91b85F9CA00CCa79bf92Bab14bc221
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000980bc991b52240c6271f4fd607638e984c888621
Arg [1] : 0000000000000000000000000b509f4b044f713a91bb50535914f7ad160532fe
Arg [2] : 000000000000000000000000e6822e8b4d91b85f9ca00cca79bf92bab14bc221
Deployed Bytecode Sourcemap
56156:9510:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23156:142;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;64690:198;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;60459:516::-;;;;;;:::i;:::-;;:::i;:::-;;62965:167;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;57019:38::-;;;:::i;:::-;;;;;;;:::i;61178:299::-;;;;;;:::i;:::-;;:::i;57539:44::-;;;:::i;62201:229::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;61622:440::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;64348:265::-;;;;;;:::i;:::-;;:::i;57120:45::-;;;:::i;63307:296::-;;;;;;:::i;:::-;;:::i;57310:36::-;;;:::i;65403:260::-;;;;;;:::i;:::-;;:::i;58645:1668::-;;;;;;:::i;:::-;;:::i;65030:231::-;;;;;;:::i;:::-;;:::i;62567:200::-;;;;;;:::i;:::-;;:::i;23156:142::-;-1:-1:-1;;;;;;23257:33:0;23233:4;23257:33;;;:20;:33;;;;;;;;;23156:142::o;64690:198::-;-1:-1:-1;;;64690:198:0;;;;;;:::o;60459:516::-;60526:29;60558:18;60577:13;60558:33;;;;;;;;;;;;;;;;;;60526:65;;60609:6;60604:261;60625:10;:24;;;60621:1;:28;60604:261;;;60672:15;60690:10;:26;;60717:1;60690:29;;;;;;;;;;;;;;;;;;60734:10;;60762:27;;-1:-1:-1;;;60762:27:0;;60690:29;;-1:-1:-1;;;;;;60734:10:0;;:27;;:10;;60762:18;;:27;;60690:29;;60762:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60799:4;60806:7;60734:80;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60829:10:0;;:24;;-1:-1:-1;;;60829:24:0;;-1:-1:-1;;;;;60829:10:0;;;;-1:-1:-1;60829:15:0;;-1:-1:-1;60829:24:0;;60845:7;;60829:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60651:4:0;;;;;-1:-1:-1;60604:261:0;;-1:-1:-1;;60604:261:0;;;60880:36;60902:13;60880:36;;;;;;:::i;:::-;;;;;;;;60934:18;60953:13;60934:33;;;;;;;;;;;;;;;;;;;;;60927:40;60934:33;;60927:40;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;60927:40:0;;;;;;;;;;;;;;;;;:::i;:::-;;;60459:516;;:::o;62965:167::-;63055:7;63082:42;63100:13;63115:8;63082:17;:42::i;:::-;63075:49;;62965:167;;;;;:::o;57019:38::-;;;-1:-1:-1;;;;;57019:38:0;;:::o;61178:299::-;61281:14;;-1:-1:-1;;;;;61281:14:0;:27;61309:12;:10;:12::i;:::-;61281:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61273:133;;;;-1:-1:-1;;;61273:133:0;;;;;;;:::i;:::-;;;;;;;;;61417:24;:52;61178:299::o;57539:44::-;;;;:::o;62201:229::-;62268:33;62314:28;;:::i;:::-;62345:18;62364:13;62345:33;;;;;;;;;;;;;;;;;;62314:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62314:64:0;;;-1:-1:-1;;62314:64:0;;;;-1:-1:-1;;;;;62314:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62314:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62314:64:0;;;;-1:-1:-1;;62396:26:0;;;62201:229;-1:-1:-1;;;;62201:229:0:o;61622:440::-;61706:33;61741:15;61758:23;61783:17;61813:28;;:::i;:::-;61844:18;61863:13;61844:33;;;;;;;;;;;;;;;;;;61813:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61813:64:0;;;-1:-1:-1;;61813:64:0;;;;-1:-1:-1;;;;;61813:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61813:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61813:64:0;;;;-1:-1:-1;;61910:26:0;;61951:24;;;;61990:19;;;;62024;;;;;61910:26;;61951:24;;-1:-1:-1;61990:19:0;;-1:-1:-1;62024:19:0;-1:-1:-1;61622:440:0;;-1:-1:-1;;;;61622:440:0:o;64348:265::-;64447:14;;-1:-1:-1;;;;;64447:14:0;:27;64475:12;:10;:12::i;:::-;64447:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64439:123;;;;-1:-1:-1;;;64439:123:0;;;;;;;:::i;:::-;64573:14;:32;;-1:-1:-1;;;;;;64573:32:0;-1:-1:-1;;;;;64573:32:0;;;;;;;;;;64348:265::o;57120:45::-;;;-1:-1:-1;;;;;57120:45:0;;:::o;63307:296::-;63391:4;63408:29;63440:18;63459:13;63440:33;;;;;;;;;;;;;;;;;;63408:65;;63484:14;63501:42;63519:13;63534:8;63501:17;:42::i;:::-;63571:24;;;;;63561:34;;;;-1:-1:-1;;63307:296:0;;;;:::o;57310:36::-;;;-1:-1:-1;;;;;57310:36:0;;:::o;65403:260::-;-1:-1:-1;;;65403:260:0;;;;;;;:::o;58645:1668::-;58981:14;;58939:7;;-1:-1:-1;;;;;58981:14:0;:27;59009:12;:10;:12::i;:::-;58981:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;-1:-1:-1;59026:14:0;;-1:-1:-1;;;;;59026:14:0;:35;59062:12;:10;:12::i;:::-;59026:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58981:140;;;-1:-1:-1;59079:14:0;;-1:-1:-1;;;;;59079:14:0;:28;59108:12;:10;:12::i;:::-;59079:42;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58959:277;;;;-1:-1:-1;;;58959:277:0;;;;;;;:::i;:::-;59282:24;;59271:7;:35;;59249:173;;;;-1:-1:-1;;;59249:173:0;;;;;;;:::i;:::-;59435:32;;:::i;:::-;59470:80;;;-1:-1:-1;59470:80:0;;;59481:16;;;;;;;;;59470:80;;;;59481:16;59470:80;;;;59499:7;59470:80;;;;59508:9;;59470:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59470:80:0;;;-1:-1:-1;;;;;;59470:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59542:7;;;;;;59470:80;;59542:7;;;;59470:80;;;;;;;;-1:-1:-1;59470:80:0;;;;-1:-1:-1;;59585:18:0;:25;;59621:39;;;;;;;;;;;59435:115;;-1:-1:-1;59585:25:0;;59435:115;;-1:-1:-1;59621:39:0;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;59621:39:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;59621:39:0;;;;;;;;;-1:-1:-1;;;;;;59621:39:0;-1:-1:-1;;;;;59621:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;59678:6;59673:527;59694:7;59690:1;:11;59673:527;;;59749:10;;59724:22;;-1:-1:-1;;;;;59749:10:0;:15;59765:12;:10;:12::i;:::-;59779:14;:23;;;59804:14;:23;;;59749:79;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59724:104;-1:-1:-1;59925:25:0;;59922:182;;59970:9;;60042:10;;60055:32;;-1:-1:-1;;;;;59970:9:0;;;;:27;;59998:14;;;;60014:18;;;;60042:10;;;60055:32;;60072:14;;60055:32;;;:::i;:::-;;;;;;;;;;;;;59970:118;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59922:182;60118:18;60137:13;60118:33;;;;;;;;;;;;;;;;;;;;;;;:70;;;;;;;;;;;;;;;;;;;;59703:4;59673:527;;;;60217:57;60239:13;60254:10;60266:7;;60217:57;;;;;;;;;:::i;:::-;;;;;;;;60292:13;58645:1668;-1:-1:-1;;;;;;;;;;;;;58645:1668:0:o;65030:231::-;-1:-1:-1;;;65030:231:0;;;;;;;:::o;62567:200::-;62632:7;62652:29;62684:18;62703:13;62684:33;;;;;;;;;;;;;;;;62735:24;62684:33;;;;;62735:24;;;62567:200;-1:-1:-1;;;62567:200:0:o;63706:458::-;63805:7;63825:29;63857:18;63876:13;63857:33;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63857:33:0;63927:205;63948:10;:24;;;63944:1;:28;63927:205;;;63999:10;;64018:29;;-1:-1:-1;;;;;63999:61:0;;;;:10;;:18;;64018:10;;64045:1;;64018:29;;;;;;;;;;;;;;63999:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;63999:61:0;;63995:126;;;64091:14;:7;64103:1;64091:11;:14::i;:::-;64081:24;;63995:126;63974:4;;63927:205;;;-1:-1:-1;64149:7:0;63706:458;-1:-1:-1;;;;63706:458:0:o;657:106::-;745:10;657:106;:::o;1936:181::-;1994:7;2026:5;;;2050:6;;;;2042:46;;;;-1:-1:-1;;;2042:46:0;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:130;72:20;;97:33;72:20;97:33;:::i;301:352::-;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;-1:-1;469:20;;509:18;498:30;;495:2;;;-1:-1;;531:12;495:2;575:4;567:6;563:17;551:29;;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;643:1;;633:12;586:2;391:262;;;;;:::o;679:707::-;;796:3;789:4;781:6;777:17;773:27;763:2;;-1:-1;;804:12;763:2;851:6;838:20;23621:18;23613:6;23610:30;23607:2;;;-1:-1;;23643:12;23607:2;23688:4;;23680:6;23676:17;873:80;23688:4;23676:17;23741:15;873:80;:::i;:::-;981:21;;;864:89;-1:-1;1038:14;;;1013:17;;;1118:27;;;;;1115:36;-1:-1;1112:2;;;1164:1;;1154:12;1112:2;1189:1;1180:10;;1174:206;1199:6;1196:1;1193:13;1174:206;;;2741:20;;1267:50;;1221:1;1214:9;;;;;1331:14;;;;1359;;1174:206;;;1178:14;;;;;756:630;;;;:::o;1665:440::-;;1766:3;1759:4;1751:6;1747:17;1743:27;1733:2;;-1:-1;;1774:12;1733:2;1821:6;1808:20;23916:18;23908:6;23905:30;23902:2;;;-1:-1;;23938:12;23902:2;1843:64;24011:9;23992:17;;-1:-1;;23988:33;24079:4;24069:15;1843:64;:::i;:::-;1834:73;;1927:6;1920:5;1913:21;2031:3;24079:4;2022:6;1955;2013:16;;2010:25;2007:2;;;2048:1;;2038:12;2007:2;27440:6;24079:4;1955:6;1951:17;24079:4;1989:5;1985:16;27417:30;27496:1;27478:16;;;24079:4;27478:16;27471:27;1989:5;1726:379;-1:-1;;1726:379::o;2329:337::-;;;2444:3;2437:4;2429:6;2425:17;2421:27;2411:2;;-1:-1;;2452:12;2411:2;-1:-1;2482:20;;2522:18;2511:30;;2508:2;;;-1:-1;;2544:12;2508:2;2588:4;2580:6;2576:17;2564:29;;2639:3;2588:4;2619:17;2580:6;2605:32;;2602:41;2599:2;;;2656:1;;2646:12;2952:263;;3067:2;3055:9;3046:7;3042:23;3038:32;3035:2;;;-1:-1;;3073:12;3035:2;226:6;220:13;238:33;265:5;238:33;:::i;3222:1119::-;;;;;;3453:3;3441:9;3432:7;3428:23;3424:33;3421:2;;;-1:-1;;3460:12;3421:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3512:63;-1:-1;3612:2;3651:22;;72:20;97:33;72:20;97:33;:::i;:::-;3620:63;-1:-1;3748:2;3733:18;;3720:32;3772:18;3761:30;;;3758:2;;;-1:-1;;3794:12;3758:2;3824:78;3894:7;3885:6;3874:9;3870:22;3824:78;:::i;:::-;3814:88;;3967:2;3956:9;3952:18;3939:32;3925:46;;3772:18;3983:6;3980:30;3977:2;;;-1:-1;;4013:12;3977:2;4043:78;4113:7;4104:6;4093:9;4089:22;4043:78;:::i;:::-;4033:88;;4186:3;4175:9;4171:19;4158:33;4144:47;;3772:18;4203:6;4200:30;4197:2;;;-1:-1;;4233:12;4197:2;;4263:62;4317:7;4308:6;4297:9;4293:22;4263:62;:::i;:::-;4253:72;;;3415:926;;;;;;;;:::o;4348:721::-;;;;;4512:3;4500:9;4491:7;4487:23;4483:33;4480:2;;;-1:-1;;4519:12;4480:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;4571:63;-1:-1;4671:2;4710:22;;72:20;97:33;72:20;97:33;:::i;:::-;4679:63;-1:-1;4779:2;4818:22;;2741:20;;-1:-1;4915:2;4900:18;;4887:32;4939:18;4928:30;;4925:2;;;-1:-1;;4961:12;4925:2;4991:62;5045:7;5036:6;5025:9;5021:22;4991:62;:::i;:::-;4981:72;;;4474:595;;;;;;;:::o;5076:847::-;;;;;;5257:3;5245:9;5236:7;5232:23;5228:33;5225:2;;;-1:-1;;5264:12;5225:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;5316:63;-1:-1;5416:2;5455:22;;72:20;97:33;72:20;97:33;:::i;:::-;5424:63;-1:-1;5524:2;5563:22;;2741:20;;-1:-1;5632:2;5671:22;;2741:20;;-1:-1;5768:3;5753:19;;5740:33;5793:18;5782:30;;5779:2;;;-1:-1;;5815:12;5779:2;5845:62;5899:7;5890:6;5879:9;5875:22;5845:62;:::i;5930:257::-;;6042:2;6030:9;6021:7;6017:23;6013:32;6010:2;;;-1:-1;;6048:12;6010:2;1475:6;1469:13;28180:5;25469:13;25462:21;28158:5;28155:32;28145:2;;-1:-1;;28191:12;6194:239;;6297:2;6285:9;6276:7;6272:23;6268:32;6265:2;;;-1:-1;;6303:12;6265:2;1595:20;;-1:-1;;;;;;25556:78;;28275:34;;28265:2;;-1:-1;;28313:12;6440:305;;6576:2;6564:9;6555:7;6551:23;6547:32;6544:2;;;-1:-1;;6582:12;6544:2;2225:6;2212:20;2237:65;2296:5;2237:65;:::i;6752:1561::-;;;;;;;;;;;;7069:3;7057:9;7048:7;7044:23;7040:33;7037:2;;;-1:-1;;7076:12;7037:2;7172:18;;7134:17;7121:31;7161:30;7158:2;;;-1:-1;;7194:12;7158:2;7232:65;7289:7;7134:17;7121:31;7269:9;7265:22;7232:65;:::i;:::-;7214:83;;-1:-1;7214:83;-1:-1;7352:53;7397:7;7334:2;7373:22;;7352:53;:::i;:::-;7342:63;;7442:2;7485:9;7481:22;2741:20;7450:63;;7550:2;7593:9;7589:22;2741:20;7558:63;;7172:18;7686:3;7675:9;7671:19;7658:33;7700:30;7697:2;;;-1:-1;;7733:12;7697:2;7771:65;7828:7;7686:3;7675:9;7671:19;7658:33;7808:9;7804:22;7771:65;:::i;:::-;7753:83;;-1:-1;7753:83;-1:-1;7901:3;7886:19;;7873:33;7915:30;-1:-1;7912:2;;;-1:-1;;7948:12;7912:2;7986:80;8058:7;7901:3;7890:9;7886:19;7873:33;8038:9;8034:22;7986:80;:::i;:::-;7968:98;;-1:-1;7968:98;-1:-1;8131:3;8116:19;;8103:33;8145:30;-1:-1;8142:2;;;-1:-1;;8178:12;8142:2;;8217:80;8289:7;8131:3;8120:9;8116:19;8103:33;8269:9;8265:22;8217:80;:::i;:::-;8198:99;;;;;;;;7031:1282;;;;;;;;;;;;;;:::o;8320:241::-;;8424:2;8412:9;8403:7;8399:23;8395:32;8392:2;;;-1:-1;;8430:12;8392:2;-1:-1;2741:20;;8386:175;-1:-1;8386:175::o;8568:263::-;;8683:2;8671:9;8662:7;8658:23;8654:32;8651:2;;;-1:-1;;8689:12;8651:2;-1:-1;2889:13;;8645:186;-1:-1;8645:186::o;8838:366::-;;;8959:2;8947:9;8938:7;8934:23;8930:32;8927:2;;;-1:-1;;8965:12;8927:2;2754:6;2741:20;9017:63;;9117:2;9160:9;9156:22;72:20;97:33;124:5;97:33;:::i;:::-;9125:63;;;;8921:283;;;;;:::o;9693:467::-;24894:19;;;9693:467;-1:-1;;;;;9941:78;;9938:2;;;-1:-1;;10022:12;9938:2;24943:4;10057:6;10053:17;27440:6;27435:3;24943:4;24938:3;24934:14;27417:30;27478:16;;;;24943:4;27478:16;27471:27;;;-1:-1;27478:16;;9825:335;-1:-1;9825:335::o;10199:690::-;;10392:5;24362:12;24906:6;24901:3;24894:19;24943:4;;24938:3;24934:14;10404:93;;24943:4;10568:5;24216:14;-1:-1;10607:260;10632:6;10629:1;10626:13;10607:260;;;10693:13;;14991:37;;9365:14;;;;24749;;;;10654:1;10647:9;10607:260;;;-1:-1;10873:10;;10323:566;-1:-1;;;;;10323:566::o;11125:343::-;;11267:5;24362:12;24906:6;24901:3;24894:19;-1:-1;27585:101;27599:6;27596:1;27593:13;27585:101;;;24943:4;27666:11;;;;;27660:18;27647:11;;;;;27640:39;27614:10;27585:101;;;27701:6;27698:1;27695:13;27692:2;;;-1:-1;24943:4;27757:6;24938:3;27748:16;;27741:27;27692:2;-1:-1;24011:9;27938:14;-1:-1;;27934:28;11424:39;;;;24943:4;11424:39;;11215:253;-1:-1;;11215:253::o;15319:::-;14991:37;;;15544:2;15535:12;;15435:137::o;15579:238::-;-1:-1;;;;;25838:54;;;;9472:58;;15714:2;15699:18;;15685:132::o;15824:548::-;;509:18;;25849:42;;;;25385:5;25838:54;9479:3;9472:58;16035:2;16161;16150:9;16146:18;16139:48;16201:78;16035:2;16024:9;16020:18;16265:6;16201:78;:::i;:::-;16193:86;;25849:42;25385:5;25838:54;16358:2;16347:9;16343:18;9613:37;;16006:366;;;;;;:::o;16379:444::-;-1:-1;;;;;25838:54;;;9613:37;;25838:54;;;;16726:2;16711:18;;9613:37;16809:2;16794:18;;14991:37;;;;16562:2;16547:18;;16533:290::o;16830:976::-;;17179:3;17201:17;17194:47;17255:118;17179:3;17168:9;17164:19;17359:6;17351;17255:118;:::i;:::-;17421:9;17415:4;17411:20;17406:2;17395:9;17391:18;17384:48;17446:118;17559:4;17550:6;17542;17446:118;:::i;:::-;-1:-1;;;;;25838:54;;17643:2;17628:18;;9613:37;17685:20;;;17680:2;17665:18;;17658:48;17438:126;-1:-1;17720:76;17438:126;17782:6;17720:76;:::i;:::-;17712:84;17150:656;-1:-1;;;;;;;;;17150:656::o;17813:370::-;;17990:2;18011:17;18004:47;18065:108;17990:2;17979:9;17975:18;18159:6;18065:108;:::i;18190:792::-;;18471:3;18493:17;18486:47;18547:108;18471:3;18460:9;18456:19;18641:6;18547:108;:::i;:::-;15021:5;18734:2;18723:9;18719:18;14991:37;18786:9;18780:4;18776:20;18771:2;18760:9;18756:18;18749:48;18811:78;18884:4;18875:6;18811:78;:::i;:::-;18803:86;;;509:18;;25849:42;;;9643:5;25838:54;18968:2;18957:9;18953:18;9613:37;18442:540;;;;;;;:::o;18989:210::-;25469:13;;25462:21;10962:34;;19110:2;19095:18;;19081:118::o;19206:218::-;-1:-1;;;;;;25556:78;;;;11077:36;;19331:2;19316:18;;19302:122::o;20296:416::-;20496:2;20510:47;;;12964:2;20481:18;;;24894:19;13000:29;24934:14;;;12980:50;13049:12;;;20467:245::o;20719:416::-;20919:2;20933:47;;;13300:2;20904:18;;;24894:19;13336:34;24934:14;;;13316:55;13405:34;13391:12;;;13384:56;13474:25;13460:12;;;13453:47;13519:12;;;20890:245::o;21142:416::-;21342:2;21356:47;;;13770:2;21327:18;;;24894:19;13806:34;24934:14;;;13786:55;13875:34;13861:12;;;13854:56;-1:-1;;;13930:12;;;13923:29;13971:12;;;21313:245::o;21565:416::-;21765:2;21779:47;;;14222:2;21750:18;;;24894:19;14258:34;24934:14;;;14238:55;14327:34;14313:12;;;14306:56;14396:26;14382:12;;;14375:48;14442:12;;;21736:245::o;21988:416::-;22188:2;22202:47;;;14693:2;22173:18;;;24894:19;14729:34;24934:14;;;14709:55;14798:34;14784:12;;;14777:56;-1:-1;;;14853:12;;;14846:39;14904:12;;;22159:245::o;22640:552::-;;15021:5;14998:3;14991:37;15021:5;23017:2;23006:9;23002:18;14991:37;22853:2;23054;23043:9;23039:18;23032:48;24906:6;22853:2;22842:9;22838:18;24894:19;27440:6;27435:3;24934:14;22842:9;24934:14;27417:30;27478:16;;;24934:14;27478:16;;;27471:27;;;;24011:9;27938:14;;;-1:-1;;27934:28;12332:39;;;22824:368;-1:-1;;;22824:368::o;23199:256::-;23261:2;23255:9;23287:17;;;23362:18;23347:34;;23383:22;;;23344:62;23341:2;;;23419:1;;23409:12;23341:2;23261;23428:22;23239:216;;-1:-1;23239:216::o;27975:117::-;-1:-1;;;;;25838:54;;28034:35;;28024:2;;28083:1;;28073:12
Swarm Source
ipfs://d7231284f6637031393e9949d741553d71d117aa1177c61644867b111a09de83
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.