Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,073 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 23717362 | 113 days ago | IN | 0 ETH | 0.00005085 | ||||
| Set Approval For... | 23533188 | 139 days ago | IN | 0 ETH | 0.0000801 | ||||
| Set Approval For... | 23372024 | 161 days ago | IN | 0 ETH | 0.00000383 | ||||
| Set Approval For... | 23059780 | 205 days ago | IN | 0 ETH | 0.00001018 | ||||
| Set Approval For... | 22978938 | 216 days ago | IN | 0 ETH | 0.00001522 | ||||
| Set Approval For... | 22186772 | 327 days ago | IN | 0 ETH | 0.0000482 | ||||
| Set Approval For... | 22112436 | 337 days ago | IN | 0 ETH | 0.00003957 | ||||
| Set Approval For... | 22082790 | 341 days ago | IN | 0 ETH | 0.00001278 | ||||
| Set Approval For... | 21843662 | 375 days ago | IN | 0 ETH | 0.00003552 | ||||
| Set Approval For... | 21726913 | 391 days ago | IN | 0 ETH | 0.00013473 | ||||
| Set Approval For... | 21462711 | 428 days ago | IN | 0 ETH | 0.00024084 | ||||
| Set Approval For... | 21328369 | 447 days ago | IN | 0 ETH | 0.00104663 | ||||
| Set Approval For... | 20542574 | 556 days ago | IN | 0 ETH | 0.00012314 | ||||
| Set Approval For... | 20290354 | 592 days ago | IN | 0 ETH | 0.00014542 | ||||
| Set Approval For... | 19681036 | 677 days ago | IN | 0 ETH | 0.00024102 | ||||
| Set Approval For... | 19397241 | 717 days ago | IN | 0 ETH | 0.00102022 | ||||
| Set Approval For... | 19024950 | 769 days ago | IN | 0 ETH | 0.00082455 | ||||
| Set Approval For... | 18647316 | 822 days ago | IN | 0 ETH | 0.00081835 | ||||
| Set Approval For... | 18550535 | 835 days ago | IN | 0 ETH | 0.00073351 | ||||
| Set Approval For... | 18185660 | 886 days ago | IN | 0 ETH | 0.00033901 | ||||
| Set Approval For... | 17900887 | 926 days ago | IN | 0 ETH | 0.00073848 | ||||
| Safe Transfer Fr... | 17900836 | 926 days ago | IN | 0 ETH | 0.00067575 | ||||
| Set Approval For... | 17867220 | 931 days ago | IN | 0 ETH | 0.00076404 | ||||
| Set Approval For... | 17770801 | 945 days ago | IN | 0 ETH | 0.00216113 | ||||
| Set Approval For... | 17765700 | 945 days ago | IN | 0 ETH | 0.00138126 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AlpacaWearable
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-12-22
*/
// Dependency file: @openzeppelin/contracts/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.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);
}
// Dependency file: @openzeppelin/contracts/token/ERC1155/IERC1155.sol
// pragma solidity ^0.6.2;
// import "@openzeppelin/contracts/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}
// Dependency file: @openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol
// pragma solidity ^0.6.2;
// import "@openzeppelin/contracts/token/ERC1155/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);
}
// Dependency file: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol
// pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/introspection/IERC165.sol";
/**
* _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.
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. 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);
}
// Dependency file: @openzeppelin/contracts/GSN/Context.sol
// pragma solidity ^0.6.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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// Dependency file: @openzeppelin/contracts/introspection/ERC165.sol
// pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/introspection/IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}
// Dependency file: @openzeppelin/contracts/math/SafeMath.sol
// pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
// Dependency file: @openzeppelin/contracts/utils/Address.sol
// pragma solidity ^0.6.2;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [// importANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* // importANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// Dependency file: @openzeppelin/contracts/token/ERC1155/ERC1155.sol
// pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
// import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol";
// import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
// import "@openzeppelin/contracts/GSN/Context.sol";
// import "@openzeppelin/contracts/introspection/ERC165.sol";
// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/utils/Address.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 SafeMath for uint256;
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;
/*
* bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
* bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
* bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
* bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
* bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
* bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
*
* => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
* 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
*/
bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;
/*
* bytes4(keccak256('uri(uint256)')) == 0x0e89341c
*/
bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;
/**
* @dev See {_setURI}.
*/
constructor (string memory uri) public {
_setURI(uri);
// register the supported interfaces to conform to ERC1155 via ERC165
_registerInterface(_INTERFACE_ID_ERC1155);
// register the supported interfaces to conform to ERC1155MetadataURI via ERC165
_registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
}
/**
* @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) external view 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 override returns (uint256) {
require(account != address(0), "ERC1155: balance query for the zero address");
return _balances[id][account];
}
/**
* @dev See {IERC1155-balanceOfBatch}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] memory accounts,
uint256[] memory ids
)
public
view
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) {
require(accounts[i] != address(0), "ERC1155: batch balance query for the zero address");
batchBalances[i] = _balances[ids[i]][accounts[i]];
}
return batchBalances;
}
/**
* @dev See {IERC1155-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(_msgSender() != operator, "ERC1155: setting approval status for self");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC1155-isApprovedForAll}.
*/
function isApprovedForAll(address account, address operator) public view 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(to != address(0), "ERC1155: transfer to the zero address");
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not owner nor approved"
);
address operator = _msgSender();
_beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);
_balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
_balances[id][to] = _balances[id][to].add(amount);
emit TransferSingle(operator, from, to, id, amount);
_doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0), "ERC1155: transfer to the zero address");
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: transfer caller is not owner nor approved"
);
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];
_balances[id][from] = _balances[id][from].sub(
amount,
"ERC1155: insufficient balance for transfer"
);
_balances[id][to] = _balances[id][to].add(amount);
}
emit TransferBatch(operator, from, to, ids, amounts);
_doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
}
/**
* @dev Sets a new URI for all token types, by relying on the token type ID
* substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* By this mechanism, any occurrence of the `\{id\}` substring in either the
* URI or any of the amounts in the JSON file at said URI will be replaced by
* clients with the token type ID.
*
* For example, the `https://token-cdn-domain/\{id\}.json` URI would be
* interpreted by clients as
* `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
* for token type ID 0x4cce0.
*
* See {uri}.
*
* Because these URIs cannot be meaningfully represented by the {URI} event,
* this function emits no events.
*/
function _setURI(string memory newuri) internal virtual {
_uri = newuri;
}
/**
* @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `account` 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 account, uint256 id, uint256 amount, bytes memory data) internal virtual {
require(account != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);
_balances[id][account] = _balances[id][account].add(amount);
emit TransferSingle(operator, address(0), account, id, amount);
_doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), to, ids, amounts, data);
for (uint i = 0; i < ids.length; i++) {
_balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]);
}
emit TransferBatch(operator, address(0), to, ids, amounts);
_doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
}
/**
* @dev Destroys `amount` tokens of token type `id` from `account`
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens of token type `id`.
*/
function _burn(address account, uint256 id, uint256 amount) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");
_balances[id][account] = _balances[id][account].sub(
amount,
"ERC1155: burn amount exceeds balance"
);
emit TransferSingle(operator, account, address(0), id, amount);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
*/
function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, account, address(0), ids, amounts, "");
for (uint i = 0; i < ids.length; i++) {
_balances[ids[i]][account] = _balances[ids[i]][account].sub(
amounts[i],
"ERC1155: burn amount exceeds balance"
);
}
emit TransferBatch(operator, account, address(0), ids, amounts);
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `id` and `amount` arrays will be 1.
*
* Calling conditions (for each `id` and `amount` pair):
*
* - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* of token type `id` will be transferred to `to`.
* - When `from` is zero, `amount` tokens of token type `id` will be minted
* for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
* will be burned.
* - `from` and `to` are never both zero.
* - `ids` and `amounts` have the same, non-zero length.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
internal virtual
{ }
function _doSafeTransferAcceptanceCheck(
address operator,
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
)
private
{
if (to.isContract()) {
try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
if (response != IERC1155Receiver(to).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(to).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;
}
}
// Dependency file: @openzeppelin/contracts/access/Ownable.sol
// pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/GSN/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.
*/
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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// Dependency file: @openzeppelin/contracts/utils/EnumerableSet.sol
// pragma solidity ^0.6.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
* (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(value)));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint256(_at(set._inner, index)));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}
// Dependency file: contracts/interfaces/IAlpacaWearable.sol
// pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
interface IAlpacaWearable is IERC1155 {
function getWearable(uint256 _id)
external
view
returns (
uint256 id,
uint256 energy,
uint256 wearableType
);
function mint(
address account,
uint256 id,
uint256 amount,
bytes memory data
) external;
function mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) external;
function burn(
address account,
uint256 id,
uint256 amount
) external;
function burnBatch(
address account,
uint256[] memory ids,
uint256[] memory amounts
) external;
}
// Root file: contracts/AlpacaWearable/AlpacaWearable.sol
pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/utils/EnumerableSet.sol";
// import "contracts/interfaces/IAlpacaWearable.sol";
contract AlpacaWearable is ERC1155(""), Ownable, IAlpacaWearable {
using EnumerableSet for EnumerableSet.AddressSet;
/* ========== EVENT ========== */
event AddWearable(uint256 indexed wearableId, uint256 energy);
event UpdateWearableEnergy(
uint256 indexed wearableId,
uint256 prevEnergy,
uint256 newEnergy
);
/* ========== STORAGE ========== */
struct Wearable {
uint32 energy;
uint32 wearableType;
}
Wearable[] public wearables;
// Set of alpaca IDs this contract owns
EnumerableSet.AddressSet private minters;
constructor() public {
minters.add(msg.sender);
wearables.push(Wearable({energy: 0, wearableType: 0}));
}
/* ========== VIEW ========== */
function wearableCount() public view returns (uint256) {
return wearables.length;
}
function getWearable(uint256 _id)
external
override
view
returns (
uint256 id,
uint256 energy,
uint256 wearableType
)
{
require(id < wearables.length);
Wearable storage wearable = wearables[_id];
id = _id;
energy = wearable.energy;
wearableType = wearable.wearableType;
}
/* ========== MUTATION ========== */
function addWearable(uint32 energy, uint32 wearableType)
public
onlyOwner
returns (uint256)
{
require(wearableType != 0, "invalid type");
uint256 id = wearables.length;
wearables.push(Wearable({energy: energy, wearableType: wearableType}));
emit AddWearable(id, energy);
return id;
}
function updateWearableEnergy(uint256 index, uint32 energy)
public
onlyOwner
{
require(index < wearables.length);
Wearable storage wearable = wearables[index];
uint256 prevEnergy = wearable.energy;
wearable.energy = energy;
emit UpdateWearableEnergy(index, prevEnergy, energy);
}
function mint(
address account,
uint256 id,
uint256 amount,
bytes memory data
) public override onlyMinter {
require(id < wearables.length);
_mint(account, id, amount, data);
}
function mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public override onlyMinter {
for (uint256 i = 0; i < ids.length; i++) {
require(ids[i] < wearables.length);
}
_mintBatch(to, ids, amounts, data);
}
function burn(
address account,
uint256 id,
uint256 amount
) public override onlyMinter {
_burn(account, id, amount);
}
function burnBatch(
address account,
uint256[] memory ids,
uint256[] memory amounts
) public override onlyMinter {
_burnBatch(account, ids, amounts);
}
function setURI(string memory _uri) public onlyOwner {
_setURI(_uri);
}
function addMinter(address _minter) public onlyOwner {
minters.add(_minter);
}
function removeMinter(address _minter) public onlyOwner {
minters.remove(_minter);
}
function isMinter(address _minter) public view returns (bool) {
minters.contains(_minter);
}
modifier onlyMinter() {
require(
minters.contains(_msgSender()),
"AlpacaWearable: caller is not the minter"
);
_;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"wearableId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"energy","type":"uint256"}],"name":"AddWearable","type":"event"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"wearableId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevEnergy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEnergy","type":"uint256"}],"name":"UpdateWearableEnergy","type":"event"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"energy","type":"uint32"},{"internalType":"uint32","name":"wearableType","type":"uint32"}],"name":"addWearable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getWearable","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"energy","type":"uint256"},{"internalType":"uint256","name":"wearableType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"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[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint32","name":"energy","type":"uint32"}],"name":"updateWearableEnergy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wearableCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wearables","outputs":[{"internalType":"uint32","name":"energy","type":"uint32"},{"internalType":"uint32","name":"wearableType","type":"uint32"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50604080516020810190915260008152620000336301ffc9a760e01b6200015b565b6200003e81620001e0565b62000050636cdb3d1360e11b6200015b565b620000626303a24d0760e21b6200015b565b5060006200006f620001f9565b600480546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000d8336006620001fd60201b62001cbb1790919060201c565b506040805180820190915260008082526020820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09091018054925163ffffffff1990931663ffffffff9283161763ffffffff60201b1916640100000000929093169190910291909117905562000320565b6001600160e01b03198082161415620001bb576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001f590600390602084019062000284565b5050565b3390565b600062000214836001600160a01b0384166200021d565b90505b92915050565b60006200022b83836200026c565b620002635750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000217565b50600062000217565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002c757805160ff1916838001178555620002f7565b82800160010185558215620002f7579182015b82811115620002f7578251825591602001919060010190620002da565b506200030592915062000309565b5090565b5b808211156200030557600081556001016200030a565b612e8880620003306000396000f3fe608060405234801561001057600080fd5b50600436106101575760003560e01c8063715018a6116100c3578063b416cfd71161007c578063b416cfd714610b26578063b7c2c22f14610b6c578063e985e9c514610b95578063f242432a14610bc3578063f2fde38b14610c8c578063f5298aca14610cb257610157565b8063715018a6146109c0578063731133e9146109c85780638da5cb5b14610a88578063983b2d5614610aac578063a22cb46514610ad2578063aa271e1a14610b0057610157565b80633092afd5116101155780633092afd51461068657806345280f3e146106ac5780634e1273f4146106e757806358155e381461085a578063689e9a1f146108625780636b20c4541461088d57610157565b8062fdd58e1461015c57806301ffc9a71461019a57806302fe5305146101d55780630e89341c1461027b5780631f7fdffa1461030d5780632eb2c2d6146104c5575b600080fd5b6101886004803603604081101561017257600080fd5b506001600160a01b038135169060200135610ce4565b60408051918252519081900360200190f35b6101c1600480360360208110156101b057600080fd5b50356001600160e01b031916610d56565b604080519115158252519081900360200190f35b610279600480360360208110156101eb57600080fd5b810190602081018135600160201b81111561020557600080fd5b82018360208201111561021757600080fd5b803590602001918460018302840111600160201b8311171561023857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d75945050505050565b005b6102986004803603602081101561029157600080fd5b5035610dd9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d25781810151838201526020016102ba565b50505050905090810190601f1680156102ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102796004803603608081101561032357600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561034d57600080fd5b82018360208201111561035f57600080fd5b803590602001918460208302840111600160201b8311171561038057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103cf57600080fd5b8201836020820111156103e157600080fd5b803590602001918460208302840111600160201b8311171561040257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561045157600080fd5b82018360208201111561046357600080fd5b803590602001918460018302840111600160201b8311171561048457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e71945050505050565b610279600480360360a08110156104db57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561050e57600080fd5b82018360208201111561052057600080fd5b803590602001918460208302840111600160201b8311171561054157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460208302840111600160201b831117156105c357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561061257600080fd5b82018360208201111561062457600080fd5b803590602001918460018302840111600160201b8311171561064557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f09945050505050565b6102796004803603602081101561069c57600080fd5b50356001600160a01b0316611207565b6106c9600480360360208110156106c257600080fd5b503561126e565b60408051938452602084019290925282820152519081900360600190f35b61080a600480360360408110156106fd57600080fd5b810190602081018135600160201b81111561071757600080fd5b82018360208201111561072957600080fd5b803590602001918460208302840111600160201b8311171561074a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561079957600080fd5b8201836020820111156107ab57600080fd5b803590602001918460208302840111600160201b831117156107cc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506112ba945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561084657818101518382015260200161082e565b505050509050019250505060405180910390f35b610188611438565b6101886004803603604081101561087857600080fd5b5063ffffffff8135811691602001351661143f565b610279600480360360608110156108a357600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156108cd57600080fd5b8201836020820111156108df57600080fd5b803590602001918460208302840111600160201b8311171561090057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561094f57600080fd5b82018360208201111561096157600080fd5b803590602001918460208302840111600160201b8311171561098257600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061159f945050505050565b6102796115f5565b610279600480360360808110156109de57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611697945050505050565b610a906116f7565b604080516001600160a01b039092168252519081900360200190f35b61027960048036036020811015610ac257600080fd5b50356001600160a01b0316611706565b61027960048036036040811015610ae857600080fd5b506001600160a01b0381351690602001351515611769565b6101c160048036036020811015610b1657600080fd5b50356001600160a01b0316611858565b610b4360048036036020811015610b3c57600080fd5b503561186b565b604051808363ffffffff1681526020018263ffffffff1681526020019250505060405180910390f35b61027960048036036040811015610b8257600080fd5b508035906020013563ffffffff1661189a565b6101c160048036036040811015610bab57600080fd5b506001600160a01b0381358116916020013516611978565b610279600480360360a0811015610bd957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610c1857600080fd5b820183602082011115610c2a57600080fd5b803590602001918460018302840111600160201b83111715610c4b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506119a6945050505050565b61027960048036036020811015610ca257600080fd5b50356001600160a01b0316611b71565b61027960048036036060811015610cc857600080fd5b506001600160a01b038135169060208101359060400135611c6a565b60006001600160a01b038316610d2b5760405162461bcd60e51b815260040180806020018281038252602b815260200180612bfd602b913960400191505060405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526020819052604090205460ff1690565b610d7d611cd7565b6004546001600160a01b03908116911614610dcd576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b610dd681611cdb565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e655780601f10610e3a57610100808354040283529160200191610e65565b820191906000526020600020905b815481529060010190602001808311610e4857829003601f168201915b50505050509050919050565b610e84610e7c611cd7565b600690611cee565b610ebf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b60005b8351811015610ef6576005548451859083908110610edc57fe5b602002602001015110610eee57600080fd5b600101610ec2565b50610f0384848484611d03565b50505050565b8151835114610f495760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b6001600160a01b038416610f8e5760405162461bcd60e51b8152600401808060200182810382526025815260200180612ccc6025913960400191505060405180910390fd5b610f96611cd7565b6001600160a01b0316856001600160a01b03161480610fc15750610fc185610fbc611cd7565b611978565b610ffc5760405162461bcd60e51b8152600401808060200182810382526032815260200180612cf16032913960400191505060405180910390fd5b6000611006611cd7565b90506110168187878787876111ff565b60005b845181101561111757600085828151811061103057fe5b60200260200101519050600085838151811061104857fe5b602002602001015190506110b5816040518060600160405280602a8152602001612d6e602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611f589092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546110ec9082611fef565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001611019565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561119d578181015183820152602001611185565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156111dc5781810151838201526020016111c4565b5050505090500194505050505060405180910390a46111ff818787878787612049565b505050505050565b61120f611cd7565b6004546001600160a01b0390811691161461125f576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b61126a6006826122c8565b5050565b6000806000600580549050831061128457600080fd5b60006005858154811061129357fe5b600091825260209091200154949563ffffffff80871696600160201b900416945092505050565b606081518351146112fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612de16029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561131657600080fd5b50604051908082528060200260200182016040528015611340578160200160208202803683370190505b50905060005b84518110156114305760006001600160a01b031685828151811061136657fe5b60200260200101516001600160a01b031614156113b45760405162461bcd60e51b8152600401808060200182810382526031815260200180612c286031913960400191505060405180910390fd5b600160008583815181106113c457fe5b6020026020010151815260200190815260200160002060008683815181106113e857fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061141d57fe5b6020908102919091010152600101611346565b509392505050565b6005545b90565b6000611449611cd7565b6004546001600160a01b03908116911614611499576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b63ffffffff82166114e0576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207479706560a01b604482015290519081900360640190fd5b6005805460408051808201825263ffffffff808816808352878216602080850191825260018701885560009790975292517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db08601805494518416600160201b0267ffffffff00000000199290941663ffffffff1990951694909417169190911790915581519081529051919283927f8bbc6cd6e9feb6487227bc50a1124b392d829e7b36b421ebc376bf5a527e51d29281900390910190a29392505050565b6115aa610e7c611cd7565b6115e55760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b6115f08383836122dd565b505050565b6115fd611cd7565b6004546001600160a01b0390811691161461164d576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600480546001600160a01b0319169055565b6116a2610e7c611cd7565b6116dd5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b60055483106116eb57600080fd5b610f038484848461254b565b6004546001600160a01b031690565b61170e611cd7565b6004546001600160a01b0390811691161461175e576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b61126a600682611cbb565b816001600160a01b031661177b611cd7565b6001600160a01b031614156117c15760405162461bcd60e51b8152600401808060200182810382526029815260200180612db86029913960400191505060405180910390fd5b80600260006117ce611cd7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611812611cd7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000611865600683611cee565b50919050565b6005818154811061187857fe5b60009182526020909120015463ffffffff8082169250600160201b9091041682565b6118a2611cd7565b6004546001600160a01b039081169116146118f2576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b600554821061190057600080fd5b60006005838154811061190f57fe5b600091825260209182902001805463ffffffff85811663ffffffff19831681178455604080519290931680835294820152815192945086927f7bc44cf8897396373bc396f9f0a0c0f9d2c4f746263d51b86ab1ae0697305e2c929181900390910190a250505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166119eb5760405162461bcd60e51b8152600401808060200182810382526025815260200180612ccc6025913960400191505060405180910390fd5b6119f3611cd7565b6001600160a01b0316856001600160a01b03161480611a195750611a1985610fbc611cd7565b611a545760405162461bcd60e51b8152600401808060200182810382526029815260200180612ca36029913960400191505060405180910390fd5b6000611a5e611cd7565b9050611a7e818787611a6f8861264c565b611a788861264c565b876111ff565b611ac5836040518060600160405280602a8152602001612d6e602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190611f58565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054611afc9084611fef565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46111ff818787878787612690565b611b79611cd7565b6004546001600160a01b03908116911614611bc9576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b6001600160a01b038116611c0e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612c596026913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600480546001600160a01b0319166001600160a01b0392909216919091179055565b611c75610e7c611cd7565b611cb05760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b6115f0838383612801565b6000611cd0836001600160a01b038416612934565b9392505050565b3390565b805161126a906003906020840190612a62565b6000611cd0836001600160a01b03841661297e565b6001600160a01b038416611d485760405162461bcd60e51b8152600401808060200182810382526021815260200180612e326021913960400191505060405180910390fd5b8151835114611d885760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b6000611d92611cd7565b9050611da3816000878787876111ff565b60005b8451811015611e6757611e1e60016000878481518110611dc257fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611e0857fe5b6020026020010151611fef90919063ffffffff16565b60016000878481518110611e2e57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611da6565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611eee578181015183820152602001611ed6565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611f2d578181015183820152602001611f15565b5050505090500194505050505060405180910390a4611f5181600087878787612049565b5050505050565b60008184841115611fe75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fac578181015183820152602001611f94565b50505050905090810190601f168015611fd95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611cd0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b61205b846001600160a01b0316612996565b156111ff57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156120e95781810151838201526020016120d1565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612128578181015183820152602001612110565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561216457818101518382015260200161214c565b50505050905090810190601f1680156121915780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156121b657600080fd5b505af19250505080156121db57506040513d60208110156121d657600080fd5b505160015b612270576121e7612afb565b806121f25750612239565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611fac578181015183820152602001611f94565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612ba16034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146122bf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612bd56028913960400191505060405180910390fd5b50505050505050565b6000611cd0836001600160a01b03841661299c565b6001600160a01b0383166123225760405162461bcd60e51b8152600401808060200182810382526023815260200180612d4b6023913960400191505060405180910390fd5b80518251146123625760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b600061236c611cd7565b905061238c818560008686604051806020016040528060008152506111ff565b60005b835181101561246a576124218382815181106123a757fe5b6020026020010151604051806060016040528060248152602001612c7f60249139600160008886815181106123d857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611f589092919063ffffffff16565b6001600086848151811061243157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161238f565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156124f15781810151838201526020016124d9565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612530578181015183820152602001612518565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166125905760405162461bcd60e51b8152600401808060200182810382526021815260200180612e326021913960400191505060405180910390fd5b600061259a611cd7565b90506125ac81600087611a6f8861264c565b60008481526001602090815260408083206001600160a01b03891684529091529020546125d99084611fef565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611f5181600087878787612690565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061267f57fe5b602090810291909101015292915050565b6126a2846001600160a01b0316612996565b156111ff57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612731578181015183820152602001612719565b50505050905090810190601f16801561275e5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561278157600080fd5b505af19250505080156127a657506040513d60208110156127a157600080fd5b505160015b6127b2576121e7612afb565b6001600160e01b0319811663f23a6e6160e01b146122bf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612bd56028913960400191505060405180910390fd5b6001600160a01b0383166128465760405162461bcd60e51b8152600401808060200182810382526023815260200180612d4b6023913960400191505060405180910390fd5b6000612850611cd7565b9050612880818560006128628761264c565b61286b8761264c565b604051806020016040528060008152506111ff565b6128c782604051806060016040528060248152602001612c7f6024913960008681526001602090815260408083206001600160a01b038b1684529091529020549190611f58565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000612940838361297e565b61297657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d50565b506000610d50565b60009081526001919091016020526040902054151590565b3b151590565b60008181526001830160205260408120548015612a5857835460001980830191908101906000908790839081106129cf57fe5b90600052602060002001549050808760000184815481106129ec57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612a1c57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d50565b6000915050610d50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612aa357805160ff1916838001178555612ad0565b82800160010185558215612ad0579182015b82811115612ad0578251825591602001919060010190612ab5565b50612adc929150612ae0565b5090565b5b80821115612adc5760008155600101612ae1565b60e01c90565b600060443d1015612b0b5761143c565b600481823e6308c379a0612b1f8251612af5565b14612b295761143c565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612b59575050505061143c565b82840192508251915080821115612b73575050505061143c565b503d83016020828401011115612b8b5750505061143c565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416c706163615765617261626c653a2063616c6c6572206973206e6f7420746865206d696e746572455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e736665724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a264697066735822122007c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101575760003560e01c8063715018a6116100c3578063b416cfd71161007c578063b416cfd714610b26578063b7c2c22f14610b6c578063e985e9c514610b95578063f242432a14610bc3578063f2fde38b14610c8c578063f5298aca14610cb257610157565b8063715018a6146109c0578063731133e9146109c85780638da5cb5b14610a88578063983b2d5614610aac578063a22cb46514610ad2578063aa271e1a14610b0057610157565b80633092afd5116101155780633092afd51461068657806345280f3e146106ac5780634e1273f4146106e757806358155e381461085a578063689e9a1f146108625780636b20c4541461088d57610157565b8062fdd58e1461015c57806301ffc9a71461019a57806302fe5305146101d55780630e89341c1461027b5780631f7fdffa1461030d5780632eb2c2d6146104c5575b600080fd5b6101886004803603604081101561017257600080fd5b506001600160a01b038135169060200135610ce4565b60408051918252519081900360200190f35b6101c1600480360360208110156101b057600080fd5b50356001600160e01b031916610d56565b604080519115158252519081900360200190f35b610279600480360360208110156101eb57600080fd5b810190602081018135600160201b81111561020557600080fd5b82018360208201111561021757600080fd5b803590602001918460018302840111600160201b8311171561023857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d75945050505050565b005b6102986004803603602081101561029157600080fd5b5035610dd9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d25781810151838201526020016102ba565b50505050905090810190601f1680156102ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102796004803603608081101561032357600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561034d57600080fd5b82018360208201111561035f57600080fd5b803590602001918460208302840111600160201b8311171561038057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103cf57600080fd5b8201836020820111156103e157600080fd5b803590602001918460208302840111600160201b8311171561040257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561045157600080fd5b82018360208201111561046357600080fd5b803590602001918460018302840111600160201b8311171561048457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e71945050505050565b610279600480360360a08110156104db57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561050e57600080fd5b82018360208201111561052057600080fd5b803590602001918460208302840111600160201b8311171561054157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460208302840111600160201b831117156105c357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561061257600080fd5b82018360208201111561062457600080fd5b803590602001918460018302840111600160201b8311171561064557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f09945050505050565b6102796004803603602081101561069c57600080fd5b50356001600160a01b0316611207565b6106c9600480360360208110156106c257600080fd5b503561126e565b60408051938452602084019290925282820152519081900360600190f35b61080a600480360360408110156106fd57600080fd5b810190602081018135600160201b81111561071757600080fd5b82018360208201111561072957600080fd5b803590602001918460208302840111600160201b8311171561074a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561079957600080fd5b8201836020820111156107ab57600080fd5b803590602001918460208302840111600160201b831117156107cc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506112ba945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561084657818101518382015260200161082e565b505050509050019250505060405180910390f35b610188611438565b6101886004803603604081101561087857600080fd5b5063ffffffff8135811691602001351661143f565b610279600480360360608110156108a357600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156108cd57600080fd5b8201836020820111156108df57600080fd5b803590602001918460208302840111600160201b8311171561090057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561094f57600080fd5b82018360208201111561096157600080fd5b803590602001918460208302840111600160201b8311171561098257600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061159f945050505050565b6102796115f5565b610279600480360360808110156109de57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611697945050505050565b610a906116f7565b604080516001600160a01b039092168252519081900360200190f35b61027960048036036020811015610ac257600080fd5b50356001600160a01b0316611706565b61027960048036036040811015610ae857600080fd5b506001600160a01b0381351690602001351515611769565b6101c160048036036020811015610b1657600080fd5b50356001600160a01b0316611858565b610b4360048036036020811015610b3c57600080fd5b503561186b565b604051808363ffffffff1681526020018263ffffffff1681526020019250505060405180910390f35b61027960048036036040811015610b8257600080fd5b508035906020013563ffffffff1661189a565b6101c160048036036040811015610bab57600080fd5b506001600160a01b0381358116916020013516611978565b610279600480360360a0811015610bd957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610c1857600080fd5b820183602082011115610c2a57600080fd5b803590602001918460018302840111600160201b83111715610c4b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506119a6945050505050565b61027960048036036020811015610ca257600080fd5b50356001600160a01b0316611b71565b61027960048036036060811015610cc857600080fd5b506001600160a01b038135169060208101359060400135611c6a565b60006001600160a01b038316610d2b5760405162461bcd60e51b815260040180806020018281038252602b815260200180612bfd602b913960400191505060405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526020819052604090205460ff1690565b610d7d611cd7565b6004546001600160a01b03908116911614610dcd576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b610dd681611cdb565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e655780601f10610e3a57610100808354040283529160200191610e65565b820191906000526020600020905b815481529060010190602001808311610e4857829003601f168201915b50505050509050919050565b610e84610e7c611cd7565b600690611cee565b610ebf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b60005b8351811015610ef6576005548451859083908110610edc57fe5b602002602001015110610eee57600080fd5b600101610ec2565b50610f0384848484611d03565b50505050565b8151835114610f495760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b6001600160a01b038416610f8e5760405162461bcd60e51b8152600401808060200182810382526025815260200180612ccc6025913960400191505060405180910390fd5b610f96611cd7565b6001600160a01b0316856001600160a01b03161480610fc15750610fc185610fbc611cd7565b611978565b610ffc5760405162461bcd60e51b8152600401808060200182810382526032815260200180612cf16032913960400191505060405180910390fd5b6000611006611cd7565b90506110168187878787876111ff565b60005b845181101561111757600085828151811061103057fe5b60200260200101519050600085838151811061104857fe5b602002602001015190506110b5816040518060600160405280602a8152602001612d6e602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611f589092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546110ec9082611fef565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001611019565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561119d578181015183820152602001611185565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156111dc5781810151838201526020016111c4565b5050505090500194505050505060405180910390a46111ff818787878787612049565b505050505050565b61120f611cd7565b6004546001600160a01b0390811691161461125f576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b61126a6006826122c8565b5050565b6000806000600580549050831061128457600080fd5b60006005858154811061129357fe5b600091825260209091200154949563ffffffff80871696600160201b900416945092505050565b606081518351146112fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612de16029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561131657600080fd5b50604051908082528060200260200182016040528015611340578160200160208202803683370190505b50905060005b84518110156114305760006001600160a01b031685828151811061136657fe5b60200260200101516001600160a01b031614156113b45760405162461bcd60e51b8152600401808060200182810382526031815260200180612c286031913960400191505060405180910390fd5b600160008583815181106113c457fe5b6020026020010151815260200190815260200160002060008683815181106113e857fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061141d57fe5b6020908102919091010152600101611346565b509392505050565b6005545b90565b6000611449611cd7565b6004546001600160a01b03908116911614611499576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b63ffffffff82166114e0576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207479706560a01b604482015290519081900360640190fd5b6005805460408051808201825263ffffffff808816808352878216602080850191825260018701885560009790975292517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db08601805494518416600160201b0267ffffffff00000000199290941663ffffffff1990951694909417169190911790915581519081529051919283927f8bbc6cd6e9feb6487227bc50a1124b392d829e7b36b421ebc376bf5a527e51d29281900390910190a29392505050565b6115aa610e7c611cd7565b6115e55760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b6115f08383836122dd565b505050565b6115fd611cd7565b6004546001600160a01b0390811691161461164d576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600480546001600160a01b0319169055565b6116a2610e7c611cd7565b6116dd5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b60055483106116eb57600080fd5b610f038484848461254b565b6004546001600160a01b031690565b61170e611cd7565b6004546001600160a01b0390811691161461175e576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b61126a600682611cbb565b816001600160a01b031661177b611cd7565b6001600160a01b031614156117c15760405162461bcd60e51b8152600401808060200182810382526029815260200180612db86029913960400191505060405180910390fd5b80600260006117ce611cd7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611812611cd7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000611865600683611cee565b50919050565b6005818154811061187857fe5b60009182526020909120015463ffffffff8082169250600160201b9091041682565b6118a2611cd7565b6004546001600160a01b039081169116146118f2576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b600554821061190057600080fd5b60006005838154811061190f57fe5b600091825260209182902001805463ffffffff85811663ffffffff19831681178455604080519290931680835294820152815192945086927f7bc44cf8897396373bc396f9f0a0c0f9d2c4f746263d51b86ab1ae0697305e2c929181900390910190a250505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166119eb5760405162461bcd60e51b8152600401808060200182810382526025815260200180612ccc6025913960400191505060405180910390fd5b6119f3611cd7565b6001600160a01b0316856001600160a01b03161480611a195750611a1985610fbc611cd7565b611a545760405162461bcd60e51b8152600401808060200182810382526029815260200180612ca36029913960400191505060405180910390fd5b6000611a5e611cd7565b9050611a7e818787611a6f8861264c565b611a788861264c565b876111ff565b611ac5836040518060600160405280602a8152602001612d6e602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190611f58565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054611afc9084611fef565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46111ff818787878787612690565b611b79611cd7565b6004546001600160a01b03908116911614611bc9576040805162461bcd60e51b81526020600482018190526024820152600080516020612d98833981519152604482015290519081900360640190fd5b6001600160a01b038116611c0e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612c596026913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600480546001600160a01b0319166001600160a01b0392909216919091179055565b611c75610e7c611cd7565b611cb05760405162461bcd60e51b8152600401808060200182810382526028815260200180612d236028913960400191505060405180910390fd5b6115f0838383612801565b6000611cd0836001600160a01b038416612934565b9392505050565b3390565b805161126a906003906020840190612a62565b6000611cd0836001600160a01b03841661297e565b6001600160a01b038416611d485760405162461bcd60e51b8152600401808060200182810382526021815260200180612e326021913960400191505060405180910390fd5b8151835114611d885760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b6000611d92611cd7565b9050611da3816000878787876111ff565b60005b8451811015611e6757611e1e60016000878481518110611dc257fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611e0857fe5b6020026020010151611fef90919063ffffffff16565b60016000878481518110611e2e57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611da6565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611eee578181015183820152602001611ed6565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611f2d578181015183820152602001611f15565b5050505090500194505050505060405180910390a4611f5181600087878787612049565b5050505050565b60008184841115611fe75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fac578181015183820152602001611f94565b50505050905090810190601f168015611fd95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611cd0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b61205b846001600160a01b0316612996565b156111ff57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156120e95781810151838201526020016120d1565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612128578181015183820152602001612110565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561216457818101518382015260200161214c565b50505050905090810190601f1680156121915780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156121b657600080fd5b505af19250505080156121db57506040513d60208110156121d657600080fd5b505160015b612270576121e7612afb565b806121f25750612239565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611fac578181015183820152602001611f94565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612ba16034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146122bf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612bd56028913960400191505060405180910390fd5b50505050505050565b6000611cd0836001600160a01b03841661299c565b6001600160a01b0383166123225760405162461bcd60e51b8152600401808060200182810382526023815260200180612d4b6023913960400191505060405180910390fd5b80518251146123625760405162461bcd60e51b8152600401808060200182810382526028815260200180612e0a6028913960400191505060405180910390fd5b600061236c611cd7565b905061238c818560008686604051806020016040528060008152506111ff565b60005b835181101561246a576124218382815181106123a757fe5b6020026020010151604051806060016040528060248152602001612c7f60249139600160008886815181106123d857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611f589092919063ffffffff16565b6001600086848151811061243157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161238f565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156124f15781810151838201526020016124d9565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612530578181015183820152602001612518565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166125905760405162461bcd60e51b8152600401808060200182810382526021815260200180612e326021913960400191505060405180910390fd5b600061259a611cd7565b90506125ac81600087611a6f8861264c565b60008481526001602090815260408083206001600160a01b03891684529091529020546125d99084611fef565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611f5181600087878787612690565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061267f57fe5b602090810291909101015292915050565b6126a2846001600160a01b0316612996565b156111ff57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612731578181015183820152602001612719565b50505050905090810190601f16801561275e5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561278157600080fd5b505af19250505080156127a657506040513d60208110156127a157600080fd5b505160015b6127b2576121e7612afb565b6001600160e01b0319811663f23a6e6160e01b146122bf5760405162461bcd60e51b8152600401808060200182810382526028815260200180612bd56028913960400191505060405180910390fd5b6001600160a01b0383166128465760405162461bcd60e51b8152600401808060200182810382526023815260200180612d4b6023913960400191505060405180910390fd5b6000612850611cd7565b9050612880818560006128628761264c565b61286b8761264c565b604051806020016040528060008152506111ff565b6128c782604051806060016040528060248152602001612c7f6024913960008681526001602090815260408083206001600160a01b038b1684529091529020549190611f58565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000612940838361297e565b61297657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d50565b506000610d50565b60009081526001919091016020526040902054151590565b3b151590565b60008181526001830160205260408120548015612a5857835460001980830191908101906000908790839081106129cf57fe5b90600052602060002001549050808760000184815481106129ec57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612a1c57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d50565b6000915050610d50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612aa357805160ff1916838001178555612ad0565b82800160010185558215612ad0579182015b82811115612ad0578251825591602001919060010190612ab5565b50612adc929150612ae0565b5090565b5b80821115612adc5760008155600101612ae1565b60e01c90565b600060443d1015612b0b5761143c565b600481823e6308c379a0612b1f8251612af5565b14612b295761143c565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612b59575050505061143c565b82840192508251915080821115612b73575050505061143c565b503d83016020828401011115612b8b5750505061143c565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416c706163615765617261626c653a2063616c6c6572206973206e6f7420746865206d696e746572455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e736665724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a264697066735822122007c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d64736f6c634300060c0033
Deployed Bytecode Sourcemap
49053:3675:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25714:223;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25714:223:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;10204:142;;;;;;;;;;;;;;;;-1:-1:-1;10204:142:0;-1:-1:-1;;;;;;10204:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;52139:85;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52139:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52139:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52139:85:0;;-1:-1:-1;52139:85:0;;-1:-1:-1;;;;;52139:85:0:i;:::-;;25464:99;;;;;;;;;;;;;;;;-1:-1:-1;25464:99:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51420:333;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51420:333:0;;;;;;;;;;;;;;;-1:-1:-1;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51420:333:0;;;;;;;;-1:-1:-1;51420:333:0;;-1:-1:-1;;;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51420:333:0;;;;;;;;-1:-1:-1;51420:333:0;;-1:-1:-1;;;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51420:333:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51420:333:0;;-1:-1:-1;51420:333:0;;-1:-1:-1;;;;;51420:333:0:i;28426:1220::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28426:1220:0;;;;;;;;-1:-1:-1;28426:1220:0;;-1:-1:-1;;;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28426:1220:0;;;;;;;;-1:-1:-1;28426:1220:0;;-1:-1:-1;;;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28426:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28426:1220:0;;-1:-1:-1;28426:1220:0;;-1:-1:-1;;;;;28426:1220:0:i;52332:98::-;;;;;;;;;;;;;;;;-1:-1:-1;52332:98:0;-1:-1:-1;;;;;52332:98:0;;:::i;49969:412::-;;;;;;;;;;;;;;;;-1:-1:-1;49969:412:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;26103:634;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;26103:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;26103:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26103:634:0;;;;;;;;-1:-1:-1;26103:634:0;;-1:-1:-1;;;;;26103:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;26103:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26103:634:0;;-1:-1:-1;26103:634:0;;-1:-1:-1;;;;;26103:634:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49864:97;;;:::i;50433:367::-;;;;;;;;;;;;;;;;-1:-1:-1;50433:367:0;;;;;;;;;;;:::i;51934:197::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51934:197:0;;;;;;;;;;;;;;;-1:-1:-1;;;51934:197:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51934:197:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51934:197:0;;;;;;;;-1:-1:-1;51934:197:0;;-1:-1:-1;;;;;51934:197:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51934:197:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51934:197:0;;-1:-1:-1;51934:197:0;;-1:-1:-1;;;;;51934:197:0:i;39148:148::-;;;:::i;51172:240::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51172:240:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51172:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51172:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51172:240:0;;-1:-1:-1;51172:240:0;;-1:-1:-1;;;;;51172:240:0:i;38506:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;38506:79:0;;;;;;;;;;;;;;52232:92;;;;;;;;;;;;;;;;-1:-1:-1;52232:92:0;-1:-1:-1;;;;;52232:92:0;;:::i;26810:311::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26810:311:0;;;;;;;;;;:::i;52438:106::-;;;;;;;;;;;;;;;;-1:-1:-1;52438:106:0;-1:-1:-1;;;;;52438:106:0;;:::i;49558:27::-;;;;;;;;;;;;;;;;-1:-1:-1;49558:27:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50808:356;;;;;;;;;;;;;;;;-1:-1:-1;50808:356:0;;;;;;;;;:::i;27193:160::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27193:160:0;;;;;;;;;;:::i;27425:924::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27425:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27425:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27425:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27425:924:0;;-1:-1:-1;27425:924:0;;-1:-1:-1;;;;;27425:924:0:i;39451:244::-;;;;;;;;;;;;;;;;-1:-1:-1;39451:244:0;-1:-1:-1;;;;;39451:244:0;;:::i;51761:165::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51761:165:0;;;;;;;;;;;;;:::i;25714:223::-;25792:7;-1:-1:-1;;;;;25820:21:0;;25812:77;;;;-1:-1:-1;;;25812:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25907:13:0;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;25907:22:0;;;;;;;;;;25714:223;;;;;:::o;10204:142::-;-1:-1:-1;;;;;;10305:33:0;10281:4;10305:33;;;;;;;;;;;;;;10204:142::o;52139:85::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;52203:13:::1;52211:4;52203:7;:13::i;:::-;52139:85:::0;:::o;25464:99::-;25551:4;25544:11;;;;;;;;-1:-1:-1;;25544:11:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25518:13;;25544:11;;25551:4;;25544:11;;25551:4;25544:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25464:99;;;:::o;51420:333::-;52607:30;52624:12;:10;:12::i;:::-;52607:7;;:16;:30::i;:::-;52585:120;;;;-1:-1:-1;;;52585:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51604:9:::1;51599:102;51623:3;:10;51619:1;:14;51599:102;;;51672:9;:16:::0;51663:6;;:3;;51667:1;;51663:6;::::1;;;;;;;;;;;:25;51655:34;;;::::0;::::1;;51635:3;;51599:102;;;;51711:34;51722:2;51726:3;51731:7;51740:4;51711:10;:34::i;:::-;51420:333:::0;;;;:::o;28426:1220::-;28691:7;:14;28677:3;:10;:28;28669:81;;;;-1:-1:-1;;;28669:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28769:16:0;;28761:66;;;;-1:-1:-1;;;28761:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28868:12;:10;:12::i;:::-;-1:-1:-1;;;;;28860:20:0;:4;-1:-1:-1;;;;;28860:20:0;;:60;;;;28884:36;28901:4;28907:12;:10;:12::i;:::-;28884:16;:36::i;:::-;28838:160;;;;-1:-1:-1;;;28838:160:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29011:16;29030:12;:10;:12::i;:::-;29011:31;;29055:60;29076:8;29086:4;29092:2;29096:3;29101:7;29110:4;29055:20;:60::i;:::-;29133:9;29128:358;29152:3;:10;29148:1;:14;29128:358;;;29184:10;29197:3;29201:1;29197:6;;;;;;;;;;;;;;29184:19;;29218:14;29235:7;29243:1;29235:10;;;;;;;;;;;;;;29218:27;;29284:126;29326:6;29284:126;;;;;;;;;;;;;;;;;:9;:13;29294:2;29284:13;;;;;;;;;;;:19;29298:4;-1:-1:-1;;;;;29284:19:0;-1:-1:-1;;;;;29284:19:0;;;;;;;;;;;;;:23;;:126;;;;;:::i;:::-;29262:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;29262:19:0;;;;;;;;;;:148;;;;29445:17;;;;;;:29;;29467:6;29445:21;:29::i;:::-;29425:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;29425:17:0;;;;;;;;;;:49;-1:-1:-1;29164:3:0;29128:358;;;;29533:2;-1:-1:-1;;;;;29503:47:0;29527:4;-1:-1:-1;;;;;29503:47:0;29517:8;-1:-1:-1;;;;;29503:47:0;;29537:3;29542:7;29503:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29563:75;29599:8;29609:4;29615:2;29619:3;29624:7;29633:4;29563:35;:75::i;:::-;28426:1220;;;;;;:::o;52332:98::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;52399:23:::1;:7;52414::::0;52399:14:::1;:23::i;:::-;;52332:98:::0;:::o;49969:412::-;50085:10;50110:14;50139:20;50200:9;:16;;;;50195:2;:21;50187:30;;;;;;50230:25;50258:9;50268:3;50258:14;;;;;;;;;;;;;;;;;50311:15;50288:3;;50311:15;;;;;-1:-1:-1;;;50352:21:0;;;;-1:-1:-1;49969:412:0;-1:-1:-1;;;49969:412:0:o;26103:634::-;26267:16;26328:3;:10;26309:8;:15;:29;26301:83;;;;-1:-1:-1;;;26301:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26397:30;26444:8;:15;26430:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26430:30:0;;26397:63;;26478:9;26473:224;26497:8;:15;26493:1;:19;26473:224;;;26565:1;-1:-1:-1;;;;;26542:25:0;:8;26551:1;26542:11;;;;;;;;;;;;;;-1:-1:-1;;;;;26542:25:0;;;26534:87;;;;-1:-1:-1;;;26534:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26655:9;:17;26665:3;26669:1;26665:6;;;;;;;;;;;;;;26655:17;;;;;;;;;;;:30;26673:8;26682:1;26673:11;;;;;;;;;;;;;;-1:-1:-1;;;;;26655:30:0;-1:-1:-1;;;;;26655:30:0;;;;;;;;;;;;;26636:13;26650:1;26636:16;;;;;;;;;;;;;;;;;:49;26514:3;;26473:224;;;-1:-1:-1;26716:13:0;26103:634;-1:-1:-1;;;26103:634:0:o;49864:97::-;49937:9;:16;49864:97;;:::o;50433:367::-;50543:7;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;50576:17:::1;::::0;::::1;50568:42;;;::::0;;-1:-1:-1;;;50568:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;50568:42:0;;;;;;;;;;;;;::::1;;50636:9;:16:::0;;50678:54:::1;::::0;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;;::::0;;::::1;::::0;;;50663:70:::1;::::0;::::1;::::0;;50623:10:::1;50663:70:::0;;;;;;;;::::1;::::0;;;;;::::1;-1:-1:-1::0;;;50663:70:0::1;-1:-1:-1::0;;50663:70:0;;;::::1;-1:-1:-1::0;;50663:70:0;;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;;;50749:23;;;;;;;50636:16;;;;50749:23:::1;::::0;;;;;;;;::::1;50790:2:::0;50433:367;-1:-1:-1;;;50433:367:0:o;51934:197::-;52607:30;52624:12;:10;:12::i;52607:30::-;52585:120;;;;-1:-1:-1;;;52585:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52090:33:::1;52101:7;52110:3;52115:7;52090:10;:33::i;:::-;51934:197:::0;;;:::o;39148:148::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;39239:6:::1;::::0;39218:40:::1;::::0;39255:1:::1;::::0;-1:-1:-1;;;;;39239:6:0::1;::::0;39218:40:::1;::::0;39255:1;;39218:40:::1;39269:6;:19:::0;;-1:-1:-1;;;;;;39269:19:0::1;::::0;;39148:148::o;51172:240::-;52607:30;52624:12;:10;:12::i;52607:30::-;52585:120;;;;-1:-1:-1;;;52585:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51344:9:::1;:16:::0;51339:21;::::1;51331:30;;;::::0;::::1;;51372:32;51378:7;51387:2;51391:6;51399:4;51372:5;:32::i;38506:79::-:0;38571:6;;-1:-1:-1;;;;;38571:6:0;38506:79;:::o;52232:92::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;52296:20:::1;:7;52308::::0;52296:11:::1;:20::i;26810:311::-:0;26929:8;-1:-1:-1;;;;;26913:24:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;26913:24:0;;;26905:78;;;;-1:-1:-1;;;26905:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27041:8;26996:18;:32;27015:12;:10;:12::i;:::-;-1:-1:-1;;;;;26996:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;26996:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;26996:53:0;;;;;;;;;;;27080:12;:10;:12::i;:::-;-1:-1:-1;;;;;27065:48:0;;27104:8;27065:48;;;;;;;;;;;;;;;;;;;;26810:311;;:::o;52438:106::-;52494:4;52511:25;:7;52528;52511:16;:25::i;:::-;;52438:106;;;:::o;49558:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;49558:27:0;;;;;:::o;50808:356::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;50935:9:::1;:16:::0;50927:24;::::1;50919:33;;;::::0;::::1;;50965:25;50993:9;51003:5;50993:16;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;51041:15:::0;;::::1;51067:24:::0;;::::1;-1:-1:-1::0;;51067:24:0;::::1;::::0;::::1;::::0;;51109:47:::1;::::0;;51041:15;;;::::1;51109:47:::0;;;;;::::1;::::0;;;50993:16;;-1:-1:-1;51130:5:0;;51109:47:::1;::::0;;;;;;;;;::::1;38788:1;;50808:356:::0;;:::o;27193:160::-;-1:-1:-1;;;;;27308:27:0;;;27284:4;27308:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;27193:160::o;27425:924::-;-1:-1:-1;;;;;27651:16:0;;27643:66;;;;-1:-1:-1;;;27643:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27750:12;:10;:12::i;:::-;-1:-1:-1;;;;;27742:20:0;:4;-1:-1:-1;;;;;27742:20:0;;:60;;;;27766:36;27783:4;27789:12;:10;:12::i;27766:36::-;27720:151;;;;-1:-1:-1;;;27720:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27884:16;27903:12;:10;:12::i;:::-;27884:31;;27928:96;27949:8;27959:4;27965:2;27969:21;27987:2;27969:17;:21::i;:::-;27992:25;28010:6;27992:17;:25::i;:::-;28019:4;27928:20;:96::i;:::-;28059:77;28083:6;28059:77;;;;;;;;;;;;;;;;;:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;28059:19:0;;;;;;;;;;;:77;:23;:77::i;:::-;28037:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;28037:19:0;;;;;;;;;;:99;;;;28167:17;;;;;;:29;;28189:6;28167:21;:29::i;:::-;28147:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;28147:17:0;;;;;;;;;;;;;:49;;;;28214:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28273:68;28304:8;28314:4;28320:2;28324;28328:6;28336:4;28273:30;:68::i;39451:244::-;38728:12;:10;:12::i;:::-;38718:6;;-1:-1:-1;;;;;38718:6:0;;;:22;;;38710:67;;;;;-1:-1:-1;;;38710:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38710:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;39540:22:0;::::1;39532:73;;;;-1:-1:-1::0;;;39532:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39642:6;::::0;39621:38:::1;::::0;-1:-1:-1;;;;;39621:38:0;;::::1;::::0;39642:6:::1;::::0;39621:38:::1;::::0;39642:6:::1;::::0;39621:38:::1;39670:6;:17:::0;;-1:-1:-1;;;;;;39670:17:0::1;-1:-1:-1::0;;;;;39670:17:0;;;::::1;::::0;;;::::1;::::0;;39451:244::o;51761:165::-;52607:30;52624:12;:10;:12::i;52607:30::-;52585:120;;;;-1:-1:-1;;;52585:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51892:26:::1;51898:7;51907:2;51911:6;51892:5;:26::i;44755:143::-:0;44825:4;44849:41;44854:3;-1:-1:-1;;;;;44874:14:0;;44849:4;:41::i;:::-;44842:48;44755:143;-1:-1:-1;;;44755:143:0:o;8785:106::-;8873:10;8785:106;:::o;30490:88::-;30557:13;;;;:4;;:13;;;;;:::i;45309:158::-;45389:4;45413:46;45423:3;-1:-1:-1;;;;;45443:14:0;;45413:9;:46::i;31913:715::-;-1:-1:-1;;;;;32048:16:0;;32040:62;;;;-1:-1:-1;;;32040:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32135:7;:14;32121:3;:10;:28;32113:81;;;;-1:-1:-1;;;32113:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32207:16;32226:12;:10;:12::i;:::-;32207:31;;32251:66;32272:8;32290:1;32294:2;32298:3;32303:7;32312:4;32251:20;:66::i;:::-;32335:6;32330:126;32351:3;:10;32347:1;:14;32330:126;;;32407:37;32422:9;:17;32432:3;32436:1;32432:6;;;;;;;;;;;;;;32422:17;;;;;;;;;;;:21;32440:2;-1:-1:-1;;;;;32422:21:0;-1:-1:-1;;;;;32422:21:0;;;;;;;;;;;;;32407:7;32415:1;32407:10;;;;;;;;;;;;;;:14;;:37;;;;:::i;:::-;32383:9;:17;32393:3;32397:1;32393:6;;;;;;;;;;;;;;;;;;;32383:17;;;;;;;;;;;;;-1:-1:-1;32383:17:0;;;-1:-1:-1;;;;;32383:21:0;;;;;;;;;:61;32363:3;;32330:126;;;;32509:2;-1:-1:-1;;;;;32473:53:0;32505:1;-1:-1:-1;;;;;32473:53:0;32487:8;-1:-1:-1;;;;;32473:53:0;;32513:3;32518:7;32473:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32539:81;32575:8;32593:1;32597:2;32601:3;32606:7;32615:4;32539:35;:81::i;:::-;31913:715;;;;;:::o;12803:192::-;12889:7;12925:12;12917:6;;;;12909:29;;;;-1:-1:-1;;;12909:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12961:5:0;;;12803:192::o;11900:181::-;11958:7;11990:5;;;12014:6;;;;12006:46;;;;;-1:-1:-1;;;12006:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;36332:799;36586:15;:2;-1:-1:-1;;;;;36586:13:0;;:15::i;:::-;36582:542;;;36639:2;-1:-1:-1;;;;;36622:43:0;;36666:8;36676:4;36682:3;36687:7;36696:4;36622:79;;;;;;;;;;;;;-1:-1:-1;;;;;36622:79:0;;;;;;-1:-1:-1;;;;;36622:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36622:79:0;;;36618:495;;;;:::i;:::-;;;;;;;;36979:14;;-1:-1:-1;;;36979:14:0;;;;;;;;;;;;;;;;;36986:6;;36979:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36618:495;37035:62;;-1:-1:-1;;;37035:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36618:495;-1:-1:-1;;;;;;36751:64:0;;-1:-1:-1;;;36751:64:0;36747:163;;36840:50;;-1:-1:-1;;;36840:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36747:163;36702:223;36332:799;;;;;;:::o;45074:149::-;45147:4;45171:44;45179:3;-1:-1:-1;;;;;45199:14:0;;45171:7;:44::i;33641:721::-;-1:-1:-1;;;;;33762:21:0;;33754:69;;;;-1:-1:-1;;;33754:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33856:7;:14;33842:3;:10;:28;33834:81;;;;-1:-1:-1;;;33834:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33928:16;33947:12;:10;:12::i;:::-;33928:31;;33972:69;33993:8;34003:7;34020:1;34024:3;34029:7;33972:69;;;;;;;;;;;;:20;:69::i;:::-;34059:6;34054:225;34075:3;:10;34071:1;:14;34054:225;;;34136:131;34185:7;34193:1;34185:10;;;;;;;;;;;;;;34136:131;;;;;;;;;;;;;;;;;:9;:17;34146:3;34150:1;34146:6;;;;;;;;;;;;;;34136:17;;;;;;;;;;;:26;34154:7;-1:-1:-1;;;;;34136:26:0;-1:-1:-1;;;;;34136:26:0;;;;;;;;;;;;;:30;;:131;;;;;:::i;:::-;34107:9;:17;34117:3;34121:1;34117:6;;;;;;;;;;;;;;;;;;;34107:17;;;;;;;;;;;;;-1:-1:-1;34107:17:0;;;-1:-1:-1;;;;;34107:26:0;;;;;;;;;:160;34087:3;;34054:225;;;;34337:1;-1:-1:-1;;;;;34296:58:0;34320:7;-1:-1:-1;;;;;34296:58:0;34310:8;-1:-1:-1;;;;;34296:58:0;;34341:3;34346:7;34296:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33641:721;;;;:::o;30974:583::-;-1:-1:-1;;;;;31089:21:0;;31081:67;;;;-1:-1:-1;;;31081:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31161:16;31180:12;:10;:12::i;:::-;31161:31;;31205:107;31226:8;31244:1;31248:7;31257:21;31275:2;31257:17;:21::i;31205:107::-;31350:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;31350:22:0;;;;;;;;;;:34;;31377:6;31350:26;:34::i;:::-;31325:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;31325:22:0;;;;;;;;;;;;:59;;;;31400:57;;;;;;;;;;;;;31325:22;;31400:57;;;;;;;;;;;;31470:79;31501:8;31519:1;31523:7;31532:2;31536:6;31544:4;31470:30;:79::i;37139:198::-;37259:16;;;37273:1;37259:16;;;;;;;;;37205;;;;37259;;;;;;;;;;;;-1:-1:-1;37259:16:0;37234:41;;37297:7;37286:5;37292:1;37286:8;;;;;;;;;;;;;;;;;:18;37324:5;37139:198;-1:-1:-1;;37139:198:0:o;35562:762::-;35791:15;:2;-1:-1:-1;;;;;35791:13:0;;:15::i;:::-;35787:530;;;35844:2;-1:-1:-1;;;;;35827:38:0;;35866:8;35876:4;35882:2;35886:6;35894:4;35827:72;;;;;;;;;;;;;-1:-1:-1;;;;;35827:72:0;;;;;;-1:-1:-1;;;;;35827:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35827:72:0;;;35823:483;;;;:::i;:::-;-1:-1:-1;;;;;;35949:59:0;;-1:-1:-1;;;35949:59:0;35945:158;;36033:50;;-1:-1:-1;;;36033:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32887:551;-1:-1:-1;;;;;32983:21:0;;32975:69;;;;-1:-1:-1;;;32975:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33057:16;33076:12;:10;:12::i;:::-;33057:31;;33101:105;33122:8;33132:7;33149:1;33153:21;33171:2;33153:17;:21::i;:::-;33176:25;33194:6;33176:17;:25::i;:::-;33101:105;;;;;;;;;;;;:20;:105::i;:::-;33244:111;33285:6;33244:111;;;;;;;;;;;;;;;;;:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;33244:22:0;;;;;;;;;;;:111;:26;:111::i;:::-;33219:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;33219:22:0;;;;;;;;;;;;:136;;;;33373:57;;;;;;;;;;;;;33219:13;;:22;;33373:57;;;;;;;;;;;;;32887:551;;;;:::o;41409:414::-;41472:4;41494:21;41504:3;41509:5;41494:9;:21::i;:::-;41489:327;;-1:-1:-1;41532:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;41715:18;;41693:19;;;:12;;;:19;;;;;;:40;;;;41748:11;;41489:327;-1:-1:-1;41799:5:0;41792:12;;43629:129;43702:4;43726:19;;;:12;;;;;:19;;;;;;:24;;;43629:129::o;17143:422::-;17510:20;17549:8;;;17143:422::o;41999:1544::-;42065:4;42204:19;;;:12;;;:19;;;;;;42240:15;;42236:1300;;42675:18;;-1:-1:-1;;42626:14:0;;;;42675:22;;;;42602:21;;42675:3;;:22;;42962;;;;;;;;;;;;;;42942:42;;43108:9;43079:3;:11;;43091:13;43079:26;;;;;;;;;;;;;;;;;;;:38;;;;43185:23;;;43227:1;43185:12;;;:23;;;;;;43211:17;;;43185:43;;43337:17;;43185:3;;43337:17;;;;;;;;;;;;;;;;;;;;;;43432:3;:12;;:19;43445:5;43432:19;;;;;;;;;;;43425:26;;;43475:4;43468:11;;;;;;;;42236:1300;43519:5;43512:12;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;110:106;195:3;191:15;;163:53::o;224:739::-;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;-1:-1;;318:23;414:10;357:34;-1:-1;382:8;357:34;:::i;:::-;406:19;396:2;;429:5;;396:2;460;454:9;496:16;-1:-1;;492:24;339:1;454:9;468:49;543:4;537:11;624:16;576:18;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;;553:2;693:6;687:4;683:17;672:28;;725:3;719:10;705:24;;576:18;740:6;737:30;734:2;;;770:5;;;;;;734:2;;847:16;841:4;837:27;807:4;814:6;802:3;794:27;;829:36;826:2;;;868:5;;;;;826:2;89:7;73:14;-1:-1;;69:28;892:50;;807:4;892:50;460:2;881:62;900:3;-1:-1;;267:696;:::o
Swarm Source
ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.