Overview
TokenID
0
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TestSamples
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: Unlicense pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; error TestSamples_FunctionLocked(); error TestSamples_InvalidSignature(); error TestSamples_InvalidTokenId(); error TestSamples_SignatureAlreadyUsed(); /** ..',,;;;;:::;;;,,'.. .';:ccccc:::;;,,,,,;;;:::ccccc:;'. .,:ccc:;'.. ..';:ccc:,. .':cc:,. .,ccc:'. .,clc,. .,clc,. 'clc' 'clc' .;ll,. .;ll;. .:ol. 'co:. ;oc. .co; 'oo' 'lo' .cd; ;dc. .ol. .,. .lo. ,dc. 'cxKWK; cd, ;d; .;oONWMMMMXc ;d; ;d; 'cxKWMMMMMMMMMXl. ;x; ,x: ;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0NMMMMMMMMMMMMMMNd. :x, .dc .lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd. cd. ld. .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXkl' .dl ,x; .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d:. ;x, oo. .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxc'. .oo 'x: .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOo;. :x' :x. .xWMMMMMMMMMMM0occcccccccccccccccccccccccccccccccccccc:' .x: lo. .oNMMMMMMMMMX; .ol .ol .lXMMMMMMMWd. ,dddddddddddddddo;. .:dddddddddddddo, lo. .dl cXMMMMMM0, 'OMMMMMMMMMMMMMMNd. .xWMMMMMMMMMMMMXo. ld. .dl ;KMMMMNl oWMMMMMMMMMMMMMXc. ,OWMMMMMMMMMMMMK: ld. oo ,OWMMO. ,KMMMMMMMMMMMMW0; .cKMMMMMMMMMMMMWO, oo cd. 'kWX: .xWMMMMMMMMMMMWx. .dKNMMMMMMMMMMMMNd. .dc ,x, .dd. ;KMMMMMMMMMMMXo. 'kWMMMMMMMMMMMMMXl. ,x; .dc . .,:loxOKNWMMK: ;0WMMMMMMMMMMMMW0; cd. :d. ... ..,:c' .lXMMMMMMMMMMMMMWk' .d: .dl :OKOxoc:,.. .xNMMMMMMMMMMMMMNo. cd. ;x, ;0MMMMWWXKOxoclOWMMMMMMMMMMMMMKc ,x; cd. ,OWMMMMMMMMMMMMMMMMMMMMMMMMWO, .dc .oo. .kWMMMMMMMMMMMMMMMMMMMMMMNx. .oo. .oo. .xWMMMMMMMMMMMMMMMMMMMMXl. .oo. .lo. .oNMMMMMMMMMMMMMMMMMW0; .ol. .cd, .lXMMMMMMMMMMMMMMMWk' ,dc. ;dc. :KMMMMMMMMMMMMNKo. .cd; .lo, ;0WWWWWWWWWWKc. 'ol. ,ol. .,,,,,,,,,,. .lo, .;oc. .co:. .;ol' 'lo;. ,ll:. .:ll, .:ll;. .;ll:. .:ll:,. .,:ll:. .,:ccc;'. .';ccc:,. .';cccc::;'... ...';:ccccc;'. .',;::cc::cc::::::::::::;,.. ........ * @title TestSamples * @author Augminted Labs, LLC * @notice Airdrop for all the homies * @notice For more details see: https://medium.com/@AugmintedLabs/kaijukingz-p2e-ecosystem-dc9577ff8773 */ contract TestSamples is ERC1155Supply, AccessControl, ReentrancyGuard { using ECDSA for bytes32; bytes32 public constant AIRDROPPER_ROLE = keccak256("AIRDROPPER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); uint256 public constant MAX_TOKEN_ID = 3; address public signer; mapping(bytes => bool) public signatureUsed; mapping(bytes4 => bool) public functionLocked; constructor(string memory uri) ERC1155(uri) { _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); } /** * @notice Modifier applied to functions that will be disabled when they're no longer needed */ modifier lockable() { if (functionLocked[msg.sig]) revert TestSamples_FunctionLocked(); _; } /** * @notice Set token URI for all tokens * @param uri Token URI to set for all tokens */ function setURI(string calldata uri) external lockable onlyRole(DEFAULT_ADMIN_ROLE) { _setURI(uri); } /** * @notice Set signature signing address * @param _signer address of account used to create mint signatures */ function setSigner(address _signer) external lockable onlyRole(DEFAULT_ADMIN_ROLE) { signer = _signer; } /** * @notice Airdrop a specified amount of tokens to a set of receivers * @param receivers Addresses of the receivers of the airdrop * @param amounts Amount of the specified token to airdrop to the corresponding receiver * @param tokenId Token ID to airdrop */ function airdrop( address[] calldata receivers, uint256[] calldata amounts, uint256 tokenId ) public lockable onlyRole(AIRDROPPER_ROLE) { if (tokenId > MAX_TOKEN_ID) revert TestSamples_InvalidTokenId(); for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], tokenId, amounts[i], ""); } } /** * @notice Allow participants to claim a token * @param signature Created by signer account for a specific address */ function claim(bytes calldata signature) public lockable nonReentrant { if (signatureUsed[signature]) revert TestSamples_SignatureAlreadyUsed(); if (signer != ECDSA.recover( ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(_msgSender()))), signature )) revert TestSamples_InvalidSignature(); signatureUsed[signature] = true; _mint(_msgSender(), MAX_TOKEN_ID, 1, ""); } /** * @notice Burn an amount of specified tokens from a specified owner * @param from Owner to burn from * @param id Token to burn * @param amount Amount of specified tokens to burn */ function burn( address from, uint256 id, uint256 amount ) public lockable onlyRole(BURNER_ROLE) { _burn(from, id, amount); } /** * @notice Burn an amount of specified tokens from a specified owner * @param from Owner to burn from * @param ids Tokens to burn * @param amounts Amounts of tokens to burn */ function burnBatch( address from, uint256[] calldata ids, uint256[] calldata amounts ) public lockable onlyRole(BURNER_ROLE) { _burnBatch(from, ids, amounts); } /** * @inheritdoc ERC1155 */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Lock individual functions that are no longer needed * @dev Only affects functions with the lockable modifier * @param id First 4 bytes of the calldata (i.e. function identifier) */ function lockFunction(bytes4 id) external onlyRole(DEFAULT_ADMIN_ROLE) { functionLocked[id] = true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) 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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"TestSamples_FunctionLocked","type":"error"},{"inputs":[],"name":"TestSamples_InvalidSignature","type":"error"},{"inputs":[],"name":"TestSamples_InvalidTokenId","type":"error"},{"inputs":[],"name":"TestSamples_SignatureAlreadyUsed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"AIRDROPPER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"functionLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"}],"name":"lockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatureUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005b7e38038062005b7e83398181016040528101906200003791906200032c565b8062000049816200007d60201b60201c565b506001600581905550620000766000801b6200006a6200009960201b60201c565b620000a160201b60201c565b5062000501565b806002908051906020019062000095929190620001fe565b5050565b600033905090565b620000b382826200019360201b60201c565b6200018f5760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001346200009960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200020c9062000412565b90600052602060002090601f0160209004810192826200023057600085556200027c565b82601f106200024b57805160ff19168380011785556200027c565b828001600101855582156200027c579182015b828111156200027b5782518255916020019190600101906200025e565b5b5090506200028b91906200028f565b5090565b5b80821115620002aa57600081600090555060010162000290565b5090565b6000620002c5620002bf84620003a6565b6200037d565b905082815260208101848484011115620002e457620002e3620004e1565b5b620002f1848285620003dc565b509392505050565b600082601f830112620003115762000310620004dc565b5b815162000323848260208601620002ae565b91505092915050565b600060208284031215620003455762000344620004eb565b5b600082015167ffffffffffffffff811115620003665762000365620004e6565b5b6200037484828501620002f9565b91505092915050565b6000620003896200039c565b905062000397828262000448565b919050565b6000604051905090565b600067ffffffffffffffff821115620003c457620003c3620004ad565b5b620003cf82620004f0565b9050602081019050919050565b60005b83811015620003fc578082015181840152602081019050620003df565b838111156200040c576000848401525b50505050565b600060028204905060018216806200042b57607f821691505b602082108114156200044257620004416200047e565b5b50919050565b6200045382620004f0565b810181811067ffffffffffffffff82111715620004755762000474620004ad565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b61566d80620005116000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80636b20c45411610104578063bb10c829116100a2578063d547741f11610071578063d547741f14610561578063e985e9c51461057d578063f242432a146105ad578063f5298aca146105c9576101ce565b8063bb10c829146104b5578063bbadfe76146104e5578063bd85b03914610515578063c63ff8dd14610545576101ce565b8063731186eb116100de578063731186eb1461042f57806391d148541461044b578063a217fddf1461047b578063a22cb46514610499576101ce565b80636b20c454146103d95780636c19e783146103f55780636da612d814610411576101ce565b80632eb2c2d61161017157806336568abe1161014b57806336568abe1461033f5780633b79276c1461035b5780634e1273f4146103795780634f558e79146103a9576101ce565b80632eb2c2d6146102eb5780632f2ff15d146103075780633453182814610323576101ce565b80630e89341c116101ad5780630e89341c1461024f578063238ac9331461027f578063248a9ca31461029d578063282c51f3146102cd576101ce565b8062fdd58e146101d357806301ffc9a71461020357806302fe530514610233575b600080fd5b6101ed60048036038101906101e89190613bf4565b6105e5565b6040516101fa9190614980565b60405180910390f35b61021d60048036038101906102189190613e01565b6106ae565b60405161022a9190614643565b60405180910390f35b61024d60048036038101906102489190613ef1565b6106c0565b005b61026960048036038101906102649190613f3e565b6107d8565b60405161027691906146be565b60405180910390f35b61028761086c565b604051610294919061450d565b60405180910390f35b6102b760048036038101906102b29190613d94565b610892565b6040516102c4919061465e565b60405180910390f35b6102d56108b2565b6040516102e2919061465e565b60405180910390f35b610305600480360381019061030091906139b9565b6108d6565b005b610321600480360381019061031c9190613dc1565b610977565b005b61033d60048036038101906103389190613e01565b610998565b005b61035960048036038101906103549190613dc1565b610a13565b005b610363610a96565b604051610370919061465e565b60405180910390f35b610393600480360381019061038e9190613d1c565b610aba565b6040516103a091906145ea565b60405180910390f35b6103c360048036038101906103be9190613f3e565b610bd3565b6040516103d09190614643565b60405180910390f35b6103f360048036038101906103ee9190613b1f565b610be7565b005b61040f600480360381019061040a919061394c565b610d5f565b005b610419610e6a565b6040516104269190614980565b60405180910390f35b61044960048036038101906104449190613c87565b610e6f565b005b61046560048036038101906104609190613dc1565b611012565b6040516104729190614643565b60405180910390f35b61048361107d565b604051610490919061465e565b60405180910390f35b6104b360048036038101906104ae9190613bb4565b611084565b005b6104cf60048036038101906104ca9190613ea8565b61109a565b6040516104dc9190614643565b60405180910390f35b6104ff60048036038101906104fa9190613e01565b6110d0565b60405161050c9190614643565b60405180910390f35b61052f600480360381019061052a9190613f3e565b6110f0565b60405161053c9190614980565b60405180910390f35b61055f600480360381019061055a9190613e5b565b61110d565b005b61057b60048036038101906105769190613dc1565b6113eb565b005b61059760048036038101906105929190613979565b61140c565b6040516105a49190614643565b60405180910390f35b6105c760048036038101906105c29190613a88565b6114a0565b005b6105e360048036038101906105de9190613c34565b611541565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064d90614780565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106b982611635565b9050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610779576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b610786816116af565b6107d383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116c3565b505050565b6060600280546107e790614ca0565b80601f016020809104026020016040519081016040528092919081815260200182805461081390614ca0565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b50505050509050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060046000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6108de6116dd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061092457506109238561091e6116dd565b61140c565b5b610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90614820565b60405180910390fd5b61097085858585856116e5565b5050505050565b61098082610892565b610989816116af565b6109938383611a07565b505050565b6000801b6109a5816116af565b600160086000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a1b6116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7f90614960565b60405180910390fd5b610a928282611ae8565b5050565b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda92481565b60608151835114610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af7906148e0565b60405180910390fd5b6000835167ffffffffffffffff811115610b1d57610b1c614e36565b5b604051908082528060200260200182016040528015610b4b5781602001602082028036833780820191505090505b50905060005b8451811015610bc857610b98858281518110610b7057610b6f614e07565b5b6020026020010151858381518110610b8b57610b8a614e07565b5b60200260200101516105e5565b828281518110610bab57610baa614e07565b5b60200260200101818152505080610bc190614d03565b9050610b51565b508091505092915050565b600080610bdf836110f0565b119050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610ca0576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610cca816116af565b610d5786868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611bca565b505050505050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610e18576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b610e25816116af565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600381565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610f28576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda924610f52816116af565b6003821115610f8d576040517ff6ae677b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8686905081101561100957610ff6878783818110610fb157610fb0614e07565b5b9050602002016020810190610fc6919061394c565b84878785818110610fda57610fd9614e07565b5b9050602002013560405180602001604052806000815250611e99565b808061100190614d03565b915050610f90565b50505050505050565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61109661108f6116dd565b838361204a565b5050565b6007818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b60086020528060005260406000206000915054906101000a900460ff1681565b600060036000838152602001908152602001600020549050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156111c6576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600554141561120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614940565b60405180910390fd5b600260058190555060078282604051611226929190614494565b908152602001604051809103902060009054906101000a900460ff1615611279576040517f350a0c2600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112fc6112b26112876116dd565b6040516020016112979190614479565b604051602081830303815290604052805190602001206121b7565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506121e7565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611382576040517f516a9da800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160078383604051611396929190614494565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506113df6113c66116dd565b6003600160405180602001604052806000815250611e99565b60016005819055505050565b6113f482610892565b6113fd816116af565b6114078383611ae8565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6114a86116dd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806114ee57506114ed856114e86116dd565b61140c565b5b61152d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611524906147c0565b60405180910390fd5b61153a858585858561220e565b5050505050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156115fa576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848611624816116af565b61162f8484846124aa565b50505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116a857506116a7826126f1565b5b9050919050565b6116c0816116bb6116dd565b6127d3565b50565b80600290805190602001906116d9929190613527565b5050565b600033905090565b8151835114611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090614900565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179090614800565b60405180910390fd5b60006117a36116dd565b90506117b3818787878787612870565b60005b84518110156119645760008582815181106117d4576117d3614e07565b5b6020026020010151905060008583815181106117f3576117f2614e07565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90614880565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119499190614af9565b925050819055505050508061195d90614d03565b90506117b6565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119db92919061460c565b60405180910390a46119f1818787878787612a42565b6119ff818787878787612a4a565b505050505050565b611a118282611012565b611ae45760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a896116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611af28282611012565b15611bc65760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b6b6116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3190614860565b60405180910390fd5b8051825114611c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7590614900565b60405180910390fd5b6000611c886116dd565b9050611ca881856000868660405180602001604052806000815250612870565b60005b8351811015611df5576000848281518110611cc957611cc8614e07565b5b602002602001015190506000848381518110611ce857611ce7614e07565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d80906147a0565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611ded90614d03565b915050611cab565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e6d92919061460c565b60405180910390a4611e9381856000868660405180602001604052806000815250612a42565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614920565b60405180910390fd5b6000611f136116dd565b90506000611f2085612c31565b90506000611f2d85612c31565b9050611f3e83600089858589612870565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f9d9190614af9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161201b92919061499b565b60405180910390a461203283600089858589612a42565b61204183600089898989612cab565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b0906148c0565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121aa9190614643565b60405180910390a3505050565b6000816040516020016121ca91906144ad565b604051602081830303815290604052805190602001209050919050565b60008060006121f68585612e92565b9150915061220381612f15565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561227e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227590614800565b60405180910390fd5b60006122886116dd565b9050600061229585612c31565b905060006122a285612c31565b90506122b2838989858589612870565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234090614880565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fe9190614af9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161247b92919061499b565b60405180910390a4612491848a8a86868a612a42565b61249f848a8a8a8a8a612cab565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561251a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251190614860565b60405180910390fd5b60006125246116dd565b9050600061253184612c31565b9050600061253e84612c31565b905061255e83876000858560405180602001604052806000815250612870565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156125f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ec906147a0565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126c292919061499b565b60405180910390a46126e884886000868660405180602001604052806000815250612a42565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127bc57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127cc57506127cb826130ea565b5b9050919050565b6127dd8282611012565b61286c576128028173ffffffffffffffffffffffffffffffffffffffff166014613154565b6128108360001c6020613154565b6040516020016128219291906144d3565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286391906146be565b60405180910390fd5b5050565b61287e868686868686613390565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156129305760005b835181101561292e578281815181106128d2576128d1614e07565b5b6020026020010151600360008684815181106128f1576128f0614e07565b5b6020026020010151815260200190815260200160002060008282546129169190614af9565b925050819055508061292790614d03565b90506128b6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a3a5760005b8351811015612a3857600084828151811061298657612985614e07565b5b6020026020010151905060008483815181106129a5576129a4614e07565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a01906148a0565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612a3190614d03565b9050612968565b505b505050505050565b505050505050565b612a698473ffffffffffffffffffffffffffffffffffffffff16613398565b15612c29578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612aaf959493929190614528565b602060405180830381600087803b158015612ac957600080fd5b505af1925050508015612afa57506040513d601f19601f82011682018060405250810190612af79190613e2e565b60015b612ba057612b06614e65565b806308c379a01415612b635750612b1b61552e565b80612b265750612b65565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a91906146be565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9790614700565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1e90614740565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612c5057612c4f614e36565b5b604051908082528060200260200182016040528015612c7e5781602001602082028036833780820191505090505b5090508281600081518110612c9657612c95614e07565b5b60200260200101818152505080915050919050565b612cca8473ffffffffffffffffffffffffffffffffffffffff16613398565b15612e8a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612d10959493929190614590565b602060405180830381600087803b158015612d2a57600080fd5b505af1925050508015612d5b57506040513d601f19601f82011682018060405250810190612d589190613e2e565b60015b612e0157612d67614e65565b806308c379a01415612dc45750612d7c61552e565b80612d875750612dc6565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbb91906146be565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df890614700565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7f90614740565b60405180910390fd5b505b505050505050565b600080604183511415612ed45760008060006020860151925060408601519150606086015160001a9050612ec8878285856133bb565b94509450505050612f0e565b604083511415612f05576000806020850151915060408501519050612efa8683836134c8565b935093505050612f0e565b60006002915091505b9250929050565b60006004811115612f2957612f28614da9565b5b816004811115612f3c57612f3b614da9565b5b1415612f47576130e7565b60016004811115612f5b57612f5a614da9565b5b816004811115612f6e57612f6d614da9565b5b1415612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906146e0565b60405180910390fd5b60026004811115612fc357612fc2614da9565b5b816004811115612fd657612fd5614da9565b5b1415613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300e90614760565b60405180910390fd5b6003600481111561302b5761302a614da9565b5b81600481111561303e5761303d614da9565b5b141561307f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613076906147e0565b60405180910390fd5b60048081111561309257613091614da9565b5b8160048111156130a5576130a4614da9565b5b14156130e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130dd90614840565b60405180910390fd5b5b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026131679190614b4f565b6131719190614af9565b67ffffffffffffffff81111561318a57613189614e36565b5b6040519080825280601f01601f1916602001820160405280156131bc5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131f4576131f3614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061325857613257614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026132989190614b4f565b6132a29190614af9565b90505b6001811115613342577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132e4576132e3614e07565b5b1a60f81b8282815181106132fb576132fa614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061333b90614c76565b90506132a5565b5060008414613386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337d90614720565b60405180910390fd5b8091505092915050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156133f65760006003915091506134bf565b601b8560ff161415801561340e5750601c8560ff1614155b156134205760006004915091506134bf565b6000600187878787604051600081526020016040526040516134459493929190614679565b6020604051602081039080840390855afa158015613467573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156134b6576000600192509250506134bf565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61350b9190614af9565b9050613519878288856133bb565b935093505050935093915050565b82805461353390614ca0565b90600052602060002090601f016020900481019282613555576000855561359c565b82601f1061356e57805160ff191683800117855561359c565b8280016001018555821561359c579182015b8281111561359b578251825591602001919060010190613580565b5b5090506135a991906135ad565b5090565b5b808211156135c65760008160009055506001016135ae565b5090565b60006135dd6135d8846149e9565b6149c4565b90508083825260208201905082856020860282011115613600576135ff614e91565b5b60005b85811015613630578161361688826136ec565b845260208401935060208301925050600181019050613603565b5050509392505050565b600061364d61364884614a15565b6149c4565b905080838252602082019050828560208602820111156136705761366f614e91565b5b60005b858110156136a057816136868882613937565b845260208401935060208301925050600181019050613673565b5050509392505050565b60006136bd6136b884614a41565b6149c4565b9050828152602081018484840111156136d9576136d8614e96565b5b6136e4848285614c34565b509392505050565b6000813590506136fb816155c4565b92915050565b60008083601f84011261371757613716614e8c565b5b8235905067ffffffffffffffff81111561373457613733614e87565b5b6020830191508360208202830111156137505761374f614e91565b5b9250929050565b600082601f83011261376c5761376b614e8c565b5b813561377c8482602086016135ca565b91505092915050565b60008083601f84011261379b5761379a614e8c565b5b8235905067ffffffffffffffff8111156137b8576137b7614e87565b5b6020830191508360208202830111156137d4576137d3614e91565b5b9250929050565b600082601f8301126137f0576137ef614e8c565b5b813561380084826020860161363a565b91505092915050565b600081359050613818816155db565b92915050565b60008135905061382d816155f2565b92915050565b60008135905061384281615609565b92915050565b60008151905061385781615609565b92915050565b60008083601f84011261387357613872614e8c565b5b8235905067ffffffffffffffff8111156138905761388f614e87565b5b6020830191508360018202830111156138ac576138ab614e91565b5b9250929050565b600082601f8301126138c8576138c7614e8c565b5b81356138d88482602086016136aa565b91505092915050565b60008083601f8401126138f7576138f6614e8c565b5b8235905067ffffffffffffffff81111561391457613913614e87565b5b6020830191508360018202830111156139305761392f614e91565b5b9250929050565b60008135905061394681615620565b92915050565b60006020828403121561396257613961614ea0565b5b6000613970848285016136ec565b91505092915050565b600080604083850312156139905761398f614ea0565b5b600061399e858286016136ec565b92505060206139af858286016136ec565b9150509250929050565b600080600080600060a086880312156139d5576139d4614ea0565b5b60006139e3888289016136ec565b95505060206139f4888289016136ec565b945050604086013567ffffffffffffffff811115613a1557613a14614e9b565b5b613a21888289016137db565b935050606086013567ffffffffffffffff811115613a4257613a41614e9b565b5b613a4e888289016137db565b925050608086013567ffffffffffffffff811115613a6f57613a6e614e9b565b5b613a7b888289016138b3565b9150509295509295909350565b600080600080600060a08688031215613aa457613aa3614ea0565b5b6000613ab2888289016136ec565b9550506020613ac3888289016136ec565b9450506040613ad488828901613937565b9350506060613ae588828901613937565b925050608086013567ffffffffffffffff811115613b0657613b05614e9b565b5b613b12888289016138b3565b9150509295509295909350565b600080600080600060608688031215613b3b57613b3a614ea0565b5b6000613b49888289016136ec565b955050602086013567ffffffffffffffff811115613b6a57613b69614e9b565b5b613b7688828901613785565b9450945050604086013567ffffffffffffffff811115613b9957613b98614e9b565b5b613ba588828901613785565b92509250509295509295909350565b60008060408385031215613bcb57613bca614ea0565b5b6000613bd9858286016136ec565b9250506020613bea85828601613809565b9150509250929050565b60008060408385031215613c0b57613c0a614ea0565b5b6000613c19858286016136ec565b9250506020613c2a85828601613937565b9150509250929050565b600080600060608486031215613c4d57613c4c614ea0565b5b6000613c5b868287016136ec565b9350506020613c6c86828701613937565b9250506040613c7d86828701613937565b9150509250925092565b600080600080600060608688031215613ca357613ca2614ea0565b5b600086013567ffffffffffffffff811115613cc157613cc0614e9b565b5b613ccd88828901613701565b9550955050602086013567ffffffffffffffff811115613cf057613cef614e9b565b5b613cfc88828901613785565b93509350506040613d0f88828901613937565b9150509295509295909350565b60008060408385031215613d3357613d32614ea0565b5b600083013567ffffffffffffffff811115613d5157613d50614e9b565b5b613d5d85828601613757565b925050602083013567ffffffffffffffff811115613d7e57613d7d614e9b565b5b613d8a858286016137db565b9150509250929050565b600060208284031215613daa57613da9614ea0565b5b6000613db88482850161381e565b91505092915050565b60008060408385031215613dd857613dd7614ea0565b5b6000613de68582860161381e565b9250506020613df7858286016136ec565b9150509250929050565b600060208284031215613e1757613e16614ea0565b5b6000613e2584828501613833565b91505092915050565b600060208284031215613e4457613e43614ea0565b5b6000613e5284828501613848565b91505092915050565b60008060208385031215613e7257613e71614ea0565b5b600083013567ffffffffffffffff811115613e9057613e8f614e9b565b5b613e9c8582860161385d565b92509250509250929050565b600060208284031215613ebe57613ebd614ea0565b5b600082013567ffffffffffffffff811115613edc57613edb614e9b565b5b613ee8848285016138b3565b91505092915050565b60008060208385031215613f0857613f07614ea0565b5b600083013567ffffffffffffffff811115613f2657613f25614e9b565b5b613f32858286016138e1565b92509250509250929050565b600060208284031215613f5457613f53614ea0565b5b6000613f6284828501613937565b91505092915050565b6000613f77838361444c565b60208301905092915050565b613f8c81614ba9565b82525050565b613fa3613f9e82614ba9565b614d4c565b82525050565b6000613fb482614a82565b613fbe8185614ab0565b9350613fc983614a72565b8060005b83811015613ffa578151613fe18882613f6b565b9750613fec83614aa3565b925050600181019050613fcd565b5085935050505092915050565b61401081614bbb565b82525050565b61401f81614bc7565b82525050565b61403661403182614bc7565b614d5e565b82525050565b60006140488385614ad2565b9350614055838584614c34565b82840190509392505050565b600061406c82614a8d565b6140768185614ac1565b9350614086818560208601614c43565b61408f81614ea5565b840191505092915050565b60006140a582614a98565b6140af8185614add565b93506140bf818560208601614c43565b6140c881614ea5565b840191505092915050565b60006140de82614a98565b6140e88185614aee565b93506140f8818560208601614c43565b80840191505092915050565b6000614111601883614add565b915061411c82614ed0565b602082019050919050565b6000614134603483614add565b915061413f82614ef9565b604082019050919050565b6000614157602083614add565b915061416282614f48565b602082019050919050565b600061417a602883614add565b915061418582614f71565b604082019050919050565b600061419d601f83614add565b91506141a882614fc0565b602082019050919050565b60006141c0601c83614aee565b91506141cb82614fe9565b601c82019050919050565b60006141e3602b83614add565b91506141ee82615012565b604082019050919050565b6000614206602483614add565b915061421182615061565b604082019050919050565b6000614229602983614add565b9150614234826150b0565b604082019050919050565b600061424c602283614add565b9150614257826150ff565b604082019050919050565b600061426f602583614add565b915061427a8261514e565b604082019050919050565b6000614292603283614add565b915061429d8261519d565b604082019050919050565b60006142b5602283614add565b91506142c0826151ec565b604082019050919050565b60006142d8602383614add565b91506142e38261523b565b604082019050919050565b60006142fb602a83614add565b91506143068261528a565b604082019050919050565b600061431e602883614add565b9150614329826152d9565b604082019050919050565b6000614341601783614aee565b915061434c82615328565b601782019050919050565b6000614364602983614add565b915061436f82615351565b604082019050919050565b6000614387602983614add565b9150614392826153a0565b604082019050919050565b60006143aa602883614add565b91506143b5826153ef565b604082019050919050565b60006143cd602183614add565b91506143d88261543e565b604082019050919050565b60006143f0601f83614add565b91506143fb8261548d565b602082019050919050565b6000614413601183614aee565b915061441e826154b6565b601182019050919050565b6000614436602f83614add565b9150614441826154df565b604082019050919050565b61445581614c1d565b82525050565b61446481614c1d565b82525050565b61447381614c27565b82525050565b60006144858284613f92565b60148201915081905092915050565b60006144a182848661403c565b91508190509392505050565b60006144b8826141b3565b91506144c48284614025565b60208201915081905092915050565b60006144de82614334565b91506144ea82856140d3565b91506144f582614406565b915061450182846140d3565b91508190509392505050565b60006020820190506145226000830184613f83565b92915050565b600060a08201905061453d6000830188613f83565b61454a6020830187613f83565b818103604083015261455c8186613fa9565b905081810360608301526145708185613fa9565b905081810360808301526145848184614061565b90509695505050505050565b600060a0820190506145a56000830188613f83565b6145b26020830187613f83565b6145bf604083018661445b565b6145cc606083018561445b565b81810360808301526145de8184614061565b90509695505050505050565b600060208201905081810360008301526146048184613fa9565b905092915050565b600060408201905081810360008301526146268185613fa9565b9050818103602083015261463a8184613fa9565b90509392505050565b60006020820190506146586000830184614007565b92915050565b60006020820190506146736000830184614016565b92915050565b600060808201905061468e6000830187614016565b61469b602083018661446a565b6146a86040830185614016565b6146b56060830184614016565b95945050505050565b600060208201905081810360008301526146d8818461409a565b905092915050565b600060208201905081810360008301526146f981614104565b9050919050565b6000602082019050818103600083015261471981614127565b9050919050565b600060208201905081810360008301526147398161414a565b9050919050565b600060208201905081810360008301526147598161416d565b9050919050565b6000602082019050818103600083015261477981614190565b9050919050565b60006020820190508181036000830152614799816141d6565b9050919050565b600060208201905081810360008301526147b9816141f9565b9050919050565b600060208201905081810360008301526147d98161421c565b9050919050565b600060208201905081810360008301526147f98161423f565b9050919050565b6000602082019050818103600083015261481981614262565b9050919050565b6000602082019050818103600083015261483981614285565b9050919050565b60006020820190508181036000830152614859816142a8565b9050919050565b60006020820190508181036000830152614879816142cb565b9050919050565b60006020820190508181036000830152614899816142ee565b9050919050565b600060208201905081810360008301526148b981614311565b9050919050565b600060208201905081810360008301526148d981614357565b9050919050565b600060208201905081810360008301526148f98161437a565b9050919050565b600060208201905081810360008301526149198161439d565b9050919050565b60006020820190508181036000830152614939816143c0565b9050919050565b60006020820190508181036000830152614959816143e3565b9050919050565b6000602082019050818103600083015261497981614429565b9050919050565b6000602082019050614995600083018461445b565b92915050565b60006040820190506149b0600083018561445b565b6149bd602083018461445b565b9392505050565b60006149ce6149df565b90506149da8282614cd2565b919050565b6000604051905090565b600067ffffffffffffffff821115614a0457614a03614e36565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a3057614a2f614e36565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a5c57614a5b614e36565b5b614a6582614ea5565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b0482614c1d565b9150614b0f83614c1d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b4457614b43614d7a565b5b828201905092915050565b6000614b5a82614c1d565b9150614b6583614c1d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b9e57614b9d614d7a565b5b828202905092915050565b6000614bb482614bfd565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614c61578082015181840152602081019050614c46565b83811115614c70576000848401525b50505050565b6000614c8182614c1d565b91506000821415614c9557614c94614d7a565b5b600182039050919050565b60006002820490506001821680614cb857607f821691505b60208210811415614ccc57614ccb614dd8565b5b50919050565b614cdb82614ea5565b810181811067ffffffffffffffff82111715614cfa57614cf9614e36565b5b80604052505050565b6000614d0e82614c1d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d4157614d40614d7a565b5b600182019050919050565b6000614d5782614d68565b9050919050565b6000819050919050565b6000614d7382614eb6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614e845760046000803e614e81600051614ec3565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d101561553e576155c1565b6155466149df565b60043d036004823e80513d602482011167ffffffffffffffff8211171561556e5750506155c1565b808201805167ffffffffffffffff81111561558c57505050506155c1565b80602083010160043d0385018111156155a95750505050506155c1565b6155b882602001850186614cd2565b82955050505050505b90565b6155cd81614ba9565b81146155d857600080fd5b50565b6155e481614bbb565b81146155ef57600080fd5b50565b6155fb81614bc7565b811461560657600080fd5b50565b61561281614bd1565b811461561d57600080fd5b50565b61562981614c1d565b811461563457600080fd5b5056fea2646970667358221220307268513a92926e8b9f2e3ce6bf5753ae0c3540c3a1221d4abf26b031f1c0bb64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f75642f697066732f516d6135557633397369516e67727578526770654a5365676b5a38324a5761346e386a534b5347656e656d42716f2f7b69647d00000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80636b20c45411610104578063bb10c829116100a2578063d547741f11610071578063d547741f14610561578063e985e9c51461057d578063f242432a146105ad578063f5298aca146105c9576101ce565b8063bb10c829146104b5578063bbadfe76146104e5578063bd85b03914610515578063c63ff8dd14610545576101ce565b8063731186eb116100de578063731186eb1461042f57806391d148541461044b578063a217fddf1461047b578063a22cb46514610499576101ce565b80636b20c454146103d95780636c19e783146103f55780636da612d814610411576101ce565b80632eb2c2d61161017157806336568abe1161014b57806336568abe1461033f5780633b79276c1461035b5780634e1273f4146103795780634f558e79146103a9576101ce565b80632eb2c2d6146102eb5780632f2ff15d146103075780633453182814610323576101ce565b80630e89341c116101ad5780630e89341c1461024f578063238ac9331461027f578063248a9ca31461029d578063282c51f3146102cd576101ce565b8062fdd58e146101d357806301ffc9a71461020357806302fe530514610233575b600080fd5b6101ed60048036038101906101e89190613bf4565b6105e5565b6040516101fa9190614980565b60405180910390f35b61021d60048036038101906102189190613e01565b6106ae565b60405161022a9190614643565b60405180910390f35b61024d60048036038101906102489190613ef1565b6106c0565b005b61026960048036038101906102649190613f3e565b6107d8565b60405161027691906146be565b60405180910390f35b61028761086c565b604051610294919061450d565b60405180910390f35b6102b760048036038101906102b29190613d94565b610892565b6040516102c4919061465e565b60405180910390f35b6102d56108b2565b6040516102e2919061465e565b60405180910390f35b610305600480360381019061030091906139b9565b6108d6565b005b610321600480360381019061031c9190613dc1565b610977565b005b61033d60048036038101906103389190613e01565b610998565b005b61035960048036038101906103549190613dc1565b610a13565b005b610363610a96565b604051610370919061465e565b60405180910390f35b610393600480360381019061038e9190613d1c565b610aba565b6040516103a091906145ea565b60405180910390f35b6103c360048036038101906103be9190613f3e565b610bd3565b6040516103d09190614643565b60405180910390f35b6103f360048036038101906103ee9190613b1f565b610be7565b005b61040f600480360381019061040a919061394c565b610d5f565b005b610419610e6a565b6040516104269190614980565b60405180910390f35b61044960048036038101906104449190613c87565b610e6f565b005b61046560048036038101906104609190613dc1565b611012565b6040516104729190614643565b60405180910390f35b61048361107d565b604051610490919061465e565b60405180910390f35b6104b360048036038101906104ae9190613bb4565b611084565b005b6104cf60048036038101906104ca9190613ea8565b61109a565b6040516104dc9190614643565b60405180910390f35b6104ff60048036038101906104fa9190613e01565b6110d0565b60405161050c9190614643565b60405180910390f35b61052f600480360381019061052a9190613f3e565b6110f0565b60405161053c9190614980565b60405180910390f35b61055f600480360381019061055a9190613e5b565b61110d565b005b61057b60048036038101906105769190613dc1565b6113eb565b005b61059760048036038101906105929190613979565b61140c565b6040516105a49190614643565b60405180910390f35b6105c760048036038101906105c29190613a88565b6114a0565b005b6105e360048036038101906105de9190613c34565b611541565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064d90614780565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106b982611635565b9050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610779576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b610786816116af565b6107d383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116c3565b505050565b6060600280546107e790614ca0565b80601f016020809104026020016040519081016040528092919081815260200182805461081390614ca0565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b50505050509050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060046000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6108de6116dd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061092457506109238561091e6116dd565b61140c565b5b610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90614820565b60405180910390fd5b61097085858585856116e5565b5050505050565b61098082610892565b610989816116af565b6109938383611a07565b505050565b6000801b6109a5816116af565b600160086000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a1b6116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7f90614960565b60405180910390fd5b610a928282611ae8565b5050565b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda92481565b60608151835114610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af7906148e0565b60405180910390fd5b6000835167ffffffffffffffff811115610b1d57610b1c614e36565b5b604051908082528060200260200182016040528015610b4b5781602001602082028036833780820191505090505b50905060005b8451811015610bc857610b98858281518110610b7057610b6f614e07565b5b6020026020010151858381518110610b8b57610b8a614e07565b5b60200260200101516105e5565b828281518110610bab57610baa614e07565b5b60200260200101818152505080610bc190614d03565b9050610b51565b508091505092915050565b600080610bdf836110f0565b119050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610ca0576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610cca816116af565b610d5786868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611bca565b505050505050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610e18576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b610e25816116af565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600381565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610f28576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda924610f52816116af565b6003821115610f8d576040517ff6ae677b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8686905081101561100957610ff6878783818110610fb157610fb0614e07565b5b9050602002016020810190610fc6919061394c565b84878785818110610fda57610fd9614e07565b5b9050602002013560405180602001604052806000815250611e99565b808061100190614d03565b915050610f90565b50505050505050565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61109661108f6116dd565b838361204a565b5050565b6007818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b60086020528060005260406000206000915054906101000a900460ff1681565b600060036000838152602001908152602001600020549050919050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156111c6576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600554141561120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614940565b60405180910390fd5b600260058190555060078282604051611226929190614494565b908152602001604051809103902060009054906101000a900460ff1615611279576040517f350a0c2600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112fc6112b26112876116dd565b6040516020016112979190614479565b604051602081830303815290604052805190602001206121b7565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506121e7565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611382576040517f516a9da800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160078383604051611396929190614494565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506113df6113c66116dd565b6003600160405180602001604052806000815250611e99565b60016005819055505050565b6113f482610892565b6113fd816116af565b6114078383611ae8565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6114a86116dd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806114ee57506114ed856114e86116dd565b61140c565b5b61152d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611524906147c0565b60405180910390fd5b61153a858585858561220e565b5050505050565b6008600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156115fa576040517f6cb5143200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848611624816116af565b61162f8484846124aa565b50505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116a857506116a7826126f1565b5b9050919050565b6116c0816116bb6116dd565b6127d3565b50565b80600290805190602001906116d9929190613527565b5050565b600033905090565b8151835114611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090614900565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179090614800565b60405180910390fd5b60006117a36116dd565b90506117b3818787878787612870565b60005b84518110156119645760008582815181106117d4576117d3614e07565b5b6020026020010151905060008583815181106117f3576117f2614e07565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90614880565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119499190614af9565b925050819055505050508061195d90614d03565b90506117b6565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119db92919061460c565b60405180910390a46119f1818787878787612a42565b6119ff818787878787612a4a565b505050505050565b611a118282611012565b611ae45760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a896116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611af28282611012565b15611bc65760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b6b6116dd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3190614860565b60405180910390fd5b8051825114611c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7590614900565b60405180910390fd5b6000611c886116dd565b9050611ca881856000868660405180602001604052806000815250612870565b60005b8351811015611df5576000848281518110611cc957611cc8614e07565b5b602002602001015190506000848381518110611ce857611ce7614e07565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d80906147a0565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611ded90614d03565b915050611cab565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e6d92919061460c565b60405180910390a4611e9381856000868660405180602001604052806000815250612a42565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614920565b60405180910390fd5b6000611f136116dd565b90506000611f2085612c31565b90506000611f2d85612c31565b9050611f3e83600089858589612870565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f9d9190614af9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161201b92919061499b565b60405180910390a461203283600089858589612a42565b61204183600089898989612cab565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b0906148c0565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121aa9190614643565b60405180910390a3505050565b6000816040516020016121ca91906144ad565b604051602081830303815290604052805190602001209050919050565b60008060006121f68585612e92565b9150915061220381612f15565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561227e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227590614800565b60405180910390fd5b60006122886116dd565b9050600061229585612c31565b905060006122a285612c31565b90506122b2838989858589612870565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234090614880565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fe9190614af9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161247b92919061499b565b60405180910390a4612491848a8a86868a612a42565b61249f848a8a8a8a8a612cab565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561251a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251190614860565b60405180910390fd5b60006125246116dd565b9050600061253184612c31565b9050600061253e84612c31565b905061255e83876000858560405180602001604052806000815250612870565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156125f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ec906147a0565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126c292919061499b565b60405180910390a46126e884886000868660405180602001604052806000815250612a42565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127bc57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127cc57506127cb826130ea565b5b9050919050565b6127dd8282611012565b61286c576128028173ffffffffffffffffffffffffffffffffffffffff166014613154565b6128108360001c6020613154565b6040516020016128219291906144d3565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286391906146be565b60405180910390fd5b5050565b61287e868686868686613390565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156129305760005b835181101561292e578281815181106128d2576128d1614e07565b5b6020026020010151600360008684815181106128f1576128f0614e07565b5b6020026020010151815260200190815260200160002060008282546129169190614af9565b925050819055508061292790614d03565b90506128b6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a3a5760005b8351811015612a3857600084828151811061298657612985614e07565b5b6020026020010151905060008483815181106129a5576129a4614e07565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a01906148a0565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612a3190614d03565b9050612968565b505b505050505050565b505050505050565b612a698473ffffffffffffffffffffffffffffffffffffffff16613398565b15612c29578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612aaf959493929190614528565b602060405180830381600087803b158015612ac957600080fd5b505af1925050508015612afa57506040513d601f19601f82011682018060405250810190612af79190613e2e565b60015b612ba057612b06614e65565b806308c379a01415612b635750612b1b61552e565b80612b265750612b65565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a91906146be565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9790614700565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1e90614740565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612c5057612c4f614e36565b5b604051908082528060200260200182016040528015612c7e5781602001602082028036833780820191505090505b5090508281600081518110612c9657612c95614e07565b5b60200260200101818152505080915050919050565b612cca8473ffffffffffffffffffffffffffffffffffffffff16613398565b15612e8a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612d10959493929190614590565b602060405180830381600087803b158015612d2a57600080fd5b505af1925050508015612d5b57506040513d601f19601f82011682018060405250810190612d589190613e2e565b60015b612e0157612d67614e65565b806308c379a01415612dc45750612d7c61552e565b80612d875750612dc6565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbb91906146be565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df890614700565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7f90614740565b60405180910390fd5b505b505050505050565b600080604183511415612ed45760008060006020860151925060408601519150606086015160001a9050612ec8878285856133bb565b94509450505050612f0e565b604083511415612f05576000806020850151915060408501519050612efa8683836134c8565b935093505050612f0e565b60006002915091505b9250929050565b60006004811115612f2957612f28614da9565b5b816004811115612f3c57612f3b614da9565b5b1415612f47576130e7565b60016004811115612f5b57612f5a614da9565b5b816004811115612f6e57612f6d614da9565b5b1415612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906146e0565b60405180910390fd5b60026004811115612fc357612fc2614da9565b5b816004811115612fd657612fd5614da9565b5b1415613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300e90614760565b60405180910390fd5b6003600481111561302b5761302a614da9565b5b81600481111561303e5761303d614da9565b5b141561307f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613076906147e0565b60405180910390fd5b60048081111561309257613091614da9565b5b8160048111156130a5576130a4614da9565b5b14156130e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130dd90614840565b60405180910390fd5b5b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026131679190614b4f565b6131719190614af9565b67ffffffffffffffff81111561318a57613189614e36565b5b6040519080825280601f01601f1916602001820160405280156131bc5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131f4576131f3614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061325857613257614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026132989190614b4f565b6132a29190614af9565b90505b6001811115613342577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132e4576132e3614e07565b5b1a60f81b8282815181106132fb576132fa614e07565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061333b90614c76565b90506132a5565b5060008414613386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337d90614720565b60405180910390fd5b8091505092915050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156133f65760006003915091506134bf565b601b8560ff161415801561340e5750601c8560ff1614155b156134205760006004915091506134bf565b6000600187878787604051600081526020016040526040516134459493929190614679565b6020604051602081039080840390855afa158015613467573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156134b6576000600192509250506134bf565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61350b9190614af9565b9050613519878288856133bb565b935093505050935093915050565b82805461353390614ca0565b90600052602060002090601f016020900481019282613555576000855561359c565b82601f1061356e57805160ff191683800117855561359c565b8280016001018555821561359c579182015b8281111561359b578251825591602001919060010190613580565b5b5090506135a991906135ad565b5090565b5b808211156135c65760008160009055506001016135ae565b5090565b60006135dd6135d8846149e9565b6149c4565b90508083825260208201905082856020860282011115613600576135ff614e91565b5b60005b85811015613630578161361688826136ec565b845260208401935060208301925050600181019050613603565b5050509392505050565b600061364d61364884614a15565b6149c4565b905080838252602082019050828560208602820111156136705761366f614e91565b5b60005b858110156136a057816136868882613937565b845260208401935060208301925050600181019050613673565b5050509392505050565b60006136bd6136b884614a41565b6149c4565b9050828152602081018484840111156136d9576136d8614e96565b5b6136e4848285614c34565b509392505050565b6000813590506136fb816155c4565b92915050565b60008083601f84011261371757613716614e8c565b5b8235905067ffffffffffffffff81111561373457613733614e87565b5b6020830191508360208202830111156137505761374f614e91565b5b9250929050565b600082601f83011261376c5761376b614e8c565b5b813561377c8482602086016135ca565b91505092915050565b60008083601f84011261379b5761379a614e8c565b5b8235905067ffffffffffffffff8111156137b8576137b7614e87565b5b6020830191508360208202830111156137d4576137d3614e91565b5b9250929050565b600082601f8301126137f0576137ef614e8c565b5b813561380084826020860161363a565b91505092915050565b600081359050613818816155db565b92915050565b60008135905061382d816155f2565b92915050565b60008135905061384281615609565b92915050565b60008151905061385781615609565b92915050565b60008083601f84011261387357613872614e8c565b5b8235905067ffffffffffffffff8111156138905761388f614e87565b5b6020830191508360018202830111156138ac576138ab614e91565b5b9250929050565b600082601f8301126138c8576138c7614e8c565b5b81356138d88482602086016136aa565b91505092915050565b60008083601f8401126138f7576138f6614e8c565b5b8235905067ffffffffffffffff81111561391457613913614e87565b5b6020830191508360018202830111156139305761392f614e91565b5b9250929050565b60008135905061394681615620565b92915050565b60006020828403121561396257613961614ea0565b5b6000613970848285016136ec565b91505092915050565b600080604083850312156139905761398f614ea0565b5b600061399e858286016136ec565b92505060206139af858286016136ec565b9150509250929050565b600080600080600060a086880312156139d5576139d4614ea0565b5b60006139e3888289016136ec565b95505060206139f4888289016136ec565b945050604086013567ffffffffffffffff811115613a1557613a14614e9b565b5b613a21888289016137db565b935050606086013567ffffffffffffffff811115613a4257613a41614e9b565b5b613a4e888289016137db565b925050608086013567ffffffffffffffff811115613a6f57613a6e614e9b565b5b613a7b888289016138b3565b9150509295509295909350565b600080600080600060a08688031215613aa457613aa3614ea0565b5b6000613ab2888289016136ec565b9550506020613ac3888289016136ec565b9450506040613ad488828901613937565b9350506060613ae588828901613937565b925050608086013567ffffffffffffffff811115613b0657613b05614e9b565b5b613b12888289016138b3565b9150509295509295909350565b600080600080600060608688031215613b3b57613b3a614ea0565b5b6000613b49888289016136ec565b955050602086013567ffffffffffffffff811115613b6a57613b69614e9b565b5b613b7688828901613785565b9450945050604086013567ffffffffffffffff811115613b9957613b98614e9b565b5b613ba588828901613785565b92509250509295509295909350565b60008060408385031215613bcb57613bca614ea0565b5b6000613bd9858286016136ec565b9250506020613bea85828601613809565b9150509250929050565b60008060408385031215613c0b57613c0a614ea0565b5b6000613c19858286016136ec565b9250506020613c2a85828601613937565b9150509250929050565b600080600060608486031215613c4d57613c4c614ea0565b5b6000613c5b868287016136ec565b9350506020613c6c86828701613937565b9250506040613c7d86828701613937565b9150509250925092565b600080600080600060608688031215613ca357613ca2614ea0565b5b600086013567ffffffffffffffff811115613cc157613cc0614e9b565b5b613ccd88828901613701565b9550955050602086013567ffffffffffffffff811115613cf057613cef614e9b565b5b613cfc88828901613785565b93509350506040613d0f88828901613937565b9150509295509295909350565b60008060408385031215613d3357613d32614ea0565b5b600083013567ffffffffffffffff811115613d5157613d50614e9b565b5b613d5d85828601613757565b925050602083013567ffffffffffffffff811115613d7e57613d7d614e9b565b5b613d8a858286016137db565b9150509250929050565b600060208284031215613daa57613da9614ea0565b5b6000613db88482850161381e565b91505092915050565b60008060408385031215613dd857613dd7614ea0565b5b6000613de68582860161381e565b9250506020613df7858286016136ec565b9150509250929050565b600060208284031215613e1757613e16614ea0565b5b6000613e2584828501613833565b91505092915050565b600060208284031215613e4457613e43614ea0565b5b6000613e5284828501613848565b91505092915050565b60008060208385031215613e7257613e71614ea0565b5b600083013567ffffffffffffffff811115613e9057613e8f614e9b565b5b613e9c8582860161385d565b92509250509250929050565b600060208284031215613ebe57613ebd614ea0565b5b600082013567ffffffffffffffff811115613edc57613edb614e9b565b5b613ee8848285016138b3565b91505092915050565b60008060208385031215613f0857613f07614ea0565b5b600083013567ffffffffffffffff811115613f2657613f25614e9b565b5b613f32858286016138e1565b92509250509250929050565b600060208284031215613f5457613f53614ea0565b5b6000613f6284828501613937565b91505092915050565b6000613f77838361444c565b60208301905092915050565b613f8c81614ba9565b82525050565b613fa3613f9e82614ba9565b614d4c565b82525050565b6000613fb482614a82565b613fbe8185614ab0565b9350613fc983614a72565b8060005b83811015613ffa578151613fe18882613f6b565b9750613fec83614aa3565b925050600181019050613fcd565b5085935050505092915050565b61401081614bbb565b82525050565b61401f81614bc7565b82525050565b61403661403182614bc7565b614d5e565b82525050565b60006140488385614ad2565b9350614055838584614c34565b82840190509392505050565b600061406c82614a8d565b6140768185614ac1565b9350614086818560208601614c43565b61408f81614ea5565b840191505092915050565b60006140a582614a98565b6140af8185614add565b93506140bf818560208601614c43565b6140c881614ea5565b840191505092915050565b60006140de82614a98565b6140e88185614aee565b93506140f8818560208601614c43565b80840191505092915050565b6000614111601883614add565b915061411c82614ed0565b602082019050919050565b6000614134603483614add565b915061413f82614ef9565b604082019050919050565b6000614157602083614add565b915061416282614f48565b602082019050919050565b600061417a602883614add565b915061418582614f71565b604082019050919050565b600061419d601f83614add565b91506141a882614fc0565b602082019050919050565b60006141c0601c83614aee565b91506141cb82614fe9565b601c82019050919050565b60006141e3602b83614add565b91506141ee82615012565b604082019050919050565b6000614206602483614add565b915061421182615061565b604082019050919050565b6000614229602983614add565b9150614234826150b0565b604082019050919050565b600061424c602283614add565b9150614257826150ff565b604082019050919050565b600061426f602583614add565b915061427a8261514e565b604082019050919050565b6000614292603283614add565b915061429d8261519d565b604082019050919050565b60006142b5602283614add565b91506142c0826151ec565b604082019050919050565b60006142d8602383614add565b91506142e38261523b565b604082019050919050565b60006142fb602a83614add565b91506143068261528a565b604082019050919050565b600061431e602883614add565b9150614329826152d9565b604082019050919050565b6000614341601783614aee565b915061434c82615328565b601782019050919050565b6000614364602983614add565b915061436f82615351565b604082019050919050565b6000614387602983614add565b9150614392826153a0565b604082019050919050565b60006143aa602883614add565b91506143b5826153ef565b604082019050919050565b60006143cd602183614add565b91506143d88261543e565b604082019050919050565b60006143f0601f83614add565b91506143fb8261548d565b602082019050919050565b6000614413601183614aee565b915061441e826154b6565b601182019050919050565b6000614436602f83614add565b9150614441826154df565b604082019050919050565b61445581614c1d565b82525050565b61446481614c1d565b82525050565b61447381614c27565b82525050565b60006144858284613f92565b60148201915081905092915050565b60006144a182848661403c565b91508190509392505050565b60006144b8826141b3565b91506144c48284614025565b60208201915081905092915050565b60006144de82614334565b91506144ea82856140d3565b91506144f582614406565b915061450182846140d3565b91508190509392505050565b60006020820190506145226000830184613f83565b92915050565b600060a08201905061453d6000830188613f83565b61454a6020830187613f83565b818103604083015261455c8186613fa9565b905081810360608301526145708185613fa9565b905081810360808301526145848184614061565b90509695505050505050565b600060a0820190506145a56000830188613f83565b6145b26020830187613f83565b6145bf604083018661445b565b6145cc606083018561445b565b81810360808301526145de8184614061565b90509695505050505050565b600060208201905081810360008301526146048184613fa9565b905092915050565b600060408201905081810360008301526146268185613fa9565b9050818103602083015261463a8184613fa9565b90509392505050565b60006020820190506146586000830184614007565b92915050565b60006020820190506146736000830184614016565b92915050565b600060808201905061468e6000830187614016565b61469b602083018661446a565b6146a86040830185614016565b6146b56060830184614016565b95945050505050565b600060208201905081810360008301526146d8818461409a565b905092915050565b600060208201905081810360008301526146f981614104565b9050919050565b6000602082019050818103600083015261471981614127565b9050919050565b600060208201905081810360008301526147398161414a565b9050919050565b600060208201905081810360008301526147598161416d565b9050919050565b6000602082019050818103600083015261477981614190565b9050919050565b60006020820190508181036000830152614799816141d6565b9050919050565b600060208201905081810360008301526147b9816141f9565b9050919050565b600060208201905081810360008301526147d98161421c565b9050919050565b600060208201905081810360008301526147f98161423f565b9050919050565b6000602082019050818103600083015261481981614262565b9050919050565b6000602082019050818103600083015261483981614285565b9050919050565b60006020820190508181036000830152614859816142a8565b9050919050565b60006020820190508181036000830152614879816142cb565b9050919050565b60006020820190508181036000830152614899816142ee565b9050919050565b600060208201905081810360008301526148b981614311565b9050919050565b600060208201905081810360008301526148d981614357565b9050919050565b600060208201905081810360008301526148f98161437a565b9050919050565b600060208201905081810360008301526149198161439d565b9050919050565b60006020820190508181036000830152614939816143c0565b9050919050565b60006020820190508181036000830152614959816143e3565b9050919050565b6000602082019050818103600083015261497981614429565b9050919050565b6000602082019050614995600083018461445b565b92915050565b60006040820190506149b0600083018561445b565b6149bd602083018461445b565b9392505050565b60006149ce6149df565b90506149da8282614cd2565b919050565b6000604051905090565b600067ffffffffffffffff821115614a0457614a03614e36565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a3057614a2f614e36565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a5c57614a5b614e36565b5b614a6582614ea5565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b0482614c1d565b9150614b0f83614c1d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b4457614b43614d7a565b5b828201905092915050565b6000614b5a82614c1d565b9150614b6583614c1d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b9e57614b9d614d7a565b5b828202905092915050565b6000614bb482614bfd565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614c61578082015181840152602081019050614c46565b83811115614c70576000848401525b50505050565b6000614c8182614c1d565b91506000821415614c9557614c94614d7a565b5b600182039050919050565b60006002820490506001821680614cb857607f821691505b60208210811415614ccc57614ccb614dd8565b5b50919050565b614cdb82614ea5565b810181811067ffffffffffffffff82111715614cfa57614cf9614e36565b5b80604052505050565b6000614d0e82614c1d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d4157614d40614d7a565b5b600182019050919050565b6000614d5782614d68565b9050919050565b6000819050919050565b6000614d7382614eb6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614e845760046000803e614e81600051614ec3565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d101561553e576155c1565b6155466149df565b60043d036004823e80513d602482011167ffffffffffffffff8211171561556e5750506155c1565b808201805167ffffffffffffffff81111561558c57505050506155c1565b80602083010160043d0385018111156155a95750505050506155c1565b6155b882602001850186614cd2565b82955050505050505b90565b6155cd81614ba9565b81146155d857600080fd5b50565b6155e481614bbb565b81146155ef57600080fd5b50565b6155fb81614bc7565b811461560657600080fd5b50565b61561281614bd1565b811461561d57600080fd5b50565b61562981614c1d565b811461563457600080fd5b5056fea2646970667358221220307268513a92926e8b9f2e3ce6bf5753ae0c3540c3a1221d4abf26b031f1c0bb64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f75642f697066732f516d6135557633397369516e67727578526770654a5365676b5a38324a5761346e386a534b5347656e656d42716f2f7b69647d00000000000000
-----Decoded View---------------
Arg [0] : uri (string): https://augminted.mypinata.cloud/ipfs/Qma5Uv39siQngruxRgpeJSegkZ82JWa4n8jSKSGenemBqo/{id}
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [2] : 68747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f7564
Arg [3] : 2f697066732f516d6135557633397369516e67727578526770654a5365676b5a
Arg [4] : 38324a5761346e386a534b5347656e656d42716f2f7b69647d00000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.