Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BubyCubTigersMigration
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-07-02
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(
bytes32 indexed role,
bytes32 indexed previousAdminRole,
bytes32 indexed newAdminRole
);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(
bytes32 indexed role,
address indexed account,
address indexed sender
);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(
bytes32 indexed role,
address indexed account,
address indexed sender
);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(
bytes32 role,
address account
) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}
/**
* @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);
}
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @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
) external view returns (address);
/**
* @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) external view returns (uint256);
}
/**
* @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.3.0, sets of type `bytes32` (`Bytes32Set`), `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;
if (lastIndex != toDeleteIndex) {
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] = valueIndex; // Replace lastvalue's index to valueIndex
}
// 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) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
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(
Bytes32Set storage set,
bytes32 value
) internal returns (bool) {
return _add(set._inner, 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(
Bytes32Set storage set,
bytes32 value
) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(
Bytes32Set storage set,
bytes32 value
) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set 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(
Bytes32Set storage set,
uint256 index
) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
Bytes32Set storage set
) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
// 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(uint160(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(uint160(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(uint160(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(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
AddressSet storage set
) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
assembly {
result := store
}
return result;
}
// 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));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
UintSet storage set
) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
assembly {
result := store
}
return result;
}
}
/**
* @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;
}
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(
address owner,
uint256 index
) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
/**
* @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);
}
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
/**
* @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 on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
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"
);
(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"
);
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data
) internal view returns (bytes memory) {
return
functionStaticCall(
target,
data,
"Address: low-level static call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data
) internal returns (bytes memory) {
return
functionDelegateCall(
target,
data,
"Address: low-level delegate call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(
uint256 value,
uint256 length
) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(
bytes4 interfaceId
) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(
bytes4 interfaceId
) public view virtual override returns (bool) {
return
interfaceId == type(IAccessControl).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(
bytes32 role,
address account
) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(
bytes32 role
) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(
bytes32 role,
address account
) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(
bytes32 role,
address account
) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(
bytes32 role,
address account
) public virtual override {
require(
account == _msgSender(),
"AccessControl: can only renounce roles for self"
);
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerable is
IAccessControlEnumerable,
AccessControl
{
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(
bytes4 interfaceId
) public view virtual override returns (bool) {
return
interfaceId == type(IAccessControlEnumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @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 virtual override returns (address) {
return _roleMembers[role].at(index);
}
/**
* @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 virtual override returns (uint256) {
return _roleMembers[role].length();
}
/**
* @dev Overload {_grantRole} to track enumerable memberships
*/
function _grantRole(
bytes32 role,
address account
) internal virtual override {
super._grantRole(role, account);
_roleMembers[role].add(account);
}
/**
* @dev Overload {_revokeRole} to track enumerable memberships
*/
function _revokeRole(
bytes32 role,
address account
) internal virtual override {
super._revokeRole(role, account);
_roleMembers[role].remove(account);
}
}
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// 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;
}
}
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _ownerOf(tokenId);
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner or approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @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.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
*/
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _owners[tokenId];
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _ownerOf(tokenId) != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId, 1);
// Check that tokenId was not minted by `_beforeTokenTransfer` hook
require(!_exists(tokenId), "ERC721: token already minted");
unchecked {
// Will not overflow unless all 2**256 token ids are minted to the same owner.
// Given that tokens are minted one by one, it is impossible in practice that
// this ever happens. Might change if we allow batch minting.
// The ERC fails to describe this case.
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId, 1);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
* This is an internal function that does not check if the sender is authorized to operate on the token.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId, 1);
// Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
owner = ownerOf(tokenId);
// Clear approvals
delete _tokenApprovals[tokenId];
// Decrease balance with checked arithmetic, because an `ownerOf` override may
// invalidate the assumption that `_balances[from] >= 1`.
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId, 1);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId, 1);
// Check that tokenId was not transferred by `_beforeTokenTransfer` hook
require(ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
// Clear approvals from the previous owner
delete _tokenApprovals[tokenId];
// Decrease balance with checked arithmetic, because an `ownerOf` override may
// invalidate the assumption that `_balances[from] >= 1`.
_balances[from] -= 1;
unchecked {
// `_balances[to]` could overflow in the conditions described in `_mint`. That would require
// all 2**256 token ids to be minted, which in practice is impossible.
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId, 1);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.code.length > 0) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
* - When `from` is zero, the tokens will be minted for `to`.
* - When `to` is zero, ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}
/**
* @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
* - When `from` is zero, the tokens were minted for `to`.
* - When `to` is zero, ``from``'s tokens were burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}
/**
* @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
*
* WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
* being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
* that `ownerOf(tokenId)` is `a`.
*/
// solhint-disable-next-line func-name-mixedcase
function __unsafe_increaseBalance(address account, uint256 amount) internal {
_balances[account] += amount;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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
);
/**
* @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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(
token,
abi.encodeWithSelector(token.transfer.selector, to, value)
);
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(
token,
abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
);
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(
token,
abi.encodeWithSelector(token.approve.selector, spender, value)
);
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(
token,
abi.encodeWithSelector(
token.approve.selector,
spender,
newAllowance
)
);
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(
oldAllowance >= value,
"SafeERC20: decreased allowance below zero"
);
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(
token,
abi.encodeWithSelector(
token.approve.selector,
spender,
newAllowance
)
);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(
data,
"SafeERC20: low-level call failed"
);
if (returndata.length > 0) {
// Return data is optional
require(
abi.decode(returndata, (bool)),
"SafeERC20: ERC20 operation did not succeed"
);
}
}
}
/**
* @title PaymentSplitter
* @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
* that the Ether will be split in this way, since it is handled transparently by the contract.
*
* The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
* account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
* an amount proportional to the percentage of total shares they were assigned.
*
* `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
* accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
* function.
*
* NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
* tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
* to run tests before sending real value to this contract.
*/
contract PaymentSplitter is Context {
event PayeeAdded(address account, uint256 shares);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(
IERC20 indexed token,
address to,
uint256 amount
);
event PaymentReceived(address from, uint256 amount);
uint256 private _totalShares;
uint256 private _totalReleased;
mapping(address => uint256) private _shares;
mapping(address => uint256) private _released;
address[] private _payees;
mapping(IERC20 => uint256) private _erc20TotalReleased;
mapping(IERC20 => mapping(address => uint256)) private _erc20Released;
/**
* @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
* the matching position in the `shares` array.
*
* All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
* duplicates in `payees`.
*/
constructor(address[] memory payees, uint256[] memory shares_) payable {
require(
payees.length == shares_.length,
"PaymentSplitter: payees and shares length mismatch"
);
require(payees.length > 0, "PaymentSplitter: no payees");
for (uint256 i = 0; i < payees.length; i++) {
_addPayee(payees[i], shares_[i]);
}
}
/**
* @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
* reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
* reliability of the events, and not the actual splitting of Ether.
*
* To learn more about this see the Solidity documentation for
* https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
* functions].
*/
receive() external payable virtual {
emit PaymentReceived(_msgSender(), msg.value);
}
/**
* @dev Getter for the total shares held by payees.
*/
function totalShares() public view returns (uint256) {
return _totalShares;
}
/**
* @dev Getter for the total amount of Ether already released.
*/
function totalReleased() public view returns (uint256) {
return _totalReleased;
}
/**
* @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
* contract.
*/
function totalReleased(IERC20 token) public view returns (uint256) {
return _erc20TotalReleased[token];
}
/**
* @dev Getter for the amount of shares held by an account.
*/
function shares(address account) public view returns (uint256) {
return _shares[account];
}
/**
* @dev Getter for the amount of Ether already released to a payee.
*/
function released(address account) public view returns (uint256) {
return _released[account];
}
/**
* @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
* IERC20 contract.
*/
function released(
IERC20 token,
address account
) public view returns (uint256) {
return _erc20Released[token][account];
}
/**
* @dev Getter for the address of the payee number `index`.
*/
function payee(uint256 index) public view returns (address) {
return _payees[index];
}
/**
* @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
* total shares and their previous withdrawals.
*/
function release(address payable account) public virtual {
require(_shares[account] > 0, "PaymentSplitter: account has no shares");
uint256 totalReceived = address(this).balance + totalReleased();
uint256 payment = _pendingPayment(
account,
totalReceived,
released(account)
);
require(payment != 0, "PaymentSplitter: account is not due payment");
_released[account] += payment;
_totalReleased += payment;
Address.sendValue(account, payment);
emit PaymentReleased(account, payment);
}
/**
* @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
* percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
* contract.
*/
function release(IERC20 token, address account) public virtual {
require(_shares[account] > 0, "PaymentSplitter: account has no shares");
uint256 totalReceived = token.balanceOf(address(this)) +
totalReleased(token);
uint256 payment = _pendingPayment(
account,
totalReceived,
released(token, account)
);
require(payment != 0, "PaymentSplitter: account is not due payment");
_erc20Released[token][account] += payment;
_erc20TotalReleased[token] += payment;
SafeERC20.safeTransfer(token, account, payment);
emit ERC20PaymentReleased(token, account, payment);
}
/**
* @dev internal logic for computing the pending payment of an `account` given the token historical balances and
* already released amounts.
*/
function _pendingPayment(
address account,
uint256 totalReceived,
uint256 alreadyReleased
) private view returns (uint256) {
return
(totalReceived * _shares[account]) / _totalShares - alreadyReleased;
}
/**
* @dev Add a new payee to the contract.
* @param account The address of the payee to add.
* @param shares_ The number of shares owned by the payee.
*/
function _addPayee(address account, uint256 shares_) private {
require(
account != address(0),
"PaymentSplitter: account is the zero address"
);
require(shares_ > 0, "PaymentSplitter: shares are 0");
require(
_shares[account] == 0,
"PaymentSplitter: account already has shares"
);
_payees.push(account);
_shares[account] = shares_;
_totalShares = _totalShares + shares_;
emit PayeeAdded(account, shares_);
}
}
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) external view returns (address receiver, uint256 royaltyAmount);
}
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(
bytes4 interfaceId
) public view virtual override(IERC165, ERC165) returns (bool) {
return
interfaceId == type(IERC2981).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) public view virtual override returns (address, uint256) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) /
_feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(
address receiver,
uint96 feeNumerator
) internal virtual {
require(
feeNumerator <= _feeDenominator(),
"ERC2981: royalty fee will exceed salePrice"
);
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) internal virtual {
require(
feeNumerator <= _feeDenominator(),
"ERC2981: royalty fee will exceed salePrice"
);
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
* of all the token ids in the contract as well as all token ids owned by each account.
*
* CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
* interfere with enumerability and should not be used together with `ERC721Enumerable`.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) {
require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual returns (uint256) {
require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev See {ERC721-_beforeTokenTransfer}.
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 firstTokenId,
uint256 batchSize
) internal virtual override {
super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
if (batchSize > 1) {
// Will only trigger during construction. Batch transferring (minting) is not available afterwards.
revert("ERC721Enumerable: consecutive transfers not supported");
}
uint256 tokenId = firstTokenId;
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
pragma solidity ^0.8.15;
interface ApeForgeInterface {
function _nftTokenForges(uint256 tokenId) external view returns (address);
}
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function unregister(address addr) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}
pragma solidity ^0.8.13;
//import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from == msg.sender) {
_;
return;
}
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
revert OperatorNotAllowed(msg.sender);
}
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
_;
}
}
pragma solidity ^0.8.13;
//import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}
contract BubyCubTigersMigration is ERC721Enumerable, Ownable, DefaultOperatorFilterer {
function setApprovalForAll(address operator, bool approved) public override(IERC721,ERC721) onlyAllowedOperatorApproval(operator) {
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId) public override(IERC721,ERC721) onlyAllowedOperatorApproval(operator) {
super.approve(operator, tokenId);
}
function transferFrom(address from, address to, uint256 tokenId) public override(IERC721,ERC721) onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId) public override(IERC721,ERC721) onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
public
override(IERC721,ERC721)
onlyAllowedOperator(from)
{
super.safeTransferFrom(from, to, tokenId, data);
}
address public TigerContract = 0x98d3cd2F29a4F5464266f925Fe177018e6c2F9E6;
address public TigerForge = 0x3c52158Fc20697031967a9000F6daA9D30587147;
uint256 public maxSupply = 7800;
bool public claimIsActive = false;
string public _baseTokenURI =
"ipfs://QmRN6oAhcNYHHRjELHcEcr6HFtSRf7rxH8gu6pr7Nfcc4n/";
constructor() ERC721("Baby Cub Tigers", "BCT") {
}
function isClaimed(uint256 tokenId) external view returns (bool) {
return _exists(tokenId);
}
function burn(uint256 tokenId) external {
require(
msg.sender == ownerOf(tokenId) ,
"Must own to burn"
);
_burn(tokenId);
}
event ClaimActivation(bool isActive);
function mintTiger(uint256 tokenId) internal {
_safeMint(msg.sender, tokenId);
}
function claimTigers(uint256[] memory theTokenIDs) public {
require(claimIsActive, "Claim Inactive");
uint256 numTokens = theTokenIDs.length;
require(numTokens != 0, "Empty token ID array");
for (uint256 i; i < numTokens; i++) {
require(IERC721(TigerContract).ownerOf(theTokenIDs[i]) == msg.sender);
require(!_exists(theTokenIDs[i]),"Tiger already claimed");
}
for (uint256 i; i < numTokens; i++) {
mintTiger(theTokenIDs[i]);
}
}
function claimForgedTigers(uint256[] memory theTokenIDs) external {
require(claimIsActive, "Claim Inactive");
uint256 numTokens = theTokenIDs.length;
require(numTokens != 0, "Empty token ID array");
for (uint256 i; i < numTokens; i++) {
require(ApeForgeInterface(TigerForge)._nftTokenForges(theTokenIDs[i]) == msg.sender,"Token not owned");
require(!_exists(theTokenIDs[i]),"Tiger already claimed");
}
for (uint256 i; i < numTokens; i++) {
mintTiger(theTokenIDs[i]);
}
}
function toggleClaimstatus() external onlyOwner {
claimIsActive = !claimIsActive;
emit ClaimActivation(claimIsActive);
}
function setBaseURI(string memory baseURI) external onlyOwner {
_baseTokenURI = baseURI;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function tokenURI(
uint256 tokenId
) public view override returns (string memory) {
return string(abi.encodePacked(super.tokenURI(tokenId), ".json"));
}
function changeMaxSupply(uint256 number) external onlyOwner {
maxSupply = number;
}
function ownerMint(address to, uint256 theToken) external onlyOwner {
_safeMint(to, theToken);
}
function ownerClaim() external onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"ClaimActivation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TigerContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TigerForge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"theTokenIDs","type":"uint256[]"}],"name":"claimForgedTigers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"theTokenIDs","type":"uint256[]"}],"name":"claimTigers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"theToken","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleClaimstatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
600b80546001600160a01b03199081167398d3cd2f29a4f5464266f925fe177018e6c2f9e617909155600c8054909116733c52158fc20697031967a9000f6daa9d30587147179055611e78600d55600e805460ff1916905560e0604052603660808181529062002db060a039600f906200007a908262000369565b503480156200008857600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600f81526020016e42616279204375622054696765727360881b815250604051806040016040528060038152602001621090d560ea1b8152508160009081620000f5919062000369565b50600162000104828262000369565b505050620001216200011b6200026e60201b60201c565b62000272565b6daaeb6d7670e522a718067333cd4e3b1562000266578015620001b457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200019557600080fd5b505af1158015620001aa573d6000803e3d6000fd5b5050505062000266565b6001600160a01b03821615620002055760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200017a565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024c57600080fd5b505af115801562000261573d6000803e3d6000fd5b505050505b505062000435565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002ef57607f821691505b6020821081036200031057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200036457600081815260208120601f850160051c810160208610156200033f5750805b601f850160051c820191505b8181101562000360578281556001016200034b565b5050505b505050565b81516001600160401b03811115620003855762000385620002c4565b6200039d81620003968454620002da565b8462000316565b602080601f831160018114620003d55760008415620003bc5750858301515b600019600386901b1c1916600185901b17855562000360565b600085815260208120601f198616915b828110156200040657888601518255948401946001909101908401620003e5565b5085821015620004255787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61296b80620004456000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c806355f804b31161011a578063a22cb465116100ad578063cfc86f7b1161007c578063cfc86f7b1461042f578063d5abeb0114610437578063e985e9c514610440578063f2fde38b1461047c578063f9524fd01461048f57600080fd5b8063a22cb465146103ee578063b88d4fde14610401578063bcdd666614610414578063c87b56dd1461041c57600080fd5b80638da5cb5b116100e95780638da5cb5b146103af57806395d89b41146103c057806399c29370146103c85780639e34070f146103db57600080fd5b806355f804b31461036e5780636352211e1461038157806370a0823114610394578063715018a6146103a757600080fd5b80632f745c591161019d57806342966c681161016c57806342966c6814610320578063484b973c146103335780634dbe5889146103465780634f6ccce71461034e5780635303f68c1461036157600080fd5b80632f745c59146102d2578063404c7cdd146102e557806341f43434146102f857806342842e0e1461030d57600080fd5b8063095ea7b3116101d9578063095ea7b3146102875780630e4b40001461029a57806318160ddd146102ad57806323b872dd146102bf57600080fd5b80627ffd981461020a57806301ffc9a71461021f57806306fdde0314610247578063081812fc1461025c575b600080fd5b61021d61021836600461219f565b6104a2565b005b61023261022d36600461225b565b6106ed565b60405190151581526020015b60405180910390f35b61024f610718565b60405161023e91906122c8565b61026f61026a3660046122db565b6107aa565b6040516001600160a01b03909116815260200161023e565b61021d610295366004612309565b6107d1565b600c5461026f906001600160a01b031681565b6008545b60405190815260200161023e565b61021d6102cd366004612335565b610895565b6102b16102e0366004612309565b61096e565b61021d6102f33660046122db565b610a04565b61026f6daaeb6d7670e522a718067333cd4e81565b61021d61031b366004612335565b610a33565b61021d61032e3660046122db565b610b01565b61021d610341366004612309565b610b69565b61021d610ba1565b6102b161035c3660046122db565b610bfa565b600e546102329060ff1681565b61021d61037c3660046123ce565b610c8d565b61026f61038f3660046122db565b610cc3565b6102b16103a2366004612417565b610d23565b61021d610da9565b600a546001600160a01b031661026f565b61024f610ddf565b61021d6103d636600461219f565b610dee565b6102326103e93660046122db565b610fc8565b61021d6103fc366004612442565b610fe7565b61021d61040f36600461247b565b6110ab565b61021d611187565b61024f61042a3660046122db565b6111fe565b61024f61122f565b6102b1600d5481565b61023261044e3660046124fb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61021d61048a366004612417565b6112bd565b600b5461026f906001600160a01b031681565b600e5460ff166104ea5760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b60448201526064015b60405180910390fd5b805160008190036105345760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b60448201526064016104e1565b60005b818110156106a857600c54835133916001600160a01b0316906394a7eb499086908590811061056857610568612529565b60200260200101516040518263ffffffff1660e01b815260040161058e91815260200190565b602060405180830381865afa1580156105ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cf919061253f565b6001600160a01b0316146106175760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b60448201526064016104e1565b61065183828151811061062c5761062c612529565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b156106965760405162461bcd60e51b8152602060048201526015602482015274151a59d95c88185b1c9958591e4818db185a5b5959605a1b60448201526064016104e1565b806106a081612572565b915050610537565b5060005b818110156106e8576106d68382815181106106c9576106c9612529565b6020026020010151611355565b806106e081612572565b9150506106ac565b505050565b60006001600160e01b0319821663780e9d6360e01b148061071257506107128261135f565b92915050565b6060600080546107279061258b565b80601f01602080910402602001604051908101604052809291908181526020018280546107539061258b565b80156107a05780601f10610775576101008083540402835291602001916107a0565b820191906000526020600020905b81548152906001019060200180831161078357829003601f168201915b5050505050905090565b60006107b5826113af565b506000908152600460205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561088b57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561083f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086391906125c5565b61088b57604051633b79c77360e21b81526001600160a01b03821660048201526024016104e1565b6106e8838361140e565b826daaeb6d7670e522a718067333cd4e3b1561095d57336001600160a01b038216036108cb576108c684848461151e565b610968565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e91906125c5565b61095d57604051633b79c77360e21b81523360048201526024016104e1565b61096884848461151e565b50505050565b600061097983610d23565b82106109db5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104e1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a2e5760405162461bcd60e51b81526004016104e1906125e2565b600d55565b826daaeb6d7670e522a718067333cd4e3b15610af657336001600160a01b03821603610a64576108c684848461154f565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad791906125c5565b610af657604051633b79c77360e21b81523360048201526024016104e1565b61096884848461154f565b610b0a81610cc3565b6001600160a01b0316336001600160a01b031614610b5d5760405162461bcd60e51b815260206004820152601060248201526f26bab9ba1037bbb7103a3790313ab93760811b60448201526064016104e1565b610b668161156a565b50565b600a546001600160a01b03163314610b935760405162461bcd60e51b81526004016104e1906125e2565b610b9d8282611630565b5050565b600a546001600160a01b03163314610bcb5760405162461bcd60e51b81526004016104e1906125e2565b6040514790339082156108fc029083906000818181858888f19350505050158015610b9d573d6000803e3d6000fd5b6000610c0560085490565b8210610c685760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104e1565b60088281548110610c7b57610c7b612529565b90600052602060002001549050919050565b600a546001600160a01b03163314610cb75760405162461bcd60e51b81526004016104e1906125e2565b600f610b9d8282612665565b6000818152600260205260408120546001600160a01b0316806107125760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104e1565b60006001600160a01b038216610d8d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104e1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610dd35760405162461bcd60e51b81526004016104e1906125e2565b610ddd600061164a565b565b6060600180546107279061258b565b600e5460ff16610e315760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b60448201526064016104e1565b80516000819003610e7b5760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b60448201526064016104e1565b60005b81811015610f9557600b54835133916001600160a01b031690636352211e90869085908110610eaf57610eaf612529565b60200260200101516040518263ffffffff1660e01b8152600401610ed591815260200190565b602060405180830381865afa158015610ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f16919061253f565b6001600160a01b031614610f2957600080fd5b610f3e83828151811061062c5761062c612529565b15610f835760405162461bcd60e51b8152602060048201526015602482015274151a59d95c88185b1c9958591e4818db185a5b5959605a1b60448201526064016104e1565b80610f8d81612572565b915050610e7e565b5060005b818110156106e857610fb68382815181106106c9576106c9612529565b80610fc081612572565b915050610f99565b6000818152600260205260408120546001600160a01b03161515610712565b816daaeb6d7670e522a718067333cd4e3b156110a157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906125c5565b6110a157604051633b79c77360e21b81526001600160a01b03821660048201526024016104e1565b6106e8838361169c565b836daaeb6d7670e522a718067333cd4e3b1561117457336001600160a01b038216036110e2576110dd858585856116a7565b611180565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611131573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115591906125c5565b61117457604051633b79c77360e21b81523360048201526024016104e1565b611180858585856116a7565b5050505050565b600a546001600160a01b031633146111b15760405162461bcd60e51b81526004016104e1906125e2565b600e805460ff8082161560ff1990921682179092556040519116151581527f398569ff5ba3e505659a502108faa79ea619ae2c901c198a7bf4e9b8e16bae389060200160405180910390a1565b6060611209826116d9565b6040516020016112199190612725565b6040516020818303038152906040529050919050565b600f805461123c9061258b565b80601f01602080910402602001604051908101604052809291908181526020018280546112689061258b565b80156112b55780601f1061128a576101008083540402835291602001916112b5565b820191906000526020600020905b81548152906001019060200180831161129857829003601f168201915b505050505081565b600a546001600160a01b031633146112e75760405162461bcd60e51b81526004016104e1906125e2565b6001600160a01b03811661134c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e1565b610b668161164a565b610b663382611630565b60006001600160e01b031982166380ac58cd60e01b148061139057506001600160e01b03198216635b5e139f60e01b145b8061071257506301ffc9a760e01b6001600160e01b0319831614610712565b6000818152600260205260409020546001600160a01b0316610b665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104e1565b600061141982610cc3565b9050806001600160a01b0316836001600160a01b0316036114865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104e1565b336001600160a01b03821614806114a257506114a2813361044e565b6115145760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104e1565b6106e88383611740565b61152833826117ae565b6115445760405162461bcd60e51b81526004016104e19061274e565b6106e883838361182d565b6106e8838383604051806020016040528060008152506110ab565b600061157582610cc3565b90506115858160008460016119c2565b61158e82610cc3565b600083815260046020908152604080832080546001600160a01b03191690556001600160a01b03841683526003909152812080549293506001929091906115d690849061279b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610b9d828260405180602001604052806000815250611aea565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b9d338383611b1d565b6116b133836117ae565b6116cd5760405162461bcd60e51b81526004016104e19061274e565b61096884848484611beb565b60606116e4826113af565b60006116ee611c1e565b9050600081511161170e5760405180602001604052806000815250611739565b8061171884611c2d565b6040516020016117299291906127ae565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061177582610cc3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117ba83610cc3565b9050806001600160a01b0316846001600160a01b0316148061180157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118255750836001600160a01b031661181a846107aa565b6001600160a01b0316145b949350505050565b826001600160a01b031661184082610cc3565b6001600160a01b0316146118665760405162461bcd60e51b81526004016104e1906127dd565b6001600160a01b0382166118c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104e1565b6118d583838360016119c2565b826001600160a01b03166118e882610cc3565b6001600160a01b03161461190e5760405162461bcd60e51b81526004016104e1906127dd565b600081815260046020908152604080832080546001600160a01b03191690556001600160a01b03861683526003909152812080546001929061195190849061279b565b90915550506001600160a01b03808316600081815260036020908152604080832080546001019055858352600290915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001811115611a315760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016104e1565b816001600160a01b038516611a8d57611a8881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ab0565b836001600160a01b0316856001600160a01b031614611ab057611ab08582611d2e565b6001600160a01b038416611ac7576110dd81611dcb565b846001600160a01b0316846001600160a01b031614611180576111808482611e7a565b611af48383611ebe565b611b016000848484612057565b6106e85760405162461bcd60e51b81526004016104e190612822565b816001600160a01b0316836001600160a01b031603611b7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104e1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf684848461182d565b611c0284848484612057565b6109685760405162461bcd60e51b81526004016104e190612822565b6060600f80546107279061258b565b606081600003611c545750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c7e5780611c6881612572565b9150611c779050600a8361288a565b9150611c58565b60008167ffffffffffffffff811115611c9957611c99612158565b6040519080825280601f01601f191660200182016040528015611cc3576020820181803683370190505b5090505b841561182557611cd860018361279b565b9150611ce5600a8661289e565b611cf09060306128b2565b60f81b818381518110611d0557611d05612529565b60200101906001600160f81b031916908160001a905350611d27600a8661288a565b9450611cc7565b60006001611d3b84610d23565b611d45919061279b565b600083815260076020526040902054909150808214611d98576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611ddd9060019061279b565b60008381526009602052604081205460088054939450909284908110611e0557611e05612529565b906000526020600020015490508060088381548110611e2657611e26612529565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e5e57611e5e6128c5565b6001900381819060005260206000200160009055905550505050565b6000611e8583610d23565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611f145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104e1565b6000818152600260205260409020546001600160a01b031615611f795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104e1565b611f876000838360016119c2565b6000818152600260205260409020546001600160a01b031615611fec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104e1565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561214d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061209b9033908990889088906004016128db565b6020604051808303816000875af19250505080156120d6575060408051601f3d908101601f191682019092526120d391810190612918565b60015b612133573d808015612104576040519150601f19603f3d011682016040523d82523d6000602084013e612109565b606091505b50805160000361212b5760405162461bcd60e51b81526004016104e190612822565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611825565b506001949350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561219757612197612158565b604052919050565b600060208083850312156121b257600080fd5b823567ffffffffffffffff808211156121ca57600080fd5b818501915085601f8301126121de57600080fd5b8135818111156121f0576121f0612158565b8060051b915061220184830161216e565b818152918301840191848101908884111561221b57600080fd5b938501935b8385101561223957843582529385019390850190612220565b98975050505050505050565b6001600160e01b031981168114610b6657600080fd5b60006020828403121561226d57600080fd5b813561173981612245565b60005b8381101561229357818101518382015260200161227b565b50506000910152565b600081518084526122b4816020860160208601612278565b601f01601f19169290920160200192915050565b602081526000611739602083018461229c565b6000602082840312156122ed57600080fd5b5035919050565b6001600160a01b0381168114610b6657600080fd5b6000806040838503121561231c57600080fd5b8235612327816122f4565b946020939093013593505050565b60008060006060848603121561234a57600080fd5b8335612355816122f4565b92506020840135612365816122f4565b929592945050506040919091013590565b600067ffffffffffffffff83111561239057612390612158565b6123a3601f8401601f191660200161216e565b90508281528383830111156123b757600080fd5b828260208301376000602084830101529392505050565b6000602082840312156123e057600080fd5b813567ffffffffffffffff8111156123f757600080fd5b8201601f8101841361240857600080fd5b61182584823560208401612376565b60006020828403121561242957600080fd5b8135611739816122f4565b8015158114610b6657600080fd5b6000806040838503121561245557600080fd5b8235612460816122f4565b9150602083013561247081612434565b809150509250929050565b6000806000806080858703121561249157600080fd5b843561249c816122f4565b935060208501356124ac816122f4565b925060408501359150606085013567ffffffffffffffff8111156124cf57600080fd5b8501601f810187136124e057600080fd5b6124ef87823560208401612376565b91505092959194509250565b6000806040838503121561250e57600080fd5b8235612519816122f4565b91506020830135612470816122f4565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561255157600080fd5b8151611739816122f4565b634e487b7160e01b600052601160045260246000fd5b6000600182016125845761258461255c565b5060010190565b600181811c9082168061259f57607f821691505b6020821081036125bf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156125d757600080fd5b815161173981612434565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f8211156106e857600081815260208120601f850160051c8101602086101561263e5750805b601f850160051c820191505b8181101561265d5782815560010161264a565b505050505050565b815167ffffffffffffffff81111561267f5761267f612158565b6126938161268d845461258b565b84612617565b602080601f8311600181146126c857600084156126b05750858301515b600019600386901b1c1916600185901b17855561265d565b600085815260208120601f198616915b828110156126f7578886015182559484019460019091019084016126d8565b50858210156127155787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251612737818460208701612278565b64173539b7b760d91b920191825250600501919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b818103818111156107125761071261255c565b600083516127c0818460208801612278565b8351908301906127d4818360208801612278565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261289957612899612874565b500490565b6000826128ad576128ad612874565b500690565b808201808211156107125761071261255c565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061290e9083018461229c565b9695505050505050565b60006020828403121561292a57600080fd5b81516117398161224556fea2646970667358221220a03051f7af35c8b883dea73cc1661578db314e9ca8b5fd896559598351bc5dfe64736f6c63430008110033697066733a2f2f516d524e366f4168634e594848526a454c48634563723648467453526637727848386775367072374e666363346e2f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102055760003560e01c806355f804b31161011a578063a22cb465116100ad578063cfc86f7b1161007c578063cfc86f7b1461042f578063d5abeb0114610437578063e985e9c514610440578063f2fde38b1461047c578063f9524fd01461048f57600080fd5b8063a22cb465146103ee578063b88d4fde14610401578063bcdd666614610414578063c87b56dd1461041c57600080fd5b80638da5cb5b116100e95780638da5cb5b146103af57806395d89b41146103c057806399c29370146103c85780639e34070f146103db57600080fd5b806355f804b31461036e5780636352211e1461038157806370a0823114610394578063715018a6146103a757600080fd5b80632f745c591161019d57806342966c681161016c57806342966c6814610320578063484b973c146103335780634dbe5889146103465780634f6ccce71461034e5780635303f68c1461036157600080fd5b80632f745c59146102d2578063404c7cdd146102e557806341f43434146102f857806342842e0e1461030d57600080fd5b8063095ea7b3116101d9578063095ea7b3146102875780630e4b40001461029a57806318160ddd146102ad57806323b872dd146102bf57600080fd5b80627ffd981461020a57806301ffc9a71461021f57806306fdde0314610247578063081812fc1461025c575b600080fd5b61021d61021836600461219f565b6104a2565b005b61023261022d36600461225b565b6106ed565b60405190151581526020015b60405180910390f35b61024f610718565b60405161023e91906122c8565b61026f61026a3660046122db565b6107aa565b6040516001600160a01b03909116815260200161023e565b61021d610295366004612309565b6107d1565b600c5461026f906001600160a01b031681565b6008545b60405190815260200161023e565b61021d6102cd366004612335565b610895565b6102b16102e0366004612309565b61096e565b61021d6102f33660046122db565b610a04565b61026f6daaeb6d7670e522a718067333cd4e81565b61021d61031b366004612335565b610a33565b61021d61032e3660046122db565b610b01565b61021d610341366004612309565b610b69565b61021d610ba1565b6102b161035c3660046122db565b610bfa565b600e546102329060ff1681565b61021d61037c3660046123ce565b610c8d565b61026f61038f3660046122db565b610cc3565b6102b16103a2366004612417565b610d23565b61021d610da9565b600a546001600160a01b031661026f565b61024f610ddf565b61021d6103d636600461219f565b610dee565b6102326103e93660046122db565b610fc8565b61021d6103fc366004612442565b610fe7565b61021d61040f36600461247b565b6110ab565b61021d611187565b61024f61042a3660046122db565b6111fe565b61024f61122f565b6102b1600d5481565b61023261044e3660046124fb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61021d61048a366004612417565b6112bd565b600b5461026f906001600160a01b031681565b600e5460ff166104ea5760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b60448201526064015b60405180910390fd5b805160008190036105345760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b60448201526064016104e1565b60005b818110156106a857600c54835133916001600160a01b0316906394a7eb499086908590811061056857610568612529565b60200260200101516040518263ffffffff1660e01b815260040161058e91815260200190565b602060405180830381865afa1580156105ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cf919061253f565b6001600160a01b0316146106175760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b60448201526064016104e1565b61065183828151811061062c5761062c612529565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b156106965760405162461bcd60e51b8152602060048201526015602482015274151a59d95c88185b1c9958591e4818db185a5b5959605a1b60448201526064016104e1565b806106a081612572565b915050610537565b5060005b818110156106e8576106d68382815181106106c9576106c9612529565b6020026020010151611355565b806106e081612572565b9150506106ac565b505050565b60006001600160e01b0319821663780e9d6360e01b148061071257506107128261135f565b92915050565b6060600080546107279061258b565b80601f01602080910402602001604051908101604052809291908181526020018280546107539061258b565b80156107a05780601f10610775576101008083540402835291602001916107a0565b820191906000526020600020905b81548152906001019060200180831161078357829003601f168201915b5050505050905090565b60006107b5826113af565b506000908152600460205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561088b57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561083f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086391906125c5565b61088b57604051633b79c77360e21b81526001600160a01b03821660048201526024016104e1565b6106e8838361140e565b826daaeb6d7670e522a718067333cd4e3b1561095d57336001600160a01b038216036108cb576108c684848461151e565b610968565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e91906125c5565b61095d57604051633b79c77360e21b81523360048201526024016104e1565b61096884848461151e565b50505050565b600061097983610d23565b82106109db5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104e1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a2e5760405162461bcd60e51b81526004016104e1906125e2565b600d55565b826daaeb6d7670e522a718067333cd4e3b15610af657336001600160a01b03821603610a64576108c684848461154f565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad791906125c5565b610af657604051633b79c77360e21b81523360048201526024016104e1565b61096884848461154f565b610b0a81610cc3565b6001600160a01b0316336001600160a01b031614610b5d5760405162461bcd60e51b815260206004820152601060248201526f26bab9ba1037bbb7103a3790313ab93760811b60448201526064016104e1565b610b668161156a565b50565b600a546001600160a01b03163314610b935760405162461bcd60e51b81526004016104e1906125e2565b610b9d8282611630565b5050565b600a546001600160a01b03163314610bcb5760405162461bcd60e51b81526004016104e1906125e2565b6040514790339082156108fc029083906000818181858888f19350505050158015610b9d573d6000803e3d6000fd5b6000610c0560085490565b8210610c685760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104e1565b60088281548110610c7b57610c7b612529565b90600052602060002001549050919050565b600a546001600160a01b03163314610cb75760405162461bcd60e51b81526004016104e1906125e2565b600f610b9d8282612665565b6000818152600260205260408120546001600160a01b0316806107125760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104e1565b60006001600160a01b038216610d8d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104e1565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610dd35760405162461bcd60e51b81526004016104e1906125e2565b610ddd600061164a565b565b6060600180546107279061258b565b600e5460ff16610e315760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b60448201526064016104e1565b80516000819003610e7b5760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b60448201526064016104e1565b60005b81811015610f9557600b54835133916001600160a01b031690636352211e90869085908110610eaf57610eaf612529565b60200260200101516040518263ffffffff1660e01b8152600401610ed591815260200190565b602060405180830381865afa158015610ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f16919061253f565b6001600160a01b031614610f2957600080fd5b610f3e83828151811061062c5761062c612529565b15610f835760405162461bcd60e51b8152602060048201526015602482015274151a59d95c88185b1c9958591e4818db185a5b5959605a1b60448201526064016104e1565b80610f8d81612572565b915050610e7e565b5060005b818110156106e857610fb68382815181106106c9576106c9612529565b80610fc081612572565b915050610f99565b6000818152600260205260408120546001600160a01b03161515610712565b816daaeb6d7670e522a718067333cd4e3b156110a157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906125c5565b6110a157604051633b79c77360e21b81526001600160a01b03821660048201526024016104e1565b6106e8838361169c565b836daaeb6d7670e522a718067333cd4e3b1561117457336001600160a01b038216036110e2576110dd858585856116a7565b611180565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611131573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115591906125c5565b61117457604051633b79c77360e21b81523360048201526024016104e1565b611180858585856116a7565b5050505050565b600a546001600160a01b031633146111b15760405162461bcd60e51b81526004016104e1906125e2565b600e805460ff8082161560ff1990921682179092556040519116151581527f398569ff5ba3e505659a502108faa79ea619ae2c901c198a7bf4e9b8e16bae389060200160405180910390a1565b6060611209826116d9565b6040516020016112199190612725565b6040516020818303038152906040529050919050565b600f805461123c9061258b565b80601f01602080910402602001604051908101604052809291908181526020018280546112689061258b565b80156112b55780601f1061128a576101008083540402835291602001916112b5565b820191906000526020600020905b81548152906001019060200180831161129857829003601f168201915b505050505081565b600a546001600160a01b031633146112e75760405162461bcd60e51b81526004016104e1906125e2565b6001600160a01b03811661134c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e1565b610b668161164a565b610b663382611630565b60006001600160e01b031982166380ac58cd60e01b148061139057506001600160e01b03198216635b5e139f60e01b145b8061071257506301ffc9a760e01b6001600160e01b0319831614610712565b6000818152600260205260409020546001600160a01b0316610b665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104e1565b600061141982610cc3565b9050806001600160a01b0316836001600160a01b0316036114865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104e1565b336001600160a01b03821614806114a257506114a2813361044e565b6115145760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104e1565b6106e88383611740565b61152833826117ae565b6115445760405162461bcd60e51b81526004016104e19061274e565b6106e883838361182d565b6106e8838383604051806020016040528060008152506110ab565b600061157582610cc3565b90506115858160008460016119c2565b61158e82610cc3565b600083815260046020908152604080832080546001600160a01b03191690556001600160a01b03841683526003909152812080549293506001929091906115d690849061279b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610b9d828260405180602001604052806000815250611aea565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b9d338383611b1d565b6116b133836117ae565b6116cd5760405162461bcd60e51b81526004016104e19061274e565b61096884848484611beb565b60606116e4826113af565b60006116ee611c1e565b9050600081511161170e5760405180602001604052806000815250611739565b8061171884611c2d565b6040516020016117299291906127ae565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061177582610cc3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117ba83610cc3565b9050806001600160a01b0316846001600160a01b0316148061180157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118255750836001600160a01b031661181a846107aa565b6001600160a01b0316145b949350505050565b826001600160a01b031661184082610cc3565b6001600160a01b0316146118665760405162461bcd60e51b81526004016104e1906127dd565b6001600160a01b0382166118c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104e1565b6118d583838360016119c2565b826001600160a01b03166118e882610cc3565b6001600160a01b03161461190e5760405162461bcd60e51b81526004016104e1906127dd565b600081815260046020908152604080832080546001600160a01b03191690556001600160a01b03861683526003909152812080546001929061195190849061279b565b90915550506001600160a01b03808316600081815260036020908152604080832080546001019055858352600290915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001811115611a315760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016104e1565b816001600160a01b038516611a8d57611a8881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ab0565b836001600160a01b0316856001600160a01b031614611ab057611ab08582611d2e565b6001600160a01b038416611ac7576110dd81611dcb565b846001600160a01b0316846001600160a01b031614611180576111808482611e7a565b611af48383611ebe565b611b016000848484612057565b6106e85760405162461bcd60e51b81526004016104e190612822565b816001600160a01b0316836001600160a01b031603611b7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104e1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf684848461182d565b611c0284848484612057565b6109685760405162461bcd60e51b81526004016104e190612822565b6060600f80546107279061258b565b606081600003611c545750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c7e5780611c6881612572565b9150611c779050600a8361288a565b9150611c58565b60008167ffffffffffffffff811115611c9957611c99612158565b6040519080825280601f01601f191660200182016040528015611cc3576020820181803683370190505b5090505b841561182557611cd860018361279b565b9150611ce5600a8661289e565b611cf09060306128b2565b60f81b818381518110611d0557611d05612529565b60200101906001600160f81b031916908160001a905350611d27600a8661288a565b9450611cc7565b60006001611d3b84610d23565b611d45919061279b565b600083815260076020526040902054909150808214611d98576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611ddd9060019061279b565b60008381526009602052604081205460088054939450909284908110611e0557611e05612529565b906000526020600020015490508060088381548110611e2657611e26612529565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e5e57611e5e6128c5565b6001900381819060005260206000200160009055905550505050565b6000611e8583610d23565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611f145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104e1565b6000818152600260205260409020546001600160a01b031615611f795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104e1565b611f876000838360016119c2565b6000818152600260205260409020546001600160a01b031615611fec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104e1565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561214d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061209b9033908990889088906004016128db565b6020604051808303816000875af19250505080156120d6575060408051601f3d908101601f191682019092526120d391810190612918565b60015b612133573d808015612104576040519150601f19603f3d011682016040523d82523d6000602084013e612109565b606091505b50805160000361212b5760405162461bcd60e51b81526004016104e190612822565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611825565b506001949350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561219757612197612158565b604052919050565b600060208083850312156121b257600080fd5b823567ffffffffffffffff808211156121ca57600080fd5b818501915085601f8301126121de57600080fd5b8135818111156121f0576121f0612158565b8060051b915061220184830161216e565b818152918301840191848101908884111561221b57600080fd5b938501935b8385101561223957843582529385019390850190612220565b98975050505050505050565b6001600160e01b031981168114610b6657600080fd5b60006020828403121561226d57600080fd5b813561173981612245565b60005b8381101561229357818101518382015260200161227b565b50506000910152565b600081518084526122b4816020860160208601612278565b601f01601f19169290920160200192915050565b602081526000611739602083018461229c565b6000602082840312156122ed57600080fd5b5035919050565b6001600160a01b0381168114610b6657600080fd5b6000806040838503121561231c57600080fd5b8235612327816122f4565b946020939093013593505050565b60008060006060848603121561234a57600080fd5b8335612355816122f4565b92506020840135612365816122f4565b929592945050506040919091013590565b600067ffffffffffffffff83111561239057612390612158565b6123a3601f8401601f191660200161216e565b90508281528383830111156123b757600080fd5b828260208301376000602084830101529392505050565b6000602082840312156123e057600080fd5b813567ffffffffffffffff8111156123f757600080fd5b8201601f8101841361240857600080fd5b61182584823560208401612376565b60006020828403121561242957600080fd5b8135611739816122f4565b8015158114610b6657600080fd5b6000806040838503121561245557600080fd5b8235612460816122f4565b9150602083013561247081612434565b809150509250929050565b6000806000806080858703121561249157600080fd5b843561249c816122f4565b935060208501356124ac816122f4565b925060408501359150606085013567ffffffffffffffff8111156124cf57600080fd5b8501601f810187136124e057600080fd5b6124ef87823560208401612376565b91505092959194509250565b6000806040838503121561250e57600080fd5b8235612519816122f4565b91506020830135612470816122f4565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561255157600080fd5b8151611739816122f4565b634e487b7160e01b600052601160045260246000fd5b6000600182016125845761258461255c565b5060010190565b600181811c9082168061259f57607f821691505b6020821081036125bf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156125d757600080fd5b815161173981612434565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f8211156106e857600081815260208120601f850160051c8101602086101561263e5750805b601f850160051c820191505b8181101561265d5782815560010161264a565b505050505050565b815167ffffffffffffffff81111561267f5761267f612158565b6126938161268d845461258b565b84612617565b602080601f8311600181146126c857600084156126b05750858301515b600019600386901b1c1916600185901b17855561265d565b600085815260208120601f198616915b828110156126f7578886015182559484019460019091019084016126d8565b50858210156127155787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251612737818460208701612278565b64173539b7b760d91b920191825250600501919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b818103818111156107125761071261255c565b600083516127c0818460208801612278565b8351908301906127d4818360208801612278565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261289957612899612874565b500490565b6000826128ad576128ad612874565b500690565b808201808211156107125761071261255c565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061290e9083018461229c565b9695505050505050565b60006020828403121561292a57600080fd5b81516117398161224556fea2646970667358221220a03051f7af35c8b883dea73cc1661578db314e9ca8b5fd896559598351bc5dfe64736f6c63430008110033
Deployed Bytecode Sourcemap
101221:4132:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103794:597;;;;;;:::i;:::-;;:::i;:::-;;89608:224;;;;;;:::i;:::-;;:::i;:::-;;;1928:14:1;;1921:22;1903:41;;1891:2;1876:18;89608:224:0;;;;;;;;54189:100;;;:::i;:::-;;;;;;;:::i;55694:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3060:32:1;;;3042:51;;3030:2;3015:18;55694:171:0;2896:203:1;101518:173:0;;;;;;:::i;:::-;;:::i;102413:70::-;;;;;-1:-1:-1;;;;;102413:70:0;;;90232:104;90311:10;:17;90232:104;;;3706:25:1;;;3694:2;3679:18;90232:104:0;3560:177:1;101699:179:0;;;;;;:::i;:::-;;:::i;89916:240::-;;;;;;:::i;:::-;;:::i;104974:97::-;;;;;;:::i;:::-;;:::i;98492:143::-;;98592:42;98492:143;;101886:187;;;;;;:::i;:::-;;:::i;102860:181::-;;;;;;:::i;:::-;;:::i;105081:110::-;;;;;;:::i;:::-;;:::i;105199:147::-;;;:::i;90413:207::-;;;;;;:::i;:::-;;:::i;102530:33::-;;;;;;;;;104552:104;;;;;;:::i;:::-;;:::i;53899:223::-;;;;;;:::i;:::-;;:::i;53630:207::-;;;;;;:::i;:::-;;:::i;46262:103::-;;;:::i;45611:87::-;45684:6;;-1:-1:-1;;;;;45684:6:0;45611:87;;54358:104;;;:::i;103214:566::-;;;;;;:::i;:::-;;:::i;102745:107::-;;;;;;:::i;:::-;;:::i;101317:193::-;;;;;;:::i;:::-;;:::i;102081:244::-;;;;;;:::i;:::-;;:::i;104401:143::-;;;:::i;104786:180::-;;;;;;:::i;:::-;;:::i;102572:95::-;;;:::i;102492:31::-;;;;;;56163:164;;;;;;:::i;:::-;-1:-1:-1;;;;;56284:25:0;;;56260:4;56284:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;56163:164;46520:238;;;;;;:::i;:::-;;:::i;102333:73::-;;;;;-1:-1:-1;;;;;102333:73:0;;;103794:597;103879:13;;;;103871:40;;;;-1:-1:-1;;;103871:40:0;;7468:2:1;103871:40:0;;;7450:21:1;7507:2;7487:18;;;7480:30;-1:-1:-1;;;7526:18:1;;;7519:44;7580:18;;103871:40:0;;;;;;;;;103944:18;;103924:17;103981:14;;;103973:47;;;;-1:-1:-1;;;103973:47:0;;7811:2:1;103973:47:0;;;7793:21:1;7850:2;7830:18;;;7823:30;-1:-1:-1;;;7869:18:1;;;7862:50;7929:18;;103973:47:0;7609:344:1;103973:47:0;104036:9;104031:237;104051:9;104047:1;:13;104031:237;;;104108:10;;104136:14;;104155:10;;-1:-1:-1;;;;;104108:10:0;;104090:45;;104136:11;;104148:1;;104136:14;;;;;;:::i;:::-;;;;;;;104090:61;;;;;;;;;;;;;3706:25:1;;3694:2;3679:18;;3560:177;104090:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;104090:75:0;;104082:102;;;;-1:-1:-1;;;104082:102:0;;8548:2:1;104082:102:0;;;8530:21:1;8587:2;8567:18;;;8560:30;-1:-1:-1;;;8606:18:1;;;8599:45;8661:18;;104082:102:0;8346:339:1;104082:102:0;104208:23;104216:11;104228:1;104216:14;;;;;;;;:::i;:::-;;;;;;;59027:4;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;59051:31;;;58962:128;104208:23;104207:24;104199:57;;;;-1:-1:-1;;;104199:57:0;;8892:2:1;104199:57:0;;;8874:21:1;8931:2;8911:18;;;8904:30;-1:-1:-1;;;8950:18:1;;;8943:51;9011:18;;104199:57:0;8690:345:1;104199:57:0;104062:3;;;;:::i;:::-;;;;104031:237;;;;104283:9;104278:106;104298:9;104294:1;:13;104278:106;;;104333:25;104343:11;104355:1;104343:14;;;;;;;;:::i;:::-;;;;;;;104333:9;:25::i;:::-;104309:3;;;;:::i;:::-;;;;104278:106;;;;103860:531;103794:597;:::o;89608:224::-;89710:4;-1:-1:-1;;;;;;89734:50:0;;-1:-1:-1;;;89734:50:0;;:90;;;89788:36;89812:11;89788:23;:36::i;:::-;89727:97;89608:224;-1:-1:-1;;89608:224:0:o;54189:100::-;54243:13;54276:5;54269:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54189:100;:::o;55694:171::-;55770:7;55790:23;55805:7;55790:14;:23::i;:::-;-1:-1:-1;55833:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;55833:24:0;;55694:171::o;101518:173::-;101630:8;98592:42;100486:45;:49;100482:225;;100557:67;;-1:-1:-1;;;100557:67:0;;100608:4;100557:67;;;9909:34:1;-1:-1:-1;;;;;9979:15:1;;9959:18;;;9952:43;98592:42:0;;100557;;9844:18:1;;100557:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100552:144;;100652:28;;-1:-1:-1;;;100652:28:0;;-1:-1:-1;;;;;3060:32:1;;100652:28:0;;;3042:51:1;3015:18;;100652:28:0;2896:203:1;100552:144:0;101651:32:::1;101665:8;101675:7;101651:13;:32::i;101699:179::-:0;101816:4;98592:42;99740:45;:49;99736:539;;100029:10;-1:-1:-1;;;;;100021:18:0;;;100017:85;;101833:37:::1;101852:4;101858:2;101862:7;101833:18;:37::i;:::-;100080:7:::0;;100017:85;100121:69;;-1:-1:-1;;;100121:69:0;;100172:4;100121:69;;;9909:34:1;100179:10:0;9959:18:1;;;9952:43;98592:42:0;;100121;;9844:18:1;;100121:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100116:148;;100218:30;;-1:-1:-1;;;100218:30:0;;100237:10;100218:30;;;3042:51:1;3015:18;;100218:30:0;2896:203:1;100116:148:0;101833:37:::1;101852:4;101858:2;101862:7;101833:18;:37::i;:::-;101699:179:::0;;;;:::o;89916:240::-;90004:7;90040:16;90050:5;90040:9;:16::i;:::-;90032:5;:24;90024:80;;;;-1:-1:-1;;;90024:80:0;;10458:2:1;90024:80:0;;;10440:21:1;10497:2;10477:18;;;10470:30;10536:34;10516:18;;;10509:62;-1:-1:-1;;;10587:18:1;;;10580:41;10638:19;;90024:80:0;10256:407:1;90024:80:0;-1:-1:-1;;;;;;90122:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;89916:240::o;104974:97::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;105045:9:::1;:18:::0;104974:97::o;101886:187::-;102007:4;98592:42;99740:45;:49;99736:539;;100029:10;-1:-1:-1;;;;;100021:18:0;;;100017:85;;102024:41:::1;102047:4;102053:2;102057:7;102024:22;:41::i;100017:85::-:0;100121:69;;-1:-1:-1;;;100121:69:0;;100172:4;100121:69;;;9909:34:1;100179:10:0;9959:18:1;;;9952:43;98592:42:0;;100121;;9844:18:1;;100121:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100116:148;;100218:30;;-1:-1:-1;;;100218:30:0;;100237:10;100218:30;;;3042:51:1;3015:18;;100218:30:0;2896:203:1;100116:148:0;102024:41:::1;102047:4;102053:2;102057:7;102024:22;:41::i;102860:181::-:0;102947:16;102955:7;102947;:16::i;:::-;-1:-1:-1;;;;;102933:30:0;:10;-1:-1:-1;;;;;102933:30:0;;102911:97;;;;-1:-1:-1;;;102911:97:0;;11231:2:1;102911:97:0;;;11213:21:1;11270:2;11250:18;;;11243:30;-1:-1:-1;;;11289:18:1;;;11282:46;11345:18;;102911:97:0;11029:340:1;102911:97:0;103019:14;103025:7;103019:5;:14::i;:::-;102860:181;:::o;105081:110::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;105160:23:::1;105170:2;105174:8;105160:9;:23::i;:::-;105081:110:::0;;:::o;105199:147::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;105301:37:::1;::::0;105269:21:::1;::::0;105309:10:::1;::::0;105301:37;::::1;;;::::0;105269:21;;105251:15:::1;105301:37:::0;105251:15;105301:37;105269:21;105309:10;105301:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;90413:207:::0;90479:7;90515:13;90311:10;:17;;90232:104;90515:13;90507:5;:21;90499:78;;;;-1:-1:-1;;;90499:78:0;;11576:2:1;90499:78:0;;;11558:21:1;11615:2;11595:18;;;11588:30;11654:34;11634:18;;;11627:62;-1:-1:-1;;;11705:18:1;;;11698:42;11757:19;;90499:78:0;11374:408:1;90499:78:0;90595:10;90606:5;90595:17;;;;;;;;:::i;:::-;;;;;;;;;90588:24;;90413:207;;;:::o;104552:104::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;104625:13:::1;:23;104641:7:::0;104625:13;:23:::1;:::i;53899:223::-:0;53971:7;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;;54035:56;;;;-1:-1:-1;;;54035:56:0;;14193:2:1;54035:56:0;;;14175:21:1;14232:2;14212:18;;;14205:30;-1:-1:-1;;;14251:18:1;;;14244:54;14315:18;;54035:56:0;13991:348:1;53630:207:0;53702:7;-1:-1:-1;;;;;53730:19:0;;53722:73;;;;-1:-1:-1;;;53722:73:0;;14546:2:1;53722:73:0;;;14528:21:1;14585:2;14565:18;;;14558:30;14624:34;14604:18;;;14597:62;-1:-1:-1;;;14675:18:1;;;14668:39;14724:19;;53722:73:0;14344:405:1;53722:73:0;-1:-1:-1;;;;;;53813:16:0;;;;;:9;:16;;;;;;;53630:207::o;46262:103::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;46327:30:::1;46354:1;46327:18;:30::i;:::-;46262:103::o:0;54358:104::-;54414:13;54447:7;54440:14;;;;;:::i;103214:566::-;103291:13;;;;103283:40;;;;-1:-1:-1;;;103283:40:0;;7468:2:1;103283:40:0;;;7450:21:1;7507:2;7487:18;;;7480:30;-1:-1:-1;;;7526:18:1;;;7519:44;7580:18;;103283:40:0;7266:338:1;103283:40:0;103356:18;;103336:17;103393:14;;;103385:47;;;;-1:-1:-1;;;103385:47:0;;7811:2:1;103385:47:0;;;7793:21:1;7850:2;7830:18;;;7823:30;-1:-1:-1;;;7869:18:1;;;7862:50;7929:18;;103385:47:0;7609:344:1;103385:47:0;103450:9;103445:218;103465:9;103461:1;:13;103445:218;;;103526:13;;103549:14;;103568:10;;-1:-1:-1;;;;;103526:13:0;;103518:30;;103549:11;;103561:1;;103549:14;;;;;;:::i;:::-;;;;;;;103518:46;;;;;;;;;;;;;3706:25:1;;3694:2;3679:18;;3560:177;103518:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;103518:60:0;;103510:69;;;;;;103603:23;103611:11;103623:1;103611:14;;;;;;;;:::i;103603:23::-;103602:24;103594:57;;;;-1:-1:-1;;;103594:57:0;;8892:2:1;103594:57:0;;;8874:21:1;8931:2;8911:18;;;8904:30;-1:-1:-1;;;8950:18:1;;;8943:51;9011:18;;103594:57:0;8690:345:1;103594:57:0;103476:3;;;;:::i;:::-;;;;103445:218;;;;103678:9;103673:96;103693:9;103689:1;:13;103673:96;;;103728:25;103738:11;103750:1;103738:14;;;;;;;;:::i;103728:25::-;103704:3;;;;:::i;:::-;;;;103673:96;;102745:107;102804:4;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;59051:31;;102828:16;58962:128;101317:193;101438:8;98592:42;100486:45;:49;100482:225;;100557:67;;-1:-1:-1;;;100557:67:0;;100608:4;100557:67;;;9909:34:1;-1:-1:-1;;;;;9979:15:1;;9959:18;;;9952:43;98592:42:0;;100557;;9844:18:1;;100557:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100552:144;;100652:28;;-1:-1:-1;;;100652:28:0;;-1:-1:-1;;;;;3060:32:1;;100652:28:0;;;3042:51:1;3015:18;;100652:28:0;2896:203:1;100552:144:0;101459:43:::1;101483:8;101493;101459:23;:43::i;102081:244::-:0;102248:4;98592:42;99740:45;:49;99736:539;;100029:10;-1:-1:-1;;;;;100021:18:0;;;100017:85;;102270:47:::1;102293:4;102299:2;102303:7;102312:4;102270:22;:47::i;:::-;100080:7:::0;;100017:85;100121:69;;-1:-1:-1;;;100121:69:0;;100172:4;100121:69;;;9909:34:1;100179:10:0;9959:18:1;;;9952:43;98592:42:0;;100121;;9844:18:1;;100121:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100116:148;;100218:30;;-1:-1:-1;;;100218:30:0;;100237:10;100218:30;;;3042:51:1;3015:18;;100218:30:0;2896:203:1;100116:148:0;102270:47:::1;102293:4;102299:2;102303:7;102312:4;102270:22;:47::i;:::-;102081:244:::0;;;;;:::o;104401:143::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;104477:13:::1;::::0;;::::1;::::0;;::::1;104476:14;-1:-1:-1::0;;104460:30:0;;::::1;::::0;::::1;::::0;;;104506::::1;::::0;104522:13;;1928:14:1;1921:22;1903:41;;104506:30:0::1;::::0;1891:2:1;1876:18;104506:30:0::1;;;;;;;104401:143::o:0;104786:180::-;104867:13;104924:23;104939:7;104924:14;:23::i;:::-;104907:50;;;;;;;;:::i;:::-;;;;;;;;;;;;;104893:65;;104786:180;;;:::o;102572:95::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;46520:238::-;45684:6;;-1:-1:-1;;;;;45684:6:0;34042:10;45831:23;45823:68;;;;-1:-1:-1;;;45823:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46623:22:0;::::1;46601:110;;;::::0;-1:-1:-1;;;46601:110:0;;15417:2:1;46601:110:0::1;::::0;::::1;15399:21:1::0;15456:2;15436:18;;;15429:30;15495:34;15475:18;;;15468:62;-1:-1:-1;;;15546:18:1;;;15539:36;15592:19;;46601:110:0::1;15215:402:1::0;46601:110:0::1;46722:28;46741:8;46722:18;:28::i;103096:110::-:0;103158:30;103168:10;103180:7;103158:9;:30::i;53261:305::-;53363:4;-1:-1:-1;;;;;;53400:40:0;;-1:-1:-1;;;53400:40:0;;:105;;-1:-1:-1;;;;;;;53457:48:0;;-1:-1:-1;;;53457:48:0;53400:105;:158;;;-1:-1:-1;;;;;;;;;;37013:40:0;;;53522:36;36888:173;65084:135;59027:4;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;65158:53;;;;-1:-1:-1;;;65158:53:0;;14193:2:1;65158:53:0;;;14175:21:1;14232:2;14212:18;;;14205:30;-1:-1:-1;;;14251:18:1;;;14244:54;14315:18;;65158:53:0;13991:348:1;55219:409:0;55300:13;55316:16;55324:7;55316;:16::i;:::-;55300:32;;55357:5;-1:-1:-1;;;;;55351:11:0;:2;-1:-1:-1;;;;;55351:11:0;;55343:57;;;;-1:-1:-1;;;55343:57:0;;15824:2:1;55343:57:0;;;15806:21:1;15863:2;15843:18;;;15836:30;15902:34;15882:18;;;15875:62;-1:-1:-1;;;15953:18:1;;;15946:31;15994:19;;55343:57:0;15622:397:1;55343:57:0;34042:10;-1:-1:-1;;;;;55435:21:0;;;;:62;;-1:-1:-1;55460:37:0;55477:5;34042:10;56163:164;:::i;55460:37::-;55413:173;;;;-1:-1:-1;;;55413:173:0;;16226:2:1;55413:173:0;;;16208:21:1;16265:2;16245:18;;;16238:30;16304:34;16284:18;;;16277:62;16375:31;16355:18;;;16348:59;16424:19;;55413:173:0;16024:425:1;55413:173:0;55599:21;55608:2;55612:7;55599:8;:21::i;56394:301::-;56555:41;34042:10;56588:7;56555:18;:41::i;:::-;56547:99;;;;-1:-1:-1;;;56547:99:0;;;;;;;:::i;:::-;56659:28;56669:4;56675:2;56679:7;56659:9;:28::i;56766:151::-;56870:39;56887:4;56893:2;56897:7;56870:39;;;;;;;;;;;;:16;:39::i;62095:707::-;62155:13;62171:16;62179:7;62171;:16::i;:::-;62155:32;;62200:51;62221:5;62236:1;62240:7;62249:1;62200:20;:51::i;:::-;62364:16;62372:7;62364;:16::i;:::-;62428:24;;;;:15;:24;;;;;;;;62421:31;;-1:-1:-1;;;;;;62421:31:0;;;-1:-1:-1;;;;;62620:16:0;;;;:9;:16;;;;;:21;;62356:24;;-1:-1:-1;62421:31:0;;62620:16;;62428:24;62620:21;;62421:31;;62620:21;:::i;:::-;;;;-1:-1:-1;;62661:16:0;;;;:7;:16;;;;;;62654:23;;-1:-1:-1;;;;;;62654:23:0;;;62695:36;62669:7;;62661:16;-1:-1:-1;;;;;62695:36:0;;;;;62661:16;;62695:36;105081:110;;:::o;59856:::-;59932:26;59942:2;59946:7;59932:26;;;;;;;;;;;;:9;:26::i;46918:191::-;47011:6;;;-1:-1:-1;;;;;47028:17:0;;;-1:-1:-1;;;;;;47028:17:0;;;;;;;47061:40;;47011:6;;;47028:17;47011:6;;47061:40;;46992:16;;47061:40;46981:128;46918:191;:::o;55937:155::-;56032:52;34042:10;56065:8;56075;56032:18;:52::i;56988:279::-;57119:41;34042:10;57152:7;57119:18;:41::i;:::-;57111:99;;;;-1:-1:-1;;;57111:99:0;;;;;;;:::i;:::-;57221:38;57235:4;57241:2;57245:7;57254:4;57221:13;:38::i;54533:281::-;54606:13;54632:23;54647:7;54632:14;:23::i;:::-;54668:21;54692:10;:8;:10::i;:::-;54668:34;;54744:1;54726:7;54720:21;:25;:86;;;;;;;;;;;;;;;;;54772:7;54781:18;:7;:16;:18::i;:::-;54755:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;54720:86;54713:93;54533:281;-1:-1:-1;;;54533:281:0:o;64404:167::-;64479:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;64479:29:0;-1:-1:-1;;;;;64479:29:0;;;;;;;;:24;;64533:16;64479:24;64533:7;:16::i;:::-;-1:-1:-1;;;;;64524:39:0;;;;;;;;;;;64404:167;;:::o;59257:257::-;59350:4;59367:13;59383:16;59391:7;59383;:16::i;:::-;59367:32;;59429:5;-1:-1:-1;;;;;59418:16:0;:7;-1:-1:-1;;;;;59418:16:0;;:52;;;-1:-1:-1;;;;;;56284:25:0;;;56260:4;56284:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;59438:32;59418:87;;;;59498:7;-1:-1:-1;;;;;59474:31:0;:20;59486:7;59474:11;:20::i;:::-;-1:-1:-1;;;;;59474:31:0;;59418:87;59410:96;59257:257;-1:-1:-1;;;;59257:257:0:o;63139:1146::-;63257:4;-1:-1:-1;;;;;63237:24:0;:16;63245:7;63237;:16::i;:::-;-1:-1:-1;;;;;63237:24:0;;63229:74;;;;-1:-1:-1;;;63229:74:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63322:16:0;;63314:65;;;;-1:-1:-1;;;63314:65:0;;18110:2:1;63314:65:0;;;18092:21:1;18149:2;18129:18;;;18122:30;18188:34;18168:18;;;18161:62;-1:-1:-1;;;18239:18:1;;;18232:34;18283:19;;63314:65:0;17908:400:1;63314:65:0;63392:42;63413:4;63419:2;63423:7;63432:1;63392:20;:42::i;:::-;63557:4;-1:-1:-1;;;;;63537:24:0;:16;63545:7;63537;:16::i;:::-;-1:-1:-1;;;;;63537:24:0;;63529:74;;;;-1:-1:-1;;;63529:74:0;;;;;;;:::i;:::-;63675:24;;;;:15;:24;;;;;;;;63668:31;;-1:-1:-1;;;;;;63668:31:0;;;-1:-1:-1;;;;;63867:15:0;;;;:9;:15;;;;;:20;;63668:31;;63675:24;63867:20;;63668:31;;63867:20;:::i;:::-;;;;-1:-1:-1;;;;;;;64115:13:0;;;;;;;:9;:13;;;;;;;;:18;;64132:1;64115:18;;;64157:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;64157:21:0;;;;;64196:27;64165:7;;64196:27;;;;;;104278:106;103860:531;103794:597;:::o;90694:915::-;90961:1;90949:9;:13;90945:222;;;91092:63;;-1:-1:-1;;;91092:63:0;;18515:2:1;91092:63:0;;;18497:21:1;18554:2;18534:18;;;18527:30;18593:34;18573:18;;;18566:62;-1:-1:-1;;;18644:18:1;;;18637:51;18705:19;;91092:63:0;18313:417:1;90945:222:0;91197:12;-1:-1:-1;;;;;91226:18:0;;91222:187;;91261:40;91293:7;92429:10;:17;;92402:24;;;;:15;:24;;;;;:44;;;92457:24;;;;;;;;;;;;92325:164;91261:40;91222:187;;;91331:2;-1:-1:-1;;;;;91323:10:0;:4;-1:-1:-1;;;;;91323:10:0;;91319:90;;91350:47;91383:4;91389:7;91350:32;:47::i;:::-;-1:-1:-1;;;;;91423:16:0;;91419:183;;91456:45;91493:7;91456:36;:45::i;91419:183::-;91529:4;-1:-1:-1;;;;;91523:10:0;:2;-1:-1:-1;;;;;91523:10:0;;91519:83;;91550:40;91578:2;91582:7;91550:27;:40::i;60193:285::-;60288:18;60294:2;60298:7;60288:5;:18::i;:::-;60339:53;60370:1;60374:2;60378:7;60387:4;60339:22;:53::i;:::-;60317:153;;;;-1:-1:-1;;;60317:153:0;;;;;;;:::i;64714:281::-;64835:8;-1:-1:-1;;;;;64826:17:0;:5;-1:-1:-1;;;;;64826:17:0;;64818:55;;;;-1:-1:-1;;;64818:55:0;;19356:2:1;64818:55:0;;;19338:21:1;19395:2;19375:18;;;19368:30;19434:27;19414:18;;;19407:55;19479:18;;64818:55:0;19154:349:1;64818:55:0;-1:-1:-1;;;;;64884:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;64884:46:0;;;;;;;;;;64946:41;;1903::1;;;64946::0;;1876:18:1;64946:41:0;;;;;;;64714:281;;;:::o;58148:270::-;58261:28;58271:4;58277:2;58281:7;58261:9;:28::i;:::-;58308:47;58331:4;58337:2;58341:7;58350:4;58308:22;:47::i;:::-;58300:110;;;;-1:-1:-1;;;58300:110:0;;;;;;;:::i;104664:114::-;104724:13;104757;104750:20;;;;;:::i;34404:723::-;34460:13;34681:5;34690:1;34681:10;34677:53;;-1:-1:-1;;34708:10:0;;;;;;;;;;;;-1:-1:-1;;;34708:10:0;;;;;34404:723::o;34677:53::-;34755:5;34740:12;34796:78;34803:9;;34796:78;;34829:8;;;;:::i;:::-;;-1:-1:-1;34852:10:0;;-1:-1:-1;34860:2:0;34852:10;;:::i;:::-;;;34796:78;;;34884:19;34916:6;34906:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34906:17:0;;34884:39;;34934:154;34941:10;;34934:154;;34968:11;34978:1;34968:11;;:::i;:::-;;-1:-1:-1;35037:10:0;35045:2;35037:5;:10;:::i;:::-;35024:24;;:2;:24;:::i;:::-;35011:39;;34994:6;35001;34994:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;34994:56:0;;;;;;;;-1:-1:-1;35065:11:0;35074:2;35065:11;;:::i;:::-;;;34934:154;;93116:981;93382:22;93425:1;93407:15;93417:4;93407:9;:15::i;:::-;:19;;;;:::i;:::-;93437:18;93458:26;;;:17;:26;;;;;;93382:44;;-1:-1:-1;93591:28:0;;;93587:328;;-1:-1:-1;;;;;93658:18:0;;93636:19;93658:18;;;:12;:18;;;;;;;;:34;;;;;;;;;93709:30;;;;;;:44;;;93826:30;;:17;:30;;;;;:43;;;93587:328;-1:-1:-1;94011:26:0;;;;:17;:26;;;;;;;;94004:33;;;-1:-1:-1;;;;;94055:18:0;;;;;:12;:18;;;;;:34;;;;;;;94048:41;93116:981::o;94392:1079::-;94670:10;:17;94645:22;;94670:21;;94690:1;;94670:21;:::i;:::-;94702:18;94723:24;;;:15;:24;;;;;;95096:10;:26;;94645:46;;-1:-1:-1;94723:24:0;;94645:46;;95096:26;;;;;;:::i;:::-;;;;;;;;;95074:48;;95160:11;95135:10;95146;95135:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;95240:28;;;:15;:28;;;;;;;:41;;;95412:24;;;;;95405:31;95447:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;94463:1008;;;94392:1079;:::o;91910:214::-;91995:14;92012:13;92022:2;92012:9;:13::i;:::-;-1:-1:-1;;;;;92036:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;92081:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;91910:214:0:o;60814:942::-;-1:-1:-1;;;;;60894:16:0;;60886:61;;;;-1:-1:-1;;;60886:61:0;;20346:2:1;60886:61:0;;;20328:21:1;;;20365:18;;;20358:30;20424:34;20404:18;;;20397:62;20476:18;;60886:61:0;20144:356:1;60886:61:0;59027:4;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;59051:31;60958:58;;;;-1:-1:-1;;;60958:58:0;;20707:2:1;60958:58:0;;;20689:21:1;20746:2;20726:18;;;20719:30;20785;20765:18;;;20758:58;20833:18;;60958:58:0;20505:352:1;60958:58:0;61029:48;61058:1;61062:2;61066:7;61075:1;61029:20;:48::i;:::-;59027:4;58625:16;;;:7;:16;;;;;;-1:-1:-1;;;;;58625:16:0;59051:31;61167:58;;;;-1:-1:-1;;;61167:58:0;;20707:2:1;61167:58:0;;;20689:21:1;20746:2;20726:18;;;20719:30;20785;20765:18;;;20758:58;20833:18;;61167:58:0;20505:352:1;61167:58:0;-1:-1:-1;;;;;61574:13:0;;;;;;:9;:13;;;;;;;;:18;;61591:1;61574:18;;;61616:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;61616:21:0;;;;;61655:33;61624:7;;61574:13;;61655:33;;61574:13;;61655:33;105081:110;;:::o;65783:856::-;65937:4;-1:-1:-1;;;;;65958:14:0;;;:18;65954:678;;65997:71;;-1:-1:-1;;;65997:71:0;;-1:-1:-1;;;;;65997:36:0;;;;;:71;;34042:10;;66048:4;;66054:7;;66063:4;;65997:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65997:71:0;;;;;;;;-1:-1:-1;;65997:71:0;;;;;;;;;;;;:::i;:::-;;;65993:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66238:6;:13;66255:1;66238:18;66234:328;;66281:60;;-1:-1:-1;;;66281:60:0;;;;;;;:::i;66234:328::-;66512:6;66506:13;66497:6;66493:2;66489:15;66482:38;65993:584;-1:-1:-1;;;;;;66119:51:0;-1:-1:-1;;;66119:51:0;;-1:-1:-1;66112:58:0;;65954:678;-1:-1:-1;66616:4:0;65783:856;;;;;;:::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:275;217:2;211:9;282:2;263:13;;-1:-1:-1;;259:27:1;247:40;;317:18;302:34;;338:22;;;299:62;296:88;;;364:18;;:::i;:::-;400:2;393:22;146:275;;-1:-1:-1;146:275:1:o;426:946::-;510:6;541:2;584;572:9;563:7;559:23;555:32;552:52;;;600:1;597;590:12;552:52;640:9;627:23;669:18;710:2;702:6;699:14;696:34;;;726:1;723;716:12;696:34;764:6;753:9;749:22;739:32;;809:7;802:4;798:2;794:13;790:27;780:55;;831:1;828;821:12;780:55;867:2;854:16;889:2;885;882:10;879:36;;;895:18;;:::i;:::-;941:2;938:1;934:10;924:20;;964:28;988:2;984;980:11;964:28;:::i;:::-;1026:15;;;1096:11;;;1092:20;;;1057:12;;;;1124:19;;;1121:39;;;1156:1;1153;1146:12;1121:39;1180:11;;;;1200:142;1216:6;1211:3;1208:15;1200:142;;;1282:17;;1270:30;;1233:12;;;;1320;;;;1200:142;;;1361:5;426:946;-1:-1:-1;;;;;;;;426:946:1:o;1377:131::-;-1:-1:-1;;;;;;1451:32:1;;1441:43;;1431:71;;1498:1;1495;1488:12;1513:245;1571:6;1624:2;1612:9;1603:7;1599:23;1595:32;1592:52;;;1640:1;1637;1630:12;1592:52;1679:9;1666:23;1698:30;1722:5;1698:30;:::i;1955:250::-;2040:1;2050:113;2064:6;2061:1;2058:13;2050:113;;;2140:11;;;2134:18;2121:11;;;2114:39;2086:2;2079:10;2050:113;;;-1:-1:-1;;2197:1:1;2179:16;;2172:27;1955:250::o;2210:271::-;2252:3;2290:5;2284:12;2317:6;2312:3;2305:19;2333:76;2402:6;2395:4;2390:3;2386:14;2379:4;2372:5;2368:16;2333:76;:::i;:::-;2463:2;2442:15;-1:-1:-1;;2438:29:1;2429:39;;;;2470:4;2425:50;;2210:271;-1:-1:-1;;2210:271:1:o;2486:220::-;2635:2;2624:9;2617:21;2598:4;2655:45;2696:2;2685:9;2681:18;2673:6;2655:45;:::i;2711:180::-;2770:6;2823:2;2811:9;2802:7;2798:23;2794:32;2791:52;;;2839:1;2836;2829:12;2791:52;-1:-1:-1;2862:23:1;;2711:180;-1:-1:-1;2711:180:1:o;3104:131::-;-1:-1:-1;;;;;3179:31:1;;3169:42;;3159:70;;3225:1;3222;3215:12;3240:315;3308:6;3316;3369:2;3357:9;3348:7;3344:23;3340:32;3337:52;;;3385:1;3382;3375:12;3337:52;3424:9;3411:23;3443:31;3468:5;3443:31;:::i;:::-;3493:5;3545:2;3530:18;;;;3517:32;;-1:-1:-1;;;3240:315:1:o;3742:456::-;3819:6;3827;3835;3888:2;3876:9;3867:7;3863:23;3859:32;3856:52;;;3904:1;3901;3894:12;3856:52;3943:9;3930:23;3962:31;3987:5;3962:31;:::i;:::-;4012:5;-1:-1:-1;4069:2:1;4054:18;;4041:32;4082:33;4041:32;4082:33;:::i;:::-;3742:456;;4134:7;;-1:-1:-1;;;4188:2:1;4173:18;;;;4160:32;;3742:456::o;4443:407::-;4508:5;4542:18;4534:6;4531:30;4528:56;;;4564:18;;:::i;:::-;4602:57;4647:2;4626:15;;-1:-1:-1;;4622:29:1;4653:4;4618:40;4602:57;:::i;:::-;4593:66;;4682:6;4675:5;4668:21;4722:3;4713:6;4708:3;4704:16;4701:25;4698:45;;;4739:1;4736;4729:12;4698:45;4788:6;4783:3;4776:4;4769:5;4765:16;4752:43;4842:1;4835:4;4826:6;4819:5;4815:18;4811:29;4804:40;4443:407;;;;;:::o;4855:451::-;4924:6;4977:2;4965:9;4956:7;4952:23;4948:32;4945:52;;;4993:1;4990;4983:12;4945:52;5033:9;5020:23;5066:18;5058:6;5055:30;5052:50;;;5098:1;5095;5088:12;5052:50;5121:22;;5174:4;5166:13;;5162:27;-1:-1:-1;5152:55:1;;5203:1;5200;5193:12;5152:55;5226:74;5292:7;5287:2;5274:16;5269:2;5265;5261:11;5226:74;:::i;5311:247::-;5370:6;5423:2;5411:9;5402:7;5398:23;5394:32;5391:52;;;5439:1;5436;5429:12;5391:52;5478:9;5465:23;5497:31;5522:5;5497:31;:::i;5563:118::-;5649:5;5642:13;5635:21;5628:5;5625:32;5615:60;;5671:1;5668;5661:12;5686:382;5751:6;5759;5812:2;5800:9;5791:7;5787:23;5783:32;5780:52;;;5828:1;5825;5818:12;5780:52;5867:9;5854:23;5886:31;5911:5;5886:31;:::i;:::-;5936:5;-1:-1:-1;5993:2:1;5978:18;;5965:32;6006:30;5965:32;6006:30;:::i;:::-;6055:7;6045:17;;;5686:382;;;;;:::o;6073:795::-;6168:6;6176;6184;6192;6245:3;6233:9;6224:7;6220:23;6216:33;6213:53;;;6262:1;6259;6252:12;6213:53;6301:9;6288:23;6320:31;6345:5;6320:31;:::i;:::-;6370:5;-1:-1:-1;6427:2:1;6412:18;;6399:32;6440:33;6399:32;6440:33;:::i;:::-;6492:7;-1:-1:-1;6546:2:1;6531:18;;6518:32;;-1:-1:-1;6601:2:1;6586:18;;6573:32;6628:18;6617:30;;6614:50;;;6660:1;6657;6650:12;6614:50;6683:22;;6736:4;6728:13;;6724:27;-1:-1:-1;6714:55:1;;6765:1;6762;6755:12;6714:55;6788:74;6854:7;6849:2;6836:16;6831:2;6827;6823:11;6788:74;:::i;:::-;6778:84;;;6073:795;;;;;;;:::o;6873:388::-;6941:6;6949;7002:2;6990:9;6981:7;6977:23;6973:32;6970:52;;;7018:1;7015;7008:12;6970:52;7057:9;7044:23;7076:31;7101:5;7076:31;:::i;:::-;7126:5;-1:-1:-1;7183:2:1;7168:18;;7155:32;7196:33;7155:32;7196:33;:::i;7958:127::-;8019:10;8014:3;8010:20;8007:1;8000:31;8050:4;8047:1;8040:15;8074:4;8071:1;8064:15;8090:251;8160:6;8213:2;8201:9;8192:7;8188:23;8184:32;8181:52;;;8229:1;8226;8219:12;8181:52;8261:9;8255:16;8280:31;8305:5;8280:31;:::i;9040:127::-;9101:10;9096:3;9092:20;9089:1;9082:31;9132:4;9129:1;9122:15;9156:4;9153:1;9146:15;9172:135;9211:3;9232:17;;;9229:43;;9252:18;;:::i;:::-;-1:-1:-1;9299:1:1;9288:13;;9172:135::o;9312:380::-;9391:1;9387:12;;;;9434;;;9455:61;;9509:4;9501:6;9497:17;9487:27;;9455:61;9562:2;9554:6;9551:14;9531:18;9528:38;9525:161;;9608:10;9603:3;9599:20;9596:1;9589:31;9643:4;9640:1;9633:15;9671:4;9668:1;9661:15;9525:161;;9312:380;;;:::o;10006:245::-;10073:6;10126:2;10114:9;10105:7;10101:23;10097:32;10094:52;;;10142:1;10139;10132:12;10094:52;10174:9;10168:16;10193:28;10215:5;10193:28;:::i;10668:356::-;10870:2;10852:21;;;10889:18;;;10882:30;10948:34;10943:2;10928:18;;10921:62;11015:2;11000:18;;10668:356::o;11913:545::-;12015:2;12010:3;12007:11;12004:448;;;12051:1;12076:5;12072:2;12065:17;12121:4;12117:2;12107:19;12191:2;12179:10;12175:19;12172:1;12168:27;12162:4;12158:38;12227:4;12215:10;12212:20;12209:47;;;-1:-1:-1;12250:4:1;12209:47;12305:2;12300:3;12296:12;12293:1;12289:20;12283:4;12279:31;12269:41;;12360:82;12378:2;12371:5;12368:13;12360:82;;;12423:17;;;12404:1;12393:13;12360:82;;;12364:3;;;11913:545;;;:::o;12634:1352::-;12760:3;12754:10;12787:18;12779:6;12776:30;12773:56;;;12809:18;;:::i;:::-;12838:97;12928:6;12888:38;12920:4;12914:11;12888:38;:::i;:::-;12882:4;12838:97;:::i;:::-;12990:4;;13054:2;13043:14;;13071:1;13066:663;;;;13773:1;13790:6;13787:89;;;-1:-1:-1;13842:19:1;;;13836:26;13787:89;-1:-1:-1;;12591:1:1;12587:11;;;12583:24;12579:29;12569:40;12615:1;12611:11;;;12566:57;13889:81;;13036:944;;13066:663;11860:1;11853:14;;;11897:4;11884:18;;-1:-1:-1;;13102:20:1;;;13220:236;13234:7;13231:1;13228:14;13220:236;;;13323:19;;;13317:26;13302:42;;13415:27;;;;13383:1;13371:14;;;;13250:19;;13220:236;;;13224:3;13484:6;13475:7;13472:19;13469:201;;;13545:19;;;13539:26;-1:-1:-1;;13628:1:1;13624:14;;;13640:3;13620:24;13616:37;13612:42;13597:58;13582:74;;13469:201;-1:-1:-1;;;;;13716:1:1;13700:14;;;13696:22;13683:36;;-1:-1:-1;12634:1352:1:o;14754:456::-;14986:3;15024:6;15018:13;15040:66;15099:6;15094:3;15087:4;15079:6;15075:17;15040:66;:::i;:::-;-1:-1:-1;;;15128:16:1;;15153:22;;;-1:-1:-1;15202:1:1;15191:13;;14754:456;-1:-1:-1;14754:456:1:o;16454:409::-;16656:2;16638:21;;;16695:2;16675:18;;;16668:30;16734:34;16729:2;16714:18;;16707:62;-1:-1:-1;;;16800:2:1;16785:18;;16778:43;16853:3;16838:19;;16454:409::o;16868:128::-;16935:9;;;16956:11;;;16953:37;;;16970:18;;:::i;17001:496::-;17180:3;17218:6;17212:13;17234:66;17293:6;17288:3;17281:4;17273:6;17269:17;17234:66;:::i;:::-;17363:13;;17322:16;;;;17385:70;17363:13;17322:16;17432:4;17420:17;;17385:70;:::i;:::-;17471:20;;17001:496;-1:-1:-1;;;;17001:496:1:o;17502:401::-;17704:2;17686:21;;;17743:2;17723:18;;;17716:30;17782:34;17777:2;17762:18;;17755:62;-1:-1:-1;;;17848:2:1;17833:18;;17826:35;17893:3;17878:19;;17502:401::o;18735:414::-;18937:2;18919:21;;;18976:2;18956:18;;;18949:30;19015:34;19010:2;18995:18;;18988:62;-1:-1:-1;;;19081:2:1;19066:18;;19059:48;19139:3;19124:19;;18735:414::o;19508:127::-;19569:10;19564:3;19560:20;19557:1;19550:31;19600:4;19597:1;19590:15;19624:4;19621:1;19614:15;19640:120;19680:1;19706;19696:35;;19711:18;;:::i;:::-;-1:-1:-1;19745:9:1;;19640:120::o;19765:112::-;19797:1;19823;19813:35;;19828:18;;:::i;:::-;-1:-1:-1;19862:9:1;;19765:112::o;19882:125::-;19947:9;;;19968:10;;;19965:36;;;19981:18;;:::i;20012:127::-;20073:10;20068:3;20064:20;20061:1;20054:31;20104:4;20101:1;20094:15;20128:4;20125:1;20118:15;20862:489;-1:-1:-1;;;;;21131:15:1;;;21113:34;;21183:15;;21178:2;21163:18;;21156:43;21230:2;21215:18;;21208:34;;;21278:3;21273:2;21258:18;;21251:31;;;21056:4;;21299:46;;21325:19;;21317:6;21299:46;:::i;:::-;21291:54;20862:489;-1:-1:-1;;;;;;20862:489:1:o;21356:249::-;21425:6;21478:2;21466:9;21457:7;21453:23;21449:32;21446:52;;;21494:1;21491;21484:12;21446:52;21526:9;21520:16;21545:30;21569:5;21545:30;:::i
Swarm Source
ipfs://a03051f7af35c8b883dea73cc1661578db314e9ca8b5fd896559598351bc5dfe
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.