Source Code
Overview
ETH Balance
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
Contract Name:
Erc1155Faucet
Compiler Version
v0.8.31+commit.fd3a2265
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/[email protected]/access/AccessControlEnumerable.sol"; import "@openzeppelin/[email protected]/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/[email protected]/utils/Context.sol"; import "@openzeppelin/[email protected]/utils/Counters.sol"; contract Erc1155Faucet is Context, AccessControlEnumerable, ERC1155Supply { string internal nftName; string internal nftSymbol; using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; mapping(uint256 => string) internal _uriDict; constructor() ERC1155("https://token-cdn-domain/{id}.json") { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); nftName = "ERC-1155 Faucet"; nftSymbol = "FA1155"; } function mint( address to, uint256 amount, string calldata tokenUri) public virtual { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _mint(to, tokenId, amount, "0x1234"); _uriDict[tokenId] = tokenUri; } function uri(uint256 id) public view virtual override returns (string memory) { return _uriDict[id]; } function name() external view returns (string memory _name) { _name = nftName; } function symbol() external view returns (string memory _symbol) { _symbol = nftSymbol; } function supportsInterface(bytes4 interfaceId) public view override(ERC1155, AccessControlEnumerable) returns (bool) { return ERC1155.supportsInterface(interfaceId) || AccessControlEnumerable.supportsInterface(interfaceId); } function totalSupply() public view returns (uint256) { uint256 result = 0; uint256 maxId = _tokenIdCounter.current(); for(uint256 i = 0; i < maxId; i++) { result = result + totalSupply(i); } return result; } }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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) {
_totalSupply[ids[i]] -= amounts[i];
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)
pragma solidity ^0.8.0;
import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
return _roleMembers[role].at(index);
}
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
return _roleMembers[role].length();
}
/**
* @dev Overload {_grantRole} to track enumerable memberships
*/
function _grantRole(bytes32 role, address account) internal virtual override {
super._grantRole(role, account);
_roleMembers[role].add(account);
}
/**
* @dev Overload {_revokeRole} to track enumerable memberships
*/
function _revokeRole(bytes32 role, address account) internal virtual override {
super._revokeRole(role, account);
_roleMembers[role].remove(account);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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();
_beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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);
_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);
_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();
_beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);
_balances[id][to] += amount;
emit TransferSingle(operator, address(0), to, id, amount);
_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);
_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();
_beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");
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);
}
/**
* @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);
}
/**
* @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 {}
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 v4.4.1 (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) external view returns (address);
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) external view returns (uint256);
}// 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 (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/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/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": {
"runs": 200,
"enabled": false
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"uint256","name":"id","type":"uint256"}],"name":"exists","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"_name","type":"string"}],"stateMutability":"view","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b5060405180606001604052806022815260200161442560229139610038816100e760201b60201c565b506100585f5f1b61004d6100fa60201b60201c565b61010160201b60201c565b6040518060400160405280600f81526020017f4552432d313135352046617563657400000000000000000000000000000000008152506006908161009c9190610593565b506040518060400160405280600681526020017f4641313135350000000000000000000000000000000000000000000000000000815250600790816100e19190610593565b50610662565b80600490816100f69190610593565b5050565b5f33905090565b610111828261011560201b60201c565b5050565b610125828261014d60201b60201c565b6101488160015f8581526020019081526020015f2061023360201b90919060201c565b505050565b61015d828261026660201b60201c565b61022f5760015f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506101d46100fa60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b5f61025e835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6102c960201b60201c565b905092915050565b5f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f6102da838361033660201b60201c565b61032c57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050610330565b5f90505b92915050565b5f5f836001015f8481526020019081526020015f20541415905092915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806103d157607f821691505b6020821081036103e4576103e361038d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026104467fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261040b565b610450868361040b565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61049461048f61048a84610468565b610471565b610468565b9050919050565b5f819050919050565b6104ad8361047a565b6104c16104b98261049b565b848454610417565b825550505050565b5f5f905090565b6104d86104c9565b6104e38184846104a4565b505050565b5b81811015610506576104fb5f826104d0565b6001810190506104e9565b5050565b601f82111561054b5761051c816103ea565b610525846103fc565b81016020851015610534578190505b610548610540856103fc565b8301826104e8565b50505b505050565b5f82821c905092915050565b5f61056b5f1984600802610550565b1980831691505092915050565b5f610583838361055c565b9150826002028217905092915050565b61059c82610356565b67ffffffffffffffff8111156105b5576105b4610360565b5b6105bf82546103ba565b6105ca82828561050a565b5f60209050601f8311600181146105fb575f84156105e9578287015190505b6105f38582610578565b86555061065a565b601f198416610609866103ea565b5f5b828110156106305784890151825560018201915060208501945060208101905061060b565b8683101561064d5784890151610649601f89168261055c565b8355505b6001600288020188555050505b505050505050565b613db68061066f5f395ff3fe608060405234801561000f575f5ffd5b506004361061013f575f3560e01c80639010d07c116100b6578063bd85b0391161007a578063bd85b039146103ab578063ca15c873146103db578063d3fc98641461040b578063d547741f14610427578063e985e9c514610443578063f242432a146104735761013f565b80639010d07c146102f357806391d148541461032357806395d89b4114610353578063a217fddf14610371578063a22cb4651461038f5761013f565b8063248a9ca311610108578063248a9ca31461020f5780632eb2c2d61461023f5780632f2ff15d1461025b57806336568abe146102775780634e1273f4146102935780634f558e79146102c35761013f565b8062fdd58e1461014357806301ffc9a71461017357806306fdde03146101a35780630e89341c146101c157806318160ddd146101f1575b5f5ffd5b61015d60048036038101906101589190612512565b61048f565b60405161016a919061255f565b60405180910390f35b61018d600480360381019061018891906125cd565b610553565b60405161019a9190612612565b60405180910390f35b6101ab610574565b6040516101b8919061269b565b60405180910390f35b6101db60048036038101906101d691906126bb565b610604565b6040516101e8919061269b565b60405180910390f35b6101f96106a5565b604051610206919061255f565b60405180910390f35b61022960048036038101906102249190612719565b6106f0565b6040516102369190612753565b60405180910390f35b6102596004803603810190610254919061295c565b61070c565b005b61027560048036038101906102709190612a27565b6107ad565b005b610291600480360381019061028c9190612a27565b6107d6565b005b6102ad60048036038101906102a89190612b25565b610859565b6040516102ba9190612c52565b60405180910390f35b6102dd60048036038101906102d891906126bb565b61096d565b6040516102ea9190612612565b60405180910390f35b61030d60048036038101906103089190612c72565b610980565b60405161031a9190612cbf565b60405180910390f35b61033d60048036038101906103389190612a27565b6109ac565b60405161034a9190612612565b60405180910390f35b61035b610a0f565b604051610368919061269b565b60405180910390f35b610379610a9f565b6040516103869190612753565b60405180910390f35b6103a960048036038101906103a49190612d02565b610aa5565b005b6103c560048036038101906103c091906126bb565b610abb565b6040516103d2919061255f565b60405180910390f35b6103f560048036038101906103f09190612719565b610ad5565b604051610402919061255f565b60405180910390f35b61042560048036038101906104209190612d99565b610af6565b005b610441600480360381019061043c9190612a27565b610b76565b005b61045d60048036038101906104589190612e0a565b610b9f565b60405161046a9190612612565b60405180910390f35b61048d60048036038101906104889190612e48565b610c2d565b005b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f590612f4b565b60405180910390fd5b60025f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f61055d82610cce565b8061056d575061056c82610daf565b5b9050919050565b60606006805461058390612f96565b80601f01602080910402602001604051908101604052809291908181526020018280546105af90612f96565b80156105fa5780601f106105d1576101008083540402835291602001916105fa565b820191905f5260205f20905b8154815290600101906020018083116105dd57829003601f168201915b5050505050905090565b606060095f8381526020019081526020015f20805461062290612f96565b80601f016020809104026020016040519081016040528092919081815260200182805461064e90612f96565b80156106995780601f1061067057610100808354040283529160200191610699565b820191905f5260205f20905b81548152906001019060200180831161067c57829003601f168201915b50505050509050919050565b5f5f5f90505f6106b56008610e28565b90505f5f90505b818110156106e7576106cd81610abb565b836106d89190612ff3565b925080806001019150506106bc565b50819250505090565b5f5f5f8381526020019081526020015f20600101549050919050565b610714610e34565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061075a575061075985610754610e34565b610b9f565b5b610799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079090613096565b60405180910390fd5b6107a68585858585610e3b565b5050505050565b6107b6826106f0565b6107c7816107c2610e34565b61113b565b6107d183836111d7565b505050565b6107de610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461084b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084290613124565b60405180910390fd5b6108558282611209565b5050565b6060815183511461089f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610896906131b2565b60405180910390fd5b5f835167ffffffffffffffff8111156108bb576108ba612770565b5b6040519080825280602002602001820160405280156108e95781602001602082028036833780820191505090505b5090505f5f90505b8451811015610962576109388582815181106109105761090f6131d0565b5b602002602001015185838151811061092b5761092a6131d0565b5b602002602001015161048f565b82828151811061094b5761094a6131d0565b5b6020026020010181815250508060010190506108f1565b508091505092915050565b5f5f61097883610abb565b119050919050565b5f6109a48260015f8681526020019081526020015f2061123b90919063ffffffff16565b905092915050565b5f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060078054610a1e90612f96565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4a90612f96565b8015610a955780601f10610a6c57610100808354040283529160200191610a95565b820191905f5260205f20905b815481529060010190602001808311610a7857829003601f168201915b5050505050905090565b5f5f1b81565b610ab7610ab0610e34565b8383611252565b5050565b5f60055f8381526020019081526020015f20549050919050565b5f610aef60015f8481526020019081526020015f206113b9565b9050919050565b5f610b016008610e28565b9050610b0d60086113cc565b610b4e8582866040518060400160405280600681526020017f30783132333400000000000000000000000000000000000000000000000000008152506113e0565b828260095f8481526020019081526020015f209182610b6e9291906133a7565b505050505050565b610b7f826106f0565b610b9081610b8b610e34565b61113b565b610b9a8383611209565b505050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b610c35610e34565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c7b5750610c7a85610c75610e34565b610b9f565b5b610cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb1906134e4565b60405180910390fd5b610cc7858585858561156c565b5050505050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d9857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610da85750610da782610daf565b5b9050919050565b5f7f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e215750610e20826117e0565b5b9050919050565b5f815f01549050919050565b5f33905090565b8151835114610e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7690613572565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490613600565b60405180910390fd5b5f610ef6610e34565b9050610f06818787878787611859565b5f5f90505b84518110156110a6575f858281518110610f2857610f276131d0565b5b602002602001015190505f858381518110610f4657610f456131d0565b5b602002602001015190505f60025f8481526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fda9061368e565b60405180910390fd5b81810360025f8581526020019081526020015f205f8c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f8581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546110919190612ff3565b92505081905550505050806001019050610f0b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161111d9291906136ac565b60405180910390a46111338187878787876119c1565b505050505050565b61114582826109ac565b6111d35761116a8173ffffffffffffffffffffffffffffffffffffffff166014611b97565b611177835f1c6020611b97565b6040516020016111889291906137af565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca919061269b565b60405180910390fd5b5050565b6111e18282611dcc565b6112048160015f8581526020019081526020015f20611ea690919063ffffffff16565b505050565b6112138282611ed3565b6112368160015f8581526020019081526020015f20611fad90919063ffffffff16565b505050565b5f611248835f0183611fda565b5f1c905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b790613858565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ac9190612612565b60405180910390a3505050565b5f6113c5825f01612001565b9050919050565b6001815f015f828254019250508190555050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361144e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611445906138e6565b60405180910390fd5b5f611457610e34565b9050611477815f8761146888612010565b61147188612010565b87611859565b8260025f8681526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114d29190612ff3565b925050819055508473ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161154f929190613904565b60405180910390a4611565815f87878787612088565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190613600565b60405180910390fd5b5f6115e3610e34565b90506116038187876115f488612010565b6115fd88612010565b87611859565b5f60025f8681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d9061368e565b60405180910390fd5b83810360025f8781526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508360025f8781526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546117449190612ff3565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516117c1929190613904565b60405180910390a46117d7828888888888612088565b50505050505050565b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061185257506118518261225e565b5b9050919050565b6118678686868686866122c7565b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611910575f5f90505b835181101561190e578281815181106118bb576118ba6131d0565b5b602002602001015160055f8684815181106118d9576118d86131d0565b5b602002602001015181526020019081526020015f205f8282546118fc9190612ff3565b9250508190555080600101905061189f565b505b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119b9575f5f90505b83518110156119b757828181518110611964576119636131d0565b5b602002602001015160055f868481518110611982576119816131d0565b5b602002602001015181526020019081526020015f205f8282546119a5919061392b565b92505081905550806001019050611948565b505b505050505050565b6119e08473ffffffffffffffffffffffffffffffffffffffff166122cf565b15611b8f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611a269594939291906139b0565b6020604051808303815f875af1925050508015611a6157506040513d601f19601f82011682018060405250810190611a5e9190613a2a565b60015b611b0657611a6d613a61565b806308c379a003611ac95750611a81613a80565b80611a8c5750611acb565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0919061269b565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afd90613b7f565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490613c0d565b60405180910390fd5b505b505050505050565b60605f6002836002611ba99190613c2b565b611bb39190612ff3565b67ffffffffffffffff811115611bcc57611bcb612770565b5b6040519080825280601f01601f191660200182016040528015611bfe5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110611c3557611c346131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611c9857611c976131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f6001846002611cd69190613c2b565b611ce09190612ff3565b90505b6001811115611d7f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611d2257611d216131d0565b5b1a60f81b828281518110611d3957611d386131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600485901c945080611d7890613c6c565b9050611ce3565b505f8414611dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db990613cdd565b60405180910390fd5b8091505092915050565b611dd682826109ac565b611ea25760015f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611e47610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b5f611ecb835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6122f1565b905092915050565b611edd82826109ac565b15611fa9575f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611f4e610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b5f611fd2835f018373ffffffffffffffffffffffffffffffffffffffff165f1b612358565b905092915050565b5f825f018281548110611ff057611fef6131d0565b5b905f5260205f200154905092915050565b5f815f01805490509050919050565b60605f600167ffffffffffffffff81111561202e5761202d612770565b5b60405190808252806020026020018201604052801561205c5781602001602082028036833780820191505090505b50905082815f81518110612073576120726131d0565b5b60200260200101818152505080915050919050565b6120a78473ffffffffffffffffffffffffffffffffffffffff166122cf565b15612256578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016120ed959493929190613cfb565b6020604051808303815f875af192505050801561212857506040513d601f19601f820116820180604052508101906121259190613a2a565b60015b6121cd57612134613a61565b806308c379a0036121905750612148613a80565b806121535750612192565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612187919061269b565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c490613b7f565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224b90613c0d565b60405180910390fd5b505b505050505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b5f5f8273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f6122fc8383612454565b61234e57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050612352565b5f90505b92915050565b5f5f836001015f8481526020019081526020015f205490505f8114612449575f600182612385919061392b565b90505f6001865f018054905061239b919061392b565b9050818114612401575f865f0182815481106123ba576123b96131d0565b5b905f5260205f200154905080875f0184815481106123db576123da6131d0565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f0180548061241457612413613d53565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f90556001935050505061244e565b5f9150505b92915050565b5f5f836001015f8481526020019081526020015f20541415905092915050565b5f604051905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6124ae82612485565b9050919050565b6124be816124a4565b81146124c8575f5ffd5b50565b5f813590506124d9816124b5565b92915050565b5f819050919050565b6124f1816124df565b81146124fb575f5ffd5b50565b5f8135905061250c816124e8565b92915050565b5f5f604083850312156125285761252761247d565b5b5f612535858286016124cb565b9250506020612546858286016124fe565b9150509250929050565b612559816124df565b82525050565b5f6020820190506125725f830184612550565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125ac81612578565b81146125b6575f5ffd5b50565b5f813590506125c7816125a3565b92915050565b5f602082840312156125e2576125e161247d565b5b5f6125ef848285016125b9565b91505092915050565b5f8115159050919050565b61260c816125f8565b82525050565b5f6020820190506126255f830184612603565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61266d8261262b565b6126778185612635565b9350612687818560208601612645565b61269081612653565b840191505092915050565b5f6020820190508181035f8301526126b38184612663565b905092915050565b5f602082840312156126d0576126cf61247d565b5b5f6126dd848285016124fe565b91505092915050565b5f819050919050565b6126f8816126e6565b8114612702575f5ffd5b50565b5f81359050612713816126ef565b92915050565b5f6020828403121561272e5761272d61247d565b5b5f61273b84828501612705565b91505092915050565b61274d816126e6565b82525050565b5f6020820190506127665f830184612744565b92915050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6127a682612653565b810181811067ffffffffffffffff821117156127c5576127c4612770565b5b80604052505050565b5f6127d7612474565b90506127e3828261279d565b919050565b5f67ffffffffffffffff82111561280257612801612770565b5b602082029050602081019050919050565b5f5ffd5b5f612829612824846127e8565b6127ce565b9050808382526020820190506020840283018581111561284c5761284b612813565b5b835b81811015612875578061286188826124fe565b84526020840193505060208101905061284e565b5050509392505050565b5f82601f8301126128935761289261276c565b5b81356128a3848260208601612817565b91505092915050565b5f5ffd5b5f67ffffffffffffffff8211156128ca576128c9612770565b5b6128d382612653565b9050602081019050919050565b828183375f83830152505050565b5f6129006128fb846128b0565b6127ce565b90508281526020810184848401111561291c5761291b6128ac565b5b6129278482856128e0565b509392505050565b5f82601f8301126129435761294261276c565b5b81356129538482602086016128ee565b91505092915050565b5f5f5f5f5f60a086880312156129755761297461247d565b5b5f612982888289016124cb565b9550506020612993888289016124cb565b945050604086013567ffffffffffffffff8111156129b4576129b3612481565b5b6129c08882890161287f565b935050606086013567ffffffffffffffff8111156129e1576129e0612481565b5b6129ed8882890161287f565b925050608086013567ffffffffffffffff811115612a0e57612a0d612481565b5b612a1a8882890161292f565b9150509295509295909350565b5f5f60408385031215612a3d57612a3c61247d565b5b5f612a4a85828601612705565b9250506020612a5b858286016124cb565b9150509250929050565b5f67ffffffffffffffff821115612a7f57612a7e612770565b5b602082029050602081019050919050565b5f612aa2612a9d84612a65565b6127ce565b90508083825260208201905060208402830185811115612ac557612ac4612813565b5b835b81811015612aee5780612ada88826124cb565b845260208401935050602081019050612ac7565b5050509392505050565b5f82601f830112612b0c57612b0b61276c565b5b8135612b1c848260208601612a90565b91505092915050565b5f5f60408385031215612b3b57612b3a61247d565b5b5f83013567ffffffffffffffff811115612b5857612b57612481565b5b612b6485828601612af8565b925050602083013567ffffffffffffffff811115612b8557612b84612481565b5b612b918582860161287f565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612bcd816124df565b82525050565b5f612bde8383612bc4565b60208301905092915050565b5f602082019050919050565b5f612c0082612b9b565b612c0a8185612ba5565b9350612c1583612bb5565b805f5b83811015612c45578151612c2c8882612bd3565b9750612c3783612bea565b925050600181019050612c18565b5085935050505092915050565b5f6020820190508181035f830152612c6a8184612bf6565b905092915050565b5f5f60408385031215612c8857612c8761247d565b5b5f612c9585828601612705565b9250506020612ca6858286016124fe565b9150509250929050565b612cb9816124a4565b82525050565b5f602082019050612cd25f830184612cb0565b92915050565b612ce1816125f8565b8114612ceb575f5ffd5b50565b5f81359050612cfc81612cd8565b92915050565b5f5f60408385031215612d1857612d1761247d565b5b5f612d25858286016124cb565b9250506020612d3685828601612cee565b9150509250929050565b5f5ffd5b5f5f83601f840112612d5957612d5861276c565b5b8235905067ffffffffffffffff811115612d7657612d75612d40565b5b602083019150836001820283011115612d9257612d91612813565b5b9250929050565b5f5f5f5f60608587031215612db157612db061247d565b5b5f612dbe878288016124cb565b9450506020612dcf878288016124fe565b935050604085013567ffffffffffffffff811115612df057612def612481565b5b612dfc87828801612d44565b925092505092959194509250565b5f5f60408385031215612e2057612e1f61247d565b5b5f612e2d858286016124cb565b9250506020612e3e858286016124cb565b9150509250929050565b5f5f5f5f5f60a08688031215612e6157612e6061247d565b5b5f612e6e888289016124cb565b9550506020612e7f888289016124cb565b9450506040612e90888289016124fe565b9350506060612ea1888289016124fe565b925050608086013567ffffffffffffffff811115612ec257612ec1612481565b5b612ece8882890161292f565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a5f8201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b5f612f35602b83612635565b9150612f4082612edb565b604082019050919050565b5f6020820190508181035f830152612f6281612f29565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612fad57607f821691505b602082108103612fc057612fbf612f69565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612ffd826124df565b9150613008836124df565b92508282019050808211156130205761301f612fc6565b5b92915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f74205f8201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b5f613080603283612635565b915061308b82613026565b604082019050919050565b5f6020820190508181035f8301526130ad81613074565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e63655f8201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b5f61310e602f83612635565b9150613119826130b4565b604082019050919050565b5f6020820190508181035f83015261313b81613102565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e6774685f8201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b5f61319c602983612635565b91506131a782613142565b604082019050919050565b5f6020820190508181035f8301526131c981613190565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026132637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613228565b61326d8683613228565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6132a86132a361329e846124df565b613285565b6124df565b9050919050565b5f819050919050565b6132c18361328e565b6132d56132cd826132af565b848454613234565b825550505050565b5f5f905090565b6132ec6132dd565b6132f78184846132b8565b505050565b5b8181101561331a5761330f5f826132e4565b6001810190506132fd565b5050565b601f82111561335f5761333081613207565b61333984613219565b81016020851015613348578190505b61335c61335485613219565b8301826132fc565b50505b505050565b5f82821c905092915050565b5f61337f5f1984600802613364565b1980831691505092915050565b5f6133978383613370565b9150826002028217905092915050565b6133b183836131fd565b67ffffffffffffffff8111156133ca576133c9612770565b5b6133d48254612f96565b6133df82828561331e565b5f601f83116001811461340c575f84156133fa578287013590505b613404858261338c565b86555061346b565b601f19841661341a86613207565b5f5b828110156134415784890135825560018201915060208501945060208101905061341c565b8683101561345e578489013561345a601f891682613370565b8355505b6001600288020188555050505b50505050505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f725f8201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b5f6134ce602983612635565b91506134d982613474565b604082019050919050565b5f6020820190508181035f8301526134fb816134c2565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e677468205f8201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b5f61355c602883612635565b915061356782613502565b604082019050919050565b5f6020820190508181035f83015261358981613550565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6135ea602583612635565b91506135f582613590565b604082019050919050565b5f6020820190508181035f830152613617816135de565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f5f8201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b5f613678602a83612635565b91506136838261361e565b604082019050919050565b5f6020820190508181035f8301526136a58161366c565b9050919050565b5f6040820190508181035f8301526136c48185612bf6565b905081810360208301526136d88184612bf6565b90509392505050565b5f81905092915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000005f82015250565b5f61371f6017836136e1565b915061372a826136eb565b601782019050919050565b5f61373f8261262b565b61374981856136e1565b9350613759818560208601612645565b80840191505092915050565b7f206973206d697373696e6720726f6c65200000000000000000000000000000005f82015250565b5f6137996011836136e1565b91506137a482613765565b601182019050919050565b5f6137b982613713565b91506137c58285613735565b91506137d08261378d565b91506137dc8284613735565b91508190509392505050565b7f455243313135353a2073657474696e6720617070726f76616c207374617475735f8201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b5f613842602983612635565b915061384d826137e8565b604082019050919050565b5f6020820190508181035f83015261386f81613836565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138d0602183612635565b91506138db82613876565b604082019050919050565b5f6020820190508181035f8301526138fd816138c4565b9050919050565b5f6040820190506139175f830185612550565b6139246020830184612550565b9392505050565b5f613935826124df565b9150613940836124df565b925082820390508181111561395857613957612fc6565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f6139828261395e565b61398c8185613968565b935061399c818560208601612645565b6139a581612653565b840191505092915050565b5f60a0820190506139c35f830188612cb0565b6139d06020830187612cb0565b81810360408301526139e28186612bf6565b905081810360608301526139f68185612bf6565b90508181036080830152613a0a8184613978565b90509695505050505050565b5f81519050613a24816125a3565b92915050565b5f60208284031215613a3f57613a3e61247d565b5b5f613a4c84828501613a16565b91505092915050565b5f8160e01c9050919050565b5f60033d1115613a7d5760045f5f3e613a7a5f51613a55565b90505b90565b5f60443d10613b0c57613a91612474565b60043d036004823e80513d602482011167ffffffffffffffff82111715613ab9575050613b0c565b808201805167ffffffffffffffff811115613ad75750505050613b0c565b80602083010160043d038501811115613af4575050505050613b0c565b613b038260200185018661279d565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e20455243313135355f8201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b5f613b69603483612635565b9150613b7482613b0f565b604082019050919050565b5f6020820190508181035f830152613b9681613b5d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a656374655f8201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b5f613bf7602883612635565b9150613c0282613b9d565b604082019050919050565b5f6020820190508181035f830152613c2481613beb565b9050919050565b5f613c35826124df565b9150613c40836124df565b9250828202613c4e816124df565b91508282048414831517613c6557613c64612fc6565b5b5092915050565b5f613c76826124df565b91505f8203613c8857613c87612fc6565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e745f82015250565b5f613cc7602083612635565b9150613cd282613c93565b602082019050919050565b5f6020820190508181035f830152613cf481613cbb565b9050919050565b5f60a082019050613d0e5f830188612cb0565b613d1b6020830187612cb0565b613d286040830186612550565b613d356060830185612550565b8181036080830152613d478184613978565b90509695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122048728d05f312a33113609e66a4218c3b6721cb99dcec6fc79e7cf050a512c2e064736f6c634300081f003368747470733a2f2f746f6b656e2d63646e2d646f6d61696e2f7b69647d2e6a736f6e
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061013f575f3560e01c80639010d07c116100b6578063bd85b0391161007a578063bd85b039146103ab578063ca15c873146103db578063d3fc98641461040b578063d547741f14610427578063e985e9c514610443578063f242432a146104735761013f565b80639010d07c146102f357806391d148541461032357806395d89b4114610353578063a217fddf14610371578063a22cb4651461038f5761013f565b8063248a9ca311610108578063248a9ca31461020f5780632eb2c2d61461023f5780632f2ff15d1461025b57806336568abe146102775780634e1273f4146102935780634f558e79146102c35761013f565b8062fdd58e1461014357806301ffc9a71461017357806306fdde03146101a35780630e89341c146101c157806318160ddd146101f1575b5f5ffd5b61015d60048036038101906101589190612512565b61048f565b60405161016a919061255f565b60405180910390f35b61018d600480360381019061018891906125cd565b610553565b60405161019a9190612612565b60405180910390f35b6101ab610574565b6040516101b8919061269b565b60405180910390f35b6101db60048036038101906101d691906126bb565b610604565b6040516101e8919061269b565b60405180910390f35b6101f96106a5565b604051610206919061255f565b60405180910390f35b61022960048036038101906102249190612719565b6106f0565b6040516102369190612753565b60405180910390f35b6102596004803603810190610254919061295c565b61070c565b005b61027560048036038101906102709190612a27565b6107ad565b005b610291600480360381019061028c9190612a27565b6107d6565b005b6102ad60048036038101906102a89190612b25565b610859565b6040516102ba9190612c52565b60405180910390f35b6102dd60048036038101906102d891906126bb565b61096d565b6040516102ea9190612612565b60405180910390f35b61030d60048036038101906103089190612c72565b610980565b60405161031a9190612cbf565b60405180910390f35b61033d60048036038101906103389190612a27565b6109ac565b60405161034a9190612612565b60405180910390f35b61035b610a0f565b604051610368919061269b565b60405180910390f35b610379610a9f565b6040516103869190612753565b60405180910390f35b6103a960048036038101906103a49190612d02565b610aa5565b005b6103c560048036038101906103c091906126bb565b610abb565b6040516103d2919061255f565b60405180910390f35b6103f560048036038101906103f09190612719565b610ad5565b604051610402919061255f565b60405180910390f35b61042560048036038101906104209190612d99565b610af6565b005b610441600480360381019061043c9190612a27565b610b76565b005b61045d60048036038101906104589190612e0a565b610b9f565b60405161046a9190612612565b60405180910390f35b61048d60048036038101906104889190612e48565b610c2d565b005b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f590612f4b565b60405180910390fd5b60025f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f61055d82610cce565b8061056d575061056c82610daf565b5b9050919050565b60606006805461058390612f96565b80601f01602080910402602001604051908101604052809291908181526020018280546105af90612f96565b80156105fa5780601f106105d1576101008083540402835291602001916105fa565b820191905f5260205f20905b8154815290600101906020018083116105dd57829003601f168201915b5050505050905090565b606060095f8381526020019081526020015f20805461062290612f96565b80601f016020809104026020016040519081016040528092919081815260200182805461064e90612f96565b80156106995780601f1061067057610100808354040283529160200191610699565b820191905f5260205f20905b81548152906001019060200180831161067c57829003601f168201915b50505050509050919050565b5f5f5f90505f6106b56008610e28565b90505f5f90505b818110156106e7576106cd81610abb565b836106d89190612ff3565b925080806001019150506106bc565b50819250505090565b5f5f5f8381526020019081526020015f20600101549050919050565b610714610e34565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061075a575061075985610754610e34565b610b9f565b5b610799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079090613096565b60405180910390fd5b6107a68585858585610e3b565b5050505050565b6107b6826106f0565b6107c7816107c2610e34565b61113b565b6107d183836111d7565b505050565b6107de610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461084b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084290613124565b60405180910390fd5b6108558282611209565b5050565b6060815183511461089f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610896906131b2565b60405180910390fd5b5f835167ffffffffffffffff8111156108bb576108ba612770565b5b6040519080825280602002602001820160405280156108e95781602001602082028036833780820191505090505b5090505f5f90505b8451811015610962576109388582815181106109105761090f6131d0565b5b602002602001015185838151811061092b5761092a6131d0565b5b602002602001015161048f565b82828151811061094b5761094a6131d0565b5b6020026020010181815250508060010190506108f1565b508091505092915050565b5f5f61097883610abb565b119050919050565b5f6109a48260015f8681526020019081526020015f2061123b90919063ffffffff16565b905092915050565b5f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060078054610a1e90612f96565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4a90612f96565b8015610a955780601f10610a6c57610100808354040283529160200191610a95565b820191905f5260205f20905b815481529060010190602001808311610a7857829003601f168201915b5050505050905090565b5f5f1b81565b610ab7610ab0610e34565b8383611252565b5050565b5f60055f8381526020019081526020015f20549050919050565b5f610aef60015f8481526020019081526020015f206113b9565b9050919050565b5f610b016008610e28565b9050610b0d60086113cc565b610b4e8582866040518060400160405280600681526020017f30783132333400000000000000000000000000000000000000000000000000008152506113e0565b828260095f8481526020019081526020015f209182610b6e9291906133a7565b505050505050565b610b7f826106f0565b610b9081610b8b610e34565b61113b565b610b9a8383611209565b505050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b610c35610e34565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c7b5750610c7a85610c75610e34565b610b9f565b5b610cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb1906134e4565b60405180910390fd5b610cc7858585858561156c565b5050505050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d9857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610da85750610da782610daf565b5b9050919050565b5f7f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e215750610e20826117e0565b5b9050919050565b5f815f01549050919050565b5f33905090565b8151835114610e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7690613572565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490613600565b60405180910390fd5b5f610ef6610e34565b9050610f06818787878787611859565b5f5f90505b84518110156110a6575f858281518110610f2857610f276131d0565b5b602002602001015190505f858381518110610f4657610f456131d0565b5b602002602001015190505f60025f8481526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fda9061368e565b60405180910390fd5b81810360025f8581526020019081526020015f205f8c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f8581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546110919190612ff3565b92505081905550505050806001019050610f0b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161111d9291906136ac565b60405180910390a46111338187878787876119c1565b505050505050565b61114582826109ac565b6111d35761116a8173ffffffffffffffffffffffffffffffffffffffff166014611b97565b611177835f1c6020611b97565b6040516020016111889291906137af565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca919061269b565b60405180910390fd5b5050565b6111e18282611dcc565b6112048160015f8581526020019081526020015f20611ea690919063ffffffff16565b505050565b6112138282611ed3565b6112368160015f8581526020019081526020015f20611fad90919063ffffffff16565b505050565b5f611248835f0183611fda565b5f1c905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b790613858565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ac9190612612565b60405180910390a3505050565b5f6113c5825f01612001565b9050919050565b6001815f015f828254019250508190555050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361144e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611445906138e6565b60405180910390fd5b5f611457610e34565b9050611477815f8761146888612010565b61147188612010565b87611859565b8260025f8681526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114d29190612ff3565b925050819055508473ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161154f929190613904565b60405180910390a4611565815f87878787612088565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190613600565b60405180910390fd5b5f6115e3610e34565b90506116038187876115f488612010565b6115fd88612010565b87611859565b5f60025f8681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d9061368e565b60405180910390fd5b83810360025f8781526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508360025f8781526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546117449190612ff3565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516117c1929190613904565b60405180910390a46117d7828888888888612088565b50505050505050565b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061185257506118518261225e565b5b9050919050565b6118678686868686866122c7565b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611910575f5f90505b835181101561190e578281815181106118bb576118ba6131d0565b5b602002602001015160055f8684815181106118d9576118d86131d0565b5b602002602001015181526020019081526020015f205f8282546118fc9190612ff3565b9250508190555080600101905061189f565b505b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119b9575f5f90505b83518110156119b757828181518110611964576119636131d0565b5b602002602001015160055f868481518110611982576119816131d0565b5b602002602001015181526020019081526020015f205f8282546119a5919061392b565b92505081905550806001019050611948565b505b505050505050565b6119e08473ffffffffffffffffffffffffffffffffffffffff166122cf565b15611b8f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611a269594939291906139b0565b6020604051808303815f875af1925050508015611a6157506040513d601f19601f82011682018060405250810190611a5e9190613a2a565b60015b611b0657611a6d613a61565b806308c379a003611ac95750611a81613a80565b80611a8c5750611acb565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0919061269b565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afd90613b7f565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490613c0d565b60405180910390fd5b505b505050505050565b60605f6002836002611ba99190613c2b565b611bb39190612ff3565b67ffffffffffffffff811115611bcc57611bcb612770565b5b6040519080825280601f01601f191660200182016040528015611bfe5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110611c3557611c346131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611c9857611c976131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f6001846002611cd69190613c2b565b611ce09190612ff3565b90505b6001811115611d7f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611d2257611d216131d0565b5b1a60f81b828281518110611d3957611d386131d0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600485901c945080611d7890613c6c565b9050611ce3565b505f8414611dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db990613cdd565b60405180910390fd5b8091505092915050565b611dd682826109ac565b611ea25760015f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611e47610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b5f611ecb835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6122f1565b905092915050565b611edd82826109ac565b15611fa9575f5f5f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611f4e610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b5f611fd2835f018373ffffffffffffffffffffffffffffffffffffffff165f1b612358565b905092915050565b5f825f018281548110611ff057611fef6131d0565b5b905f5260205f200154905092915050565b5f815f01805490509050919050565b60605f600167ffffffffffffffff81111561202e5761202d612770565b5b60405190808252806020026020018201604052801561205c5781602001602082028036833780820191505090505b50905082815f81518110612073576120726131d0565b5b60200260200101818152505080915050919050565b6120a78473ffffffffffffffffffffffffffffffffffffffff166122cf565b15612256578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016120ed959493929190613cfb565b6020604051808303815f875af192505050801561212857506040513d601f19601f820116820180604052508101906121259190613a2a565b60015b6121cd57612134613a61565b806308c379a0036121905750612148613a80565b806121535750612192565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612187919061269b565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c490613b7f565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224b90613c0d565b60405180910390fd5b505b505050505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b5f5f8273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f6122fc8383612454565b61234e57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050612352565b5f90505b92915050565b5f5f836001015f8481526020019081526020015f205490505f8114612449575f600182612385919061392b565b90505f6001865f018054905061239b919061392b565b9050818114612401575f865f0182815481106123ba576123b96131d0565b5b905f5260205f200154905080875f0184815481106123db576123da6131d0565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f0180548061241457612413613d53565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f90556001935050505061244e565b5f9150505b92915050565b5f5f836001015f8481526020019081526020015f20541415905092915050565b5f604051905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6124ae82612485565b9050919050565b6124be816124a4565b81146124c8575f5ffd5b50565b5f813590506124d9816124b5565b92915050565b5f819050919050565b6124f1816124df565b81146124fb575f5ffd5b50565b5f8135905061250c816124e8565b92915050565b5f5f604083850312156125285761252761247d565b5b5f612535858286016124cb565b9250506020612546858286016124fe565b9150509250929050565b612559816124df565b82525050565b5f6020820190506125725f830184612550565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125ac81612578565b81146125b6575f5ffd5b50565b5f813590506125c7816125a3565b92915050565b5f602082840312156125e2576125e161247d565b5b5f6125ef848285016125b9565b91505092915050565b5f8115159050919050565b61260c816125f8565b82525050565b5f6020820190506126255f830184612603565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61266d8261262b565b6126778185612635565b9350612687818560208601612645565b61269081612653565b840191505092915050565b5f6020820190508181035f8301526126b38184612663565b905092915050565b5f602082840312156126d0576126cf61247d565b5b5f6126dd848285016124fe565b91505092915050565b5f819050919050565b6126f8816126e6565b8114612702575f5ffd5b50565b5f81359050612713816126ef565b92915050565b5f6020828403121561272e5761272d61247d565b5b5f61273b84828501612705565b91505092915050565b61274d816126e6565b82525050565b5f6020820190506127665f830184612744565b92915050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6127a682612653565b810181811067ffffffffffffffff821117156127c5576127c4612770565b5b80604052505050565b5f6127d7612474565b90506127e3828261279d565b919050565b5f67ffffffffffffffff82111561280257612801612770565b5b602082029050602081019050919050565b5f5ffd5b5f612829612824846127e8565b6127ce565b9050808382526020820190506020840283018581111561284c5761284b612813565b5b835b81811015612875578061286188826124fe565b84526020840193505060208101905061284e565b5050509392505050565b5f82601f8301126128935761289261276c565b5b81356128a3848260208601612817565b91505092915050565b5f5ffd5b5f67ffffffffffffffff8211156128ca576128c9612770565b5b6128d382612653565b9050602081019050919050565b828183375f83830152505050565b5f6129006128fb846128b0565b6127ce565b90508281526020810184848401111561291c5761291b6128ac565b5b6129278482856128e0565b509392505050565b5f82601f8301126129435761294261276c565b5b81356129538482602086016128ee565b91505092915050565b5f5f5f5f5f60a086880312156129755761297461247d565b5b5f612982888289016124cb565b9550506020612993888289016124cb565b945050604086013567ffffffffffffffff8111156129b4576129b3612481565b5b6129c08882890161287f565b935050606086013567ffffffffffffffff8111156129e1576129e0612481565b5b6129ed8882890161287f565b925050608086013567ffffffffffffffff811115612a0e57612a0d612481565b5b612a1a8882890161292f565b9150509295509295909350565b5f5f60408385031215612a3d57612a3c61247d565b5b5f612a4a85828601612705565b9250506020612a5b858286016124cb565b9150509250929050565b5f67ffffffffffffffff821115612a7f57612a7e612770565b5b602082029050602081019050919050565b5f612aa2612a9d84612a65565b6127ce565b90508083825260208201905060208402830185811115612ac557612ac4612813565b5b835b81811015612aee5780612ada88826124cb565b845260208401935050602081019050612ac7565b5050509392505050565b5f82601f830112612b0c57612b0b61276c565b5b8135612b1c848260208601612a90565b91505092915050565b5f5f60408385031215612b3b57612b3a61247d565b5b5f83013567ffffffffffffffff811115612b5857612b57612481565b5b612b6485828601612af8565b925050602083013567ffffffffffffffff811115612b8557612b84612481565b5b612b918582860161287f565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612bcd816124df565b82525050565b5f612bde8383612bc4565b60208301905092915050565b5f602082019050919050565b5f612c0082612b9b565b612c0a8185612ba5565b9350612c1583612bb5565b805f5b83811015612c45578151612c2c8882612bd3565b9750612c3783612bea565b925050600181019050612c18565b5085935050505092915050565b5f6020820190508181035f830152612c6a8184612bf6565b905092915050565b5f5f60408385031215612c8857612c8761247d565b5b5f612c9585828601612705565b9250506020612ca6858286016124fe565b9150509250929050565b612cb9816124a4565b82525050565b5f602082019050612cd25f830184612cb0565b92915050565b612ce1816125f8565b8114612ceb575f5ffd5b50565b5f81359050612cfc81612cd8565b92915050565b5f5f60408385031215612d1857612d1761247d565b5b5f612d25858286016124cb565b9250506020612d3685828601612cee565b9150509250929050565b5f5ffd5b5f5f83601f840112612d5957612d5861276c565b5b8235905067ffffffffffffffff811115612d7657612d75612d40565b5b602083019150836001820283011115612d9257612d91612813565b5b9250929050565b5f5f5f5f60608587031215612db157612db061247d565b5b5f612dbe878288016124cb565b9450506020612dcf878288016124fe565b935050604085013567ffffffffffffffff811115612df057612def612481565b5b612dfc87828801612d44565b925092505092959194509250565b5f5f60408385031215612e2057612e1f61247d565b5b5f612e2d858286016124cb565b9250506020612e3e858286016124cb565b9150509250929050565b5f5f5f5f5f60a08688031215612e6157612e6061247d565b5b5f612e6e888289016124cb565b9550506020612e7f888289016124cb565b9450506040612e90888289016124fe565b9350506060612ea1888289016124fe565b925050608086013567ffffffffffffffff811115612ec257612ec1612481565b5b612ece8882890161292f565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a5f8201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b5f612f35602b83612635565b9150612f4082612edb565b604082019050919050565b5f6020820190508181035f830152612f6281612f29565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612fad57607f821691505b602082108103612fc057612fbf612f69565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612ffd826124df565b9150613008836124df565b92508282019050808211156130205761301f612fc6565b5b92915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f74205f8201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b5f613080603283612635565b915061308b82613026565b604082019050919050565b5f6020820190508181035f8301526130ad81613074565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e63655f8201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b5f61310e602f83612635565b9150613119826130b4565b604082019050919050565b5f6020820190508181035f83015261313b81613102565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e6774685f8201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b5f61319c602983612635565b91506131a782613142565b604082019050919050565b5f6020820190508181035f8301526131c981613190565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026132637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613228565b61326d8683613228565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6132a86132a361329e846124df565b613285565b6124df565b9050919050565b5f819050919050565b6132c18361328e565b6132d56132cd826132af565b848454613234565b825550505050565b5f5f905090565b6132ec6132dd565b6132f78184846132b8565b505050565b5b8181101561331a5761330f5f826132e4565b6001810190506132fd565b5050565b601f82111561335f5761333081613207565b61333984613219565b81016020851015613348578190505b61335c61335485613219565b8301826132fc565b50505b505050565b5f82821c905092915050565b5f61337f5f1984600802613364565b1980831691505092915050565b5f6133978383613370565b9150826002028217905092915050565b6133b183836131fd565b67ffffffffffffffff8111156133ca576133c9612770565b5b6133d48254612f96565b6133df82828561331e565b5f601f83116001811461340c575f84156133fa578287013590505b613404858261338c565b86555061346b565b601f19841661341a86613207565b5f5b828110156134415784890135825560018201915060208501945060208101905061341c565b8683101561345e578489013561345a601f891682613370565b8355505b6001600288020188555050505b50505050505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f725f8201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b5f6134ce602983612635565b91506134d982613474565b604082019050919050565b5f6020820190508181035f8301526134fb816134c2565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e677468205f8201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b5f61355c602883612635565b915061356782613502565b604082019050919050565b5f6020820190508181035f83015261358981613550565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6135ea602583612635565b91506135f582613590565b604082019050919050565b5f6020820190508181035f830152613617816135de565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f5f8201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b5f613678602a83612635565b91506136838261361e565b604082019050919050565b5f6020820190508181035f8301526136a58161366c565b9050919050565b5f6040820190508181035f8301526136c48185612bf6565b905081810360208301526136d88184612bf6565b90509392505050565b5f81905092915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000005f82015250565b5f61371f6017836136e1565b915061372a826136eb565b601782019050919050565b5f61373f8261262b565b61374981856136e1565b9350613759818560208601612645565b80840191505092915050565b7f206973206d697373696e6720726f6c65200000000000000000000000000000005f82015250565b5f6137996011836136e1565b91506137a482613765565b601182019050919050565b5f6137b982613713565b91506137c58285613735565b91506137d08261378d565b91506137dc8284613735565b91508190509392505050565b7f455243313135353a2073657474696e6720617070726f76616c207374617475735f8201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b5f613842602983612635565b915061384d826137e8565b604082019050919050565b5f6020820190508181035f83015261386f81613836565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138d0602183612635565b91506138db82613876565b604082019050919050565b5f6020820190508181035f8301526138fd816138c4565b9050919050565b5f6040820190506139175f830185612550565b6139246020830184612550565b9392505050565b5f613935826124df565b9150613940836124df565b925082820390508181111561395857613957612fc6565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f6139828261395e565b61398c8185613968565b935061399c818560208601612645565b6139a581612653565b840191505092915050565b5f60a0820190506139c35f830188612cb0565b6139d06020830187612cb0565b81810360408301526139e28186612bf6565b905081810360608301526139f68185612bf6565b90508181036080830152613a0a8184613978565b90509695505050505050565b5f81519050613a24816125a3565b92915050565b5f60208284031215613a3f57613a3e61247d565b5b5f613a4c84828501613a16565b91505092915050565b5f8160e01c9050919050565b5f60033d1115613a7d5760045f5f3e613a7a5f51613a55565b90505b90565b5f60443d10613b0c57613a91612474565b60043d036004823e80513d602482011167ffffffffffffffff82111715613ab9575050613b0c565b808201805167ffffffffffffffff811115613ad75750505050613b0c565b80602083010160043d038501811115613af4575050505050613b0c565b613b038260200185018661279d565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e20455243313135355f8201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b5f613b69603483612635565b9150613b7482613b0f565b604082019050919050565b5f6020820190508181035f830152613b9681613b5d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a656374655f8201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b5f613bf7602883612635565b9150613c0282613b9d565b604082019050919050565b5f6020820190508181035f830152613c2481613beb565b9050919050565b5f613c35826124df565b9150613c40836124df565b9250828202613c4e816124df565b91508282048414831517613c6557613c64612fc6565b5b5092915050565b5f613c76826124df565b91505f8203613c8857613c87612fc6565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e745f82015250565b5f613cc7602083612635565b9150613cd282613c93565b602082019050919050565b5f6020820190508181035f830152613cf481613cbb565b9050919050565b5f60a082019050613d0e5f830188612cb0565b613d1b6020830187612cb0565b613d286040830186612550565b613d356060830185612550565b8181036080830152613d478184613978565b90509695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122048728d05f312a33113609e66a4218c3b6721cb99dcec6fc79e7cf050a512c2e064736f6c634300081f0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.