ERC-721
Source Code
Overview
Max Total Supply
9,690 UNIDID
Holders
6,750
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 UNIDIDLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
UNIDID
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./StringUtils.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract UNIDID is Ownable, ERC721Enumerable {
using StringUtils for *;
using Strings for uint256;
using SafeMath for uint256;
string private baseUrl = '';
address public minter;
uint256 public amount = 3 * 1e14;
uint256 private fee = 100;
mapping(address => bool) public feeFlag;
mapping(uint256 => bool) public regStateMap;
mapping(uint256 => bytes32) public nftIdMap;
constructor() ERC721("Unified DID Pass", "UNIDID") {
minter = msg.sender;
}
event DidReg(string name, address to, uint256 tokenId);
event Born(uint256 tokenId);
function mintBatch(address[] memory userList,string[] memory nameList) public onlyMinter{
for(uint256 i = 0; i < userList.length; i++) {
mint(userList[i], nameList[i]);
}
}
function mint(address to, string memory name) public onlyMinter returns (uint256)
{
require(valid(name), 'the name length error');
bytes32 fullId = genId(name);
uint256 newItemId = uint256(fullId);
require(!regStateMap[newItemId], 'the domian has registered');
regStateMap[newItemId] = true;
nftIdMap[newItemId] = fullId;
_mint(to, newItemId);
emit DidReg(name, to, newItemId);
feeFlag[to] = false;
return newItemId;
}
function genId(string memory name) public view returns (bytes32) {
bytes32 fullId = keccak256(bytes(name));
return fullId;
}
function isPayFee(address user) public view returns (bool) {
return feeFlag[user];
}
function available(string memory name) public view returns (bool) {
if(!valid(name))return false;
bytes32 fullId = genId(name);
uint256 newItemId = uint256(fullId);
return !regStateMap[newItemId];
}
function burn(uint256 tokenId) public{
_burn(tokenId);
regStateMap[tokenId] = false;
nftIdMap[tokenId] = 0;
emit Born(tokenId);
}
function valid(string memory name) public pure returns(bool) {
return name.strlen() >= 3;
}
function _baseURI() internal view virtual override returns (string memory) {
return baseUrl;
}
function setBaseurl(string memory url_) public onlyOwner{
baseUrl = url_;
}
event onFee(address user);
function sendFee() payable public {
require(msg.value >= amount, 'send plant coin is err');
payable(minter).transfer(amount.mul(fee).div(100));
emit onFee(msg.sender);
feeFlag[msg.sender] = true;
}
function setAmount(uint256 _amount) public onlyOwner{
amount = _amount;
}
function setFee(uint256 _amount) public onlyOwner{
fee = _amount;
}
modifier onlyMinter() {
require(minter == _msgSender(), "Ownable: caller is not the minter");
_;
}
///////////////////////////////////////////////////////////////
bool private tranceFlag = false;
function setTranceFlag(bool val) public onlyOwner{
tranceFlag = val;
}
function approve(address to, uint256 tokenId) public virtual override {
require(tranceFlag, "action limited");
super.approve(to, tokenId);
}
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
if(!tranceFlag){
return false;
}
return super.isApprovedForAll(owner, operator);
}
function setApprovalForAll(address operator, bool approved) public virtual override {
require(tranceFlag, "action limited");
super.setApprovalForAll(operator, approved);
}
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
require(tranceFlag, "action limited");
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
require(tranceFlag, "action limited");
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
require(tranceFlag, "action limited");
super.safeTransferFrom(from, to, tokenId, data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @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 Address for address;
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 = ERC721.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 = ERC721.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 = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId, 1);
// Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
owner = ERC721.ownerOf(tokenId);
// Clear approvals
delete _tokenApprovals[tokenId];
unchecked {
// Cannot overflow, as that would require more tokens to be burned/transferred
// out than the owner initially received through minting and transferring in.
_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(ERC721.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(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
// Clear approvals from the previous owner
delete _tokenApprovals[tokenId];
unchecked {
// `_balances[from]` cannot overflow for the same reason as described in `_burn`:
// `from`'s balance is the number of token held, which is at least one before the current
// transfer.
// `_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[from] -= 1;
_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(ERC721.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.isContract()) {
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 {
if (batchSize > 1) {
if (from != address(0)) {
_balances[from] -= batchSize;
}
if (to != address(0)) {
_balances[to] += batchSize;
}
}
}
/**
* @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 {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @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.
*/
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 override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.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 = ERC721.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 = ERC721.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();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @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);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @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`.
*
* 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;
/**
* @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* 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 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 the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract STANDARD is Ownable, ERC721Enumerable{
string private _uri;
mapping(address => bool) public minters;
uint256 public index = 0;
uint256 public totalNew = 0;
uint256 public totalEth = 0;
mapping(uint256 => uint256) public typeMap;
modifier onlyMinter(){
require(minters[msg.sender], "onlyMinter");
_;
}
constructor(string memory name, string memory symbol, string memory uri) ERC721(name, symbol){
_uri = uri;
minters[msg.sender] = true;
}
function _baseURI() internal view override returns (string memory) {
return _uri;
}
function setBaseUri(string calldata uri) external onlyOwner{
_uri = uri;
}
function setMinter(address account, bool enable) external onlyOwner{
minters[account] = enable;
}
function mintBatch(address[] memory userList, uint256[] memory typeList, string[] memory nameList) public onlyMinter{
for(uint256 i = 0; i < userList.length; i++) {
mint(userList[i], typeList[i], nameList[i]);
}
}
mapping(uint256 => bytes32) public idMap;
mapping(bytes32 => uint256) public nameMap;
function genId(string memory name) public view returns (bytes32) {
bytes32 fullId = keccak256(bytes(name));
return fullId;
}
//types 1=ETH, 2=NEW
function mint(address to, uint256 types, string memory name) public onlyMinter{
require((types == 1 || types == 2), 'types value error');
if(types ==1){
require((totalEth <= 5000), 'eth max value error');
}else{
require((totalNew <= 5000), 'new max value error');
}
typeMap[index] = types;
bytes32 nameId = genId(name);
idMap[index] = nameId;
nameMap[nameId] = index;
_mint(to, index);
index ++;
if(types ==1){
totalEth ++;
}else{
totalNew ++;
}
}
}pragma solidity >=0.8.4;
library StringUtils {
/**
* @dev Returns the length of a given string
*
* @param s The string to measure the length of
* @return The length of the input string
*/
function strlen(string memory s) internal pure returns (uint) {
uint len;
uint i = 0;
uint bytelength = bytes(s).length;
for(len = 0; i < bytelength; len++) {
bytes1 b = bytes(s)[i];
if(b < 0x80) {
i += 1;
} else if (b < 0xE0) {
i += 2;
} else if (b < 0xF0) {
i += 3;
} else if (b < 0xF8) {
i += 4;
} else if (b < 0xFC) {
i += 5;
} else {
i += 6;
}
}
return len;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256","name":"tokenId","type":"uint256"}],"name":"Born","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"DidReg","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"onFee","type":"event"},{"inputs":[],"name":"amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"available","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"address","name":"","type":"address"}],"name":"feeFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"genId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"address","name":"user","type":"address"}],"name":"isPayFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"name","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"userList","type":"address[]"},{"internalType":"string[]","name":"nameList","type":"string[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftIdMap","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"regStateMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"sendFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setAmount","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":"url_","type":"string"}],"name":"setBaseurl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setTranceFlag","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":[{"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"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"valid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
60a06040819052600060808190526200001b91600b9162000140565b50660110d9316ec000600d556064600e556012805460ff191690553480156200004357600080fd5b506040518060400160405280601081526020016f556e696669656420444944205061737360801b8152506040518060400160405280600681526020016515539251125160d21b815250620000a6620000a0620000ec60201b60201c565b620000f0565b8151620000bb90600190602085019062000140565b508051620000d190600290602084019062000140565b5050600c80546001600160a01b031916331790555062000223565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200014e90620001e6565b90600052602060002090601f016020900481019282620001725760008555620001bd565b82601f106200018d57805160ff1916838001178555620001bd565b82800160010185558215620001bd579182015b82811115620001bd578251825591602001919060010190620001a0565b50620001cb929150620001cf565b5090565b5b80821115620001cb5760008155600101620001d0565b600181811c90821680620001fb57607f821691505b602082108114156200021d57634e487b7160e01b600052602260045260246000fd5b50919050565b61288080620002336000396000f3fe60806040526004361061020f5760003560e01c80636b85fc9611610118578063aa8c217c116100a0578063c87b56dd1161006f578063c87b56dd1461063a578063d0def5211461065a578063e985e9c51461067a578063ebe5b0ac1461069a578063f2fde38b146106ba57600080fd5b8063aa8c217c146105dc578063ae39279f146105f2578063aeb8ce9b146105fa578063b88d4fde1461061a57600080fd5b80638da5cb5b116100e75780638da5cb5b14610549578063924cff6d1461056757806395d89b41146105875780639791c0971461059c578063a22cb465146105bc57600080fd5b80636b85fc96146104ab57806370a08231146104db578063715018a6146104fb5780637647231c1461051057600080fd5b8063271f88b41161019b57806342842e0e1161016a57806342842e0e1461040b57806342966c681461042b5780634f6ccce71461044b5780636352211e1461046b57806369fe0e2d1461048b57600080fd5b8063271f88b41461037b5780632e183f441461039b5780632f745c59146103cb57806330e92cd2146103eb57600080fd5b8063081812fc116101e2578063081812fc146102de578063095ea7b3146102fe57806318160ddd1461032057806323b872dd1461033557806324a970111461035557600080fd5b806301ffc9a714610214578063047e9d081461024957806306fdde031461028457806307546172146102a6575b600080fd5b34801561022057600080fd5b5061023461022f36600461241a565b6106da565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b50610276610264366004612485565b60116020526000908152604090205481565b604051908152602001610240565b34801561029057600080fd5b50610299610705565b6040516102409190612535565b3480156102b257600080fd5b50600c546102c6906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b3480156102ea57600080fd5b506102c66102f9366004612485565b610797565b34801561030a57600080fd5b5061031e610319366004612320565b6107be565b005b34801561032c57600080fd5b50600954610276565b34801561034157600080fd5b5061031e6103503660046121f7565b6107f7565b34801561036157600080fd5b50610276610370366004612452565b805160209091012090565b34801561038757600080fd5b5061031e610396366004612485565b610829565b3480156103a757600080fd5b506102346103b6366004612485565b60106020526000908152604090205460ff1681565b3480156103d757600080fd5b506102766103e6366004612320565b610836565b3480156103f757600080fd5b5061031e610406366004612400565b6108cc565b34801561041757600080fd5b5061031e6104263660046121f7565b6108e7565b34801561043757600080fd5b5061031e610446366004612485565b610914565b34801561045757600080fd5b50610276610466366004612485565b610974565b34801561047757600080fd5b506102c6610486366004612485565b610a15565b34801561049757600080fd5b5061031e6104a6366004612485565b610a75565b3480156104b757600080fd5b506102346104c63660046121ab565b600f6020526000908152604090205460ff1681565b3480156104e757600080fd5b506102766104f63660046121ab565b610a82565b34801561050757600080fd5b5061031e610b08565b34801561051c57600080fd5b5061023461052b3660046121ab565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561055557600080fd5b506000546001600160a01b03166102c6565b34801561057357600080fd5b5061031e610582366004612349565b610b1c565b34801561059357600080fd5b50610299610bbd565b3480156105a857600080fd5b506102346105b7366004612452565b610bcc565b3480156105c857600080fd5b5061031e6105d73660046122ab565b610be1565b3480156105e857600080fd5b50610276600d5481565b61031e610c0d565b34801561060657600080fd5b50610234610615366004612452565b610d00565b34801561062657600080fd5b5061031e610635366004612232565b610d36565b34801561064657600080fd5b50610299610655366004612485565b610d6a565b34801561066657600080fd5b506102766106753660046122d4565b610dd1565b34801561068657600080fd5b506102346106953660046121c5565b610f4d565b3480156106a657600080fd5b5061031e6106b5366004612452565b610f90565b3480156106c657600080fd5b5061031e6106d53660046121ab565b610fab565b60006001600160e01b0319821663780e9d6360e01b14806106ff57506106ff82611024565b92915050565b606060018054610714906127b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610740906127b2565b801561078d5780601f106107625761010080835404028352916020019161078d565b820191906000526020600020905b81548152906001019060200180831161077057829003601f168201915b5050505050905090565b60006107a282611074565b506000908152600560205260409020546001600160a01b031690565b60125460ff166107e95760405162461bcd60e51b81526004016107e09061265a565b60405180910390fd5b6107f382826110d3565b5050565b60125460ff166108195760405162461bcd60e51b81526004016107e09061265a565b6108248383836111e4565b505050565b610831611215565b600d55565b600061084183610a82565b82106108a35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107e0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6108d4611215565b6012805460ff1916911515919091179055565b60125460ff166109095760405162461bcd60e51b81526004016107e09061265a565b61082483838361126f565b61091d8161128a565b6000818152601060209081526040808320805460ff19169055601182528083209290925590518281527f3fb1eacbb719ae1eb8a759b6d528f5f50302a6f6fef873e6048c1c23b1bb70ba910160405180910390a150565b600061097f60095490565b82106109e25760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107e0565b60098281548110610a0357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600360205260408120546001600160a01b0316806106ff5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107e0565b610a7d611215565b600e55565b60006001600160a01b038216610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107e0565b506001600160a01b031660009081526004602052604090205490565b610b10611215565b610b1a600061132d565b565b600c546001600160a01b03163314610b465760405162461bcd60e51b81526004016107e090612682565b60005b825181101561082457610baa838281518110610b7557634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610b9d57634e487b7160e01b600052603260045260246000fd5b6020026020010151610dd1565b5080610bb5816127ed565b915050610b49565b606060028054610714906127b2565b60006003610bd98361137d565b101592915050565b60125460ff16610c035760405162461bcd60e51b81526004016107e09061265a565b6107f3828261148e565b600d54341015610c585760405162461bcd60e51b815260206004820152601660248201527539b2b73210383630b73a1031b7b4b71034b99032b93960511b60448201526064016107e0565b600c54600e54600d546001600160a01b03909216916108fc91610c8891606491610c829190611499565b906114a5565b6040518115909202916000818181858888f19350505050158015610cb0573d6000803e3d6000fd5b506040513381527fb12f5af0376ac25b56b6a919f59971ba489dfb3089aea8ed7c25b53cea1863e79060200160405180910390a1336000908152600f60205260409020805460ff19166001179055565b6000610d0b82610bcc565b610d1757506000919050565b50805160209182012060009081526010909152604090205460ff161590565b60125460ff16610d585760405162461bcd60e51b81526004016107e09061265a565b610d64848484846114b1565b50505050565b6060610d7582611074565b6000610d7f6114e3565b90506000815111610d9f5760405180602001604052806000815250610dca565b80610da9846114f2565b604051602001610dba9291906124c9565b6040516020818303038152906040525b9392505050565b600c546000906001600160a01b03163314610dfe5760405162461bcd60e51b81526004016107e090612682565b610e0782610bcc565b610e4b5760405162461bcd60e51b81526020600482015260156024820152743a3432903730b6b2903632b733ba341032b93937b960591b60448201526064016107e0565b81516020830120600090600081815260106020526040902054909150819060ff1615610eb95760405162461bcd60e51b815260206004820152601a60248201527f7468652020646f6d69616e20686173207265676973746572656400000000000060448201526064016107e0565b6000818152601060209081526040808320805460ff1916600117905560119091529020829055610ee9858261159d565b7f3e02d5ccc067c34e233e88822fe72e228a6d23c50e92bfa228b492c1afc603d7848683604051610f1c93929190612548565b60405180910390a16001600160a01b0385166000908152600f60205260409020805460ff1916905591505092915050565b60125460009060ff16610f62575060006106ff565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16610dca565b610f98611215565b80516107f390600b906020840190611fdd565b610fb3611215565b6001600160a01b0381166110185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e0565b6110218161132d565b50565b60006001600160e01b031982166380ac58cd60e01b148061105557506001600160e01b03198216635b5e139f60e01b145b806106ff57506301ffc9a760e01b6001600160e01b03198316146106ff565b6000818152600360205260409020546001600160a01b03166110215760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107e0565b60006110de82610a15565b9050806001600160a01b0316836001600160a01b0316141561114c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107e0565b336001600160a01b038216148061116857506111688133610f4d565b6111da5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107e0565b6108248383611736565b6111ee33826117a4565b61120a5760405162461bcd60e51b81526004016107e090612576565b610824838383611803565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e0565b61082483838360405180602001604052806000815250610d36565b600061129582610a15565b90506112a5816000846001611974565b6112ae82610a15565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051600090819081905b808210156114855760008583815181106113b157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160ff1b8110156113e0576113d9600184612718565b9250611472565b600760fd1b6001600160f81b031982161015611401576113d9600284612718565b600f60fc1b6001600160f81b031982161015611422576113d9600384612718565b601f60fb1b6001600160f81b031982161015611443576113d9600484612718565b603f60fa1b6001600160f81b031982161015611464576113d9600584612718565b61146f600684612718565b92505b508261147d816127ed565b935050611387565b50909392505050565b6107f3338383611ab4565b6000610dca8284612750565b6000610dca8284612730565b6114bb33836117a4565b6114d75760405162461bcd60e51b81526004016107e090612576565b610d6484848484611b83565b6060600b8054610714906127b2565b606060006114ff83611bb6565b600101905060008167ffffffffffffffff81111561152d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611557576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461159057611595565b611561565b509392505050565b6001600160a01b0382166115f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107e0565b6000818152600360205260409020546001600160a01b0316156116585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b611666600083836001611974565b6000818152600360205260409020546001600160a01b0316156116cb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061176b82610a15565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117b083610a15565b9050806001600160a01b0316846001600160a01b031614806117d757506117d78185610f4d565b806117fb5750836001600160a01b03166117f084610797565b6001600160a01b0316145b949350505050565b826001600160a01b031661181682610a15565b6001600160a01b03161461183c5760405162461bcd60e51b81526004016107e090612615565b6001600160a01b03821661189e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107e0565b6118ab8383836001611974565b826001600160a01b03166118be82610a15565b6001600160a01b0316146118e45760405162461bcd60e51b81526004016107e090612615565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61198084848484611c8e565b60018111156119ef5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016107e0565b816001600160a01b038516611a4b57611a4681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611a6e565b836001600160a01b0316856001600160a01b031614611a6e57611a6e8582611d16565b6001600160a01b038416611a8a57611a8581611db3565b611aad565b846001600160a01b0316846001600160a01b031614611aad57611aad8482611e8c565b5050505050565b816001600160a01b0316836001600160a01b03161415611b165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107e0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b8e848484611803565b611b9a84848484611ed0565b610d645760405162461bcd60e51b81526004016107e0906125c3565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bf55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c21576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c3f57662386f26fc10000830492506010015b6305f5e1008310611c57576305f5e100830492506008015b6127108310611c6b57612710830492506004015b60648310611c7d576064830492506002015b600a83106106ff5760010192915050565b6001811115610d64576001600160a01b03841615611cd4576001600160a01b03841660009081526004602052604081208054839290611cce90849061276f565b90915550505b6001600160a01b03831615610d64576001600160a01b03831660009081526004602052604081208054839290611d0b908490612718565b909155505050505050565b60006001611d2384610a82565b611d2d919061276f565b600083815260086020526040902054909150808214611d80576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611dc59060019061276f565b6000838152600a602052604081205460098054939450909284908110611dfb57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110611e2a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611e7057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611e9783610a82565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b0384163b15611fd257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f149033908990889088906004016124f8565b602060405180830381600087803b158015611f2e57600080fd5b505af1925050508015611f5e575060408051601f3d908101601f19168201909252611f5b91810190612436565b60015b611fb8573d808015611f8c576040519150601f19603f3d011682016040523d82523d6000602084013e611f91565b606091505b508051611fb05760405162461bcd60e51b81526004016107e0906125c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117fb565b506001949350505050565b828054611fe9906127b2565b90600052602060002090601f01602090048101928261200b5760008555612051565b82601f1061202457805160ff1916838001178555612051565b82800160010185558215612051579182015b82811115612051578251825591602001919060010190612036565b5061205d929150612061565b5090565b5b8082111561205d5760008155600101612062565b600067ffffffffffffffff8311156120905761209061281e565b6120a3601f8401601f19166020016126c3565b90508281528383830111156120b757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146120e557600080fd5b919050565b600082601f8301126120fa578081fd5b8135602061210f61210a836126f4565b6126c3565b80838252828201915082860187848660051b890101111561212e578586fd5b855b8581101561216f57813567ffffffffffffffff81111561214e578788fd5b61215c8a87838c010161218c565b8552509284019290840190600101612130565b5090979650505050505050565b803580151581146120e557600080fd5b600082601f83011261219c578081fd5b610dca83833560208501612076565b6000602082840312156121bc578081fd5b610dca826120ce565b600080604083850312156121d7578081fd5b6121e0836120ce565b91506121ee602084016120ce565b90509250929050565b60008060006060848603121561220b578081fd5b612214846120ce565b9250612222602085016120ce565b9150604084013590509250925092565b60008060008060808587031215612247578081fd5b612250856120ce565b935061225e602086016120ce565b925060408501359150606085013567ffffffffffffffff811115612280578182fd5b8501601f81018713612290578182fd5b61229f87823560208401612076565b91505092959194509250565b600080604083850312156122bd578182fd5b6122c6836120ce565b91506121ee6020840161217c565b600080604083850312156122e6578182fd5b6122ef836120ce565b9150602083013567ffffffffffffffff81111561230a578182fd5b6123168582860161218c565b9150509250929050565b60008060408385031215612332578182fd5b61233b836120ce565b946020939093013593505050565b6000806040838503121561235b578182fd5b823567ffffffffffffffff80821115612372578384fd5b818501915085601f830112612385578384fd5b8135602061239561210a836126f4565b8083825282820191508286018a848660051b89010111156123b4578889fd5b8896505b848710156123dd576123c9816120ce565b8352600196909601959183019183016123b8565b50965050860135925050808211156123f3578283fd5b50612316858286016120ea565b600060208284031215612411578081fd5b610dca8261217c565b60006020828403121561242b578081fd5b8135610dca81612834565b600060208284031215612447578081fd5b8151610dca81612834565b600060208284031215612463578081fd5b813567ffffffffffffffff811115612479578182fd5b6117fb8482850161218c565b600060208284031215612496578081fd5b5035919050565b600081518084526124b5816020860160208601612786565b601f01601f19169290920160200192915050565b600083516124db818460208801612786565b8351908301906124ef818360208801612786565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061252b9083018461249d565b9695505050505050565b602081526000610dca602083018461249d565b60608152600061255b606083018661249d565b6001600160a01b039490941660208301525060400152919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252600e908201526d1858dd1a5bdb881b1a5b5a5d195960921b604082015260600190565b60208082526021908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e74656040820152603960f91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156126ec576126ec61281e565b604052919050565b600067ffffffffffffffff82111561270e5761270e61281e565b5060051b60200190565b6000821982111561272b5761272b612808565b500190565b60008261274b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561276a5761276a612808565b500290565b60008282101561278157612781612808565b500390565b60005b838110156127a1578181015183820152602001612789565b83811115610d645750506000910152565b600181811c908216806127c657607f821691505b602082108114156127e757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280157612801612808565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461102157600080fdfea26469706673582212207722bc6c8da756f5c5a885d69722f7f5115b6346171ba6e3d79a458f8e28290c64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80636b85fc9611610118578063aa8c217c116100a0578063c87b56dd1161006f578063c87b56dd1461063a578063d0def5211461065a578063e985e9c51461067a578063ebe5b0ac1461069a578063f2fde38b146106ba57600080fd5b8063aa8c217c146105dc578063ae39279f146105f2578063aeb8ce9b146105fa578063b88d4fde1461061a57600080fd5b80638da5cb5b116100e75780638da5cb5b14610549578063924cff6d1461056757806395d89b41146105875780639791c0971461059c578063a22cb465146105bc57600080fd5b80636b85fc96146104ab57806370a08231146104db578063715018a6146104fb5780637647231c1461051057600080fd5b8063271f88b41161019b57806342842e0e1161016a57806342842e0e1461040b57806342966c681461042b5780634f6ccce71461044b5780636352211e1461046b57806369fe0e2d1461048b57600080fd5b8063271f88b41461037b5780632e183f441461039b5780632f745c59146103cb57806330e92cd2146103eb57600080fd5b8063081812fc116101e2578063081812fc146102de578063095ea7b3146102fe57806318160ddd1461032057806323b872dd1461033557806324a970111461035557600080fd5b806301ffc9a714610214578063047e9d081461024957806306fdde031461028457806307546172146102a6575b600080fd5b34801561022057600080fd5b5061023461022f36600461241a565b6106da565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b50610276610264366004612485565b60116020526000908152604090205481565b604051908152602001610240565b34801561029057600080fd5b50610299610705565b6040516102409190612535565b3480156102b257600080fd5b50600c546102c6906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b3480156102ea57600080fd5b506102c66102f9366004612485565b610797565b34801561030a57600080fd5b5061031e610319366004612320565b6107be565b005b34801561032c57600080fd5b50600954610276565b34801561034157600080fd5b5061031e6103503660046121f7565b6107f7565b34801561036157600080fd5b50610276610370366004612452565b805160209091012090565b34801561038757600080fd5b5061031e610396366004612485565b610829565b3480156103a757600080fd5b506102346103b6366004612485565b60106020526000908152604090205460ff1681565b3480156103d757600080fd5b506102766103e6366004612320565b610836565b3480156103f757600080fd5b5061031e610406366004612400565b6108cc565b34801561041757600080fd5b5061031e6104263660046121f7565b6108e7565b34801561043757600080fd5b5061031e610446366004612485565b610914565b34801561045757600080fd5b50610276610466366004612485565b610974565b34801561047757600080fd5b506102c6610486366004612485565b610a15565b34801561049757600080fd5b5061031e6104a6366004612485565b610a75565b3480156104b757600080fd5b506102346104c63660046121ab565b600f6020526000908152604090205460ff1681565b3480156104e757600080fd5b506102766104f63660046121ab565b610a82565b34801561050757600080fd5b5061031e610b08565b34801561051c57600080fd5b5061023461052b3660046121ab565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561055557600080fd5b506000546001600160a01b03166102c6565b34801561057357600080fd5b5061031e610582366004612349565b610b1c565b34801561059357600080fd5b50610299610bbd565b3480156105a857600080fd5b506102346105b7366004612452565b610bcc565b3480156105c857600080fd5b5061031e6105d73660046122ab565b610be1565b3480156105e857600080fd5b50610276600d5481565b61031e610c0d565b34801561060657600080fd5b50610234610615366004612452565b610d00565b34801561062657600080fd5b5061031e610635366004612232565b610d36565b34801561064657600080fd5b50610299610655366004612485565b610d6a565b34801561066657600080fd5b506102766106753660046122d4565b610dd1565b34801561068657600080fd5b506102346106953660046121c5565b610f4d565b3480156106a657600080fd5b5061031e6106b5366004612452565b610f90565b3480156106c657600080fd5b5061031e6106d53660046121ab565b610fab565b60006001600160e01b0319821663780e9d6360e01b14806106ff57506106ff82611024565b92915050565b606060018054610714906127b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610740906127b2565b801561078d5780601f106107625761010080835404028352916020019161078d565b820191906000526020600020905b81548152906001019060200180831161077057829003601f168201915b5050505050905090565b60006107a282611074565b506000908152600560205260409020546001600160a01b031690565b60125460ff166107e95760405162461bcd60e51b81526004016107e09061265a565b60405180910390fd5b6107f382826110d3565b5050565b60125460ff166108195760405162461bcd60e51b81526004016107e09061265a565b6108248383836111e4565b505050565b610831611215565b600d55565b600061084183610a82565b82106108a35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107e0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6108d4611215565b6012805460ff1916911515919091179055565b60125460ff166109095760405162461bcd60e51b81526004016107e09061265a565b61082483838361126f565b61091d8161128a565b6000818152601060209081526040808320805460ff19169055601182528083209290925590518281527f3fb1eacbb719ae1eb8a759b6d528f5f50302a6f6fef873e6048c1c23b1bb70ba910160405180910390a150565b600061097f60095490565b82106109e25760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107e0565b60098281548110610a0357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600360205260408120546001600160a01b0316806106ff5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107e0565b610a7d611215565b600e55565b60006001600160a01b038216610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107e0565b506001600160a01b031660009081526004602052604090205490565b610b10611215565b610b1a600061132d565b565b600c546001600160a01b03163314610b465760405162461bcd60e51b81526004016107e090612682565b60005b825181101561082457610baa838281518110610b7557634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610b9d57634e487b7160e01b600052603260045260246000fd5b6020026020010151610dd1565b5080610bb5816127ed565b915050610b49565b606060028054610714906127b2565b60006003610bd98361137d565b101592915050565b60125460ff16610c035760405162461bcd60e51b81526004016107e09061265a565b6107f3828261148e565b600d54341015610c585760405162461bcd60e51b815260206004820152601660248201527539b2b73210383630b73a1031b7b4b71034b99032b93960511b60448201526064016107e0565b600c54600e54600d546001600160a01b03909216916108fc91610c8891606491610c829190611499565b906114a5565b6040518115909202916000818181858888f19350505050158015610cb0573d6000803e3d6000fd5b506040513381527fb12f5af0376ac25b56b6a919f59971ba489dfb3089aea8ed7c25b53cea1863e79060200160405180910390a1336000908152600f60205260409020805460ff19166001179055565b6000610d0b82610bcc565b610d1757506000919050565b50805160209182012060009081526010909152604090205460ff161590565b60125460ff16610d585760405162461bcd60e51b81526004016107e09061265a565b610d64848484846114b1565b50505050565b6060610d7582611074565b6000610d7f6114e3565b90506000815111610d9f5760405180602001604052806000815250610dca565b80610da9846114f2565b604051602001610dba9291906124c9565b6040516020818303038152906040525b9392505050565b600c546000906001600160a01b03163314610dfe5760405162461bcd60e51b81526004016107e090612682565b610e0782610bcc565b610e4b5760405162461bcd60e51b81526020600482015260156024820152743a3432903730b6b2903632b733ba341032b93937b960591b60448201526064016107e0565b81516020830120600090600081815260106020526040902054909150819060ff1615610eb95760405162461bcd60e51b815260206004820152601a60248201527f7468652020646f6d69616e20686173207265676973746572656400000000000060448201526064016107e0565b6000818152601060209081526040808320805460ff1916600117905560119091529020829055610ee9858261159d565b7f3e02d5ccc067c34e233e88822fe72e228a6d23c50e92bfa228b492c1afc603d7848683604051610f1c93929190612548565b60405180910390a16001600160a01b0385166000908152600f60205260409020805460ff1916905591505092915050565b60125460009060ff16610f62575060006106ff565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16610dca565b610f98611215565b80516107f390600b906020840190611fdd565b610fb3611215565b6001600160a01b0381166110185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e0565b6110218161132d565b50565b60006001600160e01b031982166380ac58cd60e01b148061105557506001600160e01b03198216635b5e139f60e01b145b806106ff57506301ffc9a760e01b6001600160e01b03198316146106ff565b6000818152600360205260409020546001600160a01b03166110215760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107e0565b60006110de82610a15565b9050806001600160a01b0316836001600160a01b0316141561114c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107e0565b336001600160a01b038216148061116857506111688133610f4d565b6111da5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107e0565b6108248383611736565b6111ee33826117a4565b61120a5760405162461bcd60e51b81526004016107e090612576565b610824838383611803565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e0565b61082483838360405180602001604052806000815250610d36565b600061129582610a15565b90506112a5816000846001611974565b6112ae82610a15565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051600090819081905b808210156114855760008583815181106113b157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160ff1b8110156113e0576113d9600184612718565b9250611472565b600760fd1b6001600160f81b031982161015611401576113d9600284612718565b600f60fc1b6001600160f81b031982161015611422576113d9600384612718565b601f60fb1b6001600160f81b031982161015611443576113d9600484612718565b603f60fa1b6001600160f81b031982161015611464576113d9600584612718565b61146f600684612718565b92505b508261147d816127ed565b935050611387565b50909392505050565b6107f3338383611ab4565b6000610dca8284612750565b6000610dca8284612730565b6114bb33836117a4565b6114d75760405162461bcd60e51b81526004016107e090612576565b610d6484848484611b83565b6060600b8054610714906127b2565b606060006114ff83611bb6565b600101905060008167ffffffffffffffff81111561152d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611557576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461159057611595565b611561565b509392505050565b6001600160a01b0382166115f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107e0565b6000818152600360205260409020546001600160a01b0316156116585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b611666600083836001611974565b6000818152600360205260409020546001600160a01b0316156116cb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061176b82610a15565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117b083610a15565b9050806001600160a01b0316846001600160a01b031614806117d757506117d78185610f4d565b806117fb5750836001600160a01b03166117f084610797565b6001600160a01b0316145b949350505050565b826001600160a01b031661181682610a15565b6001600160a01b03161461183c5760405162461bcd60e51b81526004016107e090612615565b6001600160a01b03821661189e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107e0565b6118ab8383836001611974565b826001600160a01b03166118be82610a15565b6001600160a01b0316146118e45760405162461bcd60e51b81526004016107e090612615565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61198084848484611c8e565b60018111156119ef5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016107e0565b816001600160a01b038516611a4b57611a4681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611a6e565b836001600160a01b0316856001600160a01b031614611a6e57611a6e8582611d16565b6001600160a01b038416611a8a57611a8581611db3565b611aad565b846001600160a01b0316846001600160a01b031614611aad57611aad8482611e8c565b5050505050565b816001600160a01b0316836001600160a01b03161415611b165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107e0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b8e848484611803565b611b9a84848484611ed0565b610d645760405162461bcd60e51b81526004016107e0906125c3565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bf55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c21576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c3f57662386f26fc10000830492506010015b6305f5e1008310611c57576305f5e100830492506008015b6127108310611c6b57612710830492506004015b60648310611c7d576064830492506002015b600a83106106ff5760010192915050565b6001811115610d64576001600160a01b03841615611cd4576001600160a01b03841660009081526004602052604081208054839290611cce90849061276f565b90915550505b6001600160a01b03831615610d64576001600160a01b03831660009081526004602052604081208054839290611d0b908490612718565b909155505050505050565b60006001611d2384610a82565b611d2d919061276f565b600083815260086020526040902054909150808214611d80576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611dc59060019061276f565b6000838152600a602052604081205460098054939450909284908110611dfb57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110611e2a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611e7057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611e9783610a82565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b0384163b15611fd257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f149033908990889088906004016124f8565b602060405180830381600087803b158015611f2e57600080fd5b505af1925050508015611f5e575060408051601f3d908101601f19168201909252611f5b91810190612436565b60015b611fb8573d808015611f8c576040519150601f19603f3d011682016040523d82523d6000602084013e611f91565b606091505b508051611fb05760405162461bcd60e51b81526004016107e0906125c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117fb565b506001949350505050565b828054611fe9906127b2565b90600052602060002090601f01602090048101928261200b5760008555612051565b82601f1061202457805160ff1916838001178555612051565b82800160010185558215612051579182015b82811115612051578251825591602001919060010190612036565b5061205d929150612061565b5090565b5b8082111561205d5760008155600101612062565b600067ffffffffffffffff8311156120905761209061281e565b6120a3601f8401601f19166020016126c3565b90508281528383830111156120b757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146120e557600080fd5b919050565b600082601f8301126120fa578081fd5b8135602061210f61210a836126f4565b6126c3565b80838252828201915082860187848660051b890101111561212e578586fd5b855b8581101561216f57813567ffffffffffffffff81111561214e578788fd5b61215c8a87838c010161218c565b8552509284019290840190600101612130565b5090979650505050505050565b803580151581146120e557600080fd5b600082601f83011261219c578081fd5b610dca83833560208501612076565b6000602082840312156121bc578081fd5b610dca826120ce565b600080604083850312156121d7578081fd5b6121e0836120ce565b91506121ee602084016120ce565b90509250929050565b60008060006060848603121561220b578081fd5b612214846120ce565b9250612222602085016120ce565b9150604084013590509250925092565b60008060008060808587031215612247578081fd5b612250856120ce565b935061225e602086016120ce565b925060408501359150606085013567ffffffffffffffff811115612280578182fd5b8501601f81018713612290578182fd5b61229f87823560208401612076565b91505092959194509250565b600080604083850312156122bd578182fd5b6122c6836120ce565b91506121ee6020840161217c565b600080604083850312156122e6578182fd5b6122ef836120ce565b9150602083013567ffffffffffffffff81111561230a578182fd5b6123168582860161218c565b9150509250929050565b60008060408385031215612332578182fd5b61233b836120ce565b946020939093013593505050565b6000806040838503121561235b578182fd5b823567ffffffffffffffff80821115612372578384fd5b818501915085601f830112612385578384fd5b8135602061239561210a836126f4565b8083825282820191508286018a848660051b89010111156123b4578889fd5b8896505b848710156123dd576123c9816120ce565b8352600196909601959183019183016123b8565b50965050860135925050808211156123f3578283fd5b50612316858286016120ea565b600060208284031215612411578081fd5b610dca8261217c565b60006020828403121561242b578081fd5b8135610dca81612834565b600060208284031215612447578081fd5b8151610dca81612834565b600060208284031215612463578081fd5b813567ffffffffffffffff811115612479578182fd5b6117fb8482850161218c565b600060208284031215612496578081fd5b5035919050565b600081518084526124b5816020860160208601612786565b601f01601f19169290920160200192915050565b600083516124db818460208801612786565b8351908301906124ef818360208801612786565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061252b9083018461249d565b9695505050505050565b602081526000610dca602083018461249d565b60608152600061255b606083018661249d565b6001600160a01b039490941660208301525060400152919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252600e908201526d1858dd1a5bdb881b1a5b5a5d195960921b604082015260600190565b60208082526021908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e74656040820152603960f91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156126ec576126ec61281e565b604052919050565b600067ffffffffffffffff82111561270e5761270e61281e565b5060051b60200190565b6000821982111561272b5761272b612808565b500190565b60008261274b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561276a5761276a612808565b500290565b60008282101561278157612781612808565b500390565b60005b838110156127a1578181015183820152602001612789565b83811115610d645750506000910152565b600181811c908216806127c657607f821691505b602082108114156127e757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280157612801612808565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461102157600080fdfea26469706673582212207722bc6c8da756f5c5a885d69722f7f5115b6346171ba6e3d79a458f8e28290c64736f6c63430008040033
Deployed Bytecode Sourcemap
244:4296:16:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1005:222:4;;;;;;;;;;-1:-1:-1;1005:222:4;;;;;:::i;:::-;;:::i;:::-;;;8433:14:17;;8426:22;8408:41;;8396:2;8381:18;1005:222:4;;;;;;;;612:43:16;;;;;;;;;;-1:-1:-1;612:43:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;8606:25:17;;;8594:2;8579:18;612:43:16;8561:76:17;2471:98:1;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;420:21:16:-;;;;;;;;;;-1:-1:-1;420:21:16;;;;-1:-1:-1;;;;;420:21:16;;;;;;-1:-1:-1;;;;;7731:32:17;;;7713:51;;7701:2;7686:18;420:21:16;7668:102:17;3935:167:1;;;;;;;;;;-1:-1:-1;3935:167:1;;;;;:::i;:::-;;:::i;3318:160:16:-;;;;;;;;;;-1:-1:-1;3318:160:16;;;;;:::i;:::-;;:::i;:::-;;1630:111:4;;;;;;;;;;-1:-1:-1;1717:10:4;:17;1630:111;;3914:190:16;;;;;;;;;;-1:-1:-1;3914:190:16;;;;;:::i;:::-;;:::i;1576:144::-;;;;;;;;;;-1:-1:-1;1576:144:16;;;;;:::i;:::-;1668:22;;;;;;;;1576:144;2825:85;;;;;;;;;;-1:-1:-1;2825:85:16;;;;;:::i;:::-;;:::i;563:43::-;;;;;;;;;;-1:-1:-1;563:43:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;1306:253:4;;;;;;;;;;-1:-1:-1;1306:253:4;;;;;:::i;:::-;;:::i;3230:82:16:-;;;;;;;;;;-1:-1:-1;3230:82:16;;;;;:::i;:::-;;:::i;4110:198::-;;;;;;;;;;-1:-1:-1;4110:198:16;;;;;:::i;:::-;;:::i;2068:165::-;;;;;;;;;;-1:-1:-1;2068:165:16;;;;;:::i;:::-;;:::i;1813:230:4:-;;;;;;;;;;-1:-1:-1;1813:230:4;;;;;:::i;:::-;;:::i;2190:219:1:-;;;;;;;;;;-1:-1:-1;2190:219:1;;;;;:::i;:::-;;:::i;2916:79:16:-;;;;;;;;;;-1:-1:-1;2916:79:16;;;;;:::i;:::-;;:::i;517:39::-;;;;;;;;;;-1:-1:-1;517:39:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;1929:204:1;;;;;;;;;;-1:-1:-1;1929:204:1;;;;;:::i;:::-;;:::i;1831:101:0:-;;;;;;;;;;;;;:::i;1726:96:16:-;;;;;;;;;;-1:-1:-1;1726:96:16;;;;;:::i;:::-;-1:-1:-1;;;;;1802:13:16;1779:4;1802:13;;;:7;:13;;;;;;;;;1726:96;1201:85:0;;;;;;;;;;-1:-1:-1;1247:7:0;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;849:204:16;;;;;;;;;;-1:-1:-1;849:204:16;;;;;:::i;:::-;;:::i;2633:102:1:-;;;;;;;;;;;;;:::i;2239:103:16:-;;;;;;;;;;-1:-1:-1;2239:103:16;;;;;:::i;:::-;;:::i;3717:191::-;;;;;;;;;;-1:-1:-1;3717:191:16;;;;;:::i;:::-;;:::i;448:32::-;;;;;;;;;;;;;;;;2585:234;;;:::i;1828:::-;;;;;;;;;;-1:-1:-1;1828:234:16;;;;;:::i;:::-;;:::i;4314:223::-;;;;;;;;;;-1:-1:-1;4314:223:16;;;;;:::i;:::-;;:::i;2801:276:1:-;;;;;;;;;;-1:-1:-1;2801:276:1;;;;;:::i;:::-;;:::i;1059:511:16:-;;;;;;;;;;-1:-1:-1;1059:511:16;;;;;:::i;:::-;;:::i;3484:227::-;;;;;;;;;;-1:-1:-1;3484:227:16;;;;;:::i;:::-;;:::i;2460:87::-;;;;;;;;;;-1:-1:-1;2460:87:16;;;;;:::i;:::-;;:::i;2081:198:0:-;;;;;;;;;;-1:-1:-1;2081:198:0;;;;;:::i;:::-;;:::i;1005:222:4:-;1107:4;-1:-1:-1;;;;;;1130:50:4;;-1:-1:-1;;;1130:50:4;;:90;;;1184:36;1208:11;1184:23;:36::i;:::-;1123:97;1005:222;-1:-1:-1;;1005:222:4:o;2471:98:1:-;2525:13;2557:5;2550:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2471:98;:::o;3935:167::-;4011:7;4030:23;4045:7;4030:14;:23::i;:::-;-1:-1:-1;4071:24:1;;;;:15;:24;;;;;;-1:-1:-1;;;;;4071:24:1;;3935:167::o;3318:160:16:-;3406:10;;;;3398:37;;;;-1:-1:-1;;;3398:37:16;;;;;;;:::i;:::-;;;;;;;;;3445:26;3459:2;3463:7;3445:13;:26::i;:::-;3318:160;;:::o;3914:190::-;4021:10;;;;4013:37;;;;-1:-1:-1;;;4013:37:16;;;;;;;:::i;:::-;4060;4079:4;4085:2;4089:7;4060:18;:37::i;:::-;3914:190;;;:::o;2825:85::-;1094:13:0;:11;:13::i;:::-;2887:6:16::1;:16:::0;2825:85::o;1306:253:4:-;1403:7;1438:23;1455:5;1438:16;:23::i;:::-;1430:5;:31;1422:87;;;;-1:-1:-1;;;1422:87:4;;9874:2:17;1422:87:4;;;9856:21:17;9913:2;9893:18;;;9886:30;9952:34;9932:18;;;9925:62;-1:-1:-1;;;10003:18:17;;;9996:41;10054:19;;1422:87:4;9846:233:17;1422:87:4;-1:-1:-1;;;;;;1526:19:4;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1306:253::o;3230:82:16:-;1094:13:0;:11;:13::i;:::-;3289:10:16::1;:16:::0;;-1:-1:-1;;3289:16:16::1;::::0;::::1;;::::0;;;::::1;::::0;;3230:82::o;4110:198::-;4221:10;;;;4213:37;;;;-1:-1:-1;;;4213:37:16;;;;;;;:::i;:::-;4260:41;4283:4;4289:2;4293:7;4260:22;:41::i;2068:165::-;2115:14;2121:7;2115:5;:14::i;:::-;2162:5;2139:20;;;:11;:20;;;;;;;;:28;;-1:-1:-1;;2139:28:16;;;2177:8;:17;;;;;:21;;;;2213:13;;8606:25:17;;;2213:13:16;;8579:18:17;2213:13:16;;;;;;;2068:165;:::o;1813:230:4:-;1888:7;1923:30;1717:10;:17;;1630:111;1923:30;1915:5;:38;1907:95;;;;-1:-1:-1;;;1907:95:4;;16397:2:17;1907:95:4;;;16379:21:17;16436:2;16416:18;;;16409:30;16475:34;16455:18;;;16448:62;-1:-1:-1;;;16526:18:17;;;16519:42;16578:19;;1907:95:4;16369:234:17;1907:95:4;2019:10;2030:5;2019:17;;;;;;-1:-1:-1;;;2019:17:4;;;;;;;;;;;;;;;;;2012:24;;1813:230;;;:::o;2190:219:1:-;2262:7;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;;2324:56;;;;-1:-1:-1;;;2324:56:1;;14810:2:17;2324:56:1;;;14792:21:17;14849:2;14829:18;;;14822:30;-1:-1:-1;;;14868:18:17;;;14861:54;14932:18;;2324:56:1;14782:174:17;2916:79:16;1094:13:0;:11;:13::i;:::-;2975:3:16::1;:13:::0;2916:79::o;1929:204:1:-;2001:7;-1:-1:-1;;;;;2028:19:1;;2020:73;;;;-1:-1:-1;;;2020:73:1;;12985:2:17;2020:73:1;;;12967:21:17;13024:2;13004:18;;;12997:30;13063:34;13043:18;;;13036:62;-1:-1:-1;;;13114:18:17;;;13107:39;13163:19;;2020:73:1;12957:231:17;2020:73:1;-1:-1:-1;;;;;;2110:16:1;;;;;:9;:16;;;;;;;1929:204::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;849:204:16:-;3041:6;;-1:-1:-1;;;;;3041:6:16;719:10:8;3041:22:16;3033:68;;;;-1:-1:-1;;;3033:68:16;;;;;;;:::i;:::-;951:9:::1;947:100;970:8;:15;966:1;:19;947:100;;;1006:30;1011:8;1020:1;1011:11;;;;;;-1:-1:-1::0;;;1011:11:16::1;;;;;;;;;;;;;;;1024:8;1033:1;1024:11;;;;;;-1:-1:-1::0;;;1024:11:16::1;;;;;;;;;;;;;;;1006:4;:30::i;:::-;-1:-1:-1::0;987:3:16;::::1;::::0;::::1;:::i;:::-;;;;947:100;;2633:102:1::0;2689:13;2721:7;2714:14;;;;;:::i;2239:103:16:-;2294:4;2334:1;2317:13;:4;:11;:13::i;:::-;:18;;;2239:103;-1:-1:-1;;2239:103:16:o;3717:191::-;3819:10;;;;3811:37;;;;-1:-1:-1;;;3811:37:16;;;;;;;:::i;:::-;3858:43;3882:8;3892;3858:23;:43::i;2585:234::-;2651:6;;2638:9;:19;;2630:54;;;;-1:-1:-1;;;2630:54:16;;12634:2:17;2630:54:16;;;12616:21:17;12673:2;12653:18;;;12646:30;-1:-1:-1;;;12692:18:17;;;12685:52;12754:18;;2630:54:16;12606:172:17;2630:54:16;2702:6;;2730:3;;2719:6;;-1:-1:-1;;;;;2702:6:16;;;;2694:50;;2719:24;;2739:3;;2719:15;;:6;:10;:15::i;:::-;:19;;:24::i;:::-;2694:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2759:17:16;;2765:10;7713:51:17;;2759:17:16;;7701:2:17;7686:18;2759:17:16;;;;;;;2794:10;2786:19;;;;:7;:19;;;;;:26;;-1:-1:-1;;2786:26:16;2808:4;2786:26;;;2585:234::o;1828:::-;1888:4;1908:11;1914:4;1908:5;:11::i;:::-;1904:28;;-1:-1:-1;1927:5:16;;1828:234;-1:-1:-1;1828:234:16:o;1904:28::-;-1:-1:-1;1668:22:16;;;;;;;1942:14;2033:22;;;:11;:22;;;;;;;;;2032:23;;1828:234::o;4314:223::-;4444:10;;;;4436:37;;;;-1:-1:-1;;;4436:37:16;;;;;;;:::i;:::-;4483:47;4506:4;4512:2;4516:7;4525:4;4483:22;:47::i;:::-;4314:223;;;;:::o;2801:276:1:-;2874:13;2899:23;2914:7;2899:14;:23::i;:::-;2933:21;2957:10;:8;:10::i;:::-;2933:34;;3008:1;2990:7;2984:21;:25;:86;;;;;;;;;;;;;;;;;3036:7;3045:18;:7;:16;:18::i;:::-;3019:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2984:86;2977:93;2801:276;-1:-1:-1;;;2801:276:1:o;1059:511:16:-;3041:6;;1132:7;;-1:-1:-1;;;;;3041:6:16;719:10:8;3041:22:16;3033:68;;;;-1:-1:-1;;;3033:68:16;;;;;;;:::i;:::-;1163:11:::1;1169:4;1163:5;:11::i;:::-;1155:45;;;::::0;-1:-1:-1;;;1155:45:16;;14460:2:17;1155:45:16::1;::::0;::::1;14442:21:17::0;14499:2;14479:18;;;14472:30;-1:-1:-1;;;14518:18:17;;;14511:51;14579:18;;1155:45:16::1;14432:171:17::0;1155:45:16::1;1668:22:::0;;;;;;1211:14:::1;::::0;1249:17:::1;1304:22:::0;;;:11:::1;:22;::::0;;;;;1211:28;;-1:-1:-1;1211:28:16;;1304:22:::1;;1303:23;1295:62;;;::::0;-1:-1:-1;;;1295:62:16;;16810:2:17;1295:62:16::1;::::0;::::1;16792:21:17::0;16849:2;16829:18;;;16822:30;16888:28;16868:18;;;16861:56;16934:18;;1295:62:16::1;16782:176:17::0;1295:62:16::1;1368:22;::::0;;;:11:::1;:22;::::0;;;;;;;:29;;-1:-1:-1;;1368:29:16::1;1393:4;1368:29;::::0;;1407:8:::1;:19:::0;;;;;:28;;;1445:20:::1;1451:2:::0;1380:9;1445:5:::1;:20::i;:::-;1480:27;1487:4;1493:2;1497:9;1480:27;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;1518:11:16;::::1;1532:5;1518:11:::0;;;:7:::1;:11;::::0;;;;:19;;-1:-1:-1;;1518:19:16::1;::::0;;1554:9;-1:-1:-1;;1059:511:16;;;;:::o;3484:227::-;3601:10;;3581:4;;3601:10;;3597:52;;-1:-1:-1;3633:5:16;3626:12;;3597:52;-1:-1:-1;;;;;4508:25:1;;;4485:4;4508:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;3665:39:16;4388:162:1;2460:87:16;1094:13:0;:11;:13::i;:::-;2526:14:16;;::::1;::::0;:7:::1;::::0;:14:::1;::::0;::::1;::::0;::::1;:::i;2081:198:0:-:0;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;10705:2:17;2161:73:0::1;::::0;::::1;10687:21:17::0;10744:2;10724:18;;;10717:30;10783:34;10763:18;;;10756:62;-1:-1:-1;;;10834:18:17;;;10827:36;10880:19;;2161:73:0::1;10677:228:17::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;1570:300:1:-;1672:4;-1:-1:-1;;;;;;1707:40:1;;-1:-1:-1;;;1707:40:1;;:104;;-1:-1:-1;;;;;;;1763:48:1;;-1:-1:-1;;;1763:48:1;1707:104;:156;;;-1:-1:-1;;;;;;;;;;937:40:10;;;1827:36:1;829:155:10;13466:133:1;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;13539:53;;;;-1:-1:-1;;;13539:53:1;;14810:2:17;13539:53:1;;;14792:21:17;14849:2;14829:18;;;14822:30;-1:-1:-1;;;14868:18:17;;;14861:54;14932:18;;13539:53:1;14782:174:17;3468:406:1;3548:13;3564:23;3579:7;3564:14;:23::i;:::-;3548:39;;3611:5;-1:-1:-1;;;;;3605:11:1;:2;-1:-1:-1;;;;;3605:11:1;;;3597:57;;;;-1:-1:-1;;;3597:57:1;;15163:2:17;3597:57:1;;;15145:21:17;15202:2;15182:18;;;15175:30;15241:34;15221:18;;;15214:62;-1:-1:-1;;;15292:18:17;;;15285:31;15333:19;;3597:57:1;15135:223:17;3597:57:1;719:10:8;-1:-1:-1;;;;;3686:21:1;;;;:62;;-1:-1:-1;3711:37:1;3728:5;719:10:8;3484:227:16;:::i;3711:37:1:-;3665:170;;;;-1:-1:-1;;;3665:170:1;;15967:2:17;3665:170:1;;;15949:21:17;16006:2;15986:18;;;15979:30;16045:34;16025:18;;;16018:62;16116:31;16096:18;;;16089:59;16165:19;;3665:170:1;15939:251:17;3665:170:1;3846:21;3855:2;3859:7;3846:8;:21::i;4612:326::-;4801:41;719:10:8;4834:7:1;4801:18;:41::i;:::-;4793:99;;;;-1:-1:-1;;;4793:99:1;;;;;;;:::i;:::-;4903:28;4913:4;4919:2;4923:7;4903:9;:28::i;1359:130:0:-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;719:10:8;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;14099:2:17;1414:68:0;;;14081:21:17;;;14118:18;;;14111:30;14177:34;14157:18;;;14150:62;14229:18;;1414:68:0;14071:182:17;5004:179:1;5137:39;5154:4;5160:2;5164:7;5137:39;;;;;;;;;;;;:16;:39::i;10337:762::-;10396:13;10412:23;10427:7;10412:14;:23::i;:::-;10396:39;;10446:51;10467:5;10482:1;10486:7;10495:1;10446:20;:51::i;:::-;10607:23;10622:7;10607:14;:23::i;:::-;10675:24;;;;:15;:24;;;;;;;;10668:31;;-1:-1:-1;;;;;;10668:31:1;;;;;;-1:-1:-1;;;;;10915:16:1;;;;;:9;:16;;;;;:21;;-1:-1:-1;;10915:21:1;;;10963:16;;;:7;:16;;;;;;10956:23;;;;;;;10995:36;10599:31;;-1:-1:-1;10691:7:1;;10995:36;;10675:24;;10995:36;3318:160:16;;:::o;2433:187:0:-;2506:16;2525:6;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;;;;;2541:17:0;;;;;;2573:40;;2525:6;;;;;;;2573:40;;2506:16;2573:40;2433:187;;:::o;222:608:15:-;350:15;;278:4;;;;;;375:429;392:10;388:1;:14;375:429;;;425:8;442:1;445;436:11;;;;;;-1:-1:-1;;;436:11:15;;;;;;;;;;;;;-1:-1:-1;;;;;;436:11:15;;-1:-1:-1;;;;464:8:15;;461:333;;;492:6;497:1;492:6;;:::i;:::-;;;461:333;;;-1:-1:-1;;;;;;;;;523:8:15;;;519:275;;;551:6;556:1;551:6;;:::i;519:275::-;-1:-1:-1;;;;;;;;;582:8:15;;;578:216;;;610:6;615:1;610:6;;:::i;578:216::-;-1:-1:-1;;;;;;;;;641:8:15;;;637:157;;;669:6;674:1;669:6;;:::i;637:157::-;-1:-1:-1;;;;;;;;;700:8:15;;;696:98;;;728:6;733:1;728:6;;:::i;696:98::-;773:6;778:1;773:6;;:::i;:::-;;;696:98;-1:-1:-1;404:5:15;;;;:::i;:::-;;;;375:429;;;-1:-1:-1;820:3:15;;222:608;-1:-1:-1;;;222:608:15:o;4169:153:1:-;4263:52;719:10:8;4296:8:1;4306;4263:18;:52::i;3465:96:13:-;3523:7;3549:5;3553:1;3549;:5;:::i;3850:96::-;3908:7;3934:5;3938:1;3934;:5;:::i;5249:314:1:-;5417:41;719:10:8;5450:7:1;5417:18;:41::i;:::-;5409:99;;;;-1:-1:-1;;;5409:99:1;;;;;;;:::i;:::-;5518:38;5532:4;5538:2;5542:7;5551:4;5518:13;:38::i;2348:106:16:-;2408:13;2440:7;2433:14;;;;;:::i;415:696:9:-;471:13;520:14;537:17;548:5;537:10;:17::i;:::-;557:1;537:21;520:38;;572:20;606:6;595:18;;;;;;-1:-1:-1;;;595:18:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;595:18:9;-1:-1:-1;572:41:9;-1:-1:-1;733:28:9;;;749:2;733:28;788:280;-1:-1:-1;;819:5:9;-1:-1:-1;;;953:2:9;942:14;;937:30;819:5;924:44;1012:2;1003:11;;;-1:-1:-1;1036:10:9;1032:21;;1048:5;;1032:21;788:280;;;-1:-1:-1;1088:6:9;415:696;-1:-1:-1;;;415:696:9:o;9091:920:1:-;-1:-1:-1;;;;;9170:16:1;;9162:61;;;;-1:-1:-1;;;9162:61:1;;13738:2:17;9162:61:1;;;13720:21:17;;;13757:18;;;13750:30;13816:34;13796:18;;;13789:62;13868:18;;9162:61:1;13710:182:17;9162:61:1;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;7344:31;9233:58;;;;-1:-1:-1;;;9233:58:1;;11518:2:17;9233:58:1;;;11500:21:17;11557:2;11537:18;;;11530:30;11596;11576:18;;;11569:58;11644:18;;9233:58:1;11490:178:17;9233:58:1;9302:48;9331:1;9335:2;9339:7;9348:1;9302:20;:48::i;:::-;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;7344:31;9437:58;;;;-1:-1:-1;;;9437:58:1;;11518:2:17;9437:58:1;;;11500:21:17;11557:2;11537:18;;;11530:30;11596;11576:18;;;11569:58;11644:18;;9437:58:1;11490:178:17;9437:58:1;-1:-1:-1;;;;;9837:13:1;;;;;;:9;:13;;;;;;;;:18;;9854:1;9837:18;;;9876:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9876:21:1;;;;;9913:33;9884:7;;9837:13;;9913:33;;9837:13;;9913:33;3318:160:16;;:::o;12768:171:1:-;12842:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;12842:29:1;-1:-1:-1;;;;;12842:29:1;;;;;;;;:24;;12895:23;12842:24;12895:14;:23::i;:::-;-1:-1:-1;;;;;12886:46:1;;;;;;;;;;;12768:171;;:::o;7540:261::-;7633:4;7649:13;7665:23;7680:7;7665:14;:23::i;:::-;7649:39;;7717:5;-1:-1:-1;;;;;7706:16:1;:7;-1:-1:-1;;;;;7706:16:1;;:52;;;;7726:32;7743:5;7750:7;7726:16;:32::i;:::-;7706:87;;;;7786:7;-1:-1:-1;;;;;7762:31:1;:20;7774:7;7762:11;:20::i;:::-;-1:-1:-1;;;;;7762:31:1;;7706:87;7698:96;7540:261;-1:-1:-1;;;;7540:261:1:o;11423:1233::-;11577:4;-1:-1:-1;;;;;11550:31:1;:23;11565:7;11550:14;:23::i;:::-;-1:-1:-1;;;;;11550:31:1;;11542:81;;;;-1:-1:-1;;;11542:81:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;11641:16:1;;11633:65;;;;-1:-1:-1;;;11633:65:1;;11875:2:17;11633:65:1;;;11857:21:17;11914:2;11894:18;;;11887:30;11953:34;11933:18;;;11926:62;-1:-1:-1;;;12004:18:17;;;11997:34;12048:19;;11633:65:1;11847:226:17;11633:65:1;11709:42;11730:4;11736:2;11740:7;11749:1;11709:20;:42::i;:::-;11878:4;-1:-1:-1;;;;;11851:31:1;:23;11866:7;11851:14;:23::i;:::-;-1:-1:-1;;;;;11851:31:1;;11843:81;;;;-1:-1:-1;;;11843:81:1;;;;;;;:::i;:::-;11993:24;;;;:15;:24;;;;;;;;11986:31;;-1:-1:-1;;;;;;11986:31:1;;;;;;-1:-1:-1;;;;;12461:15:1;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;12461:20:1;;;12495:13;;;;;;;;;:18;;11986:31;12495:18;;;12533:16;;;:7;:16;;;;;;:21;;;;;;;;;;12570:27;;12009:7;;12570:27;;;3914:190:16;;;:::o;2112:890:4:-;2283:61;2310:4;2316:2;2320:12;2334:9;2283:26;:61::i;:::-;2371:1;2359:9;:13;2355:219;;;2500:63;;-1:-1:-1;;;2500:63:4;;17165:2:17;2500:63:4;;;17147:21:17;17204:2;17184:18;;;17177:30;17243:34;17223:18;;;17216:62;-1:-1:-1;;;17294:18:17;;;17287:51;17355:19;;2500:63:4;17137:243:17;2355:219:4;2602:12;-1:-1:-1;;;;;2629:18:4;;2625:183;;2663:40;2695:7;3811:10;:17;;3784:24;;;;:15;:24;;;;;:44;;;3838:24;;;;;;;;;;;;3708:161;2663:40;2625:183;;;2732:2;-1:-1:-1;;;;;2724:10:4;:4;-1:-1:-1;;;;;2724:10:4;;2720:88;;2750:47;2783:4;2789:7;2750:32;:47::i;:::-;-1:-1:-1;;;;;2821:16:4;;2817:179;;2853:45;2890:7;2853:36;:45::i;:::-;2817:179;;;2925:4;-1:-1:-1;;;;;2919:10:4;:2;-1:-1:-1;;;;;2919:10:4;;2915:81;;2945:40;2973:2;2977:7;2945:27;:40::i;:::-;2112:890;;;;;:::o;13075:307:1:-;13225:8;-1:-1:-1;;;;;13216:17:1;:5;-1:-1:-1;;;;;13216:17:1;;;13208:55;;;;-1:-1:-1;;;13208:55:1;;12280:2:17;13208:55:1;;;12262:21:17;12319:2;12299:18;;;12292:30;12358:27;12338:18;;;12331:55;12403:18;;13208:55:1;12252:175:17;13208:55:1;-1:-1:-1;;;;;13273:25:1;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13273:46:1;;;;;;;;;;13334:41;;8408::17;;;13334::1;;8381:18:17;13334:41:1;;;;;;;13075:307;;;:::o;6424:305::-;6574:28;6584:4;6590:2;6594:7;6574:9;:28::i;:::-;6620:47;6643:4;6649:2;6653:7;6662:4;6620:22;:47::i;:::-;6612:110;;;;-1:-1:-1;;;6612:110:1;;;;;;;:::i;9889:890:12:-;9942:7;;-1:-1:-1;;;10017:15:12;;10013:99;;-1:-1:-1;;;10052:15:12;;;-1:-1:-1;10095:2:12;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:12;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:12;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:12;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:12;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:12;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:12:o;15698:396:1:-;15882:1;15870:9;:13;15866:222;;;-1:-1:-1;;;;;15903:18:1;;;15899:85;;-1:-1:-1;;;;;15941:15:1;;;;;;:9;:15;;;;;:28;;15960:9;;15941:15;:28;;15960:9;;15941:28;:::i;:::-;;;;-1:-1:-1;;15899:85:1;-1:-1:-1;;;;;16001:16:1;;;15997:81;;-1:-1:-1;;;;;16037:13:1;;;;;;:9;:13;;;;;:26;;16054:9;;16037:13;:26;;16054:9;;16037:26;:::i;:::-;;;;-1:-1:-1;;15698:396:1;;;;:::o;4486:970:4:-;4748:22;4798:1;4773:22;4790:4;4773:16;:22::i;:::-;:26;;;;:::i;:::-;4809:18;4830:26;;;:17;:26;;;;;;4748:51;;-1:-1:-1;4960:28:4;;;4956:323;;-1:-1:-1;;;;;5026:18:4;;5004:19;5026:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5075:30;;;;;;:44;;;5191:30;;:17;:30;;;;;:43;;;4956:323;-1:-1:-1;5372:26:4;;;;:17;:26;;;;;;;;5365:33;;;-1:-1:-1;;;;;5415:18:4;;;;;:12;:18;;;;;:34;;;;;;;5408:41;4486:970::o;5744:1061::-;6018:10;:17;5993:22;;6018:21;;6038:1;;6018:21;:::i;:::-;6049:18;6070:24;;;:15;:24;;;;;;6438:10;:26;;5993:46;;-1:-1:-1;6070:24:4;;5993:46;;6438:26;;;;-1:-1:-1;;;6438:26:4;;;;;;;;;;;;;;;;;6416:48;;6500:11;6475:10;6486;6475:22;;;;;;-1:-1:-1;;;6475:22:4;;;;;;;;;;;;;;;;;;;;:36;;;;6579:28;;;:15;:28;;;;;;;:41;;;6748:24;;;;;6741:31;6782:10;:16;;;;;-1:-1:-1;;;6782:16:4;;;;;;;;;;;;;;;;;;;;;;;;;;5744:1061;;;;:::o;3296:217::-;3380:14;3397:20;3414:2;3397:16;:20::i;:::-;-1:-1:-1;;;;;3427:16:4;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3471:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3296:217:4:o;14151:831:1:-;14300:4;-1:-1:-1;;;;;14320:13:1;;1465:19:7;:23;14316:660:1;;14355:71;;-1:-1:-1;;;14355:71:1;;-1:-1:-1;;;;;14355:36:1;;;;;:71;;719:10:8;;14406:4:1;;14412:7;;14421:4;;14355:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14355:71:1;;;;;;;;-1:-1:-1;;14355:71:1;;;;;;;;;;;;:::i;:::-;;;14351:573;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14593:13:1;;14589:321;;14635:60;;-1:-1:-1;;;14635:60:1;;;;;;;:::i;14589:321::-;14862:6;14856:13;14847:6;14843:2;14839:15;14832:38;14351:573;-1:-1:-1;;;;;;14476:51:1;-1:-1:-1;;;14476:51:1;;-1:-1:-1;14469:58:1;;14316:660;-1:-1:-1;14961:4:1;14151:831;;;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:406:17;78:5;112:18;104:6;101:30;98:2;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:17;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:2;;;309:1;306;299:12;268:2;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;88:332;;;;;:::o;425:173::-;493:20;;-1:-1:-1;;;;;542:31:17;;532:42;;522:2;;588:1;585;578:12;522:2;474:124;;;:::o;603:857::-;656:5;709:3;702:4;694:6;690:17;686:27;676:2;;731:5;724;717:20;676:2;771:6;758:20;797:4;821:60;837:43;877:2;837:43;:::i;:::-;821:60;:::i;:::-;903:3;927:2;922:3;915:15;955:2;950:3;946:12;939:19;;990:2;982:6;978:15;1042:3;1037:2;1031;1028:1;1024:10;1016:6;1012:23;1008:32;1005:41;1002:2;;;1063:5;1056;1049:20;1002:2;1089:5;1103:328;1117:2;1114:1;1111:9;1103:328;;;1194:3;1181:17;1230:18;1217:11;1214:35;1211:2;;;1266:5;1259;1252:20;1211:2;1299:57;1352:3;1347:2;1333:11;1325:6;1321:24;1317:33;1299:57;:::i;:::-;1287:70;;-1:-1:-1;1377:12:17;;;;1409;;;;1135:1;1128:9;1103:328;;;-1:-1:-1;1449:5:17;;666:794;-1:-1:-1;;;;;;;666:794:17:o;1465:160::-;1530:20;;1586:13;;1579:21;1569:32;;1559:2;;1615:1;1612;1605:12;1630:229;1673:5;1726:3;1719:4;1711:6;1707:17;1703:27;1693:2;;1748:5;1741;1734:20;1693:2;1774:79;1849:3;1840:6;1827:20;1820:4;1812:6;1808:17;1774:79;:::i;1864:196::-;1923:6;1976:2;1964:9;1955:7;1951:23;1947:32;1944:2;;;1997:6;1989;1982:22;1944:2;2025:29;2044:9;2025:29;:::i;2065:270::-;2133:6;2141;2194:2;2182:9;2173:7;2169:23;2165:32;2162:2;;;2215:6;2207;2200:22;2162:2;2243:29;2262:9;2243:29;:::i;:::-;2233:39;;2291:38;2325:2;2314:9;2310:18;2291:38;:::i;:::-;2281:48;;2152:183;;;;;:::o;2340:338::-;2417:6;2425;2433;2486:2;2474:9;2465:7;2461:23;2457:32;2454:2;;;2507:6;2499;2492:22;2454:2;2535:29;2554:9;2535:29;:::i;:::-;2525:39;;2583:38;2617:2;2606:9;2602:18;2583:38;:::i;:::-;2573:48;;2668:2;2657:9;2653:18;2640:32;2630:42;;2444:234;;;;;:::o;2683:696::-;2778:6;2786;2794;2802;2855:3;2843:9;2834:7;2830:23;2826:33;2823:2;;;2877:6;2869;2862:22;2823:2;2905:29;2924:9;2905:29;:::i;:::-;2895:39;;2953:38;2987:2;2976:9;2972:18;2953:38;:::i;:::-;2943:48;;3038:2;3027:9;3023:18;3010:32;3000:42;;3093:2;3082:9;3078:18;3065:32;3120:18;3112:6;3109:30;3106:2;;;3157:6;3149;3142:22;3106:2;3185:22;;3238:4;3230:13;;3226:27;-1:-1:-1;3216:2:17;;3272:6;3264;3257:22;3216:2;3300:73;3365:7;3360:2;3347:16;3342:2;3338;3334:11;3300:73;:::i;:::-;3290:83;;;2813:566;;;;;;;:::o;3384:264::-;3449:6;3457;3510:2;3498:9;3489:7;3485:23;3481:32;3478:2;;;3531:6;3523;3516:22;3478:2;3559:29;3578:9;3559:29;:::i;:::-;3549:39;;3607:35;3638:2;3627:9;3623:18;3607:35;:::i;3653:416::-;3731:6;3739;3792:2;3780:9;3771:7;3767:23;3763:32;3760:2;;;3813:6;3805;3798:22;3760:2;3841:29;3860:9;3841:29;:::i;:::-;3831:39;;3921:2;3910:9;3906:18;3893:32;3948:18;3940:6;3937:30;3934:2;;;3985:6;3977;3970:22;3934:2;4013:50;4055:7;4046:6;4035:9;4031:22;4013:50;:::i;:::-;4003:60;;;3750:319;;;;;:::o;4074:264::-;4142:6;4150;4203:2;4191:9;4182:7;4178:23;4174:32;4171:2;;;4224:6;4216;4209:22;4171:2;4252:29;4271:9;4252:29;:::i;:::-;4242:39;4328:2;4313:18;;;;4300:32;;-1:-1:-1;;;4161:177:17:o;4343:1221::-;4471:6;4479;4532:2;4520:9;4511:7;4507:23;4503:32;4500:2;;;4553:6;4545;4538:22;4500:2;4598:9;4585:23;4627:18;4668:2;4660:6;4657:14;4654:2;;;4689:6;4681;4674:22;4654:2;4732:6;4721:9;4717:22;4707:32;;4777:7;4770:4;4766:2;4762:13;4758:27;4748:2;;4804:6;4796;4789:22;4748:2;4845;4832:16;4867:4;4891:60;4907:43;4947:2;4907:43;:::i;4891:60::-;4973:3;4997:2;4992:3;4985:15;5025:2;5020:3;5016:12;5009:19;;5056:2;5052;5048:11;5104:7;5099:2;5093;5090:1;5086:10;5082:2;5078:19;5074:28;5071:41;5068:2;;;5130:6;5122;5115:22;5068:2;5157:6;5148:15;;5172:169;5186:2;5183:1;5180:9;5172:169;;;5243:23;5262:3;5243:23;:::i;:::-;5231:36;;5204:1;5197:9;;;;;5287:12;;;;5319;;5172:169;;;-1:-1:-1;5360:5:17;-1:-1:-1;;5403:18:17;;5390:32;;-1:-1:-1;;5434:16:17;;;5431:2;;;5468:6;5460;5453:22;5431:2;;5496:62;5550:7;5539:8;5528:9;5524:24;5496:62;:::i;5569:190::-;5625:6;5678:2;5666:9;5657:7;5653:23;5649:32;5646:2;;;5699:6;5691;5684:22;5646:2;5727:26;5743:9;5727:26;:::i;5764:255::-;5822:6;5875:2;5863:9;5854:7;5850:23;5846:32;5843:2;;;5896:6;5888;5881:22;5843:2;5940:9;5927:23;5959:30;5983:5;5959:30;:::i;6024:259::-;6093:6;6146:2;6134:9;6125:7;6121:23;6117:32;6114:2;;;6167:6;6159;6152:22;6114:2;6204:9;6198:16;6223:30;6247:5;6223:30;:::i;6288:342::-;6357:6;6410:2;6398:9;6389:7;6385:23;6381:32;6378:2;;;6431:6;6423;6416:22;6378:2;6476:9;6463:23;6509:18;6501:6;6498:30;6495:2;;;6546:6;6538;6531:22;6495:2;6574:50;6616:7;6607:6;6596:9;6592:22;6574:50;:::i;6635:190::-;6694:6;6747:2;6735:9;6726:7;6722:23;6718:32;6715:2;;;6768:6;6760;6753:22;6715:2;-1:-1:-1;6796:23:17;;6705:120;-1:-1:-1;6705:120:17:o;6830:257::-;6871:3;6909:5;6903:12;6936:6;6931:3;6924:19;6952:63;7008:6;7001:4;6996:3;6992:14;6985:4;6978:5;6974:16;6952:63;:::i;:::-;7069:2;7048:15;-1:-1:-1;;7044:29:17;7035:39;;;;7076:4;7031:50;;6879:208;-1:-1:-1;;6879:208:17:o;7092:470::-;7271:3;7309:6;7303:13;7325:53;7371:6;7366:3;7359:4;7351:6;7347:17;7325:53;:::i;:::-;7441:13;;7400:16;;;;7463:57;7441:13;7400:16;7497:4;7485:17;;7463:57;:::i;:::-;7536:20;;7279:283;-1:-1:-1;;;;7279:283:17:o;7775:488::-;-1:-1:-1;;;;;8044:15:17;;;8026:34;;8096:15;;8091:2;8076:18;;8069:43;8143:2;8128:18;;8121:34;;;8191:3;8186:2;8171:18;;8164:31;;;7969:4;;8212:45;;8237:19;;8229:6;8212:45;:::i;:::-;8204:53;7978:285;-1:-1:-1;;;;;;7978:285:17:o;8642:219::-;8791:2;8780:9;8773:21;8754:4;8811:44;8851:2;8840:9;8836:18;8828:6;8811:44;:::i;8866:387::-;9071:2;9060:9;9053:21;9034:4;9091:44;9131:2;9120:9;9116:18;9108:6;9091:44;:::i;:::-;-1:-1:-1;;;;;9171:32:17;;;;9166:2;9151:18;;9144:60;-1:-1:-1;9235:2:17;9220:18;9213:34;9083:52;9043:210;-1:-1:-1;9043:210:17:o;9258:409::-;9460:2;9442:21;;;9499:2;9479:18;;;9472:30;9538:34;9533:2;9518:18;;9511:62;-1:-1:-1;;;9604:2:17;9589:18;;9582:43;9657:3;9642:19;;9432:235::o;10084:414::-;10286:2;10268:21;;;10325:2;10305:18;;;10298:30;10364:34;10359:2;10344:18;;10337:62;-1:-1:-1;;;10430:2:17;10415:18;;10408:48;10488:3;10473:19;;10258:240::o;10910:401::-;11112:2;11094:21;;;11151:2;11131:18;;;11124:30;11190:34;11185:2;11170:18;;11163:62;-1:-1:-1;;;11256:2:17;11241:18;;11234:35;11301:3;11286:19;;11084:227::o;13193:338::-;13395:2;13377:21;;;13434:2;13414:18;;;13407:30;-1:-1:-1;;;13468:2:17;13453:18;;13446:44;13522:2;13507:18;;13367:164::o;15363:397::-;15565:2;15547:21;;;15604:2;15584:18;;;15577:30;15643:34;15638:2;15623:18;;15616:62;-1:-1:-1;;;15709:2:17;15694:18;;15687:31;15750:3;15735:19;;15537:223::o;17567:275::-;17638:2;17632:9;17703:2;17684:13;;-1:-1:-1;;17680:27:17;17668:40;;17738:18;17723:34;;17759:22;;;17720:62;17717:2;;;17785:18;;:::i;:::-;17821:2;17814:22;17612:230;;-1:-1:-1;17612:230:17:o;17847:183::-;17907:4;17940:18;17932:6;17929:30;17926:2;;;17962:18;;:::i;:::-;-1:-1:-1;18007:1:17;18003:14;18019:4;17999:25;;17916:114::o;18035:128::-;18075:3;18106:1;18102:6;18099:1;18096:13;18093:2;;;18112:18;;:::i;:::-;-1:-1:-1;18148:9:17;;18083:80::o;18168:217::-;18208:1;18234;18224:2;;-1:-1:-1;;;18259:31:17;;18313:4;18310:1;18303:15;18341:4;18266:1;18331:15;18224:2;-1:-1:-1;18370:9:17;;18214:171::o;18390:168::-;18430:7;18496:1;18492;18488:6;18484:14;18481:1;18478:21;18473:1;18466:9;18459:17;18455:45;18452:2;;;18503:18;;:::i;:::-;-1:-1:-1;18543:9:17;;18442:116::o;18563:125::-;18603:4;18631:1;18628;18625:8;18622:2;;;18636:18;;:::i;:::-;-1:-1:-1;18673:9:17;;18612:76::o;18693:258::-;18765:1;18775:113;18789:6;18786:1;18783:13;18775:113;;;18865:11;;;18859:18;18846:11;;;18839:39;18811:2;18804:10;18775:113;;;18906:6;18903:1;18900:13;18897:2;;;-1:-1:-1;;18941:1:17;18923:16;;18916:27;18746:205::o;18956:380::-;19035:1;19031:12;;;;19078;;;19099:2;;19153:4;19145:6;19141:17;19131:27;;19099:2;19206;19198:6;19195:14;19175:18;19172:38;19169:2;;;19252:10;19247:3;19243:20;19240:1;19233:31;19287:4;19284:1;19277:15;19315:4;19312:1;19305:15;19169:2;;19011:325;;;:::o;19341:135::-;19380:3;-1:-1:-1;;19401:17:17;;19398:2;;;19421:18;;:::i;:::-;-1:-1:-1;19468:1:17;19457:13;;19388:88::o;19481:127::-;19542:10;19537:3;19533:20;19530:1;19523:31;19573:4;19570:1;19563:15;19597:4;19594:1;19587:15;19613:127;19674:10;19669:3;19665:20;19662:1;19655:31;19705:4;19702:1;19695:15;19729:4;19726:1;19719:15;19745:131;-1:-1:-1;;;;;;19819:32:17;;19809:43;;19799:2;;19866:1;19863;19856:12
Swarm Source
ipfs://7722bc6c8da756f5c5a885d69722f7f5115b6346171ba6e3d79a458f8e28290c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.