Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 108 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24075251 | 81 days ago | IN | 0 ETH | 0.0000947 | ||||
| Set Approval For... | 24069319 | 82 days ago | IN | 0 ETH | 0.00009607 | ||||
| Set Approval For... | 22291201 | 331 days ago | IN | 0 ETH | 0.000028 | ||||
| Set Approval For... | 21509154 | 440 days ago | IN | 0 ETH | 0.00033594 | ||||
| Set Approval For... | 18916729 | 802 days ago | IN | 0 ETH | 0.00058731 | ||||
| Set Approval For... | 16308156 | 1169 days ago | IN | 0 ETH | 0.00070099 | ||||
| Set Approval For... | 15462708 | 1288 days ago | IN | 0 ETH | 0.00033236 | ||||
| Set Approval For... | 15017950 | 1359 days ago | IN | 0 ETH | 0.0011168 | ||||
| Set Approval For... | 14228494 | 1485 days ago | IN | 0 ETH | 0.0025737 | ||||
| Set Approval For... | 13981455 | 1523 days ago | IN | 0 ETH | 0.01743113 | ||||
| Set Approval For... | 13976843 | 1524 days ago | IN | 0 ETH | 0.00656192 | ||||
| Safe Transfer Fr... | 13782149 | 1554 days ago | IN | 0 ETH | 0.0090344 | ||||
| Safe Transfer Fr... | 13782147 | 1554 days ago | IN | 0 ETH | 0.00851453 | ||||
| Safe Transfer Fr... | 13782145 | 1554 days ago | IN | 0 ETH | 0.01068199 | ||||
| Safe Transfer Fr... | 13782144 | 1554 days ago | IN | 0 ETH | 0.01042964 | ||||
| Safe Transfer Fr... | 13782142 | 1554 days ago | IN | 0 ETH | 0.01088292 | ||||
| Safe Transfer Fr... | 13782141 | 1554 days ago | IN | 0 ETH | 0.01111259 | ||||
| Safe Transfer Fr... | 13782140 | 1554 days ago | IN | 0 ETH | 0.00991561 | ||||
| Safe Transfer Fr... | 13782140 | 1554 days ago | IN | 0 ETH | 0.00991561 | ||||
| Safe Transfer Fr... | 13782140 | 1554 days ago | IN | 0 ETH | 0.00928632 | ||||
| Safe Transfer Fr... | 13782138 | 1554 days ago | IN | 0 ETH | 0.01007366 | ||||
| Safe Transfer Fr... | 13782134 | 1554 days ago | IN | 0 ETH | 0.00904271 | ||||
| Safe Transfer Fr... | 13782131 | 1554 days ago | IN | 0 ETH | 0.01044363 | ||||
| Safe Transfer Fr... | 13782125 | 1554 days ago | IN | 0 ETH | 0.00997696 | ||||
| Safe Transfer Fr... | 13782124 | 1554 days ago | IN | 0 ETH | 0.01125178 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BeatsOnTheBlockchain
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract BeatsOnTheBlockchain is ERC721Enumerable, Ownable, ReentrancyGuard {
using SafeMath for uint256;
using Counters for Counters.Counter;
uint256 public MAX_BEATS_SUPPLY = 3333; // Love Always
string private _contractURI;
uint256 public beatPrice = 100000000000000000;
uint256 public MAX_MINT_AMOUNT = 25;
string public baseImageURI;
string public animationCodeURI;
string public animationURI;
ProxyRegistry private _proxyRegistry;
Counters.Counter private _tokenIds;
mapping(uint256 => bytes32) beatSeed;
constructor(
string memory _baseImageURI,
string memory _animationURI,
address openseaProxyRegistry_
) ERC721("Beats on the Blockchain ", "BOTB") {
baseImageURI = _baseImageURI;
animationURI = _animationURI;
if (address(0) != openseaProxyRegistry_) {
_setOpenSeaRegistry(openseaProxyRegistry_);
}
}
function mintBeats(uint256 _amount) public payable nonReentrant {
require(beatPrice.mul(_amount) == msg.value, "Ether value sent is not correct");
require(_amount <= MAX_MINT_AMOUNT, "Cannot mint more than 25 at a time");
require((_tokenIds.current() + _amount) <= MAX_BEATS_SUPPLY, "Mint would exceed max supply of Beats");
for (uint256 i = 0; i < _amount; i++) {
_tokenIds.increment();
uint256 tokenId = _tokenIds.current();
_safeMint(msg.sender, tokenId);
beatSeed[tokenId] = bytes32(keccak256(abi.encodePacked(address(msg.sender), tokenId)));
}
}
function setAnimationCodeURI(string memory newAnimationCodeURI) public onlyOwner {
animationCodeURI = newAnimationCodeURI;
}
function setAnimationURI(string memory newAnimationURI) public onlyOwner {
animationURI = newAnimationURI;
}
function setBaseImgURI(string memory newBaseImageURI) public onlyOwner {
baseImageURI = newBaseImageURI;
}
function tokenURI(uint256 _tokenId) public view virtual override returns (string memory)
{
require(_exists(_tokenId), "Token does not exist");
string memory seed = bytes32ToString(beatSeed[_tokenId]);
return string(abi.encodePacked('data:application/json;utf8,{"name":"', uint2str(_tokenId), '","animation_url":"', animationURL(seed), '","image":"', baseImgURL(_tokenId), '.png"}'));
}
function animationURL(string memory _seed) internal view returns (string memory)
{
return string(abi.encodePacked(animationURI, _seed));
}
function baseImgURL(uint256 _tokenId) internal view returns (string memory)
{
return string(abi.encodePacked(baseImageURI, uint2str(_tokenId)));
}
function withdraw() public onlyOwner {
uint balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
if (_i == 0) {
return "0";
}
uint j = _i;
uint len;
while (j != 0) {
len++;
j /= 10;
}
bytes memory bstr = new bytes(len);
uint k = len;
while (_i != 0) {
k = k-1;
uint8 temp = (48 + uint8(_i - _i / 10 * 10));
bytes1 b1 = bytes1(temp);
bstr[k] = b1;
_i /= 10;
}
return string(bstr);
}
function bytes32ToString(bytes32 _bytes32) public pure returns (string memory)
{
uint8 i = 0;
bytes memory bytesArray = new bytes(64);
for (i = 0; i < bytesArray.length; i++) {
uint8 _f = uint8(_bytes32[i / 2] & 0x0f);
uint8 _l = uint8(_bytes32[i / 2] >> 4);
bytesArray[i] = toByte(_f);
i = i + 1;
bytesArray[i] = toByte(_l);
}
return string(bytesArray);
}
function toByte(uint8 _uint8) public pure returns (bytes1) {
if (_uint8 < 10) {
return bytes1(_uint8 + 48);
} else {
return bytes1(_uint8 + 87);
}
}
/// @notice Returns the contract URI function. Used on OpenSea to get details
// about a contract (owner, royalties etc...)
function contractURI() public view returns (string memory) {
return _contractURI;
}
/// @notice Helper for OpenSea gas-less trading
/// @dev Allows to check if `operator` is owner's OpenSea proxy
/// @param owner the owner we check for
/// @param operator the operator (proxy) we check for
function isOwnersOpenSeaProxy(address owner, address operator)
public
view
returns (bool)
{
ProxyRegistry proxyRegistry = _proxyRegistry;
return
// we have a proxy registry address
address(proxyRegistry) != address(0) &&
// current operator is owner's proxy address
address(proxyRegistry.proxies(owner)) == operator;
}
/// @dev Internal function to set the _contractURI
/// @param contractURI_ the new contract uri
function _setContractURI(string memory contractURI_) internal {
_contractURI = contractURI_;
}
/// @dev Internal function to set the _proxyRegistry
/// @param proxyRegistryAddress the new proxy registry address
function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
_proxyRegistry = ProxyRegistry(proxyRegistryAddress);
}
/// @notice Allows gas-less trading on OpenSea by safelisting the Proxy of the user
/// @dev Override isApprovedForAll to check first if current operator is owner's OpenSea proxy
/// @inheritdoc ERC721
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
// allows gas less trading on OpenSea
if (isOwnersOpenSeaProxy(owner, operator)) {
return true;
}
return super.isApprovedForAll(owner, operator);
}
/// @dev Internal function to set the _proxyRegistry
/// @param proxyRegistryAddress the new proxy registry address
function setOpenSeaRegistry(address proxyRegistryAddress)
external
onlyOwner
{
_proxyRegistry = ProxyRegistry(proxyRegistryAddress);
}
/// @notice Helper for the owner of the contract to set the new contract URI
/// @dev needs to be owner
/// @param contractURI_ new contract URI
function setContractURI(string memory contractURI_) external onlyOwner {
_setContractURI(contractURI_);
}
}
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. 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;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev 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 = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _owners;
// Mapping owner address to token count
mapping (address => uint256) private _balances;
// Mapping from token ID to approved address
mapping (uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC721).interfaceId
|| interfaceId == type(IERC721Metadata).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: 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}. 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 = ERC721.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 = ERC721.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 = ERC721.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(ERC721.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(ERC721.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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
// solhint-disable-next-line no-inline-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* 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 { }
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, 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;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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
// solhint-disable-next-line no-inline-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 "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `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;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_baseImageURI","type":"string"},{"internalType":"string","name":"_animationURI","type":"string"},{"internalType":"address","name":"openseaProxyRegistry_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_BEATS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"animationCodeURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"animationURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beatPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_bytes32","type":"bytes32"}],"name":"bytes32ToString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintBeats","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newAnimationCodeURI","type":"string"}],"name":"setAnimationCodeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newAnimationURI","type":"string"}],"name":"setAnimationURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseImageURI","type":"string"}],"name":"setBaseImgURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"name":"setOpenSeaRegistry","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":"uint8","name":"_uint8","type":"uint8"}],"name":"toByte","outputs":[{"internalType":"bytes1","name":"","type":"bytes1"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052610d05600c5567016345785d8a0000600e556019600f553480156200002857600080fd5b506040516200529c3803806200529c83398181016040528101906200004e9190620003ba565b6040518060400160405280601881526020017f4265617473206f6e2074686520426c6f636b636861696e2000000000000000008152506040518060400160405280600481526020017f424f5442000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000d292919062000275565b508060019080519060200190620000eb92919062000275565b5050506000620001006200022960201b60201c565b905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001600b819055508260109080519060200190620001bf92919062000275565b508160129080519060200190620001d892919062000275565b508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161462000220576200021f816200023160201b60201c565b5b50505062000626565b600033905090565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b82805462000283906200051d565b90600052602060002090601f016020900481019282620002a75760008555620002f3565b82601f10620002c257805160ff1916838001178555620002f3565b82800160010185558215620002f3579182015b82811115620002f2578251825591602001919060010190620002d5565b5b50905062000302919062000306565b5090565b5b808211156200032157600081600090555060010162000307565b5090565b60006200033c62000336846200047d565b62000454565b9050828152602081018484840111156200035b576200035a620005ec565b5b62000368848285620004e7565b509392505050565b60008151905062000381816200060c565b92915050565b600082601f8301126200039f576200039e620005e7565b5b8151620003b184826020860162000325565b91505092915050565b600080600060608486031215620003d657620003d5620005f6565b5b600084015167ffffffffffffffff811115620003f757620003f6620005f1565b5b620004058682870162000387565b935050602084015167ffffffffffffffff811115620004295762000428620005f1565b5b620004378682870162000387565b92505060406200044a8682870162000370565b9150509250925092565b60006200046062000473565b90506200046e828262000553565b919050565b6000604051905090565b600067ffffffffffffffff8211156200049b576200049a620005b8565b5b620004a682620005fb565b9050602081019050919050565b6000620004c082620004c7565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b8381101562000507578082015181840152602081019050620004ea565b8381111562000517576000848401525b50505050565b600060028204905060018216806200053657607f821691505b602082108114156200054d576200054c62000589565b5b50919050565b6200055e82620005fb565b810181811067ffffffffffffffff8211171562000580576200057f620005b8565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200061781620004b3565b81146200062357600080fd5b50565b614c6680620006366000396000f3fe60806040526004361061020f5760003560e01c806374f82e3011610118578063b5f49759116100a0578063e8a3d4851161006f578063e8a3d485146107b2578063e985e9c5146107dd578063f2fde38b1461081a578063fa9b701814610843578063fdaa8f8a1461086e5761020f565b8063b5f49759146106fa578063b88d4fde14610723578063c5ac58e11461074c578063c87b56dd146107755761020f565b8063938e3d7b116100e7578063938e3d7b1461061557806395d89b411461063e578063a22cb46514610669578063a86b73f014610692578063b51bbbdf146106cf5761020f565b806374f82e301461055757806381a91ad3146105825780638da5cb5b146105ad5780639201de55146105d85761020f565b80633ccfd60b1161019b5780636352211e1161016a5780636352211e1461048157806367034fbe146104be5780636d5a2dfd146104e757806370a0823114610503578063715018a6146105405761020f565b80633ccfd60b146103c757806342842e0e146103de5780634f6ccce7146104075780636102de98146104445761020f565b8063138496bb116101e2578063138496bb146102e257806318160ddd1461030b57806323b872dd146103365780632f745c591461035f57806336a39be91461039c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b600480360381019061023691906134c3565b610899565b6040516102489190613c1b565b60405180910390f35b34801561025d57600080fd5b50610266610913565b6040516102739190613c51565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613593565b6109a5565b6040516102b09190613bb4565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613456565b610a2a565b005b3480156102ee57600080fd5b506103096004803603810190610304919061354a565b610b42565b005b34801561031757600080fd5b50610320610bd8565b60405161032d9190613f33565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613340565b610be5565b005b34801561036b57600080fd5b5061038660048036038101906103819190613456565b610c45565b6040516103939190613f33565b60405180910390f35b3480156103a857600080fd5b506103b1610cea565b6040516103be9190613f33565b60405180910390f35b3480156103d357600080fd5b506103dc610cf0565b005b3480156103ea57600080fd5b5061040560048036038101906104009190613340565b610dbb565b005b34801561041357600080fd5b5061042e60048036038101906104299190613593565b610ddb565b60405161043b9190613f33565b60405180910390f35b34801561045057600080fd5b5061046b60048036038101906104669190613300565b610e4c565b6040516104789190613c1b565b60405180910390f35b34801561048d57600080fd5b506104a860048036038101906104a39190613593565b610f6d565b6040516104b59190613bb4565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e0919061354a565b61101f565b005b61050160048036038101906104fc9190613593565b6110b5565b005b34801561050f57600080fd5b5061052a600480360381019061052591906132d3565b611284565b6040516105379190613f33565b60405180910390f35b34801561054c57600080fd5b5061055561133c565b005b34801561056357600080fd5b5061056c611479565b6040516105799190613c51565b60405180910390f35b34801561058e57600080fd5b50610597611507565b6040516105a49190613c51565b60405180910390f35b3480156105b957600080fd5b506105c2611595565b6040516105cf9190613bb4565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190613496565b6115bf565b60405161060c9190613c51565b60405180910390f35b34801561062157600080fd5b5061063c6004803603810190610637919061354a565b611775565b005b34801561064a57600080fd5b506106536117fd565b6040516106609190613c51565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b9190613416565b61188f565b005b34801561069e57600080fd5b506106b960048036038101906106b491906135c0565b611a10565b6040516106c69190613c36565b60405180910390f35b3480156106db57600080fd5b506106e4611a4d565b6040516106f19190613c51565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c91906132d3565b611adb565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613393565b611b9b565b005b34801561075857600080fd5b50610773600480360381019061076e919061354a565b611bfd565b005b34801561078157600080fd5b5061079c60048036038101906107979190613593565b611c93565b6040516107a99190613c51565b60405180910390f35b3480156107be57600080fd5b506107c7611d41565b6040516107d49190613c51565b60405180910390f35b3480156107e957600080fd5b5061080460048036038101906107ff9190613300565b611dd3565b6040516108119190613c1b565b60405180910390f35b34801561082657600080fd5b50610841600480360381019061083c91906132d3565b611e00565b005b34801561084f57600080fd5b50610858611fac565b6040516108659190613f33565b60405180910390f35b34801561087a57600080fd5b50610883611fb2565b6040516108909190613f33565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090c575061090b82611fb8565b5b9050919050565b606060008054610922906142b5565b80601f016020809104026020016040519081016040528092919081815260200182805461094e906142b5565b801561099b5780601f106109705761010080835404028352916020019161099b565b820191906000526020600020905b81548152906001019060200180831161097e57829003601f168201915b5050505050905090565b60006109b08261209a565b6109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e690613e33565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3582610f6d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9d90613eb3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac5612106565b73ffffffffffffffffffffffffffffffffffffffff161480610af45750610af381610aee612106565b611dd3565b5b610b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2a90613db3565b60405180910390fd5b610b3d838361210e565b505050565b610b4a612106565b73ffffffffffffffffffffffffffffffffffffffff16610b68611595565b73ffffffffffffffffffffffffffffffffffffffff1614610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590613e53565b60405180910390fd5b8060119080519060200190610bd49291906130a8565b5050565b6000600880549050905090565b610bf6610bf0612106565b826121c7565b610c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2c90613ed3565b60405180910390fd5b610c408383836122a5565b505050565b6000610c5083611284565b8210610c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8890613c73565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600c5481565b610cf8612106565b73ffffffffffffffffffffffffffffffffffffffff16610d16611595565b73ffffffffffffffffffffffffffffffffffffffff1614610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6390613e53565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610db7573d6000803e3d6000fd5b5050565b610dd683838360405180602001604052806000815250611b9b565b505050565b6000610de5610bd8565b8210610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90613ef3565b60405180910390fd5b60088281548110610e3a57610e39614475565b5b90600052602060002001549050919050565b600080601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610f6457508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401610efc9190613bb4565b60206040518083038186803b158015610f1457600080fd5b505afa158015610f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4c919061351d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100d90613df3565b60405180910390fd5b80915050919050565b611027612106565b73ffffffffffffffffffffffffffffffffffffffff16611045611595565b73ffffffffffffffffffffffffffffffffffffffff161461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109290613e53565b60405180910390fd5b80601090805190602001906110b19291906130a8565b5050565b6002600b5414156110fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f290613f13565b60405180910390fd5b6002600b819055503461111982600e5461250190919063ffffffff16565b14611159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115090613d33565b60405180910390fd5b600f5481111561119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590613d93565b60405180910390fd5b600c54816111ac6014612517565b6111b6919061402d565b11156111f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ee90613e93565b60405180910390fd5b60005b818110156112785761120c6014612525565b60006112186014612517565b9050611224338261253b565b3381604051602001611237929190613b07565b60405160208183030381529060405280519060200120601560008381526020019081526020016000208190555050808061127090614318565b9150506111fa565b506001600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec90613dd3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611344612106565b73ffffffffffffffffffffffffffffffffffffffff16611362611595565b73ffffffffffffffffffffffffffffffffffffffff16146113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90613e53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60108054611486906142b5565b80601f01602080910402602001604051908101604052809291908181526020018280546114b2906142b5565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b505050505081565b60118054611514906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611540906142b5565b801561158d5780601f106115625761010080835404028352916020019161158d565b820191906000526020600020905b81548152906001019060200180831161157057829003601f168201915b505050505081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600080604067ffffffffffffffff8111156115df576115de6144a4565b5b6040519080825280601f01601f1916602001820160405280156116115781602001600182028036833780820191505090505b509050600091505b80518260ff16101561176b576000600f60f81b8560028561163a91906140eb565b60ff166020811061164e5761164d614475565b5b1a60f81b1660f81c9050600060048660028661166a91906140eb565b60ff166020811061167e5761167d614475565b5b1a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c60f81c90506116b482611a10565b838560ff16815181106116ca576116c9614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001846117069190614083565b935061171181611a10565b838560ff168151811061172757611726614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050818061176390614361565b925050611619565b8092505050919050565b61177d612106565b73ffffffffffffffffffffffffffffffffffffffff1661179b611595565b73ffffffffffffffffffffffffffffffffffffffff16146117f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e890613e53565b60405180910390fd5b6117fa81612559565b50565b60606001805461180c906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611838906142b5565b80156118855780601f1061185a57610100808354040283529160200191611885565b820191906000526020600020905b81548152906001019060200180831161186857829003601f168201915b5050505050905090565b611897612106565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fc90613d13565b60405180910390fd5b8060056000611912612106565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119bf612106565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a049190613c1b565b60405180910390a35050565b6000600a8260ff161015611a3557603082611a2b9190614083565b60f81b9050611a48565b605782611a429190614083565b60f81b90505b919050565b60128054611a5a906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a86906142b5565b8015611ad35780601f10611aa857610100808354040283529160200191611ad3565b820191906000526020600020905b815481529060010190602001808311611ab657829003601f168201915b505050505081565b611ae3612106565b73ffffffffffffffffffffffffffffffffffffffff16611b01611595565b73ffffffffffffffffffffffffffffffffffffffff1614611b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4e90613e53565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611bac611ba6612106565b836121c7565b611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613ed3565b60405180910390fd5b611bf784848484612573565b50505050565b611c05612106565b73ffffffffffffffffffffffffffffffffffffffff16611c23611595565b73ffffffffffffffffffffffffffffffffffffffff1614611c79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7090613e53565b60405180910390fd5b8060129080519060200190611c8f9291906130a8565b5050565b6060611c9e8261209a565b611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490613d53565b60405180910390fd5b6000611cfb60156000858152602001908152602001600020546115bf565b9050611d06836125cf565b611d0f82612758565b611d1885612784565b604051602001611d2a93929190613b57565b604051602081830303815290604052915050919050565b6060600d8054611d50906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7c906142b5565b8015611dc95780601f10611d9e57610100808354040283529160200191611dc9565b820191906000526020600020905b815481529060010190602001808311611dac57829003601f168201915b5050505050905090565b6000611ddf8383610e4c565b15611ded5760019050611dfa565b611df783836127b8565b90505b92915050565b611e08612106565b73ffffffffffffffffffffffffffffffffffffffff16611e26611595565b73ffffffffffffffffffffffffffffffffffffffff1614611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7390613e53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee390613cb3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5481565b600e5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061208357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061209357506120928261284c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661218183610f6d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121d28261209a565b612211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220890613d73565b60405180910390fd5b600061221c83610f6d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061228b57508373ffffffffffffffffffffffffffffffffffffffff16612273846109a5565b73ffffffffffffffffffffffffffffffffffffffff16145b8061229c575061229b8185611dd3565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122c582610f6d565b73ffffffffffffffffffffffffffffffffffffffff161461231b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231290613e73565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561238b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238290613cf3565b60405180910390fd5b6123968383836128b6565b6123a160008261210e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f19190614176565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612448919061402d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818361250f919061411c565b905092915050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6125558282604051806020016040528060008152506129ca565b5050565b80600d908051906020019061256f9291906130a8565b5050565b61257e8484846122a5565b61258a84848484612a25565b6125c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c090613c93565b60405180910390fd5b50505050565b60606000821415612617576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612753565b600082905060005b6000821461264957808061263290614318565b915050600a8261264291906140ba565b915061261f565b60008167ffffffffffffffff811115612665576126646144a4565b5b6040519080825280601f01601f1916602001820160405280156126975781602001600182028036833780820191505090505b50905060008290505b6000861461274b576001816126b59190614176565b90506000600a80886126c791906140ba565b6126d1919061411c565b876126dc9190614176565b60306126e89190614083565b905060008160f81b90508084848151811061270657612705614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8861274291906140ba565b975050506126a0565b819450505050505b919050565b606060128260405160200161276e929190613b33565b6040516020818303038152906040529050919050565b60606010612791836125cf565b6040516020016127a2929190613b33565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6128c1838383612bbc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612904576128ff81612bc1565b612943565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612942576129418382612c0a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129865761298181612d77565b6129c5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146129c4576129c38282612e48565b5b5b505050565b6129d48383612ec7565b6129e16000848484612a25565b612a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1790613c93565b60405180910390fd5b505050565b6000612a468473ffffffffffffffffffffffffffffffffffffffff16613095565b15612baf578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a6f612106565b8786866040518563ffffffff1660e01b8152600401612a919493929190613bcf565b602060405180830381600087803b158015612aab57600080fd5b505af1925050508015612adc57506040513d601f19601f82011682018060405250810190612ad991906134f0565b60015b612b5f573d8060008114612b0c576040519150601f19603f3d011682016040523d82523d6000602084013e612b11565b606091505b50600081511415612b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4e90613c93565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bb4565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612c1784611284565b612c219190614176565b9050600060076000848152602001908152602001600020549050818114612d06576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612d8b9190614176565b9050600060096000848152602001908152602001600020549050600060088381548110612dbb57612dba614475565b5b906000526020600020015490508060088381548110612ddd57612ddc614475565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612e2c57612e2b614446565b5b6001900381819060005260206000200160009055905550505050565b6000612e5383611284565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2e90613e13565b60405180910390fd5b612f408161209a565b15612f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7790613cd3565b60405180910390fd5b612f8c600083836128b6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fdc919061402d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546130b4906142b5565b90600052602060002090601f0160209004810192826130d6576000855561311d565b82601f106130ef57805160ff191683800117855561311d565b8280016001018555821561311d579182015b8281111561311c578251825591602001919060010190613101565b5b50905061312a919061312e565b5090565b5b8082111561314757600081600090555060010161312f565b5090565b600061315e61315984613f73565b613f4e565b90508281526020810184848401111561317a576131796144d8565b5b613185848285614273565b509392505050565b60006131a061319b84613fa4565b613f4e565b9050828152602081018484840111156131bc576131bb6144d8565b5b6131c7848285614273565b509392505050565b6000813590506131de81614b8f565b92915050565b6000813590506131f381614ba6565b92915050565b60008135905061320881614bbd565b92915050565b60008135905061321d81614bd4565b92915050565b60008151905061323281614bd4565b92915050565b600082601f83011261324d5761324c6144d3565b5b813561325d84826020860161314b565b91505092915050565b60008151905061327581614beb565b92915050565b600082601f8301126132905761328f6144d3565b5b81356132a084826020860161318d565b91505092915050565b6000813590506132b881614c02565b92915050565b6000813590506132cd81614c19565b92915050565b6000602082840312156132e9576132e86144e2565b5b60006132f7848285016131cf565b91505092915050565b60008060408385031215613317576133166144e2565b5b6000613325858286016131cf565b9250506020613336858286016131cf565b9150509250929050565b600080600060608486031215613359576133586144e2565b5b6000613367868287016131cf565b9350506020613378868287016131cf565b9250506040613389868287016132a9565b9150509250925092565b600080600080608085870312156133ad576133ac6144e2565b5b60006133bb878288016131cf565b94505060206133cc878288016131cf565b93505060406133dd878288016132a9565b925050606085013567ffffffffffffffff8111156133fe576133fd6144dd565b5b61340a87828801613238565b91505092959194509250565b6000806040838503121561342d5761342c6144e2565b5b600061343b858286016131cf565b925050602061344c858286016131e4565b9150509250929050565b6000806040838503121561346d5761346c6144e2565b5b600061347b858286016131cf565b925050602061348c858286016132a9565b9150509250929050565b6000602082840312156134ac576134ab6144e2565b5b60006134ba848285016131f9565b91505092915050565b6000602082840312156134d9576134d86144e2565b5b60006134e78482850161320e565b91505092915050565b600060208284031215613506576135056144e2565b5b600061351484828501613223565b91505092915050565b600060208284031215613533576135326144e2565b5b600061354184828501613266565b91505092915050565b6000602082840312156135605761355f6144e2565b5b600082013567ffffffffffffffff81111561357e5761357d6144dd565b5b61358a8482850161327b565b91505092915050565b6000602082840312156135a9576135a86144e2565b5b60006135b7848285016132a9565b91505092915050565b6000602082840312156135d6576135d56144e2565b5b60006135e4848285016132be565b91505092915050565b6135f6816141aa565b82525050565b61360d613608826141aa565b61438b565b82525050565b61361c816141bc565b82525050565b61362b816141c8565b82525050565b600061363c82613fea565b6136468185614000565b9350613656818560208601614282565b61365f816144e7565b840191505092915050565b600061367582613ff5565b61367f8185614011565b935061368f818560208601614282565b613698816144e7565b840191505092915050565b60006136ae82613ff5565b6136b88185614022565b93506136c8818560208601614282565b80840191505092915050565b600081546136e1816142b5565b6136eb8186614022565b9450600182166000811461370657600181146137175761374a565b60ff1983168652818601935061374a565b61372085613fd5565b60005b8381101561374257815481890152600182019150602081019050613723565b838801955050505b50505092915050565b6000613760600b83614022565b915061376b82614505565b600b82019050919050565b6000613783602b83614011565b915061378e8261452e565b604082019050919050565b60006137a6603283614011565b91506137b18261457d565b604082019050919050565b60006137c9602683614011565b91506137d4826145cc565b604082019050919050565b60006137ec601c83614011565b91506137f78261461b565b602082019050919050565b600061380f602483614011565b915061381a82614644565b604082019050919050565b6000613832601983614011565b915061383d82614693565b602082019050919050565b6000613855601f83614011565b9150613860826146bc565b602082019050919050565b6000613878601483614011565b9150613883826146e5565b602082019050919050565b600061389b602c83614011565b91506138a68261470e565b604082019050919050565b60006138be602283614011565b91506138c98261475d565b604082019050919050565b60006138e1601383614022565b91506138ec826147ac565b601382019050919050565b6000613904603883614011565b915061390f826147d5565b604082019050919050565b6000613927602a83614011565b915061393282614824565b604082019050919050565b600061394a602983614011565b915061395582614873565b604082019050919050565b600061396d602083614011565b9150613978826148c2565b602082019050919050565b6000613990602483614022565b915061399b826148eb565b602482019050919050565b60006139b3602c83614011565b91506139be8261493a565b604082019050919050565b60006139d6602083614011565b91506139e182614989565b602082019050919050565b60006139f9602983614011565b9150613a04826149b2565b604082019050919050565b6000613a1c600683614022565b9150613a2782614a01565b600682019050919050565b6000613a3f602583614011565b9150613a4a82614a2a565b604082019050919050565b6000613a62602183614011565b9150613a6d82614a79565b604082019050919050565b6000613a85603183614011565b9150613a9082614ac8565b604082019050919050565b6000613aa8602c83614011565b9150613ab382614b17565b604082019050919050565b6000613acb601f83614011565b9150613ad682614b66565b602082019050919050565b613aea8161425c565b82525050565b613b01613afc8261425c565b6143af565b82525050565b6000613b1382856135fc565b601482019150613b238284613af0565b6020820191508190509392505050565b6000613b3f82856136d4565b9150613b4b82846136a3565b91508190509392505050565b6000613b6282613983565b9150613b6e82866136a3565b9150613b79826138d4565b9150613b8582856136a3565b9150613b9082613753565b9150613b9c82846136a3565b9150613ba782613a0f565b9150819050949350505050565b6000602082019050613bc960008301846135ed565b92915050565b6000608082019050613be460008301876135ed565b613bf160208301866135ed565b613bfe6040830185613ae1565b8181036060830152613c108184613631565b905095945050505050565b6000602082019050613c306000830184613613565b92915050565b6000602082019050613c4b6000830184613622565b92915050565b60006020820190508181036000830152613c6b818461366a565b905092915050565b60006020820190508181036000830152613c8c81613776565b9050919050565b60006020820190508181036000830152613cac81613799565b9050919050565b60006020820190508181036000830152613ccc816137bc565b9050919050565b60006020820190508181036000830152613cec816137df565b9050919050565b60006020820190508181036000830152613d0c81613802565b9050919050565b60006020820190508181036000830152613d2c81613825565b9050919050565b60006020820190508181036000830152613d4c81613848565b9050919050565b60006020820190508181036000830152613d6c8161386b565b9050919050565b60006020820190508181036000830152613d8c8161388e565b9050919050565b60006020820190508181036000830152613dac816138b1565b9050919050565b60006020820190508181036000830152613dcc816138f7565b9050919050565b60006020820190508181036000830152613dec8161391a565b9050919050565b60006020820190508181036000830152613e0c8161393d565b9050919050565b60006020820190508181036000830152613e2c81613960565b9050919050565b60006020820190508181036000830152613e4c816139a6565b9050919050565b60006020820190508181036000830152613e6c816139c9565b9050919050565b60006020820190508181036000830152613e8c816139ec565b9050919050565b60006020820190508181036000830152613eac81613a32565b9050919050565b60006020820190508181036000830152613ecc81613a55565b9050919050565b60006020820190508181036000830152613eec81613a78565b9050919050565b60006020820190508181036000830152613f0c81613a9b565b9050919050565b60006020820190508181036000830152613f2c81613abe565b9050919050565b6000602082019050613f486000830184613ae1565b92915050565b6000613f58613f69565b9050613f6482826142e7565b919050565b6000604051905090565b600067ffffffffffffffff821115613f8e57613f8d6144a4565b5b613f97826144e7565b9050602081019050919050565b600067ffffffffffffffff821115613fbf57613fbe6144a4565b5b613fc8826144e7565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006140388261425c565b91506140438361425c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614078576140776143b9565b5b828201905092915050565b600061408e82614266565b915061409983614266565b92508260ff038211156140af576140ae6143b9565b5b828201905092915050565b60006140c58261425c565b91506140d08361425c565b9250826140e0576140df6143e8565b5b828204905092915050565b60006140f682614266565b915061410183614266565b925082614111576141106143e8565b5b828204905092915050565b60006141278261425c565b91506141328361425c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561416b5761416a6143b9565b5b828202905092915050565b60006141818261425c565b915061418c8361425c565b92508282101561419f5761419e6143b9565b5b828203905092915050565b60006141b58261423c565b9050919050565b60008115159050919050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614235826141aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156142a0578082015181840152602081019050614285565b838111156142af576000848401525b50505050565b600060028204905060018216806142cd57607f821691505b602082108114156142e1576142e0614417565b5b50919050565b6142f0826144e7565b810181811067ffffffffffffffff8211171561430f5761430e6144a4565b5b80604052505050565b60006143238261425c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614356576143556143b9565b5b600182019050919050565b600061436c82614266565b915060ff8214156143805761437f6143b9565b5b600182019050919050565b60006143968261439d565b9050919050565b60006143a8826144f8565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f222c22696d616765223a22000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e203235206174206120746960008201527f6d65000000000000000000000000000000000000000000000000000000000000602082015250565b7f222c22616e696d6174696f6e5f75726c223a2200000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d60008201527f65223a2200000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f2e706e67227d0000000000000000000000000000000000000000000000000000600082015250565b7f4d696e7420776f756c6420657863656564206d617820737570706c79206f662060008201527f4265617473000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614b98816141aa565b8114614ba357600080fd5b50565b614baf816141bc565b8114614bba57600080fd5b50565b614bc6816141f4565b8114614bd157600080fd5b50565b614bdd816141fe565b8114614be857600080fd5b50565b614bf48161422a565b8114614bff57600080fd5b50565b614c0b8161425c565b8114614c1657600080fd5b50565b614c2281614266565b8114614c2d57600080fd5b5056fea2646970667358221220643f30826fa57a7789f4b131c96f2354d1883dc579dac62b44dfa7340138936364736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000006068747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970696e6174612e636c6f75642f697066732f516d6371384c6f4e4d3145636d4e71487873514731767143336177313662464c4c52597135354e50484a536a74732f000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970696e6174612e636c6f75642f697066732f516d65636542756136366b576479376d4a41546f676b335574416a654a79637944616132564156696658464c35752f3f736565643d0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061020f5760003560e01c806374f82e3011610118578063b5f49759116100a0578063e8a3d4851161006f578063e8a3d485146107b2578063e985e9c5146107dd578063f2fde38b1461081a578063fa9b701814610843578063fdaa8f8a1461086e5761020f565b8063b5f49759146106fa578063b88d4fde14610723578063c5ac58e11461074c578063c87b56dd146107755761020f565b8063938e3d7b116100e7578063938e3d7b1461061557806395d89b411461063e578063a22cb46514610669578063a86b73f014610692578063b51bbbdf146106cf5761020f565b806374f82e301461055757806381a91ad3146105825780638da5cb5b146105ad5780639201de55146105d85761020f565b80633ccfd60b1161019b5780636352211e1161016a5780636352211e1461048157806367034fbe146104be5780636d5a2dfd146104e757806370a0823114610503578063715018a6146105405761020f565b80633ccfd60b146103c757806342842e0e146103de5780634f6ccce7146104075780636102de98146104445761020f565b8063138496bb116101e2578063138496bb146102e257806318160ddd1461030b57806323b872dd146103365780632f745c591461035f57806336a39be91461039c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b600480360381019061023691906134c3565b610899565b6040516102489190613c1b565b60405180910390f35b34801561025d57600080fd5b50610266610913565b6040516102739190613c51565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613593565b6109a5565b6040516102b09190613bb4565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613456565b610a2a565b005b3480156102ee57600080fd5b506103096004803603810190610304919061354a565b610b42565b005b34801561031757600080fd5b50610320610bd8565b60405161032d9190613f33565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613340565b610be5565b005b34801561036b57600080fd5b5061038660048036038101906103819190613456565b610c45565b6040516103939190613f33565b60405180910390f35b3480156103a857600080fd5b506103b1610cea565b6040516103be9190613f33565b60405180910390f35b3480156103d357600080fd5b506103dc610cf0565b005b3480156103ea57600080fd5b5061040560048036038101906104009190613340565b610dbb565b005b34801561041357600080fd5b5061042e60048036038101906104299190613593565b610ddb565b60405161043b9190613f33565b60405180910390f35b34801561045057600080fd5b5061046b60048036038101906104669190613300565b610e4c565b6040516104789190613c1b565b60405180910390f35b34801561048d57600080fd5b506104a860048036038101906104a39190613593565b610f6d565b6040516104b59190613bb4565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e0919061354a565b61101f565b005b61050160048036038101906104fc9190613593565b6110b5565b005b34801561050f57600080fd5b5061052a600480360381019061052591906132d3565b611284565b6040516105379190613f33565b60405180910390f35b34801561054c57600080fd5b5061055561133c565b005b34801561056357600080fd5b5061056c611479565b6040516105799190613c51565b60405180910390f35b34801561058e57600080fd5b50610597611507565b6040516105a49190613c51565b60405180910390f35b3480156105b957600080fd5b506105c2611595565b6040516105cf9190613bb4565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190613496565b6115bf565b60405161060c9190613c51565b60405180910390f35b34801561062157600080fd5b5061063c6004803603810190610637919061354a565b611775565b005b34801561064a57600080fd5b506106536117fd565b6040516106609190613c51565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b9190613416565b61188f565b005b34801561069e57600080fd5b506106b960048036038101906106b491906135c0565b611a10565b6040516106c69190613c36565b60405180910390f35b3480156106db57600080fd5b506106e4611a4d565b6040516106f19190613c51565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c91906132d3565b611adb565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613393565b611b9b565b005b34801561075857600080fd5b50610773600480360381019061076e919061354a565b611bfd565b005b34801561078157600080fd5b5061079c60048036038101906107979190613593565b611c93565b6040516107a99190613c51565b60405180910390f35b3480156107be57600080fd5b506107c7611d41565b6040516107d49190613c51565b60405180910390f35b3480156107e957600080fd5b5061080460048036038101906107ff9190613300565b611dd3565b6040516108119190613c1b565b60405180910390f35b34801561082657600080fd5b50610841600480360381019061083c91906132d3565b611e00565b005b34801561084f57600080fd5b50610858611fac565b6040516108659190613f33565b60405180910390f35b34801561087a57600080fd5b50610883611fb2565b6040516108909190613f33565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090c575061090b82611fb8565b5b9050919050565b606060008054610922906142b5565b80601f016020809104026020016040519081016040528092919081815260200182805461094e906142b5565b801561099b5780601f106109705761010080835404028352916020019161099b565b820191906000526020600020905b81548152906001019060200180831161097e57829003601f168201915b5050505050905090565b60006109b08261209a565b6109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e690613e33565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3582610f6d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9d90613eb3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac5612106565b73ffffffffffffffffffffffffffffffffffffffff161480610af45750610af381610aee612106565b611dd3565b5b610b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2a90613db3565b60405180910390fd5b610b3d838361210e565b505050565b610b4a612106565b73ffffffffffffffffffffffffffffffffffffffff16610b68611595565b73ffffffffffffffffffffffffffffffffffffffff1614610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590613e53565b60405180910390fd5b8060119080519060200190610bd49291906130a8565b5050565b6000600880549050905090565b610bf6610bf0612106565b826121c7565b610c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2c90613ed3565b60405180910390fd5b610c408383836122a5565b505050565b6000610c5083611284565b8210610c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8890613c73565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600c5481565b610cf8612106565b73ffffffffffffffffffffffffffffffffffffffff16610d16611595565b73ffffffffffffffffffffffffffffffffffffffff1614610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6390613e53565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610db7573d6000803e3d6000fd5b5050565b610dd683838360405180602001604052806000815250611b9b565b505050565b6000610de5610bd8565b8210610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90613ef3565b60405180910390fd5b60088281548110610e3a57610e39614475565b5b90600052602060002001549050919050565b600080601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610f6457508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401610efc9190613bb4565b60206040518083038186803b158015610f1457600080fd5b505afa158015610f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4c919061351d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100d90613df3565b60405180910390fd5b80915050919050565b611027612106565b73ffffffffffffffffffffffffffffffffffffffff16611045611595565b73ffffffffffffffffffffffffffffffffffffffff161461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109290613e53565b60405180910390fd5b80601090805190602001906110b19291906130a8565b5050565b6002600b5414156110fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f290613f13565b60405180910390fd5b6002600b819055503461111982600e5461250190919063ffffffff16565b14611159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115090613d33565b60405180910390fd5b600f5481111561119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590613d93565b60405180910390fd5b600c54816111ac6014612517565b6111b6919061402d565b11156111f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ee90613e93565b60405180910390fd5b60005b818110156112785761120c6014612525565b60006112186014612517565b9050611224338261253b565b3381604051602001611237929190613b07565b60405160208183030381529060405280519060200120601560008381526020019081526020016000208190555050808061127090614318565b9150506111fa565b506001600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec90613dd3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611344612106565b73ffffffffffffffffffffffffffffffffffffffff16611362611595565b73ffffffffffffffffffffffffffffffffffffffff16146113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90613e53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60108054611486906142b5565b80601f01602080910402602001604051908101604052809291908181526020018280546114b2906142b5565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b505050505081565b60118054611514906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611540906142b5565b801561158d5780601f106115625761010080835404028352916020019161158d565b820191906000526020600020905b81548152906001019060200180831161157057829003601f168201915b505050505081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600080604067ffffffffffffffff8111156115df576115de6144a4565b5b6040519080825280601f01601f1916602001820160405280156116115781602001600182028036833780820191505090505b509050600091505b80518260ff16101561176b576000600f60f81b8560028561163a91906140eb565b60ff166020811061164e5761164d614475565b5b1a60f81b1660f81c9050600060048660028661166a91906140eb565b60ff166020811061167e5761167d614475565b5b1a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c60f81c90506116b482611a10565b838560ff16815181106116ca576116c9614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001846117069190614083565b935061171181611a10565b838560ff168151811061172757611726614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050818061176390614361565b925050611619565b8092505050919050565b61177d612106565b73ffffffffffffffffffffffffffffffffffffffff1661179b611595565b73ffffffffffffffffffffffffffffffffffffffff16146117f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e890613e53565b60405180910390fd5b6117fa81612559565b50565b60606001805461180c906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611838906142b5565b80156118855780601f1061185a57610100808354040283529160200191611885565b820191906000526020600020905b81548152906001019060200180831161186857829003601f168201915b5050505050905090565b611897612106565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fc90613d13565b60405180910390fd5b8060056000611912612106565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119bf612106565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a049190613c1b565b60405180910390a35050565b6000600a8260ff161015611a3557603082611a2b9190614083565b60f81b9050611a48565b605782611a429190614083565b60f81b90505b919050565b60128054611a5a906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a86906142b5565b8015611ad35780601f10611aa857610100808354040283529160200191611ad3565b820191906000526020600020905b815481529060010190602001808311611ab657829003601f168201915b505050505081565b611ae3612106565b73ffffffffffffffffffffffffffffffffffffffff16611b01611595565b73ffffffffffffffffffffffffffffffffffffffff1614611b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4e90613e53565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611bac611ba6612106565b836121c7565b611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613ed3565b60405180910390fd5b611bf784848484612573565b50505050565b611c05612106565b73ffffffffffffffffffffffffffffffffffffffff16611c23611595565b73ffffffffffffffffffffffffffffffffffffffff1614611c79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7090613e53565b60405180910390fd5b8060129080519060200190611c8f9291906130a8565b5050565b6060611c9e8261209a565b611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490613d53565b60405180910390fd5b6000611cfb60156000858152602001908152602001600020546115bf565b9050611d06836125cf565b611d0f82612758565b611d1885612784565b604051602001611d2a93929190613b57565b604051602081830303815290604052915050919050565b6060600d8054611d50906142b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7c906142b5565b8015611dc95780601f10611d9e57610100808354040283529160200191611dc9565b820191906000526020600020905b815481529060010190602001808311611dac57829003601f168201915b5050505050905090565b6000611ddf8383610e4c565b15611ded5760019050611dfa565b611df783836127b8565b90505b92915050565b611e08612106565b73ffffffffffffffffffffffffffffffffffffffff16611e26611595565b73ffffffffffffffffffffffffffffffffffffffff1614611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7390613e53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee390613cb3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5481565b600e5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061208357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061209357506120928261284c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661218183610f6d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121d28261209a565b612211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220890613d73565b60405180910390fd5b600061221c83610f6d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061228b57508373ffffffffffffffffffffffffffffffffffffffff16612273846109a5565b73ffffffffffffffffffffffffffffffffffffffff16145b8061229c575061229b8185611dd3565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122c582610f6d565b73ffffffffffffffffffffffffffffffffffffffff161461231b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231290613e73565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561238b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238290613cf3565b60405180910390fd5b6123968383836128b6565b6123a160008261210e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f19190614176565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612448919061402d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818361250f919061411c565b905092915050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6125558282604051806020016040528060008152506129ca565b5050565b80600d908051906020019061256f9291906130a8565b5050565b61257e8484846122a5565b61258a84848484612a25565b6125c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c090613c93565b60405180910390fd5b50505050565b60606000821415612617576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612753565b600082905060005b6000821461264957808061263290614318565b915050600a8261264291906140ba565b915061261f565b60008167ffffffffffffffff811115612665576126646144a4565b5b6040519080825280601f01601f1916602001820160405280156126975781602001600182028036833780820191505090505b50905060008290505b6000861461274b576001816126b59190614176565b90506000600a80886126c791906140ba565b6126d1919061411c565b876126dc9190614176565b60306126e89190614083565b905060008160f81b90508084848151811061270657612705614475565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8861274291906140ba565b975050506126a0565b819450505050505b919050565b606060128260405160200161276e929190613b33565b6040516020818303038152906040529050919050565b60606010612791836125cf565b6040516020016127a2929190613b33565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6128c1838383612bbc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612904576128ff81612bc1565b612943565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612942576129418382612c0a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129865761298181612d77565b6129c5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146129c4576129c38282612e48565b5b5b505050565b6129d48383612ec7565b6129e16000848484612a25565b612a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1790613c93565b60405180910390fd5b505050565b6000612a468473ffffffffffffffffffffffffffffffffffffffff16613095565b15612baf578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a6f612106565b8786866040518563ffffffff1660e01b8152600401612a919493929190613bcf565b602060405180830381600087803b158015612aab57600080fd5b505af1925050508015612adc57506040513d601f19601f82011682018060405250810190612ad991906134f0565b60015b612b5f573d8060008114612b0c576040519150601f19603f3d011682016040523d82523d6000602084013e612b11565b606091505b50600081511415612b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4e90613c93565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bb4565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612c1784611284565b612c219190614176565b9050600060076000848152602001908152602001600020549050818114612d06576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612d8b9190614176565b9050600060096000848152602001908152602001600020549050600060088381548110612dbb57612dba614475565b5b906000526020600020015490508060088381548110612ddd57612ddc614475565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612e2c57612e2b614446565b5b6001900381819060005260206000200160009055905550505050565b6000612e5383611284565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2e90613e13565b60405180910390fd5b612f408161209a565b15612f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7790613cd3565b60405180910390fd5b612f8c600083836128b6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fdc919061402d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546130b4906142b5565b90600052602060002090601f0160209004810192826130d6576000855561311d565b82601f106130ef57805160ff191683800117855561311d565b8280016001018555821561311d579182015b8281111561311c578251825591602001919060010190613101565b5b50905061312a919061312e565b5090565b5b8082111561314757600081600090555060010161312f565b5090565b600061315e61315984613f73565b613f4e565b90508281526020810184848401111561317a576131796144d8565b5b613185848285614273565b509392505050565b60006131a061319b84613fa4565b613f4e565b9050828152602081018484840111156131bc576131bb6144d8565b5b6131c7848285614273565b509392505050565b6000813590506131de81614b8f565b92915050565b6000813590506131f381614ba6565b92915050565b60008135905061320881614bbd565b92915050565b60008135905061321d81614bd4565b92915050565b60008151905061323281614bd4565b92915050565b600082601f83011261324d5761324c6144d3565b5b813561325d84826020860161314b565b91505092915050565b60008151905061327581614beb565b92915050565b600082601f8301126132905761328f6144d3565b5b81356132a084826020860161318d565b91505092915050565b6000813590506132b881614c02565b92915050565b6000813590506132cd81614c19565b92915050565b6000602082840312156132e9576132e86144e2565b5b60006132f7848285016131cf565b91505092915050565b60008060408385031215613317576133166144e2565b5b6000613325858286016131cf565b9250506020613336858286016131cf565b9150509250929050565b600080600060608486031215613359576133586144e2565b5b6000613367868287016131cf565b9350506020613378868287016131cf565b9250506040613389868287016132a9565b9150509250925092565b600080600080608085870312156133ad576133ac6144e2565b5b60006133bb878288016131cf565b94505060206133cc878288016131cf565b93505060406133dd878288016132a9565b925050606085013567ffffffffffffffff8111156133fe576133fd6144dd565b5b61340a87828801613238565b91505092959194509250565b6000806040838503121561342d5761342c6144e2565b5b600061343b858286016131cf565b925050602061344c858286016131e4565b9150509250929050565b6000806040838503121561346d5761346c6144e2565b5b600061347b858286016131cf565b925050602061348c858286016132a9565b9150509250929050565b6000602082840312156134ac576134ab6144e2565b5b60006134ba848285016131f9565b91505092915050565b6000602082840312156134d9576134d86144e2565b5b60006134e78482850161320e565b91505092915050565b600060208284031215613506576135056144e2565b5b600061351484828501613223565b91505092915050565b600060208284031215613533576135326144e2565b5b600061354184828501613266565b91505092915050565b6000602082840312156135605761355f6144e2565b5b600082013567ffffffffffffffff81111561357e5761357d6144dd565b5b61358a8482850161327b565b91505092915050565b6000602082840312156135a9576135a86144e2565b5b60006135b7848285016132a9565b91505092915050565b6000602082840312156135d6576135d56144e2565b5b60006135e4848285016132be565b91505092915050565b6135f6816141aa565b82525050565b61360d613608826141aa565b61438b565b82525050565b61361c816141bc565b82525050565b61362b816141c8565b82525050565b600061363c82613fea565b6136468185614000565b9350613656818560208601614282565b61365f816144e7565b840191505092915050565b600061367582613ff5565b61367f8185614011565b935061368f818560208601614282565b613698816144e7565b840191505092915050565b60006136ae82613ff5565b6136b88185614022565b93506136c8818560208601614282565b80840191505092915050565b600081546136e1816142b5565b6136eb8186614022565b9450600182166000811461370657600181146137175761374a565b60ff1983168652818601935061374a565b61372085613fd5565b60005b8381101561374257815481890152600182019150602081019050613723565b838801955050505b50505092915050565b6000613760600b83614022565b915061376b82614505565b600b82019050919050565b6000613783602b83614011565b915061378e8261452e565b604082019050919050565b60006137a6603283614011565b91506137b18261457d565b604082019050919050565b60006137c9602683614011565b91506137d4826145cc565b604082019050919050565b60006137ec601c83614011565b91506137f78261461b565b602082019050919050565b600061380f602483614011565b915061381a82614644565b604082019050919050565b6000613832601983614011565b915061383d82614693565b602082019050919050565b6000613855601f83614011565b9150613860826146bc565b602082019050919050565b6000613878601483614011565b9150613883826146e5565b602082019050919050565b600061389b602c83614011565b91506138a68261470e565b604082019050919050565b60006138be602283614011565b91506138c98261475d565b604082019050919050565b60006138e1601383614022565b91506138ec826147ac565b601382019050919050565b6000613904603883614011565b915061390f826147d5565b604082019050919050565b6000613927602a83614011565b915061393282614824565b604082019050919050565b600061394a602983614011565b915061395582614873565b604082019050919050565b600061396d602083614011565b9150613978826148c2565b602082019050919050565b6000613990602483614022565b915061399b826148eb565b602482019050919050565b60006139b3602c83614011565b91506139be8261493a565b604082019050919050565b60006139d6602083614011565b91506139e182614989565b602082019050919050565b60006139f9602983614011565b9150613a04826149b2565b604082019050919050565b6000613a1c600683614022565b9150613a2782614a01565b600682019050919050565b6000613a3f602583614011565b9150613a4a82614a2a565b604082019050919050565b6000613a62602183614011565b9150613a6d82614a79565b604082019050919050565b6000613a85603183614011565b9150613a9082614ac8565b604082019050919050565b6000613aa8602c83614011565b9150613ab382614b17565b604082019050919050565b6000613acb601f83614011565b9150613ad682614b66565b602082019050919050565b613aea8161425c565b82525050565b613b01613afc8261425c565b6143af565b82525050565b6000613b1382856135fc565b601482019150613b238284613af0565b6020820191508190509392505050565b6000613b3f82856136d4565b9150613b4b82846136a3565b91508190509392505050565b6000613b6282613983565b9150613b6e82866136a3565b9150613b79826138d4565b9150613b8582856136a3565b9150613b9082613753565b9150613b9c82846136a3565b9150613ba782613a0f565b9150819050949350505050565b6000602082019050613bc960008301846135ed565b92915050565b6000608082019050613be460008301876135ed565b613bf160208301866135ed565b613bfe6040830185613ae1565b8181036060830152613c108184613631565b905095945050505050565b6000602082019050613c306000830184613613565b92915050565b6000602082019050613c4b6000830184613622565b92915050565b60006020820190508181036000830152613c6b818461366a565b905092915050565b60006020820190508181036000830152613c8c81613776565b9050919050565b60006020820190508181036000830152613cac81613799565b9050919050565b60006020820190508181036000830152613ccc816137bc565b9050919050565b60006020820190508181036000830152613cec816137df565b9050919050565b60006020820190508181036000830152613d0c81613802565b9050919050565b60006020820190508181036000830152613d2c81613825565b9050919050565b60006020820190508181036000830152613d4c81613848565b9050919050565b60006020820190508181036000830152613d6c8161386b565b9050919050565b60006020820190508181036000830152613d8c8161388e565b9050919050565b60006020820190508181036000830152613dac816138b1565b9050919050565b60006020820190508181036000830152613dcc816138f7565b9050919050565b60006020820190508181036000830152613dec8161391a565b9050919050565b60006020820190508181036000830152613e0c8161393d565b9050919050565b60006020820190508181036000830152613e2c81613960565b9050919050565b60006020820190508181036000830152613e4c816139a6565b9050919050565b60006020820190508181036000830152613e6c816139c9565b9050919050565b60006020820190508181036000830152613e8c816139ec565b9050919050565b60006020820190508181036000830152613eac81613a32565b9050919050565b60006020820190508181036000830152613ecc81613a55565b9050919050565b60006020820190508181036000830152613eec81613a78565b9050919050565b60006020820190508181036000830152613f0c81613a9b565b9050919050565b60006020820190508181036000830152613f2c81613abe565b9050919050565b6000602082019050613f486000830184613ae1565b92915050565b6000613f58613f69565b9050613f6482826142e7565b919050565b6000604051905090565b600067ffffffffffffffff821115613f8e57613f8d6144a4565b5b613f97826144e7565b9050602081019050919050565b600067ffffffffffffffff821115613fbf57613fbe6144a4565b5b613fc8826144e7565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006140388261425c565b91506140438361425c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614078576140776143b9565b5b828201905092915050565b600061408e82614266565b915061409983614266565b92508260ff038211156140af576140ae6143b9565b5b828201905092915050565b60006140c58261425c565b91506140d08361425c565b9250826140e0576140df6143e8565b5b828204905092915050565b60006140f682614266565b915061410183614266565b925082614111576141106143e8565b5b828204905092915050565b60006141278261425c565b91506141328361425c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561416b5761416a6143b9565b5b828202905092915050565b60006141818261425c565b915061418c8361425c565b92508282101561419f5761419e6143b9565b5b828203905092915050565b60006141b58261423c565b9050919050565b60008115159050919050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614235826141aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156142a0578082015181840152602081019050614285565b838111156142af576000848401525b50505050565b600060028204905060018216806142cd57607f821691505b602082108114156142e1576142e0614417565b5b50919050565b6142f0826144e7565b810181811067ffffffffffffffff8211171561430f5761430e6144a4565b5b80604052505050565b60006143238261425c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614356576143556143b9565b5b600182019050919050565b600061436c82614266565b915060ff8214156143805761437f6143b9565b5b600182019050919050565b60006143968261439d565b9050919050565b60006143a8826144f8565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f222c22696d616765223a22000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e203235206174206120746960008201527f6d65000000000000000000000000000000000000000000000000000000000000602082015250565b7f222c22616e696d6174696f6e5f75726c223a2200000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d60008201527f65223a2200000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f2e706e67227d0000000000000000000000000000000000000000000000000000600082015250565b7f4d696e7420776f756c6420657863656564206d617820737570706c79206f662060008201527f4265617473000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614b98816141aa565b8114614ba357600080fd5b50565b614baf816141bc565b8114614bba57600080fd5b50565b614bc6816141f4565b8114614bd157600080fd5b50565b614bdd816141fe565b8114614be857600080fd5b50565b614bf48161422a565b8114614bff57600080fd5b50565b614c0b8161425c565b8114614c1657600080fd5b50565b614c2281614266565b8114614c2d57600080fd5b5056fea2646970667358221220643f30826fa57a7789f4b131c96f2354d1883dc579dac62b44dfa7340138936364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000006068747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970696e6174612e636c6f75642f697066732f516d6371384c6f4e4d3145636d4e71487873514731767143336177313662464c4c52597135354e50484a536a74732f000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970696e6174612e636c6f75642f697066732f516d65636542756136366b576479376d4a41546f676b335574416a654a79637944616132564156696658464c35752f3f736565643d0000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseImageURI (string): https://beatsontheblockchain.mypinata.cloud/ipfs/Qmcq8LoNM1EcmNqHxsQG1vqC3aw16bFLLRYq55NPHJSjts/
Arg [1] : _animationURI (string): https://beatsontheblockchain.mypinata.cloud/ipfs/QmeceBua66kWdy7mJATogk3UtAjeJycyDaa2VAVifXFL5u/?seed=
Arg [2] : openseaProxyRegistry_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [4] : 68747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970
Arg [5] : 696e6174612e636c6f75642f697066732f516d6371384c6f4e4d3145636d4e71
Arg [6] : 487873514731767143336177313662464c4c52597135354e50484a536a74732f
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000066
Arg [8] : 68747470733a2f2f62656174736f6e746865626c6f636b636861696e2e6d7970
Arg [9] : 696e6174612e636c6f75642f697066732f516d65636542756136366b57647937
Arg [10] : 6d4a41546f676b335574416a654a79637944616132564156696658464c35752f
Arg [11] : 3f736565643d0000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$65.59
Net Worth in ETH
0.031408
Token Allocations
BNB
100.00%
Multichain Portfolio | 33 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.