ERC-1155
Overview
Max Total Supply
0 AUGMINT
Holders
244
Market
Volume (24H)
0.025 ETH
Min Price (24H)
$81.91 @ 0.025000 ETH
Max Price (24H)
$81.91 @ 0.025000 ETH
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KaijuAugmints
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./KaijuMartRedeemable.sol"; error KaijuAugmints_InvalidTraitId(); error KaijuAugmints_InvalidToken(); error KaijuAugmints_SenderNotTokenOwner(); error KaijuAugmints_SupplyLocked(); /** . :++- *##- +####* -##+ *####- :%######%. -%###* *######: =##########= .######* *#######*-#############*-*#######* *################################* *################################* *################################* *################################* *################################* :*******************************+. .:. *###%*=: .##########+-. +###############=: %##################%+ =###################### -######################++++++++++++++++++=-: =###########################################*: =#############################################. +####%#*+=-:. -#############################################: %############################################################= %############################################################## %##############################################################%=----::. %#######################################################################%: %##########################################+: :+%#######################: *########################################* *####################### -%###################################### %###################### -%###################################% ####################### =###################################- :####################### ....+##################################*. .+######################## +###########################################%*++*%########################## %#########################################################################*. %#######################################################################+ ########################################################################- *#######################################################################- .######################################################################%. :+#################################################################- :=#####################################################:..... :--:.:##############################################+ :: +###############################################%- ####%+-. %##################################################. %#######%*-. :###################################################% %###########%*=*####################################################= %#################################################################### %####################################################################+ %#####################################################################. %#####################################################################% %######################################################################- .+*********************************************************************. * @title Kaiju Augmints * @author Augminted Labs, LLC */ contract KaijuAugmints is ERC1155, Ownable, AccessControl, KaijuMartRedeemable { enum Tokens { GENESIS, BABY, MUTANT, SCIENTIST } event Augment( uint256 indexed traitId, uint256 indexed tokenId, Tokens indexed token ); bytes32 public constant KMART_ROLE = keccak256("KMART_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint256 internal constant _MAX_GENESIS_ID = 3332; string public name; string public symbol; mapping(Tokens => IERC721) public tokenContracts; mapping(uint256 => uint256) public redeemableId; mapping(uint256 => bool[4]) public validFor; mapping(uint256 => bool) public supplyLocked; constructor( string memory _name, string memory _symbol, string memory uri, address kmart, address admin ) ERC1155(uri) { _transferOwnership(admin); _grantRole(DEFAULT_ADMIN_ROLE, admin); _grantRole(KMART_ROLE, kmart); name = _name; symbol = _symbol; } /** * @inheritdoc ERC1155 */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl, KaijuMartRedeemable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Set token URI * @dev See ERC1155._setURI(string memory newuri) * @param uri New token URI for all tokens */ function setURI(string memory uri) external onlyRole(DEFAULT_ADMIN_ROLE) { _setURI(uri); } /** * @notice Set the contract address of a specified token type * @param token Token type to set the contract address of * @param tokenContract New contract address */ function setTokenContracts(Tokens token, IERC721 tokenContract) external onlyRole(DEFAULT_ADMIN_ROLE) { tokenContracts[token] = tokenContract; } /** * @notice Set the details for a redeemable trait * @param lotId Lot identifier that a trait can be redeemed for * @param traitId Identifier of the trait being redeemed * @param _validFor List of booleans indicating if a token type is valid for the trait */ function setRedeemableTrait( uint256 lotId, uint256 traitId, bool[4] calldata _validFor ) external onlyRole(DEFAULT_ADMIN_ROLE) { if (traitId == 0) revert KaijuAugmints_InvalidTraitId(); if (supplyLocked[traitId]) revert KaijuAugmints_SupplyLocked(); redeemableId[lotId] = traitId; validFor[traitId] = _validFor; } /** * @notice Set the token types a specified trait can be used to augment * @param traitId Identifier of the trait being updated * @param _validFor List of booleans indicating if a token type is valid for the trait */ function setValidFor( uint256 traitId, bool[4] calldata _validFor ) external onlyRole(DEFAULT_ADMIN_ROLE) { validFor[traitId] = _validFor; } /** * @notice Lock the supply of a specified token * @dev WARNING: This cannot be undone * @param traitId Trait to lock the supply of */ function lockSupply(uint256 traitId) external onlyRole(DEFAULT_ADMIN_ROLE) { supplyLocked[traitId] = true; } /** * @notice Mint function to support KaijuMart redeemable functionality * @param lotId Kaiju Mart lot identifier * @param amount Quantity to mint * @param to Address to receive the token */ function kmartRedeem( uint256 lotId, uint32 amount, address to ) public override onlyRole(KMART_ROLE) { uint256 traitId = redeemableId[lotId]; if (traitId == 0) revert KaijuAugmints_InvalidTraitId(); _mint(to, traitId, amount, ""); } /** * @notice Mint a token to a specified address * @param to Address receiving the minted token(s) * @param id Token identifier to mint * @param amount Amount of the token to mint */ function mint( address to, uint256 id, uint256 amount ) public onlyRole(MINTER_ROLE) { if (supplyLocked[id]) revert KaijuAugmints_SupplyLocked(); _mint(to, id, amount, ""); } /** * @notice Mint a batch of tokens to a specified address * @param to Address receiving the minted tokens * @param ids List of token identifiers to mint * @param amounts List of amounts of each token to mint */ function mintBatch( address to, uint256[] calldata ids, uint256[] calldata amounts ) public onlyRole(MINTER_ROLE) { for (uint256 i; i < ids.length;) { if (supplyLocked[ids[i]]) revert KaijuAugmints_SupplyLocked(); unchecked { ++i; } } _mintBatch(to, ids, amounts, ""); } /** * @notice Augment a token with a trait * @param traitId Identifier of the trait to apply to the token * @param tokenId Identifier of the token to apply the trait to * @param token Type of token specified by `tokenId` */ function augment(uint256 traitId, uint256 tokenId, Tokens token) external { if (tokenContracts[token].ownerOf(tokenId) != _msgSender()) revert KaijuAugmints_SenderNotTokenOwner(); if ( !validFor[traitId][uint8(token)] || (token == Tokens.GENESIS && tokenId > _MAX_GENESIS_ID) || (token == Tokens.BABY && tokenId <= _MAX_GENESIS_ID) ) revert KaijuAugmints_InvalidToken(); _burn(_msgSender(), traitId, 1); emit Augment(traitId, tokenId, token); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); 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 token 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: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {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 `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: Unlicense import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./interfaces/IKaijuMartRedeemable.sol"; pragma solidity ^0.8.0; abstract contract KaijuMartRedeemable is IKaijuMartRedeemable, ERC165 { /** * @dev Ensure this is only callable by Kaiju Mart */ function kmartRedeem(uint256 lotId, uint32 amount, address to) public virtual override; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IKaijuMartRedeemable).interfaceId || super.supportsInterface(interfaceId); } }
// 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 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 (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/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.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: Unlicense import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; pragma solidity ^0.8.0; interface IKaijuMartRedeemable is IERC165 { function kmartRedeem(uint256 lotId, uint32 amount, address to) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"kmart","type":"address"},{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KaijuAugmints_InvalidToken","type":"error"},{"inputs":[],"name":"KaijuAugmints_InvalidTraitId","type":"error"},{"inputs":[],"name":"KaijuAugmints_SenderNotTokenOwner","type":"error"},{"inputs":[],"name":"KaijuAugmints_SupplyLocked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"traitId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"enum KaijuAugmints.Tokens","name":"token","type":"uint8"}],"name":"Augment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[],"name":"KMART_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"traitId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum KaijuAugmints.Tokens","name":"token","type":"uint8"}],"name":"augment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lotId","type":"uint256"},{"internalType":"uint32","name":"amount","type":"uint32"},{"internalType":"address","name":"to","type":"address"}],"name":"kmartRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"traitId","type":"uint256"}],"name":"lockSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemableId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lotId","type":"uint256"},{"internalType":"uint256","name":"traitId","type":"uint256"},{"internalType":"bool[4]","name":"_validFor","type":"bool[4]"}],"name":"setRedeemableTrait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum KaijuAugmints.Tokens","name":"token","type":"uint8"},{"internalType":"contract IERC721","name":"tokenContract","type":"address"}],"name":"setTokenContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"traitId","type":"uint256"},{"internalType":"bool[4]","name":"_validFor","type":"bool[4]"}],"name":"setValidFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum KaijuAugmints.Tokens","name":"","type":"uint8"}],"name":"tokenContracts","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"validFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005acc38038062005acc833981810160405281019062000037919062000529565b826200004981620000f160201b60201c565b506200006a6200005e6200010660201b60201c565b6200010e60201b60201c565b6200007b816200010e60201b60201c565b620000906000801b82620001d460201b60201c565b620000c27f894a9acec04b5f3aa5a2cdcd4866971aced83cf5217f38db069e2f9ce0b6083783620001d460201b60201c565b8460059081620000d3919062000859565b508360069081620000e5919062000859565b50505050505062000940565b806002908162000102919062000859565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001e68282620002c660201b60201c565b620002c25760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002676200010660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200039a826200034f565b810181811067ffffffffffffffff82111715620003bc57620003bb62000360565b5b80604052505050565b6000620003d162000331565b9050620003df82826200038f565b919050565b600067ffffffffffffffff82111562000402576200040162000360565b5b6200040d826200034f565b9050602081019050919050565b60005b838110156200043a5780820151818401526020810190506200041d565b60008484015250505050565b60006200045d6200045784620003e4565b620003c5565b9050828152602081018484840111156200047c576200047b6200034a565b5b620004898482856200041a565b509392505050565b600082601f830112620004a957620004a862000345565b5b8151620004bb84826020860162000446565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004f182620004c4565b9050919050565b6200050381620004e4565b81146200050f57600080fd5b50565b6000815190506200052381620004f8565b92915050565b600080600080600060a086880312156200054857620005476200033b565b5b600086015167ffffffffffffffff81111562000569576200056862000340565b5b620005778882890162000491565b955050602086015167ffffffffffffffff8111156200059b576200059a62000340565b5b620005a98882890162000491565b945050604086015167ffffffffffffffff811115620005cd57620005cc62000340565b5b620005db8882890162000491565b9350506060620005ee8882890162000512565b9250506080620006018882890162000512565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066157607f821691505b60208210810362000677576200067662000619565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006e17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006a2565b620006ed8683620006a2565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200073a620007346200072e8462000705565b6200070f565b62000705565b9050919050565b6000819050919050565b620007568362000719565b6200076e620007658262000741565b848454620006af565b825550505050565b600090565b6200078562000776565b620007928184846200074b565b505050565b5b81811015620007ba57620007ae6000826200077b565b60018101905062000798565b5050565b601f8211156200080957620007d3816200067d565b620007de8462000692565b81016020851015620007ee578190505b62000806620007fd8562000692565b83018262000797565b50505b505050565b600082821c905092915050565b60006200082e600019846008026200080e565b1980831691505092915050565b60006200084983836200081b565b9150826002028217905092915050565b62000864826200060e565b67ffffffffffffffff81111562000880576200087f62000360565b5b6200088c825462000648565b62000899828285620007be565b600060209050601f831160018114620008d15760008415620008bc578287015190505b620008c885826200083b565b86555062000938565b601f198416620008e1866200067d565b60005b828110156200090b57848901518255600182019150602085019450602081019050620008e4565b868310156200092b578489015162000927601f8916826200081b565b8355505b6001600288020188555050505b505050505050565b61517c80620009506000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80638da5cb5b1161011a578063cf85c04c116100ad578063e962df4a1161007c578063e962df4a146105d0578063e985e9c514610600578063f242432a14610630578063f2fde38b1461064c578063fab905261461066857610205565b8063cf85c04c1461055e578063d53913931461057a578063d547741f14610598578063d81d0a15146105b457610205565b806397a9aac2116100e957806397a9aac2146104ec578063a217fddf14610508578063a22cb46514610526578063a628e86b1461054257610205565b80638da5cb5b1461046457806391d148541461048257806395d89b41146104b2578063968262ca146104d057610205565b8063234b0fa81161019d57806336568abe1161016c57806336568abe146103c05780634e1273f4146103dc5780636e6251191461040c578063702c1a9f1461043c578063715018a61461045a57610205565b8063234b0fa81461033c578063248a9ca3146103585780632eb2c2d6146103885780632f2ff15d146103a457610205565b8063067d6690116101d9578063067d6690146102b657806306fdde03146102d25780630e89341c146102f0578063156e29f61461032057610205565b8062fdd58e1461020a57806301ffc9a71461023a57806302fe53051461026a578063061459b114610286575b600080fd5b610224600480360381019061021f91906131aa565b610698565b60405161023191906131f9565b60405180910390f35b610254600480360381019061024f919061326c565b610760565b60405161026191906132b4565b60405180910390f35b610284600480360381019061027f9190613415565b610772565b005b6102a0600480360381019061029b919061345e565b61078c565b6040516102ad91906132b4565b60405180910390f35b6102d060048036038101906102cb91906134da565b6107c5565b005b6102da610869565b6040516102e791906135ac565b60405180910390f35b61030a600480360381019061030591906135ce565b6108f7565b60405161031791906135ac565b60405180910390f35b61033a600480360381019061033591906135fb565b61098b565b005b610356600480360381019061035191906135ce565b610a2e565b005b610372600480360381019061036d9190613684565b610a6b565b60405161037f91906136c0565b60405180910390f35b6103a2600480360381019061039d9190613844565b610a8b565b005b6103be60048036038101906103b99190613913565b610b2c565b005b6103da60048036038101906103d59190613913565b610b4d565b005b6103f660048036038101906103f19190613a16565b610bd0565b6040516104039190613b4c565b60405180910390f35b610426600480360381019061042191906135ce565b610ce9565b60405161043391906132b4565b60405180910390f35b610444610d09565b60405161045191906136c0565b60405180910390f35b610462610d2d565b005b61046c610d41565b6040516104799190613b7d565b60405180910390f35b61049c60048036038101906104979190613913565b610d6b565b6040516104a991906132b4565b60405180910390f35b6104ba610dd6565b6040516104c791906135ac565b60405180910390f35b6104ea60048036038101906104e59190613bba565b610e64565b005b61050660048036038101906105019190613c0d565b610f44565b005b610510610f79565b60405161051d91906136c0565b60405180910390f35b610540600480360381019061053b9190613c79565b610f80565b005b61055c60048036038101906105579190613cde565b610f96565b005b61057860048036038101906105739190613d6f565b61122c565b005b6105826112b4565b60405161058f91906136c0565b60405180910390f35b6105b260048036038101906105ad9190613913565b6112d8565b005b6105ce60048036038101906105c99190613e0a565b6112f9565b005b6105ea60048036038101906105e59190613e9f565b611453565b6040516105f79190613f2b565b60405180910390f35b61061a60048036038101906106159190613f46565b611486565b60405161062791906132b4565b60405180910390f35b61064a60048036038101906106459190613f86565b61151a565b005b6106666004803603810190610661919061401d565b6115bb565b005b610682600480360381019061067d91906135ce565b61163e565b60405161068f91906131f9565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ff906140bc565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061076b82611656565b9050919050565b6000801b61077f816116d0565b610788826116e4565b5050565b600960205281600052604060002081600481106107a857600080fd5b60209182820401919006915091509054906101000a900460ff1681565b7f894a9acec04b5f3aa5a2cdcd4866971aced83cf5217f38db069e2f9ce0b608376107ef816116d0565b60006008600086815260200190815260200160002054905060008103610841576040517fc37f006b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61086283828663ffffffff16604051806020016040528060008152506116f7565b5050505050565b600580546108769061410b565b80601f01602080910402602001604051908101604052809291908181526020018280546108a29061410b565b80156108ef5780601f106108c4576101008083540402835291602001916108ef565b820191906000526020600020905b8154815290600101906020018083116108d257829003601f168201915b505050505081565b6060600280546109069061410b565b80601f01602080910402602001604051908101604052809291908181526020018280546109329061410b565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b50505050509050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109b5816116d0565b600a600084815260200190815260200160002060009054906101000a900460ff1615610a0d576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a28848484604051806020016040528060008152506116f7565b50505050565b6000801b610a3b816116d0565b6001600a600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600060046000838152602001908152602001600020600101549050919050565b610a936118a7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ad95750610ad885610ad36118a7565b611486565b5b610b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0f906141ae565b60405180910390fd5b610b2585858585856118af565b5050505050565b610b3582610a6b565b610b3e816116d0565b610b488383611bd0565b505050565b610b556118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990614240565b60405180910390fd5b610bcc8282611cb1565b5050565b60608151835114610c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0d906142d2565b60405180910390fd5b6000835167ffffffffffffffff811115610c3357610c326132ea565b5b604051908082528060200260200182016040528015610c615781602001602082028036833780820191505090505b50905060005b8451811015610cde57610cae858281518110610c8657610c856142f2565b5b6020026020010151858381518110610ca157610ca06142f2565b5b6020026020010151610698565b828281518110610cc157610cc06142f2565b5b60200260200101818152505080610cd790614350565b9050610c67565b508091505092915050565b600a6020528060005260406000206000915054906101000a900460ff1681565b7f894a9acec04b5f3aa5a2cdcd4866971aced83cf5217f38db069e2f9ce0b6083781565b610d35611d93565b610d3f6000611e11565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60068054610de39061410b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0f9061410b565b8015610e5c5780601f10610e3157610100808354040283529160200191610e5c565b820191906000526020600020905b815481529060010190602001808311610e3f57829003601f168201915b505050505081565b6000801b610e71816116d0565b60008303610eab576040517fc37f006b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a600084815260200190815260200160002060009054906101000a900460ff1615610f03576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260086000868152602001908152602001600020819055508160096000858152602001908152602001600020906004610f3d92919061304a565b5050505050565b6000801b610f51816116d0565b8160096000858152602001908152602001600020906004610f7392919061304a565b50505050565b6000801b81565b610f92610f8b6118a7565b8383611ed7565b5050565b610f9e6118a7565b73ffffffffffffffffffffffffffffffffffffffff1660076000836003811115610fcb57610fca614398565b5b6003811115610fdd57610fdc614398565b5b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161104491906131f9565b602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108591906143dc565b73ffffffffffffffffffffffffffffffffffffffff16146110d2576040517f45bb6e5200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960008481526020019081526020016000208160038111156110f8576110f7614398565b5b60ff166004811061110c5761110b6142f2565b5b602091828204019190069054906101000a900460ff16158061115f57506000600381111561113d5761113c614398565b5b8160038111156111505761114f614398565b5b14801561115e5750610d0482115b5b8061119c57506001600381111561117957611178614398565b5b81600381111561118c5761118b614398565b5b14801561119b5750610d048211155b5b156111d3576040517fc796b7d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111e66111de6118a7565b846001612043565b8060038111156111f9576111f8614398565b5b82847ff3e15ca692b7e8b48e3564b697cbc30b1d58c9ea5a5a5332521504cb7879e09e60405160405180910390a4505050565b6000801b611239816116d0565b816007600085600381111561125157611250614398565b5b600381111561126357611262614398565b5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6112e182610a6b565b6112ea816116d0565b6112f48383611cb1565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611323816116d0565b60005b858590508110156113ad57600a6000878784818110611348576113476142f2565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16156113a2576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001019050611326565b5061144b86868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060405180602001604052806000815250612289565b505050505050565b60076020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115226118a7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115685750611567856115626118a7565b611486565b5b6115a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159e906141ae565b60405180910390fd5b6115b485858585856124b5565b5050505050565b6115c3611d93565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116299061447b565b60405180910390fd5b61163b81611e11565b50565b60086020528060005260406000206000915090505481565b60007f067d6690000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116c957506116c882612750565b5b9050919050565b6116e1816116dc6118a7565b6127ca565b50565b80600290816116f3919061463d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d90614781565b60405180910390fd5b60006117706118a7565b9050600061177d85612867565b9050600061178a85612867565b905061179b836000898585896128e1565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117fa91906147a1565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516118789291906147d5565b60405180910390a461188f836000898585896128e9565b61189e836000898989896128f1565b50505050505050565b600033905090565b81518351146118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea90614870565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990614902565b60405180910390fd5b600061196c6118a7565b905061197c8187878787876128e1565b60005b8451811015611b2d57600085828151811061199d5761199c6142f2565b5b6020026020010151905060008583815181106119bc576119bb6142f2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5490614994565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b1291906147a1565b9250508190555050505080611b2690614350565b905061197f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ba49291906149b4565b60405180910390a4611bba8187878787876128e9565b611bc8818787878787612ac8565b505050505050565b611bda8282610d6b565b611cad5760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c526118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611cbb8282610d6b565b15611d8f5760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d346118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611d9b6118a7565b73ffffffffffffffffffffffffffffffffffffffff16611db9610d41565b73ffffffffffffffffffffffffffffffffffffffff1614611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690614a37565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3c90614ac9565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161203691906132b4565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a990614b5b565b60405180910390fd5b60006120bc6118a7565b905060006120c984612867565b905060006120d684612867565b90506120f6838760008585604051806020016040528060008152506128e1565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561218d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218490614bed565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161225a9291906147d5565b60405180910390a4612280848860008686604051806020016040528060008152506128e9565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90614781565b60405180910390fd5b815183511461233c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233390614870565b60405180910390fd5b60006123466118a7565b9050612357816000878787876128e1565b60005b845181101561241057838181518110612376576123756142f2565b5b6020026020010151600080878481518110612394576123936142f2565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f691906147a1565b92505081905550808061240890614350565b91505061235a565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124889291906149b4565b60405180910390a461249f816000878787876128e9565b6124ae81600087878787612ac8565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251b90614902565b60405180910390fd5b600061252e6118a7565b9050600061253b85612867565b9050600061254885612867565b90506125588389898585896128e1565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156125ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e690614994565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126a491906147a1565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516127219291906147d5565b60405180910390a4612737848a8a86868a6128e9565b612745848a8a8a8a8a6128f1565b505050505050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127c357506127c282612c9f565b5b9050919050565b6127d48282610d6b565b612863576127f98173ffffffffffffffffffffffffffffffffffffffff166014612d81565b6128078360001c6020612d81565b604051602001612818929190614ce1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285a91906135ac565b60405180910390fd5b5050565b60606000600167ffffffffffffffff811115612886576128856132ea565b5b6040519080825280602002602001820160405280156128b45781602001602082028036833780820191505090505b50905082816000815181106128cc576128cb6142f2565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6129108473ffffffffffffffffffffffffffffffffffffffff16612fbd565b15612ac0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612956959493929190614d70565b6020604051808303816000875af192505050801561299257506040513d601f19601f8201168201806040525081019061298f9190614ddf565b60015b612a375761299e614e19565b806308c379a0036129fa57506129b2614e3b565b806129bd57506129fc565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f191906135ac565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2e90614f3d565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab590614fcf565b60405180910390fd5b505b505050505050565b612ae78473ffffffffffffffffffffffffffffffffffffffff16612fbd565b15612c97578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b2d959493929190614fef565b6020604051808303816000875af1925050508015612b6957506040513d601f19601f82011682018060405250810190612b669190614ddf565b60015b612c0e57612b75614e19565b806308c379a003612bd15750612b89614e3b565b80612b945750612bd3565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc891906135ac565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0590614f3d565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8c90614fcf565b60405180910390fd5b505b505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d6a57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d7a5750612d7982612fe0565b5b9050919050565b606060006002836002612d949190615057565b612d9e91906147a1565b67ffffffffffffffff811115612db757612db66132ea565b5b6040519080825280601f01601f191660200182016040528015612de95781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e2157612e206142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612e8557612e846142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612ec59190615057565b612ecf91906147a1565b90505b6001811115612f6f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612f1157612f106142f2565b5b1a60f81b828281518110612f2857612f276142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612f68906150b1565b9050612ed2565b5060008414612fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faa90615126565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b826004601f016020900481019282156130d45791602002820160005b838211156130a5578335151583826101000a81548160ff0219169083151502179055509260200192600101602081600001049283019260010302613066565b80156130d25782816101000a81549060ff02191690556001016020816000010492830192600103026130a5565b505b5090506130e191906130e5565b5090565b5b808211156130fe5760008160009055506001016130e6565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314182613116565b9050919050565b61315181613136565b811461315c57600080fd5b50565b60008135905061316e81613148565b92915050565b6000819050919050565b61318781613174565b811461319257600080fd5b50565b6000813590506131a48161317e565b92915050565b600080604083850312156131c1576131c061310c565b5b60006131cf8582860161315f565b92505060206131e085828601613195565b9150509250929050565b6131f381613174565b82525050565b600060208201905061320e60008301846131ea565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61324981613214565b811461325457600080fd5b50565b60008135905061326681613240565b92915050565b6000602082840312156132825761328161310c565b5b600061329084828501613257565b91505092915050565b60008115159050919050565b6132ae81613299565b82525050565b60006020820190506132c960008301846132a5565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613322826132d9565b810181811067ffffffffffffffff82111715613341576133406132ea565b5b80604052505050565b6000613354613102565b90506133608282613319565b919050565b600067ffffffffffffffff8211156133805761337f6132ea565b5b613389826132d9565b9050602081019050919050565b82818337600083830152505050565b60006133b86133b384613365565b61334a565b9050828152602081018484840111156133d4576133d36132d4565b5b6133df848285613396565b509392505050565b600082601f8301126133fc576133fb6132cf565b5b813561340c8482602086016133a5565b91505092915050565b60006020828403121561342b5761342a61310c565b5b600082013567ffffffffffffffff81111561344957613448613111565b5b613455848285016133e7565b91505092915050565b600080604083850312156134755761347461310c565b5b600061348385828601613195565b925050602061349485828601613195565b9150509250929050565b600063ffffffff82169050919050565b6134b78161349e565b81146134c257600080fd5b50565b6000813590506134d4816134ae565b92915050565b6000806000606084860312156134f3576134f261310c565b5b600061350186828701613195565b9350506020613512868287016134c5565b92505060406135238682870161315f565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b8381101561356757808201518184015260208101905061354c565b60008484015250505050565b600061357e8261352d565b6135888185613538565b9350613598818560208601613549565b6135a1816132d9565b840191505092915050565b600060208201905081810360008301526135c68184613573565b905092915050565b6000602082840312156135e4576135e361310c565b5b60006135f284828501613195565b91505092915050565b6000806000606084860312156136145761361361310c565b5b60006136228682870161315f565b935050602061363386828701613195565b925050604061364486828701613195565b9150509250925092565b6000819050919050565b6136618161364e565b811461366c57600080fd5b50565b60008135905061367e81613658565b92915050565b60006020828403121561369a5761369961310c565b5b60006136a88482850161366f565b91505092915050565b6136ba8161364e565b82525050565b60006020820190506136d560008301846136b1565b92915050565b600067ffffffffffffffff8211156136f6576136f56132ea565b5b602082029050602081019050919050565b600080fd5b600061371f61371a846136db565b61334a565b9050808382526020820190506020840283018581111561374257613741613707565b5b835b8181101561376b57806137578882613195565b845260208401935050602081019050613744565b5050509392505050565b600082601f83011261378a576137896132cf565b5b813561379a84826020860161370c565b91505092915050565b600067ffffffffffffffff8211156137be576137bd6132ea565b5b6137c7826132d9565b9050602081019050919050565b60006137e76137e2846137a3565b61334a565b905082815260208101848484011115613803576138026132d4565b5b61380e848285613396565b509392505050565b600082601f83011261382b5761382a6132cf565b5b813561383b8482602086016137d4565b91505092915050565b600080600080600060a086880312156138605761385f61310c565b5b600061386e8882890161315f565b955050602061387f8882890161315f565b945050604086013567ffffffffffffffff8111156138a05761389f613111565b5b6138ac88828901613775565b935050606086013567ffffffffffffffff8111156138cd576138cc613111565b5b6138d988828901613775565b925050608086013567ffffffffffffffff8111156138fa576138f9613111565b5b61390688828901613816565b9150509295509295909350565b6000806040838503121561392a5761392961310c565b5b60006139388582860161366f565b92505060206139498582860161315f565b9150509250929050565b600067ffffffffffffffff82111561396e5761396d6132ea565b5b602082029050602081019050919050565b600061399261398d84613953565b61334a565b905080838252602082019050602084028301858111156139b5576139b4613707565b5b835b818110156139de57806139ca888261315f565b8452602084019350506020810190506139b7565b5050509392505050565b600082601f8301126139fd576139fc6132cf565b5b8135613a0d84826020860161397f565b91505092915050565b60008060408385031215613a2d57613a2c61310c565b5b600083013567ffffffffffffffff811115613a4b57613a4a613111565b5b613a57858286016139e8565b925050602083013567ffffffffffffffff811115613a7857613a77613111565b5b613a8485828601613775565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ac381613174565b82525050565b6000613ad58383613aba565b60208301905092915050565b6000602082019050919050565b6000613af982613a8e565b613b038185613a99565b9350613b0e83613aaa565b8060005b83811015613b3f578151613b268882613ac9565b9750613b3183613ae1565b925050600181019050613b12565b5085935050505092915050565b60006020820190508181036000830152613b668184613aee565b905092915050565b613b7781613136565b82525050565b6000602082019050613b926000830184613b6e565b92915050565b600081905082602060040282011115613bb457613bb3613707565b5b92915050565b600080600060c08486031215613bd357613bd261310c565b5b6000613be186828701613195565b9350506020613bf286828701613195565b9250506040613c0386828701613b98565b9150509250925092565b60008060a08385031215613c2457613c2361310c565b5b6000613c3285828601613195565b9250506020613c4385828601613b98565b9150509250929050565b613c5681613299565b8114613c6157600080fd5b50565b600081359050613c7381613c4d565b92915050565b60008060408385031215613c9057613c8f61310c565b5b6000613c9e8582860161315f565b9250506020613caf85828601613c64565b9150509250929050565b60048110613cc657600080fd5b50565b600081359050613cd881613cb9565b92915050565b600080600060608486031215613cf757613cf661310c565b5b6000613d0586828701613195565b9350506020613d1686828701613195565b9250506040613d2786828701613cc9565b9150509250925092565b6000613d3c82613136565b9050919050565b613d4c81613d31565b8114613d5757600080fd5b50565b600081359050613d6981613d43565b92915050565b60008060408385031215613d8657613d8561310c565b5b6000613d9485828601613cc9565b9250506020613da585828601613d5a565b9150509250929050565b600080fd5b60008083601f840112613dca57613dc96132cf565b5b8235905067ffffffffffffffff811115613de757613de6613daf565b5b602083019150836020820283011115613e0357613e02613707565b5b9250929050565b600080600080600060608688031215613e2657613e2561310c565b5b6000613e348882890161315f565b955050602086013567ffffffffffffffff811115613e5557613e54613111565b5b613e6188828901613db4565b9450945050604086013567ffffffffffffffff811115613e8457613e83613111565b5b613e9088828901613db4565b92509250509295509295909350565b600060208284031215613eb557613eb461310c565b5b6000613ec384828501613cc9565b91505092915050565b6000819050919050565b6000613ef1613eec613ee784613116565b613ecc565b613116565b9050919050565b6000613f0382613ed6565b9050919050565b6000613f1582613ef8565b9050919050565b613f2581613f0a565b82525050565b6000602082019050613f406000830184613f1c565b92915050565b60008060408385031215613f5d57613f5c61310c565b5b6000613f6b8582860161315f565b9250506020613f7c8582860161315f565b9150509250929050565b600080600080600060a08688031215613fa257613fa161310c565b5b6000613fb08882890161315f565b9550506020613fc18882890161315f565b9450506040613fd288828901613195565b9350506060613fe388828901613195565b925050608086013567ffffffffffffffff81111561400457614003613111565b5b61401088828901613816565b9150509295509295909350565b6000602082840312156140335761403261310c565b5b60006140418482850161315f565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006140a6602a83613538565b91506140b18261404a565b604082019050919050565b600060208201905081810360008301526140d581614099565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061412357607f821691505b602082108103614136576141356140dc565b5b50919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000614198602f83613538565b91506141a38261413c565b604082019050919050565b600060208201905081810360008301526141c78161418b565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061422a602f83613538565b9150614235826141ce565b604082019050919050565b600060208201905081810360008301526142598161421d565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006142bc602983613538565b91506142c782614260565b604082019050919050565b600060208201905081810360008301526142eb816142af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061435b82613174565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361438d5761438c614321565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000815190506143d681613148565b92915050565b6000602082840312156143f2576143f161310c565b5b6000614400848285016143c7565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614465602683613538565b915061447082614409565b604082019050919050565b6000602082019050818103600083015261449481614458565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826144c0565b61450786836144c0565b95508019841693508086168417925050509392505050565b600061453a61453561453084613174565b613ecc565b613174565b9050919050565b6000819050919050565b6145548361451f565b61456861456082614541565b8484546144cd565b825550505050565b600090565b61457d614570565b61458881848461454b565b505050565b5b818110156145ac576145a1600082614575565b60018101905061458e565b5050565b601f8211156145f1576145c28161449b565b6145cb846144b0565b810160208510156145da578190505b6145ee6145e6856144b0565b83018261458d565b50505b505050565b600082821c905092915050565b6000614614600019846008026145f6565b1980831691505092915050565b600061462d8383614603565b9150826002028217905092915050565b6146468261352d565b67ffffffffffffffff81111561465f5761465e6132ea565b5b614669825461410b565b6146748282856145b0565b600060209050601f8311600181146146a75760008415614695578287015190505b61469f8582614621565b865550614707565b601f1984166146b58661449b565b60005b828110156146dd578489015182556001820191506020850194506020810190506146b8565b868310156146fa57848901516146f6601f891682614603565b8355505b6001600288020188555050505b505050505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061476b602183613538565b91506147768261470f565b604082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b60006147ac82613174565b91506147b783613174565b92508282019050808211156147cf576147ce614321565b5b92915050565b60006040820190506147ea60008301856131ea565b6147f760208301846131ea565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061485a602883613538565b9150614865826147fe565b604082019050919050565b600060208201905081810360008301526148898161484d565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006148ec602583613538565b91506148f782614890565b604082019050919050565b6000602082019050818103600083015261491b816148df565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061497e602a83613538565b915061498982614922565b604082019050919050565b600060208201905081810360008301526149ad81614971565b9050919050565b600060408201905081810360008301526149ce8185613aee565b905081810360208301526149e28184613aee565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a21602083613538565b9150614a2c826149eb565b602082019050919050565b60006020820190508181036000830152614a5081614a14565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614ab3602983613538565b9150614abe82614a57565b604082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614b45602383613538565b9150614b5082614ae9565b604082019050919050565b60006020820190508181036000830152614b7481614b38565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614bd7602483613538565b9150614be282614b7b565b604082019050919050565b60006020820190508181036000830152614c0681614bca565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614c4e601783614c0d565b9150614c5982614c18565b601782019050919050565b6000614c6f8261352d565b614c798185614c0d565b9350614c89818560208601613549565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614ccb601183614c0d565b9150614cd682614c95565b601182019050919050565b6000614cec82614c41565b9150614cf88285614c64565b9150614d0382614cbe565b9150614d0f8284614c64565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614d4282614d1b565b614d4c8185614d26565b9350614d5c818560208601613549565b614d65816132d9565b840191505092915050565b600060a082019050614d856000830188613b6e565b614d926020830187613b6e565b614d9f60408301866131ea565b614dac60608301856131ea565b8181036080830152614dbe8184614d37565b90509695505050505050565b600081519050614dd981613240565b92915050565b600060208284031215614df557614df461310c565b5b6000614e0384828501614dca565b91505092915050565b60008160e01c9050919050565b600060033d1115614e385760046000803e614e35600051614e0c565b90505b90565b600060443d10614ec857614e4d613102565b60043d036004823e80513d602482011167ffffffffffffffff82111715614e75575050614ec8565b808201805167ffffffffffffffff811115614e935750505050614ec8565b80602083010160043d038501811115614eb0575050505050614ec8565b614ebf82602001850186613319565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614f27603483613538565b9150614f3282614ecb565b604082019050919050565b60006020820190508181036000830152614f5681614f1a565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614fb9602883613538565b9150614fc482614f5d565b604082019050919050565b60006020820190508181036000830152614fe881614fac565b9050919050565b600060a0820190506150046000830188613b6e565b6150116020830187613b6e565b81810360408301526150238186613aee565b905081810360608301526150378185613aee565b9050818103608083015261504b8184614d37565b90509695505050505050565b600061506282613174565b915061506d83613174565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150a6576150a5614321565b5b828202905092915050565b60006150bc82613174565b9150600082036150cf576150ce614321565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615110602083613538565b915061511b826150da565b602082019050919050565b6000602082019050818103600083015261513f81615103565b905091905056fea26469706673582212206cf9262369a245cbd21f5daaed01bdf680989fe8e9f6f16d5e8289e05d1e3e8c64736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000037110a9c2b1b7efed1f02d13e1200cf66c9864be000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161000000000000000000000000000000000000000000000000000000000000000d4b61696a754175676d696e74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074155474d494e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b697066733a2f2f7b69647d000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102055760003560e01c80638da5cb5b1161011a578063cf85c04c116100ad578063e962df4a1161007c578063e962df4a146105d0578063e985e9c514610600578063f242432a14610630578063f2fde38b1461064c578063fab905261461066857610205565b8063cf85c04c1461055e578063d53913931461057a578063d547741f14610598578063d81d0a15146105b457610205565b806397a9aac2116100e957806397a9aac2146104ec578063a217fddf14610508578063a22cb46514610526578063a628e86b1461054257610205565b80638da5cb5b1461046457806391d148541461048257806395d89b41146104b2578063968262ca146104d057610205565b8063234b0fa81161019d57806336568abe1161016c57806336568abe146103c05780634e1273f4146103dc5780636e6251191461040c578063702c1a9f1461043c578063715018a61461045a57610205565b8063234b0fa81461033c578063248a9ca3146103585780632eb2c2d6146103885780632f2ff15d146103a457610205565b8063067d6690116101d9578063067d6690146102b657806306fdde03146102d25780630e89341c146102f0578063156e29f61461032057610205565b8062fdd58e1461020a57806301ffc9a71461023a57806302fe53051461026a578063061459b114610286575b600080fd5b610224600480360381019061021f91906131aa565b610698565b60405161023191906131f9565b60405180910390f35b610254600480360381019061024f919061326c565b610760565b60405161026191906132b4565b60405180910390f35b610284600480360381019061027f9190613415565b610772565b005b6102a0600480360381019061029b919061345e565b61078c565b6040516102ad91906132b4565b60405180910390f35b6102d060048036038101906102cb91906134da565b6107c5565b005b6102da610869565b6040516102e791906135ac565b60405180910390f35b61030a600480360381019061030591906135ce565b6108f7565b60405161031791906135ac565b60405180910390f35b61033a600480360381019061033591906135fb565b61098b565b005b610356600480360381019061035191906135ce565b610a2e565b005b610372600480360381019061036d9190613684565b610a6b565b60405161037f91906136c0565b60405180910390f35b6103a2600480360381019061039d9190613844565b610a8b565b005b6103be60048036038101906103b99190613913565b610b2c565b005b6103da60048036038101906103d59190613913565b610b4d565b005b6103f660048036038101906103f19190613a16565b610bd0565b6040516104039190613b4c565b60405180910390f35b610426600480360381019061042191906135ce565b610ce9565b60405161043391906132b4565b60405180910390f35b610444610d09565b60405161045191906136c0565b60405180910390f35b610462610d2d565b005b61046c610d41565b6040516104799190613b7d565b60405180910390f35b61049c60048036038101906104979190613913565b610d6b565b6040516104a991906132b4565b60405180910390f35b6104ba610dd6565b6040516104c791906135ac565b60405180910390f35b6104ea60048036038101906104e59190613bba565b610e64565b005b61050660048036038101906105019190613c0d565b610f44565b005b610510610f79565b60405161051d91906136c0565b60405180910390f35b610540600480360381019061053b9190613c79565b610f80565b005b61055c60048036038101906105579190613cde565b610f96565b005b61057860048036038101906105739190613d6f565b61122c565b005b6105826112b4565b60405161058f91906136c0565b60405180910390f35b6105b260048036038101906105ad9190613913565b6112d8565b005b6105ce60048036038101906105c99190613e0a565b6112f9565b005b6105ea60048036038101906105e59190613e9f565b611453565b6040516105f79190613f2b565b60405180910390f35b61061a60048036038101906106159190613f46565b611486565b60405161062791906132b4565b60405180910390f35b61064a60048036038101906106459190613f86565b61151a565b005b6106666004803603810190610661919061401d565b6115bb565b005b610682600480360381019061067d91906135ce565b61163e565b60405161068f91906131f9565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ff906140bc565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061076b82611656565b9050919050565b6000801b61077f816116d0565b610788826116e4565b5050565b600960205281600052604060002081600481106107a857600080fd5b60209182820401919006915091509054906101000a900460ff1681565b7f894a9acec04b5f3aa5a2cdcd4866971aced83cf5217f38db069e2f9ce0b608376107ef816116d0565b60006008600086815260200190815260200160002054905060008103610841576040517fc37f006b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61086283828663ffffffff16604051806020016040528060008152506116f7565b5050505050565b600580546108769061410b565b80601f01602080910402602001604051908101604052809291908181526020018280546108a29061410b565b80156108ef5780601f106108c4576101008083540402835291602001916108ef565b820191906000526020600020905b8154815290600101906020018083116108d257829003601f168201915b505050505081565b6060600280546109069061410b565b80601f01602080910402602001604051908101604052809291908181526020018280546109329061410b565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b50505050509050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109b5816116d0565b600a600084815260200190815260200160002060009054906101000a900460ff1615610a0d576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a28848484604051806020016040528060008152506116f7565b50505050565b6000801b610a3b816116d0565b6001600a600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600060046000838152602001908152602001600020600101549050919050565b610a936118a7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ad95750610ad885610ad36118a7565b611486565b5b610b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0f906141ae565b60405180910390fd5b610b2585858585856118af565b5050505050565b610b3582610a6b565b610b3e816116d0565b610b488383611bd0565b505050565b610b556118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990614240565b60405180910390fd5b610bcc8282611cb1565b5050565b60608151835114610c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0d906142d2565b60405180910390fd5b6000835167ffffffffffffffff811115610c3357610c326132ea565b5b604051908082528060200260200182016040528015610c615781602001602082028036833780820191505090505b50905060005b8451811015610cde57610cae858281518110610c8657610c856142f2565b5b6020026020010151858381518110610ca157610ca06142f2565b5b6020026020010151610698565b828281518110610cc157610cc06142f2565b5b60200260200101818152505080610cd790614350565b9050610c67565b508091505092915050565b600a6020528060005260406000206000915054906101000a900460ff1681565b7f894a9acec04b5f3aa5a2cdcd4866971aced83cf5217f38db069e2f9ce0b6083781565b610d35611d93565b610d3f6000611e11565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60068054610de39061410b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0f9061410b565b8015610e5c5780601f10610e3157610100808354040283529160200191610e5c565b820191906000526020600020905b815481529060010190602001808311610e3f57829003601f168201915b505050505081565b6000801b610e71816116d0565b60008303610eab576040517fc37f006b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a600084815260200190815260200160002060009054906101000a900460ff1615610f03576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260086000868152602001908152602001600020819055508160096000858152602001908152602001600020906004610f3d92919061304a565b5050505050565b6000801b610f51816116d0565b8160096000858152602001908152602001600020906004610f7392919061304a565b50505050565b6000801b81565b610f92610f8b6118a7565b8383611ed7565b5050565b610f9e6118a7565b73ffffffffffffffffffffffffffffffffffffffff1660076000836003811115610fcb57610fca614398565b5b6003811115610fdd57610fdc614398565b5b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161104491906131f9565b602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108591906143dc565b73ffffffffffffffffffffffffffffffffffffffff16146110d2576040517f45bb6e5200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960008481526020019081526020016000208160038111156110f8576110f7614398565b5b60ff166004811061110c5761110b6142f2565b5b602091828204019190069054906101000a900460ff16158061115f57506000600381111561113d5761113c614398565b5b8160038111156111505761114f614398565b5b14801561115e5750610d0482115b5b8061119c57506001600381111561117957611178614398565b5b81600381111561118c5761118b614398565b5b14801561119b5750610d048211155b5b156111d3576040517fc796b7d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111e66111de6118a7565b846001612043565b8060038111156111f9576111f8614398565b5b82847ff3e15ca692b7e8b48e3564b697cbc30b1d58c9ea5a5a5332521504cb7879e09e60405160405180910390a4505050565b6000801b611239816116d0565b816007600085600381111561125157611250614398565b5b600381111561126357611262614398565b5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6112e182610a6b565b6112ea816116d0565b6112f48383611cb1565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611323816116d0565b60005b858590508110156113ad57600a6000878784818110611348576113476142f2565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16156113a2576040517f41a1309f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001019050611326565b5061144b86868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060405180602001604052806000815250612289565b505050505050565b60076020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115226118a7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115685750611567856115626118a7565b611486565b5b6115a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159e906141ae565b60405180910390fd5b6115b485858585856124b5565b5050505050565b6115c3611d93565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116299061447b565b60405180910390fd5b61163b81611e11565b50565b60086020528060005260406000206000915090505481565b60007f067d6690000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116c957506116c882612750565b5b9050919050565b6116e1816116dc6118a7565b6127ca565b50565b80600290816116f3919061463d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d90614781565b60405180910390fd5b60006117706118a7565b9050600061177d85612867565b9050600061178a85612867565b905061179b836000898585896128e1565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117fa91906147a1565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516118789291906147d5565b60405180910390a461188f836000898585896128e9565b61189e836000898989896128f1565b50505050505050565b600033905090565b81518351146118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea90614870565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990614902565b60405180910390fd5b600061196c6118a7565b905061197c8187878787876128e1565b60005b8451811015611b2d57600085828151811061199d5761199c6142f2565b5b6020026020010151905060008583815181106119bc576119bb6142f2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5490614994565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b1291906147a1565b9250508190555050505080611b2690614350565b905061197f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ba49291906149b4565b60405180910390a4611bba8187878787876128e9565b611bc8818787878787612ac8565b505050505050565b611bda8282610d6b565b611cad5760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c526118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611cbb8282610d6b565b15611d8f5760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d346118a7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611d9b6118a7565b73ffffffffffffffffffffffffffffffffffffffff16611db9610d41565b73ffffffffffffffffffffffffffffffffffffffff1614611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690614a37565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3c90614ac9565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161203691906132b4565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a990614b5b565b60405180910390fd5b60006120bc6118a7565b905060006120c984612867565b905060006120d684612867565b90506120f6838760008585604051806020016040528060008152506128e1565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561218d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218490614bed565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161225a9291906147d5565b60405180910390a4612280848860008686604051806020016040528060008152506128e9565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90614781565b60405180910390fd5b815183511461233c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233390614870565b60405180910390fd5b60006123466118a7565b9050612357816000878787876128e1565b60005b845181101561241057838181518110612376576123756142f2565b5b6020026020010151600080878481518110612394576123936142f2565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f691906147a1565b92505081905550808061240890614350565b91505061235a565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124889291906149b4565b60405180910390a461249f816000878787876128e9565b6124ae81600087878787612ac8565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251b90614902565b60405180910390fd5b600061252e6118a7565b9050600061253b85612867565b9050600061254885612867565b90506125588389898585896128e1565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156125ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e690614994565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126a491906147a1565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516127219291906147d5565b60405180910390a4612737848a8a86868a6128e9565b612745848a8a8a8a8a6128f1565b505050505050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127c357506127c282612c9f565b5b9050919050565b6127d48282610d6b565b612863576127f98173ffffffffffffffffffffffffffffffffffffffff166014612d81565b6128078360001c6020612d81565b604051602001612818929190614ce1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285a91906135ac565b60405180910390fd5b5050565b60606000600167ffffffffffffffff811115612886576128856132ea565b5b6040519080825280602002602001820160405280156128b45781602001602082028036833780820191505090505b50905082816000815181106128cc576128cb6142f2565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6129108473ffffffffffffffffffffffffffffffffffffffff16612fbd565b15612ac0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612956959493929190614d70565b6020604051808303816000875af192505050801561299257506040513d601f19601f8201168201806040525081019061298f9190614ddf565b60015b612a375761299e614e19565b806308c379a0036129fa57506129b2614e3b565b806129bd57506129fc565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f191906135ac565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2e90614f3d565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab590614fcf565b60405180910390fd5b505b505050505050565b612ae78473ffffffffffffffffffffffffffffffffffffffff16612fbd565b15612c97578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b2d959493929190614fef565b6020604051808303816000875af1925050508015612b6957506040513d601f19601f82011682018060405250810190612b669190614ddf565b60015b612c0e57612b75614e19565b806308c379a003612bd15750612b89614e3b565b80612b945750612bd3565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc891906135ac565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0590614f3d565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8c90614fcf565b60405180910390fd5b505b505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d6a57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d7a5750612d7982612fe0565b5b9050919050565b606060006002836002612d949190615057565b612d9e91906147a1565b67ffffffffffffffff811115612db757612db66132ea565b5b6040519080825280601f01601f191660200182016040528015612de95781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e2157612e206142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612e8557612e846142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612ec59190615057565b612ecf91906147a1565b90505b6001811115612f6f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612f1157612f106142f2565b5b1a60f81b828281518110612f2857612f276142f2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612f68906150b1565b9050612ed2565b5060008414612fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faa90615126565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b826004601f016020900481019282156130d45791602002820160005b838211156130a5578335151583826101000a81548160ff0219169083151502179055509260200192600101602081600001049283019260010302613066565b80156130d25782816101000a81549060ff02191690556001016020816000010492830192600103026130a5565b505b5090506130e191906130e5565b5090565b5b808211156130fe5760008160009055506001016130e6565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314182613116565b9050919050565b61315181613136565b811461315c57600080fd5b50565b60008135905061316e81613148565b92915050565b6000819050919050565b61318781613174565b811461319257600080fd5b50565b6000813590506131a48161317e565b92915050565b600080604083850312156131c1576131c061310c565b5b60006131cf8582860161315f565b92505060206131e085828601613195565b9150509250929050565b6131f381613174565b82525050565b600060208201905061320e60008301846131ea565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61324981613214565b811461325457600080fd5b50565b60008135905061326681613240565b92915050565b6000602082840312156132825761328161310c565b5b600061329084828501613257565b91505092915050565b60008115159050919050565b6132ae81613299565b82525050565b60006020820190506132c960008301846132a5565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613322826132d9565b810181811067ffffffffffffffff82111715613341576133406132ea565b5b80604052505050565b6000613354613102565b90506133608282613319565b919050565b600067ffffffffffffffff8211156133805761337f6132ea565b5b613389826132d9565b9050602081019050919050565b82818337600083830152505050565b60006133b86133b384613365565b61334a565b9050828152602081018484840111156133d4576133d36132d4565b5b6133df848285613396565b509392505050565b600082601f8301126133fc576133fb6132cf565b5b813561340c8482602086016133a5565b91505092915050565b60006020828403121561342b5761342a61310c565b5b600082013567ffffffffffffffff81111561344957613448613111565b5b613455848285016133e7565b91505092915050565b600080604083850312156134755761347461310c565b5b600061348385828601613195565b925050602061349485828601613195565b9150509250929050565b600063ffffffff82169050919050565b6134b78161349e565b81146134c257600080fd5b50565b6000813590506134d4816134ae565b92915050565b6000806000606084860312156134f3576134f261310c565b5b600061350186828701613195565b9350506020613512868287016134c5565b92505060406135238682870161315f565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b8381101561356757808201518184015260208101905061354c565b60008484015250505050565b600061357e8261352d565b6135888185613538565b9350613598818560208601613549565b6135a1816132d9565b840191505092915050565b600060208201905081810360008301526135c68184613573565b905092915050565b6000602082840312156135e4576135e361310c565b5b60006135f284828501613195565b91505092915050565b6000806000606084860312156136145761361361310c565b5b60006136228682870161315f565b935050602061363386828701613195565b925050604061364486828701613195565b9150509250925092565b6000819050919050565b6136618161364e565b811461366c57600080fd5b50565b60008135905061367e81613658565b92915050565b60006020828403121561369a5761369961310c565b5b60006136a88482850161366f565b91505092915050565b6136ba8161364e565b82525050565b60006020820190506136d560008301846136b1565b92915050565b600067ffffffffffffffff8211156136f6576136f56132ea565b5b602082029050602081019050919050565b600080fd5b600061371f61371a846136db565b61334a565b9050808382526020820190506020840283018581111561374257613741613707565b5b835b8181101561376b57806137578882613195565b845260208401935050602081019050613744565b5050509392505050565b600082601f83011261378a576137896132cf565b5b813561379a84826020860161370c565b91505092915050565b600067ffffffffffffffff8211156137be576137bd6132ea565b5b6137c7826132d9565b9050602081019050919050565b60006137e76137e2846137a3565b61334a565b905082815260208101848484011115613803576138026132d4565b5b61380e848285613396565b509392505050565b600082601f83011261382b5761382a6132cf565b5b813561383b8482602086016137d4565b91505092915050565b600080600080600060a086880312156138605761385f61310c565b5b600061386e8882890161315f565b955050602061387f8882890161315f565b945050604086013567ffffffffffffffff8111156138a05761389f613111565b5b6138ac88828901613775565b935050606086013567ffffffffffffffff8111156138cd576138cc613111565b5b6138d988828901613775565b925050608086013567ffffffffffffffff8111156138fa576138f9613111565b5b61390688828901613816565b9150509295509295909350565b6000806040838503121561392a5761392961310c565b5b60006139388582860161366f565b92505060206139498582860161315f565b9150509250929050565b600067ffffffffffffffff82111561396e5761396d6132ea565b5b602082029050602081019050919050565b600061399261398d84613953565b61334a565b905080838252602082019050602084028301858111156139b5576139b4613707565b5b835b818110156139de57806139ca888261315f565b8452602084019350506020810190506139b7565b5050509392505050565b600082601f8301126139fd576139fc6132cf565b5b8135613a0d84826020860161397f565b91505092915050565b60008060408385031215613a2d57613a2c61310c565b5b600083013567ffffffffffffffff811115613a4b57613a4a613111565b5b613a57858286016139e8565b925050602083013567ffffffffffffffff811115613a7857613a77613111565b5b613a8485828601613775565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ac381613174565b82525050565b6000613ad58383613aba565b60208301905092915050565b6000602082019050919050565b6000613af982613a8e565b613b038185613a99565b9350613b0e83613aaa565b8060005b83811015613b3f578151613b268882613ac9565b9750613b3183613ae1565b925050600181019050613b12565b5085935050505092915050565b60006020820190508181036000830152613b668184613aee565b905092915050565b613b7781613136565b82525050565b6000602082019050613b926000830184613b6e565b92915050565b600081905082602060040282011115613bb457613bb3613707565b5b92915050565b600080600060c08486031215613bd357613bd261310c565b5b6000613be186828701613195565b9350506020613bf286828701613195565b9250506040613c0386828701613b98565b9150509250925092565b60008060a08385031215613c2457613c2361310c565b5b6000613c3285828601613195565b9250506020613c4385828601613b98565b9150509250929050565b613c5681613299565b8114613c6157600080fd5b50565b600081359050613c7381613c4d565b92915050565b60008060408385031215613c9057613c8f61310c565b5b6000613c9e8582860161315f565b9250506020613caf85828601613c64565b9150509250929050565b60048110613cc657600080fd5b50565b600081359050613cd881613cb9565b92915050565b600080600060608486031215613cf757613cf661310c565b5b6000613d0586828701613195565b9350506020613d1686828701613195565b9250506040613d2786828701613cc9565b9150509250925092565b6000613d3c82613136565b9050919050565b613d4c81613d31565b8114613d5757600080fd5b50565b600081359050613d6981613d43565b92915050565b60008060408385031215613d8657613d8561310c565b5b6000613d9485828601613cc9565b9250506020613da585828601613d5a565b9150509250929050565b600080fd5b60008083601f840112613dca57613dc96132cf565b5b8235905067ffffffffffffffff811115613de757613de6613daf565b5b602083019150836020820283011115613e0357613e02613707565b5b9250929050565b600080600080600060608688031215613e2657613e2561310c565b5b6000613e348882890161315f565b955050602086013567ffffffffffffffff811115613e5557613e54613111565b5b613e6188828901613db4565b9450945050604086013567ffffffffffffffff811115613e8457613e83613111565b5b613e9088828901613db4565b92509250509295509295909350565b600060208284031215613eb557613eb461310c565b5b6000613ec384828501613cc9565b91505092915050565b6000819050919050565b6000613ef1613eec613ee784613116565b613ecc565b613116565b9050919050565b6000613f0382613ed6565b9050919050565b6000613f1582613ef8565b9050919050565b613f2581613f0a565b82525050565b6000602082019050613f406000830184613f1c565b92915050565b60008060408385031215613f5d57613f5c61310c565b5b6000613f6b8582860161315f565b9250506020613f7c8582860161315f565b9150509250929050565b600080600080600060a08688031215613fa257613fa161310c565b5b6000613fb08882890161315f565b9550506020613fc18882890161315f565b9450506040613fd288828901613195565b9350506060613fe388828901613195565b925050608086013567ffffffffffffffff81111561400457614003613111565b5b61401088828901613816565b9150509295509295909350565b6000602082840312156140335761403261310c565b5b60006140418482850161315f565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006140a6602a83613538565b91506140b18261404a565b604082019050919050565b600060208201905081810360008301526140d581614099565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061412357607f821691505b602082108103614136576141356140dc565b5b50919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000614198602f83613538565b91506141a38261413c565b604082019050919050565b600060208201905081810360008301526141c78161418b565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061422a602f83613538565b9150614235826141ce565b604082019050919050565b600060208201905081810360008301526142598161421d565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006142bc602983613538565b91506142c782614260565b604082019050919050565b600060208201905081810360008301526142eb816142af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061435b82613174565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361438d5761438c614321565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000815190506143d681613148565b92915050565b6000602082840312156143f2576143f161310c565b5b6000614400848285016143c7565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614465602683613538565b915061447082614409565b604082019050919050565b6000602082019050818103600083015261449481614458565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826144c0565b61450786836144c0565b95508019841693508086168417925050509392505050565b600061453a61453561453084613174565b613ecc565b613174565b9050919050565b6000819050919050565b6145548361451f565b61456861456082614541565b8484546144cd565b825550505050565b600090565b61457d614570565b61458881848461454b565b505050565b5b818110156145ac576145a1600082614575565b60018101905061458e565b5050565b601f8211156145f1576145c28161449b565b6145cb846144b0565b810160208510156145da578190505b6145ee6145e6856144b0565b83018261458d565b50505b505050565b600082821c905092915050565b6000614614600019846008026145f6565b1980831691505092915050565b600061462d8383614603565b9150826002028217905092915050565b6146468261352d565b67ffffffffffffffff81111561465f5761465e6132ea565b5b614669825461410b565b6146748282856145b0565b600060209050601f8311600181146146a75760008415614695578287015190505b61469f8582614621565b865550614707565b601f1984166146b58661449b565b60005b828110156146dd578489015182556001820191506020850194506020810190506146b8565b868310156146fa57848901516146f6601f891682614603565b8355505b6001600288020188555050505b505050505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061476b602183613538565b91506147768261470f565b604082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b60006147ac82613174565b91506147b783613174565b92508282019050808211156147cf576147ce614321565b5b92915050565b60006040820190506147ea60008301856131ea565b6147f760208301846131ea565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061485a602883613538565b9150614865826147fe565b604082019050919050565b600060208201905081810360008301526148898161484d565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006148ec602583613538565b91506148f782614890565b604082019050919050565b6000602082019050818103600083015261491b816148df565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061497e602a83613538565b915061498982614922565b604082019050919050565b600060208201905081810360008301526149ad81614971565b9050919050565b600060408201905081810360008301526149ce8185613aee565b905081810360208301526149e28184613aee565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a21602083613538565b9150614a2c826149eb565b602082019050919050565b60006020820190508181036000830152614a5081614a14565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614ab3602983613538565b9150614abe82614a57565b604082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614b45602383613538565b9150614b5082614ae9565b604082019050919050565b60006020820190508181036000830152614b7481614b38565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614bd7602483613538565b9150614be282614b7b565b604082019050919050565b60006020820190508181036000830152614c0681614bca565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614c4e601783614c0d565b9150614c5982614c18565b601782019050919050565b6000614c6f8261352d565b614c798185614c0d565b9350614c89818560208601613549565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614ccb601183614c0d565b9150614cd682614c95565b601182019050919050565b6000614cec82614c41565b9150614cf88285614c64565b9150614d0382614cbe565b9150614d0f8284614c64565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614d4282614d1b565b614d4c8185614d26565b9350614d5c818560208601613549565b614d65816132d9565b840191505092915050565b600060a082019050614d856000830188613b6e565b614d926020830187613b6e565b614d9f60408301866131ea565b614dac60608301856131ea565b8181036080830152614dbe8184614d37565b90509695505050505050565b600081519050614dd981613240565b92915050565b600060208284031215614df557614df461310c565b5b6000614e0384828501614dca565b91505092915050565b60008160e01c9050919050565b600060033d1115614e385760046000803e614e35600051614e0c565b90505b90565b600060443d10614ec857614e4d613102565b60043d036004823e80513d602482011167ffffffffffffffff82111715614e75575050614ec8565b808201805167ffffffffffffffff811115614e935750505050614ec8565b80602083010160043d038501811115614eb0575050505050614ec8565b614ebf82602001850186613319565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614f27603483613538565b9150614f3282614ecb565b604082019050919050565b60006020820190508181036000830152614f5681614f1a565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614fb9602883613538565b9150614fc482614f5d565b604082019050919050565b60006020820190508181036000830152614fe881614fac565b9050919050565b600060a0820190506150046000830188613b6e565b6150116020830187613b6e565b81810360408301526150238186613aee565b905081810360608301526150378185613aee565b9050818103608083015261504b8184614d37565b90509695505050505050565b600061506282613174565b915061506d83613174565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150a6576150a5614321565b5b828202905092915050565b60006150bc82613174565b9150600082036150cf576150ce614321565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615110602083613538565b915061511b826150da565b602082019050919050565b6000602082019050818103600083015261513f81615103565b905091905056fea26469706673582212206cf9262369a245cbd21f5daaed01bdf680989fe8e9f6f16d5e8289e05d1e3e8c64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000037110a9c2b1b7efed1f02d13e1200cf66c9864be000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161000000000000000000000000000000000000000000000000000000000000000d4b61696a754175676d696e74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074155474d494e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b697066733a2f2f7b69647d000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): KaijuAugmints
Arg [1] : _symbol (string): AUGMINT
Arg [2] : uri (string): ipfs://{id}
Arg [3] : kmart (address): 0x37110A9C2b1b7efEd1f02d13E1200Cf66c9864be
Arg [4] : admin (address): 0x084FD17c6A5697bd651b6482fa916C0b3a0e6161
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000037110a9c2b1b7efed1f02d13e1200cf66c9864be
Arg [4] : 000000000000000000000000084fd17c6a5697bd651b6482fa916c0b3a0e6161
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [6] : 4b61696a754175676d696e747300000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 4155474d494e5400000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [10] : 697066733a2f2f7b69647d000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.