Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15313999 | 743 days ago | IN | 0 ETH | 0.07251405 |
Loading...
Loading
Contract Name:
STokensManager
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; import {IERC721EnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import {IERC165Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol"; import {ERC721Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import {Counters} from "@openzeppelin/contracts/utils/Counters.sol"; import {ISTokensManager} from "@devprotocol/i-s-tokens/contracts/interfaces/ISTokensManager.sol"; import {ISTokenManagerStruct} from "./interface/ISTokenManagerStruct.sol"; import {ISTokenManagerDescriptor} from "./interface/ISTokenManagerDescriptor.sol"; import {ITokenURIDescriptor} from "./interface/ITokenURIDescriptor.sol"; import {IAddressConfig} from "./interface/IAddressConfig.sol"; import {ILockup} from "./interface/ILockup.sol"; import {IProperty} from "./interface/IProperty.sol"; contract STokensManager is ISTokenManagerStruct, ISTokensManager, IERC721EnumerableUpgradeable, ERC721Upgradeable { Counters.Counter private tokenIdCounter; address public config; mapping(bytes32 => bytes) private bytesStorage; mapping(address => uint256[]) private tokenIdsMap; mapping(address => EnumerableSet.UintSet) private tokenIdsMapOfOwner; mapping(uint256 => string) private tokenUriImage; mapping(uint256 => bool) public override isFreezed; address public descriptor; mapping(address => address) public override descriptorOf; mapping(uint256 => bytes32) public override payloadOf; using Counters for Counters.Counter; using EnumerableSet for EnumerableSet.UintSet; modifier onlyAuthor(uint256 _tokenId) { StakingPositionV1 memory currentPosition = getStoragePositionsV1( _tokenId ); address author = IProperty(currentPosition.property).author(); require(author == _msgSender(), "illegal access"); _; } modifier onlyPropertyAuthor(address _property) { address author = IProperty(_property).author(); require(author == _msgSender(), "illegal access"); _; } modifier onlyLockup() { require( IAddressConfig(config).lockup() == _msgSender(), "illegal access" ); _; } function initialize(address _config) external initializer { __ERC721_init("Dev Protocol sTokens V1", "DEV-STOKENS-V1"); config = _config; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC721Upgradeable) returns (bool) { return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return tokenIdCounter.current(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { // solhint-disable-next-line reason-string require( index < tokenIdsMapOfOwner[owner].length(), "ERC721Enumerable: owner index out of bounds" ); return tokenIdsMapOfOwner[owner].at(index); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { // solhint-disable-next-line reason-string require( index < tokenIdCounter.current(), "ERC721Enumerable: global index out of bounds" ); return index + 1; } function setDescriptor(address _descriptor) external { require(descriptor == address(0), "already set"); descriptor = _descriptor; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { uint256 curretnTokenId = tokenIdCounter.current(); require(_tokenId <= curretnTokenId, "not found"); StakingPositionV1 memory positons = getStoragePositionsV1(_tokenId); RewardsV1 memory tokenRewards = _rewards(_tokenId); address owner = ownerOf(_tokenId); return _tokenURI( _tokenId, owner, positons, tokenRewards, payloadOf[_tokenId] ); } function tokenURISim( uint256 _tokenId, address _owner, StakingPositionV1 memory _positions, RewardsV1 memory _rewardsArg, bytes32 _payload ) external view returns (string memory) { return _tokenURI(_tokenId, _owner, _positions, _rewardsArg, _payload); } function currentIndex() external view override returns (uint256) { return tokenIdCounter.current(); } function mint( address _owner, address _property, uint256 _amount, uint256 _price, bytes32 _payload ) external override onlyLockup returns (uint256 tokenId_) { tokenIdCounter.increment(); uint256 currentId = tokenIdCounter.current(); _mint(_owner, currentId); emit Minted(currentId, _owner, _property, _amount, _price); StakingPositionV1 memory newPosition = StakingPositionV1( _property, _amount, _price, 0, 0 ); setStoragePositionsV1(currentId, newPosition); tokenIdsMap[_property].push(currentId); address _descriptor = descriptorOf[_property]; if (_descriptor != address(0)) { require( ITokenURIDescriptor(_descriptor).onBeforeMint( currentId, _owner, newPosition, _payload ), "failed to call onBeforeMint" ); } payloadOf[currentId] = _payload; return currentId; } function update( uint256 _tokenId, uint256 _amount, uint256 _price, uint256 _cumulativeReward, uint256 _pendingReward ) external override onlyLockup returns (bool) { StakingPositionV1 memory currentPosition = getStoragePositionsV1( _tokenId ); currentPosition.amount = _amount; currentPosition.price = _price; currentPosition.cumulativeReward = _cumulativeReward; currentPosition.pendingReward = _pendingReward; setStoragePositionsV1(_tokenId, currentPosition); emit Updated( _tokenId, _amount, _price, _cumulativeReward, _pendingReward ); return true; } function setTokenURIImage(uint256 _tokenId, string memory _data) external override onlyAuthor(_tokenId) { require(isFreezed[_tokenId] == false, "freezed"); tokenUriImage[_tokenId] = _data; } function setTokenURIDescriptor(address _property, address _descriptor) external override onlyPropertyAuthor(_property) { descriptorOf[_property] = _descriptor; } function freezeTokenURI(uint256 _tokenId) external override onlyAuthor(_tokenId) { require(isFreezed[_tokenId] == false, "already freezed"); string memory tokeUri = tokenUriImage[_tokenId]; require(bytes(tokeUri).length != 0, "no data"); isFreezed[_tokenId] = true; emit Freezed(_tokenId, _msgSender()); } function positions(uint256 _tokenId) external view override returns ( address property_, uint256 amount_, uint256 price_, uint256 cumulativeReward_, uint256 pendingReward_ ) { StakingPositionV1 memory currentPosition = getStoragePositionsV1( _tokenId ); return ( currentPosition.property, currentPosition.amount, currentPosition.price, currentPosition.cumulativeReward, currentPosition.pendingReward ); } function rewards(uint256 _tokenId) external view override returns ( uint256 entireReward_, uint256 cumulativeReward_, uint256 withdrawableReward_ ) { RewardsV1 memory tokenRewards = _rewards(_tokenId); return ( tokenRewards.entireReward, tokenRewards.cumulativeReward, tokenRewards.withdrawableReward ); } function positionsOfProperty(address _property) external view override returns (uint256[] memory) { return tokenIdsMap[_property]; } function positionsOfOwner(address _owner) external view override returns (uint256[] memory) { return tokenIdsMapOfOwner[_owner].values(); } function _rewards(uint256 _tokenId) private view returns (RewardsV1 memory) { address lockupAddress = IAddressConfig(config).lockup(); uint256 withdrawableReward = ILockup(lockupAddress) .calculateWithdrawableInterestAmountByPosition(_tokenId); StakingPositionV1 memory currentPosition = getStoragePositionsV1( _tokenId ); uint256 cumulativeReward = currentPosition.cumulativeReward; uint256 entireReward = cumulativeReward + withdrawableReward; return RewardsV1(entireReward, cumulativeReward, withdrawableReward); } function _tokenURI( uint256 _tokenId, address _owner, StakingPositionV1 memory _positions, RewardsV1 memory _rewardsArg, bytes32 _payload ) private view returns (string memory) { string memory _tokeUriImage = tokenUriImage[_tokenId]; if (bytes(_tokeUriImage).length == 0) { address descriptorOfProperty = descriptorOf[_positions.property]; if (descriptorOfProperty != address(0)) { _tokeUriImage = ITokenURIDescriptor(descriptorOfProperty).image( _tokenId, _owner, _positions, _rewardsArg, _payload ); } } return ISTokenManagerDescriptor(descriptor).getTokenURI( _positions.property, _positions.amount, _positions.cumulativeReward, _tokeUriImage ); } function getStoragePositionsV1(uint256 _tokenId) private view returns (StakingPositionV1 memory) { bytes32 key = getStoragePositionsV1Key(_tokenId); bytes memory tmp = bytesStorage[key]; return abi.decode(tmp, (StakingPositionV1)); } function setStoragePositionsV1( uint256 _tokenId, StakingPositionV1 memory _position ) private { bytes32 key = getStoragePositionsV1Key(_tokenId); bytes memory tmp = abi.encode(_position); bytesStorage[key] = tmp; } function getStoragePositionsV1Key(uint256 _tokenId) private pure returns (bytes32) { return keccak256(abi.encodePacked("_positionsV1", _tokenId)); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { // mint tokenIdsMapOfOwner[to].add(tokenId); } else if (to == address(0)) { // burn revert("s tokens is not burned"); } else if (to != from) { tokenIdsMapOfOwner[from].remove(tokenId); tokenIdsMapOfOwner[to].add(tokenId); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "./IERC721EnumerableUpgradeable.sol"; import "../../../proxy/utils/Initializable.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 ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable { function __ERC721Enumerable_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721Enumerable_init_unchained(); } function __ERC721Enumerable_init_unchained() internal initializer { } // 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(IERC165Upgradeable, ERC721Upgradeable) returns (bool) { return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721Upgradeable.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 < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); 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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(); } uint256[46] private __gap; }
// SPDX-License-Identifier: MIT 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 IERC165Upgradeable { /** * @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 pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable 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. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 overriden 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 = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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: transfer caller is not owner nor 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: transfer caller is not owner nor 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 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 _owners[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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @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(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MPL-2.0 pragma solidity >=0.5.17; interface ISTokensManager { /* * @dev The event fired when a token is minted. * @param tokenId The ID of the created new staking position * @param owner The address of the owner of the new staking position * @param property The address of the Property as the staking destination * @param amount The amount of the new staking position * @param price The latest unit price of the cumulative staking reward */ event Minted( uint256 tokenId, address owner, address property, uint256 amount, uint256 price ); /* * @dev The event fired when a token is updated. * @param tokenId The ID of the staking position * @param amount The new staking amount * @param price The latest unit price of the cumulative staking reward * This value equals the 3rd return value of the Lockup.calculateCumulativeRewardPrices * @param cumulativeReward The cumulative withdrawn reward amount * @param pendingReward The pending withdrawal reward amount amount */ event Updated( uint256 tokenId, uint256 amount, uint256 price, uint256 cumulativeReward, uint256 pendingReward ); /* * @dev The event fired when toke uri freezed. * @param tokenId The ID of the freezed token uri * @param freezingUser user of freezed token uri */ event Freezed(uint256 tokenId, address freezingUser); /* * @dev Creates the new staking position for the caller. * Mint must be called from the Lockup contract. * @param _owner The address of the owner of the new staking position * @param _property The address of the Property as the staking destination * @param _amount The amount of the new staking position * @param _price The latest unit price of the cumulative staking reward * @param _payload The payload for token * @return uint256 The ID of the created new staking position */ function mint( address _owner, address _property, uint256 _amount, uint256 _price, bytes32 _payload ) external returns (uint256); /* * @dev Updates the existing staking position. * Update must be called from the Lockup contract. * @param _tokenId The ID of the staking position * @param _amount The new staking amount * @param _price The latest unit price of the cumulative staking reward * This value equals the 3rd return value of the Lockup.calculateCumulativeRewardPrices * @param _cumulativeReward The cumulative withdrawn reward amount * @param _pendingReward The pending withdrawal reward amount amount * @return bool On success, true will be returned */ function update( uint256 _tokenId, uint256 _amount, uint256 _price, uint256 _cumulativeReward, uint256 _pendingReward ) external returns (bool); /* * @dev set token uri information * @param _tokenId The ID of the staking position * @param _data set data */ function setTokenURIImage(uint256 _tokenId, string calldata _data) external; /* * @dev set token uri descriptor * @param _property property address * @param _descriptor descriptor address */ function setTokenURIDescriptor(address _property, address _descriptor) external; /* * @dev freeze token uri data * @param _tokenId The ID of the staking position */ function freezeTokenURI(uint256 _tokenId) external; /* * @dev Gets the existing staking position. * @param _tokenId The ID of the staking position * @return address The address of the Property as the staking destination * @return uint256 The amount of the new staking position * @return uint256 The latest unit price of the cumulative staking reward * @return uint256 The cumulative withdrawn reward amount * @return uint256 The pending withdrawal reward amount amount */ function positions(uint256 _tokenId) external view returns ( address, uint256, uint256, uint256, uint256 ); /* * @dev Get the freezed status. * @param _tokenId The ID of the staking position * @return bool If freezed, return true */ function isFreezed(uint256 _tokenId) external view returns (bool); /* * @dev Gets the reward status of the staking position. * @param _tokenId The ID of the staking position * @return uint256 The reward amount of adding the cumulative withdrawn amount to the withdrawable amount * @return uint256 The cumulative withdrawn reward amount * @return uint256 The withdrawable reward amount */ function rewards(uint256 _tokenId) external view returns ( uint256, uint256, uint256 ); /* * @dev get token ids by property * @param _property property address * @return uint256[] token id list */ function positionsOfProperty(address _property) external view returns (uint256[] memory); /* * @dev get token ids by owner * @param _owner owner address * @return uint256[] token id list */ function positionsOfOwner(address _owner) external view returns (uint256[] memory); /* * @dev get descriptor address * @param _property property address * @return address descriptor address */ function descriptorOf(address _property) external view returns (address); /* * @dev get the payload * @param _tokenId token id * @return bytes32 stored payload */ function payloadOf(uint256 _tokenId) external view returns (bytes32); /* * @dev get current token id * @return uint256 current token id */ function currentIndex() external view returns (uint256); }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; interface ISTokenManagerStruct { /* * @dev Struct to declares a staking position. * @param owner The address of the owner of the new staking position * @param property The address of the Property as the staking destination * @param amount The amount of the new staking position * @param price The latest unit price of the cumulative staking reward * @param cumulativeReward The cumulative withdrawn reward amount * @param pendingReward The pending withdrawal reward amount amount */ struct StakingPositionV1 { address property; uint256 amount; uint256 price; uint256 cumulativeReward; uint256 pendingReward; } /* * @dev Struct to declares staking rewards. * @param entireReward The reward amount of adding the cumulative withdrawn amount to the withdrawable amount * @param cumulativeReward The cumulative withdrawn reward amount * @param withdrawableReward The withdrawable reward amount */ struct RewardsV1 { uint256 entireReward; uint256 cumulativeReward; uint256 withdrawableReward; } }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; import {ISTokenManagerStruct} from "./ISTokenManagerStruct.sol"; interface ISTokenManagerDescriptor { /* * @dev get toke uri from position information. * @param _property The struct of positon information * @param _amount The struct of positon information * @param _cumulativeReward Cumulative Rewards * @param _tokeUriImage The struct of positon information */ function getTokenURI( address _property, uint256 _amount, uint256 _cumulativeReward, string memory _tokeUriImage ) external pure returns (string memory); }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; import "./ISTokenManagerStruct.sol"; interface ITokenURIDescriptor { /* * @dev get image from custom descriopro * @param _tokenId token id * @param _owner owner address * @param _positions staking position * @param _rewards rewards * @param _payload token payload * @return string image information */ function image( uint256 _tokenId, address _owner, ISTokenManagerStruct.StakingPositionV1 memory _positions, ISTokenManagerStruct.RewardsV1 memory _rewards, bytes32 _payload ) external view returns (string memory); /* * @dev hooks and run a side-effect before minted * @param _tokenId token id * @param _owner owner address * @param _positions staking position * @param _payload token payload * @return bool success or failure */ function onBeforeMint( uint256 _tokenId, address _owner, ISTokenManagerStruct.StakingPositionV1 memory _positions, bytes32 _payload ) external returns (bool); }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; interface IAddressConfig { function lockup() external view returns (address); }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; interface ILockup { function calculateWithdrawableInterestAmountByPosition(uint256 _tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MPL-2.0 pragma solidity 0.8.4; interface IProperty { function author() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"},{"indexed":false,"internalType":"address","name":"freezingUser","type":"address"}],"name":"Freezed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"property","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Minted","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cumulativeReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pendingReward","type":"uint256"}],"name":"Updated","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"descriptorOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"freezeTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_config","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isFreezed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_property","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bytes32","name":"_payload","type":"bytes32"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"payloadOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"address","name":"property_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"cumulativeReward_","type":"uint256"},{"internalType":"uint256","name":"pendingReward_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"positionsOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"positionsOfProperty","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"entireReward_","type":"uint256"},{"internalType":"uint256","name":"cumulativeReward_","type":"uint256"},{"internalType":"uint256","name":"withdrawableReward_","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_descriptor","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_descriptor","type":"address"}],"name":"setTokenURIDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_data","type":"string"}],"name":"setTokenURIImage","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"components":[{"internalType":"address","name":"property","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"cumulativeReward","type":"uint256"},{"internalType":"uint256","name":"pendingReward","type":"uint256"}],"internalType":"struct ISTokenManagerStruct.StakingPositionV1","name":"_positions","type":"tuple"},{"components":[{"internalType":"uint256","name":"entireReward","type":"uint256"},{"internalType":"uint256","name":"cumulativeReward","type":"uint256"},{"internalType":"uint256","name":"withdrawableReward","type":"uint256"}],"internalType":"struct ISTokenManagerStruct.RewardsV1","name":"_rewardsArg","type":"tuple"},{"internalType":"bytes32","name":"_payload","type":"bytes32"}],"name":"tokenURISim","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_cumulativeReward","type":"uint256"},{"internalType":"uint256","name":"_pendingReward","type":"uint256"}],"name":"update","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061587780620000216000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80634f6ccce71161011a578063b88d4fde116100ad578063c87b56dd1161007c578063c87b56dd1461065f578063d81ce7451461068f578063e985e9c5146106bf578063f301af42146106ef578063f96742bc1461072157610206565b8063b88d4fde146105c7578063bba1b3fa146105e3578063bff92b5e14610613578063c4d66de81461064357610206565b806386904ccf116100e957806386904ccf1461052957806395d89b411461055957806399fbab8814610577578063a22cb465146105ab57610206565b80634f6ccce71461047b5780636352211e146104ab57806370a08231146104db57806379502c551461050b57610206565b806320d7b3271161019d578063303e74df1161016c578063303e74df146103c5578063385c0eb0146103e35780633fb3a6c3146103ff57806340565efa1461042f57806342842e0e1461045f57610206565b806320d7b3271461032b57806323b872dd1461035b57806326987b60146103775780632f745c591461039557610206565b8063095ea7b3116101d9578063095ea7b3146102a557806318160ddd146102c15780631f8d009e146102df5780631fd40887146102fb57610206565b806301b9a3971461020b57806301ffc9a71461022757806306fdde0314610257578063081812fc14610275575b600080fd5b61022560048036038101906102209190613dda565b61073d565b005b610241600480360381019061023c919061404a565b610812565b60405161024e9190614958565b60405180910390f35b61025f61088c565b60405161026c919061498e565b60405180910390f35b61028f600480360381019061028a9190614106565b61091e565b60405161029c9190614830565b60405180910390f35b6102bf60048036038101906102ba9190613fe5565b6109a3565b005b6102c9610abb565b6040516102d69190614ccb565b60405180910390f35b6102f960048036038101906102f491906141d1565b610acc565b005b61031560048036038101906103109190614106565b610c6b565b6040516103229190614973565b60405180910390f35b61034560048036038101906103409190613f32565b610c83565b6040516103529190614ccb565b60405180910390f35b61037560048036038101906103709190613e68565b61103d565b005b61037f61109d565b60405161038c9190614ccb565b60405180910390f35b6103af60048036038101906103aa9190613fe5565b6110ae565b6040516103bc9190614ccb565b60405180910390f35b6103cd611191565b6040516103da9190614830565b60405180910390f35b6103fd60048036038101906103f89190614106565b6111b7565b005b61041960048036038101906104149190613dda565b61147f565b6040516104269190614936565b60405180910390f35b61044960048036038101906104449190614106565b611516565b6040516104569190614958565b60405180910390f35b61047960048036038101906104749190613e68565b611536565b005b61049560048036038101906104909190614106565b611556565b6040516104a29190614ccb565b60405180910390f35b6104c560048036038101906104c09190614106565b6115b7565b6040516104d29190614830565b60405180910390f35b6104f560048036038101906104f09190613dda565b611669565b6040516105029190614ccb565b60405180910390f35b610513611721565b6040516105209190614830565b60405180910390f35b610543600480360381019061053e9190614225565b611747565b6040516105509190614958565b60405180910390f35b6105616118e9565b60405161056e919061498e565b60405180910390f35b610591600480360381019061058c9190614106565b61197b565b6040516105a29594939291906148e3565b60405180910390f35b6105c560048036038101906105c09190613fa9565b6119bc565b005b6105e160048036038101906105dc9190613eb7565b611b3d565b005b6105fd60048036038101906105f89190613dda565b611b9f565b60405161060a9190614830565b60405180910390f35b61062d60048036038101906106289190614158565b611bd2565b60405161063a919061498e565b60405180910390f35b61065d60048036038101906106589190613dda565b611bec565b005b61067960048036038101906106749190614106565b611d7b565b604051610686919061498e565b60405180910390f35b6106a960048036038101906106a49190613dda565b611e20565b6040516106b69190614936565b60405180910390f35b6106d960048036038101906106d49190613e2c565b611e70565b6040516106e69190614958565b60405180910390f35b61070960048036038101906107049190614106565b611f04565b60405161071893929190614dfd565b60405180910390f35b61073b60048036038101906107369190613e2c565b611f32565b005b600073ffffffffffffffffffffffffffffffffffffffff16609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c590614c90565b60405180910390fd5b80609e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108855750610884826120ae565b5b9050919050565b60606065805461089b906150d4565b80601f01602080910402602001604051908101604052809291908181526020018280546108c7906150d4565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b600061092982612190565b610968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095f90614bb0565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ae826115b7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690614c30565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a3e6121fc565b73ffffffffffffffffffffffffffffffffffffffff161480610a6d5750610a6c81610a676121fc565b611e70565b5b610aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa390614af0565b60405180910390fd5b610ab68383612204565b505050565b6000610ac760976122bd565b905090565b816000610ad8826122cb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2657600080fd5b505afa158015610b3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5e9190613e03565b9050610b686121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90614a30565b60405180910390fd5b60001515609d600087815260200190815260200160002060009054906101000a900460ff16151514610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3390614ab0565b60405180910390fd5b83609c60008781526020019081526020016000209080519060200190610c639291906138e6565b505050505050565b60a06020528060005260406000206000915090505481565b6000610c8d6121fc565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0b57600080fd5b505afa158015610d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d439190613e03565b73ffffffffffffffffffffffffffffffffffffffff1614610d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9090614a30565b60405180910390fd5b610da3609761239d565b6000610daf60976122bd565b9050610dbb87826123b3565b7fd46616b47888bf162137201f2b51769d5891ea9b59978dc022f447f3335e4b368188888888604051610df2959493929190614d0f565b60405180910390a160006040518060a001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020016000815260200160008152509050610e478282612581565b609a60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150506001900390600052602060002001600090919091909150556000609f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611016578073ffffffffffffffffffffffffffffffffffffffff1663e3a71f63848b85896040518563ffffffff1660e01b8152600401610f849493929190614d62565b602060405180830381600087803b158015610f9e57600080fd5b505af1158015610fb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd69190614021565b611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c90614b10565b60405180910390fd5b5b8460a060008581526020019081526020016000208190555082935050505095945050505050565b61104e6110486121fc565b826125e0565b61108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614c50565b60405180910390fd5b6110988383836126be565b505050565b60006110a960976122bd565b905090565b60006110f7609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061291a565b8210611138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112f906149d0565b60405180910390fd5b61118982609b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061292f90919063ffffffff16565b905092915050565b609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8060006111c3826122cb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b15801561121157600080fd5b505afa158015611225573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112499190613e03565b90506112536121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b790614a30565b60405180910390fd5b60001515609d600086815260200190815260200160002060009054906101000a900460ff16151514611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e90614c10565b60405180910390fd5b6000609c60008681526020019081526020016000208054611347906150d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611373906150d4565b80156113c05780601f10611395576101008083540402835291602001916113c0565b820191906000526020600020905b8154815290600101906020018083116113a357829003601f168201915b5050505050905060008151141561140c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140390614ad0565b60405180910390fd5b6001609d600087815260200190815260200160002060006101000a81548160ff0219169083151502179055507faf22e0980c2b7e44202e8c1203335e01a22820ba47c44e32ef994c6fea108b7a856114626121fc565b604051611470929190614ce6565b60405180910390a15050505050565b6060609a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561150a57602002820191906000526020600020905b8154815260200190600101908083116114f6575b50505050509050919050565b609d6020528060005260406000206000915054906101000a900460ff1681565b61155183838360405180602001604052806000815250611b3d565b505050565b600061156260976122bd565b82106115a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159a90614c70565b60405180910390fd5b6001826115b09190614f8a565b9050919050565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165790614b50565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190614b30565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006117516121fc565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b1580156117cf57600080fd5b505afa1580156117e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118079190613e03565b73ffffffffffffffffffffffffffffffffffffffff161461185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490614a30565b60405180910390fd5b6000611868876122cb565b90508581602001818152505084816040018181525050838160600181815250508281608001818152505061189c8782612581565b7fd186cbf6df87e8d75402ae709b341a60af62280d4af57663f74527986880011b87878787876040516118d3959493929190614e34565b60405180910390a1600191505095945050505050565b6060606680546118f8906150d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611924906150d4565b80156119715780601f1061194657610100808354040283529160200191611971565b820191906000526020600020905b81548152906001019060200180831161195457829003601f168201915b5050505050905090565b60008060008060008061198d876122cb565b905080600001518160200151826040015183606001518460800151955095509550955095505091939590929450565b6119c46121fc565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2990614a70565b60405180910390fd5b80606a6000611a3f6121fc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611aec6121fc565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b319190614958565b60405180910390a35050565b611b4e611b486121fc565b836125e0565b611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614c50565b60405180910390fd5b611b9984848484612949565b50505050565b609f6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060611be186868686866129a5565b905095945050505050565b600060019054906101000a900460ff1680611c12575060008054906101000a900460ff16155b611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4890614b70565b60405180910390fd5b60008060019054906101000a900460ff161590508015611ca1576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611d156040518060400160405280601781526020017f4465762050726f746f636f6c2073546f6b656e732056310000000000000000008152506040518060400160405280600e81526020017f4445562d53544f4b454e532d5631000000000000000000000000000000000000815250612c56565b81609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015611d775760008060016101000a81548160ff0219169083151502179055505b5050565b60606000611d8960976122bd565b905080831115611dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc590614bd0565b60405180910390fd5b6000611dd9846122cb565b90506000611de685612d4b565b90506000611df3866115b7565b9050611e158682858560a060008c8152602001908152602001600020546129a5565b945050505050919050565b6060611e69609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612ed1565b9050919050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080600080611f1385612d4b565b9050806000015181602001518260400151935093509350509193909250565b8160008173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b158015611f7b57600080fd5b505afa158015611f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb39190613e03565b9050611fbd6121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461202a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202190614a30565b60405180910390fd5b82609f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061217957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612189575061218882612ef2565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612277836115b7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6122d361396c565b60006122de83612f5c565b90506000609960008381526020019081526020016000208054612300906150d4565b80601f016020809104026020016040519081016040528092919081815260200182805461232c906150d4565b80156123795780601f1061234e57610100808354040283529160200191612379565b820191906000526020600020905b81548152906001019060200180831161235c57829003601f168201915b505050505090508080602001905181019061239491906140dd565b92505050919050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241a90614b90565b60405180910390fd5b61242c81612190565b1561246c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246390614a10565b60405180910390fd5b61247860008383612f8c565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124c89190614f8a565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061258c83612f5c565b90506000826040516020016125a19190614cb0565b6040516020818303038152906040529050806099600084815260200190815260200160002090805190602001906125d99291906139b1565b5050505050565b60006125eb82612190565b61262a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262190614a90565b60405180910390fd5b6000612635836115b7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126a457508373ffffffffffffffffffffffffffffffffffffffff1661268c8461091e565b73ffffffffffffffffffffffffffffffffffffffff16145b806126b557506126b48185611e70565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126de826115b7565b73ffffffffffffffffffffffffffffffffffffffff1614612734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272b90614bf0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279b90614a50565b60405180910390fd5b6127af838383612f8c565b6127ba600082612204565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461280a9190614fe0565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128619190614f8a565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061292882600001613171565b9050919050565b600061293e8360000183613182565b60001c905092915050565b6129548484846126be565b612960848484846131d3565b61299f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612996906149f0565b60405180910390fd5b50505050565b60606000609c600088815260200190815260200160002080546129c7906150d4565b80601f01602080910402602001604051908101604052809291908181526020018280546129f3906150d4565b8015612a405780601f10612a1557610100808354040283529160200191612a40565b820191906000526020600020905b815481529060010190602001808311612a2357829003601f168201915b50505050509050600081511415612b88576000609f6000876000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b86578073ffffffffffffffffffffffffffffffffffffffff1663658e8c9789898989896040518663ffffffff1660e01b8152600401612b2e959493929190614da8565b60006040518083038186803b158015612b4657600080fd5b505afa158015612b5a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612b83919061409c565b91505b505b609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630d1c1e1a866000015187602001518860600151856040518563ffffffff1660e01b8152600401612bf59493929190614897565b60006040518083038186803b158015612c0d57600080fd5b505afa158015612c21573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612c4a919061409c565b91505095945050505050565b600060019054906101000a900460ff1680612c7c575060008054906101000a900460ff16155b612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb290614b70565b60405180910390fd5b60008060019054906101000a900460ff161590508015612d0b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612d1361336a565b612d1b613443565b612d25838361351c565b8015612d465760008060016101000a81548160ff0219169083151502179055505b505050565b612d53613a37565b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b158015612dbd57600080fd5b505afa158015612dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612df59190613e03565b905060008173ffffffffffffffffffffffffffffffffffffffff166360e8da7c856040518263ffffffff1660e01b8152600401612e329190614ccb565b60206040518083038186803b158015612e4a57600080fd5b505afa158015612e5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e82919061412f565b90506000612e8f856122cb565b905060008160600151905060008382612ea89190614f8a565b905060405180606001604052808281526020018381526020018581525095505050505050919050565b60606000612ee183600001613625565b905060608190508092505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081604051602001612f6f919061480a565b604051602081830303815290604052805190602001209050919050565b612f97838383613681565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156130235761301d81609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061368690919063ffffffff16565b5061316c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308a906149b0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461316b5761311781609b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206136a090919063ffffffff16565b5061316981609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061368690919063ffffffff16565b505b5b505050565b600081600001805490509050919050565b60008260000182815481106131c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60006131f48473ffffffffffffffffffffffffffffffffffffffff166136ba565b1561335d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261321d6121fc565b8786866040518563ffffffff1660e01b815260040161323f949392919061484b565b602060405180830381600087803b15801561325957600080fd5b505af192505050801561328a57506040513d601f19601f820116820180604052508101906132879190614073565b60015b61330d573d80600081146132ba576040519150601f19603f3d011682016040523d82523d6000602084013e6132bf565b606091505b50600081511415613305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132fc906149f0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613362565b600190505b949350505050565b600060019054906101000a900460ff1680613390575060008054906101000a900460ff16155b6133cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c690614b70565b60405180910390fd5b60008060019054906101000a900460ff16159050801561341f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156134405760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613469575060008054906101000a900460ff16155b6134a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349f90614b70565b60405180910390fd5b60008060019054906101000a900460ff1615905080156134f8576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156135195760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613542575060008054906101000a900460ff16155b613581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357890614b70565b60405180910390fd5b60008060019054906101000a900460ff1615905080156135d1576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82606590805190602001906135e79291906138e6565b5081606690805190602001906135fe9291906138e6565b5080156136205760008060016101000a81548160ff0219169083151502179055505b505050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561367557602002820191906000526020600020905b815481526020019060010190808311613661575b50505050509050919050565b505050565b6000613698836000018360001b6136cd565b905092915050565b60006136b2836000018360001b61373d565b905092915050565b600080823b905060008111915050919050565b60006136d983836138c3565b613732578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613737565b600090505b92915050565b600080836001016000848152602001908152602001600020549050600081146138b757600060018261376f9190614fe0565b90506000600186600001805490506137879190614fe0565b90508181146138425760008660000182815481106137ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613818577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061387c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506138bd565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b8280546138f2906150d4565b90600052602060002090601f016020900481019282613914576000855561395b565b82601f1061392d57805160ff191683800117855561395b565b8280016001018555821561395b579182015b8281111561395a57825182559160200191906001019061393f565b5b5090506139689190613a58565b5090565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b8280546139bd906150d4565b90600052602060002090601f0160209004810192826139df5760008555613a26565b82601f106139f857805160ff1916838001178555613a26565b82800160010185558215613a26579182015b82811115613a25578251825591602001919060010190613a0a565b5b509050613a339190613a58565b5090565b60405180606001604052806000815260200160008152602001600081525090565b5b80821115613a71576000816000905550600101613a59565b5090565b6000613a88613a8384614eac565b614e87565b905082815260208101848484011115613aa057600080fd5b613aab848285615092565b509392505050565b6000613ac6613ac184614edd565b614e87565b905082815260208101848484011115613ade57600080fd5b613ae9848285615092565b509392505050565b6000613b04613aff84614edd565b614e87565b905082815260208101848484011115613b1c57600080fd5b613b278482856150a1565b509392505050565b600081359050613b3e816157ce565b92915050565b600081519050613b53816157ce565b92915050565b600081359050613b68816157e5565b92915050565b600081519050613b7d816157e5565b92915050565b600081359050613b92816157fc565b92915050565b600081359050613ba781615813565b92915050565b600081519050613bbc81615813565b92915050565b600082601f830112613bd357600080fd5b8135613be3848260208601613a75565b91505092915050565b600082601f830112613bfd57600080fd5b8135613c0d848260208601613ab3565b91505092915050565b600082601f830112613c2757600080fd5b8151613c37848260208601613af1565b91505092915050565b600060608284031215613c5257600080fd5b613c5c6060614e87565b90506000613c6c84828501613db0565b6000830152506020613c8084828501613db0565b6020830152506040613c9484828501613db0565b60408301525092915050565b600060a08284031215613cb257600080fd5b613cbc60a0614e87565b90506000613ccc84828501613b2f565b6000830152506020613ce084828501613db0565b6020830152506040613cf484828501613db0565b6040830152506060613d0884828501613db0565b6060830152506080613d1c84828501613db0565b60808301525092915050565b600060a08284031215613d3a57600080fd5b613d4460a0614e87565b90506000613d5484828501613b44565b6000830152506020613d6884828501613dc5565b6020830152506040613d7c84828501613dc5565b6040830152506060613d9084828501613dc5565b6060830152506080613da484828501613dc5565b60808301525092915050565b600081359050613dbf8161582a565b92915050565b600081519050613dd48161582a565b92915050565b600060208284031215613dec57600080fd5b6000613dfa84828501613b2f565b91505092915050565b600060208284031215613e1557600080fd5b6000613e2384828501613b44565b91505092915050565b60008060408385031215613e3f57600080fd5b6000613e4d85828601613b2f565b9250506020613e5e85828601613b2f565b9150509250929050565b600080600060608486031215613e7d57600080fd5b6000613e8b86828701613b2f565b9350506020613e9c86828701613b2f565b9250506040613ead86828701613db0565b9150509250925092565b60008060008060808587031215613ecd57600080fd5b6000613edb87828801613b2f565b9450506020613eec87828801613b2f565b9350506040613efd87828801613db0565b925050606085013567ffffffffffffffff811115613f1a57600080fd5b613f2687828801613bc2565b91505092959194509250565b600080600080600060a08688031215613f4a57600080fd5b6000613f5888828901613b2f565b9550506020613f6988828901613b2f565b9450506040613f7a88828901613db0565b9350506060613f8b88828901613db0565b9250506080613f9c88828901613b83565b9150509295509295909350565b60008060408385031215613fbc57600080fd5b6000613fca85828601613b2f565b9250506020613fdb85828601613b59565b9150509250929050565b60008060408385031215613ff857600080fd5b600061400685828601613b2f565b925050602061401785828601613db0565b9150509250929050565b60006020828403121561403357600080fd5b600061404184828501613b6e565b91505092915050565b60006020828403121561405c57600080fd5b600061406a84828501613b98565b91505092915050565b60006020828403121561408557600080fd5b600061409384828501613bad565b91505092915050565b6000602082840312156140ae57600080fd5b600082015167ffffffffffffffff8111156140c857600080fd5b6140d484828501613c16565b91505092915050565b600060a082840312156140ef57600080fd5b60006140fd84828501613d28565b91505092915050565b60006020828403121561411857600080fd5b600061412684828501613db0565b91505092915050565b60006020828403121561414157600080fd5b600061414f84828501613dc5565b91505092915050565b6000806000806000610160868803121561417157600080fd5b600061417f88828901613db0565b955050602061419088828901613b2f565b94505060406141a188828901613ca0565b93505060e06141b288828901613c40565b9250506101406141c488828901613b83565b9150509295509295909350565b600080604083850312156141e457600080fd5b60006141f285828601613db0565b925050602083013567ffffffffffffffff81111561420f57600080fd5b61421b85828601613bec565b9150509250929050565b600080600080600060a0868803121561423d57600080fd5b600061424b88828901613db0565b955050602061425c88828901613db0565b945050604061426d88828901613db0565b935050606061427e88828901613db0565b925050608061428f88828901613db0565b9150509295509295909350565b60006142a883836147d5565b60208301905092915050565b6142bd81615014565b82525050565b6142cc81615014565b82525050565b60006142dd82614f1e565b6142e78185614f4c565b93506142f283614f0e565b8060005b8381101561432357815161430a888261429c565b975061431583614f3f565b9250506001810190506142f6565b5085935050505092915050565b61433981615026565b82525050565b61434881615032565b82525050565b600061435982614f29565b6143638185614f5d565b93506143738185602086016150a1565b61437c816151ce565b840191505092915050565b600061439282614f34565b61439c8185614f6e565b93506143ac8185602086016150a1565b6143b5816151ce565b840191505092915050565b60006143cd601683614f6e565b91506143d8826151df565b602082019050919050565b60006143f0602b83614f6e565b91506143fb82615208565b604082019050919050565b6000614413603283614f6e565b915061441e82615257565b604082019050919050565b6000614436601c83614f6e565b9150614441826152a6565b602082019050919050565b6000614459600e83614f6e565b9150614464826152cf565b602082019050919050565b600061447c602483614f6e565b9150614487826152f8565b604082019050919050565b600061449f601983614f6e565b91506144aa82615347565b602082019050919050565b60006144c2602c83614f6e565b91506144cd82615370565b604082019050919050565b60006144e5600783614f6e565b91506144f0826153bf565b602082019050919050565b6000614508600783614f6e565b9150614513826153e8565b602082019050919050565b600061452b603883614f6e565b915061453682615411565b604082019050919050565b600061454e601b83614f6e565b915061455982615460565b602082019050919050565b6000614571602a83614f6e565b915061457c82615489565b604082019050919050565b6000614594602983614f6e565b915061459f826154d8565b604082019050919050565b60006145b7602e83614f6e565b91506145c282615527565b604082019050919050565b60006145da600c83614f7f565b91506145e582615576565b600c82019050919050565b60006145fd602083614f6e565b91506146088261559f565b602082019050919050565b6000614620602c83614f6e565b915061462b826155c8565b604082019050919050565b6000614643600983614f6e565b915061464e82615617565b602082019050919050565b6000614666602983614f6e565b915061467182615640565b604082019050919050565b6000614689600f83614f6e565b91506146948261568f565b602082019050919050565b60006146ac602183614f6e565b91506146b7826156b8565b604082019050919050565b60006146cf603183614f6e565b91506146da82615707565b604082019050919050565b60006146f2602c83614f6e565b91506146fd82615756565b604082019050919050565b6000614715600b83614f6e565b9150614720826157a5565b602082019050919050565b60608201600082015161474160008501826147d5565b50602082015161475460208501826147d5565b50604082015161476760408501826147d5565b50505050565b60a08201600082015161478360008501826142b4565b50602082015161479660208501826147d5565b5060408201516147a960408501826147d5565b5060608201516147bc60608501826147d5565b5060808201516147cf60808501826147d5565b50505050565b6147de81615088565b82525050565b6147ed81615088565b82525050565b6148046147ff82615088565b615137565b82525050565b6000614815826145cd565b915061482182846147f3565b60208201915081905092915050565b600060208201905061484560008301846142c3565b92915050565b600060808201905061486060008301876142c3565b61486d60208301866142c3565b61487a60408301856147e4565b818103606083015261488c818461434e565b905095945050505050565b60006080820190506148ac60008301876142c3565b6148b960208301866147e4565b6148c660408301856147e4565b81810360608301526148d88184614387565b905095945050505050565b600060a0820190506148f860008301886142c3565b61490560208301876147e4565b61491260408301866147e4565b61491f60608301856147e4565b61492c60808301846147e4565b9695505050505050565b6000602082019050818103600083015261495081846142d2565b905092915050565b600060208201905061496d6000830184614330565b92915050565b6000602082019050614988600083018461433f565b92915050565b600060208201905081810360008301526149a88184614387565b905092915050565b600060208201905081810360008301526149c9816143c0565b9050919050565b600060208201905081810360008301526149e9816143e3565b9050919050565b60006020820190508181036000830152614a0981614406565b9050919050565b60006020820190508181036000830152614a2981614429565b9050919050565b60006020820190508181036000830152614a498161444c565b9050919050565b60006020820190508181036000830152614a698161446f565b9050919050565b60006020820190508181036000830152614a8981614492565b9050919050565b60006020820190508181036000830152614aa9816144b5565b9050919050565b60006020820190508181036000830152614ac9816144d8565b9050919050565b60006020820190508181036000830152614ae9816144fb565b9050919050565b60006020820190508181036000830152614b098161451e565b9050919050565b60006020820190508181036000830152614b2981614541565b9050919050565b60006020820190508181036000830152614b4981614564565b9050919050565b60006020820190508181036000830152614b6981614587565b9050919050565b60006020820190508181036000830152614b89816145aa565b9050919050565b60006020820190508181036000830152614ba9816145f0565b9050919050565b60006020820190508181036000830152614bc981614613565b9050919050565b60006020820190508181036000830152614be981614636565b9050919050565b60006020820190508181036000830152614c0981614659565b9050919050565b60006020820190508181036000830152614c298161467c565b9050919050565b60006020820190508181036000830152614c498161469f565b9050919050565b60006020820190508181036000830152614c69816146c2565b9050919050565b60006020820190508181036000830152614c89816146e5565b9050919050565b60006020820190508181036000830152614ca981614708565b9050919050565b600060a082019050614cc5600083018461476d565b92915050565b6000602082019050614ce060008301846147e4565b92915050565b6000604082019050614cfb60008301856147e4565b614d0860208301846142c3565b9392505050565b600060a082019050614d2460008301886147e4565b614d3160208301876142c3565b614d3e60408301866142c3565b614d4b60608301856147e4565b614d5860808301846147e4565b9695505050505050565b600061010082019050614d7860008301876147e4565b614d8560208301866142c3565b614d92604083018561476d565b614d9f60e083018461433f565b95945050505050565b600061016082019050614dbe60008301886147e4565b614dcb60208301876142c3565b614dd8604083018661476d565b614de560e083018561472b565b614df361014083018461433f565b9695505050505050565b6000606082019050614e1260008301866147e4565b614e1f60208301856147e4565b614e2c60408301846147e4565b949350505050565b600060a082019050614e4960008301886147e4565b614e5660208301876147e4565b614e6360408301866147e4565b614e7060608301856147e4565b614e7d60808301846147e4565b9695505050505050565b6000614e91614ea2565b9050614e9d8282615106565b919050565b6000604051905090565b600067ffffffffffffffff821115614ec757614ec661519f565b5b614ed0826151ce565b9050602081019050919050565b600067ffffffffffffffff821115614ef857614ef761519f565b5b614f01826151ce565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f9582615088565b9150614fa083615088565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fd557614fd4615141565b5b828201905092915050565b6000614feb82615088565b9150614ff683615088565b92508282101561500957615008615141565b5b828203905092915050565b600061501f82615068565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156150bf5780820151818401526020810190506150a4565b838111156150ce576000848401525b50505050565b600060028204905060018216806150ec57607f821691505b60208210811415615100576150ff615170565b5b50919050565b61510f826151ce565b810181811067ffffffffffffffff8211171561512e5761512d61519f565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f7320746f6b656e73206973206e6f74206275726e656400000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f696c6c6567616c20616363657373000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f667265657a656400000000000000000000000000000000000000000000000000600082015250565b7f6e6f206461746100000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f6661696c656420746f2063616c6c206f6e4265666f72654d696e740000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f5f706f736974696f6e7356310000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f6e6f7420666f756e640000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f616c726561647920667265657a65640000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f616c726561647920736574000000000000000000000000000000000000000000600082015250565b6157d781615014565b81146157e257600080fd5b50565b6157ee81615026565b81146157f957600080fd5b50565b61580581615032565b811461581057600080fd5b50565b61581c8161503c565b811461582757600080fd5b50565b61583381615088565b811461583e57600080fd5b5056fea26469706673582212202c18151b8e757a3688e802b009ae0c590b2df6c46a7aaab6ca90ddc4a7b67e9064736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c80634f6ccce71161011a578063b88d4fde116100ad578063c87b56dd1161007c578063c87b56dd1461065f578063d81ce7451461068f578063e985e9c5146106bf578063f301af42146106ef578063f96742bc1461072157610206565b8063b88d4fde146105c7578063bba1b3fa146105e3578063bff92b5e14610613578063c4d66de81461064357610206565b806386904ccf116100e957806386904ccf1461052957806395d89b411461055957806399fbab8814610577578063a22cb465146105ab57610206565b80634f6ccce71461047b5780636352211e146104ab57806370a08231146104db57806379502c551461050b57610206565b806320d7b3271161019d578063303e74df1161016c578063303e74df146103c5578063385c0eb0146103e35780633fb3a6c3146103ff57806340565efa1461042f57806342842e0e1461045f57610206565b806320d7b3271461032b57806323b872dd1461035b57806326987b60146103775780632f745c591461039557610206565b8063095ea7b3116101d9578063095ea7b3146102a557806318160ddd146102c15780631f8d009e146102df5780631fd40887146102fb57610206565b806301b9a3971461020b57806301ffc9a71461022757806306fdde0314610257578063081812fc14610275575b600080fd5b61022560048036038101906102209190613dda565b61073d565b005b610241600480360381019061023c919061404a565b610812565b60405161024e9190614958565b60405180910390f35b61025f61088c565b60405161026c919061498e565b60405180910390f35b61028f600480360381019061028a9190614106565b61091e565b60405161029c9190614830565b60405180910390f35b6102bf60048036038101906102ba9190613fe5565b6109a3565b005b6102c9610abb565b6040516102d69190614ccb565b60405180910390f35b6102f960048036038101906102f491906141d1565b610acc565b005b61031560048036038101906103109190614106565b610c6b565b6040516103229190614973565b60405180910390f35b61034560048036038101906103409190613f32565b610c83565b6040516103529190614ccb565b60405180910390f35b61037560048036038101906103709190613e68565b61103d565b005b61037f61109d565b60405161038c9190614ccb565b60405180910390f35b6103af60048036038101906103aa9190613fe5565b6110ae565b6040516103bc9190614ccb565b60405180910390f35b6103cd611191565b6040516103da9190614830565b60405180910390f35b6103fd60048036038101906103f89190614106565b6111b7565b005b61041960048036038101906104149190613dda565b61147f565b6040516104269190614936565b60405180910390f35b61044960048036038101906104449190614106565b611516565b6040516104569190614958565b60405180910390f35b61047960048036038101906104749190613e68565b611536565b005b61049560048036038101906104909190614106565b611556565b6040516104a29190614ccb565b60405180910390f35b6104c560048036038101906104c09190614106565b6115b7565b6040516104d29190614830565b60405180910390f35b6104f560048036038101906104f09190613dda565b611669565b6040516105029190614ccb565b60405180910390f35b610513611721565b6040516105209190614830565b60405180910390f35b610543600480360381019061053e9190614225565b611747565b6040516105509190614958565b60405180910390f35b6105616118e9565b60405161056e919061498e565b60405180910390f35b610591600480360381019061058c9190614106565b61197b565b6040516105a29594939291906148e3565b60405180910390f35b6105c560048036038101906105c09190613fa9565b6119bc565b005b6105e160048036038101906105dc9190613eb7565b611b3d565b005b6105fd60048036038101906105f89190613dda565b611b9f565b60405161060a9190614830565b60405180910390f35b61062d60048036038101906106289190614158565b611bd2565b60405161063a919061498e565b60405180910390f35b61065d60048036038101906106589190613dda565b611bec565b005b61067960048036038101906106749190614106565b611d7b565b604051610686919061498e565b60405180910390f35b6106a960048036038101906106a49190613dda565b611e20565b6040516106b69190614936565b60405180910390f35b6106d960048036038101906106d49190613e2c565b611e70565b6040516106e69190614958565b60405180910390f35b61070960048036038101906107049190614106565b611f04565b60405161071893929190614dfd565b60405180910390f35b61073b60048036038101906107369190613e2c565b611f32565b005b600073ffffffffffffffffffffffffffffffffffffffff16609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c590614c90565b60405180910390fd5b80609e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108855750610884826120ae565b5b9050919050565b60606065805461089b906150d4565b80601f01602080910402602001604051908101604052809291908181526020018280546108c7906150d4565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b600061092982612190565b610968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095f90614bb0565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ae826115b7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690614c30565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a3e6121fc565b73ffffffffffffffffffffffffffffffffffffffff161480610a6d5750610a6c81610a676121fc565b611e70565b5b610aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa390614af0565b60405180910390fd5b610ab68383612204565b505050565b6000610ac760976122bd565b905090565b816000610ad8826122cb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2657600080fd5b505afa158015610b3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5e9190613e03565b9050610b686121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90614a30565b60405180910390fd5b60001515609d600087815260200190815260200160002060009054906101000a900460ff16151514610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3390614ab0565b60405180910390fd5b83609c60008781526020019081526020016000209080519060200190610c639291906138e6565b505050505050565b60a06020528060005260406000206000915090505481565b6000610c8d6121fc565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0b57600080fd5b505afa158015610d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d439190613e03565b73ffffffffffffffffffffffffffffffffffffffff1614610d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9090614a30565b60405180910390fd5b610da3609761239d565b6000610daf60976122bd565b9050610dbb87826123b3565b7fd46616b47888bf162137201f2b51769d5891ea9b59978dc022f447f3335e4b368188888888604051610df2959493929190614d0f565b60405180910390a160006040518060a001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020016000815260200160008152509050610e478282612581565b609a60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150506001900390600052602060002001600090919091909150556000609f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611016578073ffffffffffffffffffffffffffffffffffffffff1663e3a71f63848b85896040518563ffffffff1660e01b8152600401610f849493929190614d62565b602060405180830381600087803b158015610f9e57600080fd5b505af1158015610fb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd69190614021565b611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c90614b10565b60405180910390fd5b5b8460a060008581526020019081526020016000208190555082935050505095945050505050565b61104e6110486121fc565b826125e0565b61108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614c50565b60405180910390fd5b6110988383836126be565b505050565b60006110a960976122bd565b905090565b60006110f7609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061291a565b8210611138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112f906149d0565b60405180910390fd5b61118982609b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061292f90919063ffffffff16565b905092915050565b609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8060006111c3826122cb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b15801561121157600080fd5b505afa158015611225573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112499190613e03565b90506112536121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b790614a30565b60405180910390fd5b60001515609d600086815260200190815260200160002060009054906101000a900460ff16151514611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e90614c10565b60405180910390fd5b6000609c60008681526020019081526020016000208054611347906150d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611373906150d4565b80156113c05780601f10611395576101008083540402835291602001916113c0565b820191906000526020600020905b8154815290600101906020018083116113a357829003601f168201915b5050505050905060008151141561140c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140390614ad0565b60405180910390fd5b6001609d600087815260200190815260200160002060006101000a81548160ff0219169083151502179055507faf22e0980c2b7e44202e8c1203335e01a22820ba47c44e32ef994c6fea108b7a856114626121fc565b604051611470929190614ce6565b60405180910390a15050505050565b6060609a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561150a57602002820191906000526020600020905b8154815260200190600101908083116114f6575b50505050509050919050565b609d6020528060005260406000206000915054906101000a900460ff1681565b61155183838360405180602001604052806000815250611b3d565b505050565b600061156260976122bd565b82106115a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159a90614c70565b60405180910390fd5b6001826115b09190614f8a565b9050919050565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165790614b50565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190614b30565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006117516121fc565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b1580156117cf57600080fd5b505afa1580156117e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118079190613e03565b73ffffffffffffffffffffffffffffffffffffffff161461185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490614a30565b60405180910390fd5b6000611868876122cb565b90508581602001818152505084816040018181525050838160600181815250508281608001818152505061189c8782612581565b7fd186cbf6df87e8d75402ae709b341a60af62280d4af57663f74527986880011b87878787876040516118d3959493929190614e34565b60405180910390a1600191505095945050505050565b6060606680546118f8906150d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611924906150d4565b80156119715780601f1061194657610100808354040283529160200191611971565b820191906000526020600020905b81548152906001019060200180831161195457829003601f168201915b5050505050905090565b60008060008060008061198d876122cb565b905080600001518160200151826040015183606001518460800151955095509550955095505091939590929450565b6119c46121fc565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2990614a70565b60405180910390fd5b80606a6000611a3f6121fc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611aec6121fc565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b319190614958565b60405180910390a35050565b611b4e611b486121fc565b836125e0565b611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614c50565b60405180910390fd5b611b9984848484612949565b50505050565b609f6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060611be186868686866129a5565b905095945050505050565b600060019054906101000a900460ff1680611c12575060008054906101000a900460ff16155b611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4890614b70565b60405180910390fd5b60008060019054906101000a900460ff161590508015611ca1576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611d156040518060400160405280601781526020017f4465762050726f746f636f6c2073546f6b656e732056310000000000000000008152506040518060400160405280600e81526020017f4445562d53544f4b454e532d5631000000000000000000000000000000000000815250612c56565b81609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015611d775760008060016101000a81548160ff0219169083151502179055505b5050565b60606000611d8960976122bd565b905080831115611dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc590614bd0565b60405180910390fd5b6000611dd9846122cb565b90506000611de685612d4b565b90506000611df3866115b7565b9050611e158682858560a060008c8152602001908152602001600020546129a5565b945050505050919050565b6060611e69609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612ed1565b9050919050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080600080611f1385612d4b565b9050806000015181602001518260400151935093509350509193909250565b8160008173ffffffffffffffffffffffffffffffffffffffff1663a6c3e6b96040518163ffffffff1660e01b815260040160206040518083038186803b158015611f7b57600080fd5b505afa158015611f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb39190613e03565b9050611fbd6121fc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461202a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202190614a30565b60405180910390fd5b82609f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061217957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612189575061218882612ef2565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612277836115b7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6122d361396c565b60006122de83612f5c565b90506000609960008381526020019081526020016000208054612300906150d4565b80601f016020809104026020016040519081016040528092919081815260200182805461232c906150d4565b80156123795780601f1061234e57610100808354040283529160200191612379565b820191906000526020600020905b81548152906001019060200180831161235c57829003601f168201915b505050505090508080602001905181019061239491906140dd565b92505050919050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241a90614b90565b60405180910390fd5b61242c81612190565b1561246c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246390614a10565b60405180910390fd5b61247860008383612f8c565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124c89190614f8a565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061258c83612f5c565b90506000826040516020016125a19190614cb0565b6040516020818303038152906040529050806099600084815260200190815260200160002090805190602001906125d99291906139b1565b5050505050565b60006125eb82612190565b61262a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262190614a90565b60405180910390fd5b6000612635836115b7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126a457508373ffffffffffffffffffffffffffffffffffffffff1661268c8461091e565b73ffffffffffffffffffffffffffffffffffffffff16145b806126b557506126b48185611e70565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126de826115b7565b73ffffffffffffffffffffffffffffffffffffffff1614612734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272b90614bf0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279b90614a50565b60405180910390fd5b6127af838383612f8c565b6127ba600082612204565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461280a9190614fe0565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128619190614f8a565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061292882600001613171565b9050919050565b600061293e8360000183613182565b60001c905092915050565b6129548484846126be565b612960848484846131d3565b61299f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612996906149f0565b60405180910390fd5b50505050565b60606000609c600088815260200190815260200160002080546129c7906150d4565b80601f01602080910402602001604051908101604052809291908181526020018280546129f3906150d4565b8015612a405780601f10612a1557610100808354040283529160200191612a40565b820191906000526020600020905b815481529060010190602001808311612a2357829003601f168201915b50505050509050600081511415612b88576000609f6000876000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b86578073ffffffffffffffffffffffffffffffffffffffff1663658e8c9789898989896040518663ffffffff1660e01b8152600401612b2e959493929190614da8565b60006040518083038186803b158015612b4657600080fd5b505afa158015612b5a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612b83919061409c565b91505b505b609e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630d1c1e1a866000015187602001518860600151856040518563ffffffff1660e01b8152600401612bf59493929190614897565b60006040518083038186803b158015612c0d57600080fd5b505afa158015612c21573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612c4a919061409c565b91505095945050505050565b600060019054906101000a900460ff1680612c7c575060008054906101000a900460ff16155b612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb290614b70565b60405180910390fd5b60008060019054906101000a900460ff161590508015612d0b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612d1361336a565b612d1b613443565b612d25838361351c565b8015612d465760008060016101000a81548160ff0219169083151502179055505b505050565b612d53613a37565b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166306490f476040518163ffffffff1660e01b815260040160206040518083038186803b158015612dbd57600080fd5b505afa158015612dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612df59190613e03565b905060008173ffffffffffffffffffffffffffffffffffffffff166360e8da7c856040518263ffffffff1660e01b8152600401612e329190614ccb565b60206040518083038186803b158015612e4a57600080fd5b505afa158015612e5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e82919061412f565b90506000612e8f856122cb565b905060008160600151905060008382612ea89190614f8a565b905060405180606001604052808281526020018381526020018581525095505050505050919050565b60606000612ee183600001613625565b905060608190508092505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081604051602001612f6f919061480a565b604051602081830303815290604052805190602001209050919050565b612f97838383613681565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156130235761301d81609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061368690919063ffffffff16565b5061316c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308a906149b0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461316b5761311781609b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206136a090919063ffffffff16565b5061316981609b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061368690919063ffffffff16565b505b5b505050565b600081600001805490509050919050565b60008260000182815481106131c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60006131f48473ffffffffffffffffffffffffffffffffffffffff166136ba565b1561335d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261321d6121fc565b8786866040518563ffffffff1660e01b815260040161323f949392919061484b565b602060405180830381600087803b15801561325957600080fd5b505af192505050801561328a57506040513d601f19601f820116820180604052508101906132879190614073565b60015b61330d573d80600081146132ba576040519150601f19603f3d011682016040523d82523d6000602084013e6132bf565b606091505b50600081511415613305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132fc906149f0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613362565b600190505b949350505050565b600060019054906101000a900460ff1680613390575060008054906101000a900460ff16155b6133cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c690614b70565b60405180910390fd5b60008060019054906101000a900460ff16159050801561341f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156134405760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613469575060008054906101000a900460ff16155b6134a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349f90614b70565b60405180910390fd5b60008060019054906101000a900460ff1615905080156134f8576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156135195760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613542575060008054906101000a900460ff16155b613581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357890614b70565b60405180910390fd5b60008060019054906101000a900460ff1615905080156135d1576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82606590805190602001906135e79291906138e6565b5081606690805190602001906135fe9291906138e6565b5080156136205760008060016101000a81548160ff0219169083151502179055505b505050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561367557602002820191906000526020600020905b815481526020019060010190808311613661575b50505050509050919050565b505050565b6000613698836000018360001b6136cd565b905092915050565b60006136b2836000018360001b61373d565b905092915050565b600080823b905060008111915050919050565b60006136d983836138c3565b613732578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613737565b600090505b92915050565b600080836001016000848152602001908152602001600020549050600081146138b757600060018261376f9190614fe0565b90506000600186600001805490506137879190614fe0565b90508181146138425760008660000182815481106137ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613818577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061387c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506138bd565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b8280546138f2906150d4565b90600052602060002090601f016020900481019282613914576000855561395b565b82601f1061392d57805160ff191683800117855561395b565b8280016001018555821561395b579182015b8281111561395a57825182559160200191906001019061393f565b5b5090506139689190613a58565b5090565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b8280546139bd906150d4565b90600052602060002090601f0160209004810192826139df5760008555613a26565b82601f106139f857805160ff1916838001178555613a26565b82800160010185558215613a26579182015b82811115613a25578251825591602001919060010190613a0a565b5b509050613a339190613a58565b5090565b60405180606001604052806000815260200160008152602001600081525090565b5b80821115613a71576000816000905550600101613a59565b5090565b6000613a88613a8384614eac565b614e87565b905082815260208101848484011115613aa057600080fd5b613aab848285615092565b509392505050565b6000613ac6613ac184614edd565b614e87565b905082815260208101848484011115613ade57600080fd5b613ae9848285615092565b509392505050565b6000613b04613aff84614edd565b614e87565b905082815260208101848484011115613b1c57600080fd5b613b278482856150a1565b509392505050565b600081359050613b3e816157ce565b92915050565b600081519050613b53816157ce565b92915050565b600081359050613b68816157e5565b92915050565b600081519050613b7d816157e5565b92915050565b600081359050613b92816157fc565b92915050565b600081359050613ba781615813565b92915050565b600081519050613bbc81615813565b92915050565b600082601f830112613bd357600080fd5b8135613be3848260208601613a75565b91505092915050565b600082601f830112613bfd57600080fd5b8135613c0d848260208601613ab3565b91505092915050565b600082601f830112613c2757600080fd5b8151613c37848260208601613af1565b91505092915050565b600060608284031215613c5257600080fd5b613c5c6060614e87565b90506000613c6c84828501613db0565b6000830152506020613c8084828501613db0565b6020830152506040613c9484828501613db0565b60408301525092915050565b600060a08284031215613cb257600080fd5b613cbc60a0614e87565b90506000613ccc84828501613b2f565b6000830152506020613ce084828501613db0565b6020830152506040613cf484828501613db0565b6040830152506060613d0884828501613db0565b6060830152506080613d1c84828501613db0565b60808301525092915050565b600060a08284031215613d3a57600080fd5b613d4460a0614e87565b90506000613d5484828501613b44565b6000830152506020613d6884828501613dc5565b6020830152506040613d7c84828501613dc5565b6040830152506060613d9084828501613dc5565b6060830152506080613da484828501613dc5565b60808301525092915050565b600081359050613dbf8161582a565b92915050565b600081519050613dd48161582a565b92915050565b600060208284031215613dec57600080fd5b6000613dfa84828501613b2f565b91505092915050565b600060208284031215613e1557600080fd5b6000613e2384828501613b44565b91505092915050565b60008060408385031215613e3f57600080fd5b6000613e4d85828601613b2f565b9250506020613e5e85828601613b2f565b9150509250929050565b600080600060608486031215613e7d57600080fd5b6000613e8b86828701613b2f565b9350506020613e9c86828701613b2f565b9250506040613ead86828701613db0565b9150509250925092565b60008060008060808587031215613ecd57600080fd5b6000613edb87828801613b2f565b9450506020613eec87828801613b2f565b9350506040613efd87828801613db0565b925050606085013567ffffffffffffffff811115613f1a57600080fd5b613f2687828801613bc2565b91505092959194509250565b600080600080600060a08688031215613f4a57600080fd5b6000613f5888828901613b2f565b9550506020613f6988828901613b2f565b9450506040613f7a88828901613db0565b9350506060613f8b88828901613db0565b9250506080613f9c88828901613b83565b9150509295509295909350565b60008060408385031215613fbc57600080fd5b6000613fca85828601613b2f565b9250506020613fdb85828601613b59565b9150509250929050565b60008060408385031215613ff857600080fd5b600061400685828601613b2f565b925050602061401785828601613db0565b9150509250929050565b60006020828403121561403357600080fd5b600061404184828501613b6e565b91505092915050565b60006020828403121561405c57600080fd5b600061406a84828501613b98565b91505092915050565b60006020828403121561408557600080fd5b600061409384828501613bad565b91505092915050565b6000602082840312156140ae57600080fd5b600082015167ffffffffffffffff8111156140c857600080fd5b6140d484828501613c16565b91505092915050565b600060a082840312156140ef57600080fd5b60006140fd84828501613d28565b91505092915050565b60006020828403121561411857600080fd5b600061412684828501613db0565b91505092915050565b60006020828403121561414157600080fd5b600061414f84828501613dc5565b91505092915050565b6000806000806000610160868803121561417157600080fd5b600061417f88828901613db0565b955050602061419088828901613b2f565b94505060406141a188828901613ca0565b93505060e06141b288828901613c40565b9250506101406141c488828901613b83565b9150509295509295909350565b600080604083850312156141e457600080fd5b60006141f285828601613db0565b925050602083013567ffffffffffffffff81111561420f57600080fd5b61421b85828601613bec565b9150509250929050565b600080600080600060a0868803121561423d57600080fd5b600061424b88828901613db0565b955050602061425c88828901613db0565b945050604061426d88828901613db0565b935050606061427e88828901613db0565b925050608061428f88828901613db0565b9150509295509295909350565b60006142a883836147d5565b60208301905092915050565b6142bd81615014565b82525050565b6142cc81615014565b82525050565b60006142dd82614f1e565b6142e78185614f4c565b93506142f283614f0e565b8060005b8381101561432357815161430a888261429c565b975061431583614f3f565b9250506001810190506142f6565b5085935050505092915050565b61433981615026565b82525050565b61434881615032565b82525050565b600061435982614f29565b6143638185614f5d565b93506143738185602086016150a1565b61437c816151ce565b840191505092915050565b600061439282614f34565b61439c8185614f6e565b93506143ac8185602086016150a1565b6143b5816151ce565b840191505092915050565b60006143cd601683614f6e565b91506143d8826151df565b602082019050919050565b60006143f0602b83614f6e565b91506143fb82615208565b604082019050919050565b6000614413603283614f6e565b915061441e82615257565b604082019050919050565b6000614436601c83614f6e565b9150614441826152a6565b602082019050919050565b6000614459600e83614f6e565b9150614464826152cf565b602082019050919050565b600061447c602483614f6e565b9150614487826152f8565b604082019050919050565b600061449f601983614f6e565b91506144aa82615347565b602082019050919050565b60006144c2602c83614f6e565b91506144cd82615370565b604082019050919050565b60006144e5600783614f6e565b91506144f0826153bf565b602082019050919050565b6000614508600783614f6e565b9150614513826153e8565b602082019050919050565b600061452b603883614f6e565b915061453682615411565b604082019050919050565b600061454e601b83614f6e565b915061455982615460565b602082019050919050565b6000614571602a83614f6e565b915061457c82615489565b604082019050919050565b6000614594602983614f6e565b915061459f826154d8565b604082019050919050565b60006145b7602e83614f6e565b91506145c282615527565b604082019050919050565b60006145da600c83614f7f565b91506145e582615576565b600c82019050919050565b60006145fd602083614f6e565b91506146088261559f565b602082019050919050565b6000614620602c83614f6e565b915061462b826155c8565b604082019050919050565b6000614643600983614f6e565b915061464e82615617565b602082019050919050565b6000614666602983614f6e565b915061467182615640565b604082019050919050565b6000614689600f83614f6e565b91506146948261568f565b602082019050919050565b60006146ac602183614f6e565b91506146b7826156b8565b604082019050919050565b60006146cf603183614f6e565b91506146da82615707565b604082019050919050565b60006146f2602c83614f6e565b91506146fd82615756565b604082019050919050565b6000614715600b83614f6e565b9150614720826157a5565b602082019050919050565b60608201600082015161474160008501826147d5565b50602082015161475460208501826147d5565b50604082015161476760408501826147d5565b50505050565b60a08201600082015161478360008501826142b4565b50602082015161479660208501826147d5565b5060408201516147a960408501826147d5565b5060608201516147bc60608501826147d5565b5060808201516147cf60808501826147d5565b50505050565b6147de81615088565b82525050565b6147ed81615088565b82525050565b6148046147ff82615088565b615137565b82525050565b6000614815826145cd565b915061482182846147f3565b60208201915081905092915050565b600060208201905061484560008301846142c3565b92915050565b600060808201905061486060008301876142c3565b61486d60208301866142c3565b61487a60408301856147e4565b818103606083015261488c818461434e565b905095945050505050565b60006080820190506148ac60008301876142c3565b6148b960208301866147e4565b6148c660408301856147e4565b81810360608301526148d88184614387565b905095945050505050565b600060a0820190506148f860008301886142c3565b61490560208301876147e4565b61491260408301866147e4565b61491f60608301856147e4565b61492c60808301846147e4565b9695505050505050565b6000602082019050818103600083015261495081846142d2565b905092915050565b600060208201905061496d6000830184614330565b92915050565b6000602082019050614988600083018461433f565b92915050565b600060208201905081810360008301526149a88184614387565b905092915050565b600060208201905081810360008301526149c9816143c0565b9050919050565b600060208201905081810360008301526149e9816143e3565b9050919050565b60006020820190508181036000830152614a0981614406565b9050919050565b60006020820190508181036000830152614a2981614429565b9050919050565b60006020820190508181036000830152614a498161444c565b9050919050565b60006020820190508181036000830152614a698161446f565b9050919050565b60006020820190508181036000830152614a8981614492565b9050919050565b60006020820190508181036000830152614aa9816144b5565b9050919050565b60006020820190508181036000830152614ac9816144d8565b9050919050565b60006020820190508181036000830152614ae9816144fb565b9050919050565b60006020820190508181036000830152614b098161451e565b9050919050565b60006020820190508181036000830152614b2981614541565b9050919050565b60006020820190508181036000830152614b4981614564565b9050919050565b60006020820190508181036000830152614b6981614587565b9050919050565b60006020820190508181036000830152614b89816145aa565b9050919050565b60006020820190508181036000830152614ba9816145f0565b9050919050565b60006020820190508181036000830152614bc981614613565b9050919050565b60006020820190508181036000830152614be981614636565b9050919050565b60006020820190508181036000830152614c0981614659565b9050919050565b60006020820190508181036000830152614c298161467c565b9050919050565b60006020820190508181036000830152614c498161469f565b9050919050565b60006020820190508181036000830152614c69816146c2565b9050919050565b60006020820190508181036000830152614c89816146e5565b9050919050565b60006020820190508181036000830152614ca981614708565b9050919050565b600060a082019050614cc5600083018461476d565b92915050565b6000602082019050614ce060008301846147e4565b92915050565b6000604082019050614cfb60008301856147e4565b614d0860208301846142c3565b9392505050565b600060a082019050614d2460008301886147e4565b614d3160208301876142c3565b614d3e60408301866142c3565b614d4b60608301856147e4565b614d5860808301846147e4565b9695505050505050565b600061010082019050614d7860008301876147e4565b614d8560208301866142c3565b614d92604083018561476d565b614d9f60e083018461433f565b95945050505050565b600061016082019050614dbe60008301886147e4565b614dcb60208301876142c3565b614dd8604083018661476d565b614de560e083018561472b565b614df361014083018461433f565b9695505050505050565b6000606082019050614e1260008301866147e4565b614e1f60208301856147e4565b614e2c60408301846147e4565b949350505050565b600060a082019050614e4960008301886147e4565b614e5660208301876147e4565b614e6360408301866147e4565b614e7060608301856147e4565b614e7d60808301846147e4565b9695505050505050565b6000614e91614ea2565b9050614e9d8282615106565b919050565b6000604051905090565b600067ffffffffffffffff821115614ec757614ec661519f565b5b614ed0826151ce565b9050602081019050919050565b600067ffffffffffffffff821115614ef857614ef761519f565b5b614f01826151ce565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f9582615088565b9150614fa083615088565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fd557614fd4615141565b5b828201905092915050565b6000614feb82615088565b9150614ff683615088565b92508282101561500957615008615141565b5b828203905092915050565b600061501f82615068565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156150bf5780820151818401526020810190506150a4565b838111156150ce576000848401525b50505050565b600060028204905060018216806150ec57607f821691505b60208210811415615100576150ff615170565b5b50919050565b61510f826151ce565b810181811067ffffffffffffffff8211171561512e5761512d61519f565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f7320746f6b656e73206973206e6f74206275726e656400000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f696c6c6567616c20616363657373000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f667265657a656400000000000000000000000000000000000000000000000000600082015250565b7f6e6f206461746100000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f6661696c656420746f2063616c6c206f6e4265666f72654d696e740000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f5f706f736974696f6e7356310000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f6e6f7420666f756e640000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f616c726561647920667265657a65640000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f616c726561647920736574000000000000000000000000000000000000000000600082015250565b6157d781615014565b81146157e257600080fd5b50565b6157ee81615026565b81146157f957600080fd5b50565b61580581615032565b811461581057600080fd5b50565b61581c8161503c565b811461582757600080fd5b50565b61583381615088565b811461583e57600080fd5b5056fea26469706673582212202c18151b8e757a3688e802b009ae0c590b2df6c46a7aaab6ca90ddc4a7b67e9064736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.