Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
219 AR:A
Holders
55
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
AnimusRegnumArtifacts
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.4; /**************************************** * @author: Squeebo * * @team: Golden X * ****************************************/ import './Blimpie/Delegated.sol'; import './Blimpie/PaymentSplitterMod.sol'; import './ERC1155MetaTx.sol'; contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract AnimusRegnumArtifacts is Delegated, ERC1155MetaTx, PaymentSplitterMod{ struct Token{ uint burnPrice; uint mintPrice; uint balance; uint maxWallet; uint supply; bool isBurnActive; bool isMintActive; string name; string uri; } Token[] public tokens; /** BEGIN: OS required **/ string public name = "Animus Regnum: Artifacts"; string public symbol = "AR:A"; mapping (uint => address) public creators; //address private proxyRegistryAddress = 0xF57B2c51dED3A29e6891aba85459d600256Cf317; //rinkeby address private proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; //mainnet //address private proxyRegistryAddress = 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c; //mumbai //address private proxyRegistryAddress = 0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101; //polygon /** END: OS required **/ address[] private payees = [ 0x608D6C1f1bD9a99565a7C2ED41B5E8e1A2599284, 0xb701967e076E2BBb749C22DB4fA39747B62Dae59, 0xB7edf3Cbb58ecb74BdE6298294c7AAb339F3cE4a ]; uint[] private splits = [ 85, 5, 10 ]; constructor() Delegated() ERC1155MetaTx(name, "") PaymentSplitterMod( payees, splits ){ } function exists(uint id) external view returns (bool) { return id < tokens.length; } /** BEGIN: OS required **/ //external function create( address initialOwner, uint supply, string calldata uri_, bytes calldata data_ ) external onlyDelegates returns (uint) { uint id = tokens.length; setToken( id, "", uri_, supply, supply, false, 0, false, 0 ); return id; } function tokenSupply( uint id ) external view returns( uint ){ require(id < tokens.length, "Specified token (id) does not exist" ); return tokens[id].supply; } function totalSupply(uint id) external view returns (uint) { require(id < tokens.length, "Specified token (id) does not exist" ); return tokens[id].supply; } //public //@see proxyRegistryAddress function isApprovedForAll( address _owner, address _operator ) public virtual override view returns (bool isOperator) { // if OpenSea's ERC721 Proxy Address is detected, auto-return true if (_operator == proxyRegistryAddress) { return true; } return ERC1155.isApprovedForAll(_owner, _operator); } function uri(uint id) public override view returns (string memory){ require(id < tokens.length, "Specified token (id) does not exist" ); return tokens[id].uri; } /** END: OS required **/ //external fallback() external payable {} function mint( uint id, uint quantity ) external payable{ require( id < tokens.length, "Specified token (id) does not exist" ); Token storage token = tokens[id]; require( token.isMintActive, "Sale is not active" ); require( token.balance + quantity <= token.supply, "Not enough supply" ); require( msg.value >= token.mintPrice * quantity, "Ether sent is not correct" ); _mint( _msgSender(), id, quantity, "" ); token.balance += quantity; } function mintBatch( uint[] calldata ids, uint[] calldata quantities, bytes calldata data) external payable{ uint totalRequired; for(uint i; i < ids.length; ++i){ require( ids[i] < tokens.length, "Specified token (id) does not exist" ); uint quantity = quantities[i]; Token storage token = tokens[ids[i]]; require( token.isMintActive, "Sale is not active" ); require( token.balance + quantity <= token.supply, "Not enough supply" ); require( balanceOf( _msgSender(), ids[i] ) + quantity < token.maxWallet, "Don't be greedy" ); require( msg.value >= token.mintPrice * quantity, "Ether sent is not correct" ); totalRequired += ( token.mintPrice * quantity ); token.balance += quantity; } require( msg.value >= totalRequired, "Ether sent is not correct" ); _mintBatch( _msgSender(), ids, quantities, data ); } //delegated function burn( address account, uint id, uint quantity ) external payable onlyDelegates{ require( id < tokens.length, "Specified token (id) does not exist" ); Token storage token = tokens[id]; require( token.balance >= quantity, "Not enough supply" ); token.balance -= quantity; token.supply -= quantity; _burn( account, id, quantity ); } function burnBatch( address account, uint[] calldata ids, uint[] calldata quantities) external payable onlyDelegates{ for(uint i; i < ids.length; ++i){ require( ids[i] < tokens.length, "Specified token (id) does not exist" ); uint quantity = quantities[i]; Token storage token = tokens[ids[i]]; require( token.balance >= quantity, "Not enough supply" ); token.balance -= quantity; token.supply -= quantity; } _burnBatch( account, ids, quantities ); } function mintTo( address[] calldata accounts, uint[] calldata ids, uint[] calldata quantities ) external payable onlyDelegates { require( accounts.length == ids.length, "Must provide equal accounts and ids" ); require( ids.length == quantities.length, "Must provide equal ids and quantities"); for(uint i; i < ids.length; ++i ){ require( ids[i] < tokens.length, "Specified token (id) does not exist" ); Token storage token = tokens[ids[i]]; require( token.balance + quantities[i] <= token.supply, "Not enough supply" ); token.balance += quantities[i]; _mint( accounts[i], ids[i], quantities[i], "" ); } } function mintBatchTo( address account, uint[] calldata ids, uint[] calldata quantities, bytes calldata data) external payable onlyDelegates{ for(uint i; i < ids.length; ++i){ require( ids[i] < tokens.length, "Specified token (id) does not exist" ); uint quantity = quantities[i]; Token storage token = tokens[ids[i]]; require( token.balance + quantity <= token.supply, "Not enough supply" ); token.balance += quantity; } _mintBatch( account, ids, quantities, data ); } //delegated function setToken(uint id, string memory name_, string calldata uri_, uint maxWallet, uint supply, bool isBurnActive, uint burnPrice, bool isMintActive, uint mintPrice ) public onlyDelegates{ require( id < tokens.length || id == tokens.length, "Invalid token id" ); if( id == tokens.length ){ creators[ id ] = _msgSender(); tokens.push(); } Token storage token = tokens[id]; token.name = name_; token.uri = uri_; setActive(id, isBurnActive, isMintActive); setPrice(id, burnPrice, mintPrice); setSupply(id, maxWallet, supply); if (bytes(uri_).length > 0) emit URI( uri_, id ); } function setActive(uint id, bool isBurnActive, bool isMintActive) public onlyDelegates{ require( id < tokens.length, "Specified token (id) does not exist" ); require( tokens[id].isBurnActive != isBurnActive || tokens[id].isMintActive != isMintActive, "New value matches old" ); tokens[id].isBurnActive = isBurnActive; tokens[id].isMintActive = isMintActive; } function setPrice(uint id, uint burnPrice, uint mintPrice) public onlyDelegates{ require( id < tokens.length, "Specified token (id) does not exist" ); require( tokens[id].burnPrice != burnPrice || tokens[id].mintPrice != mintPrice, "New value matches old" ); tokens[id].burnPrice = burnPrice; tokens[id].mintPrice = mintPrice; } function setSupply(uint id, uint maxWallet, uint supply) public onlyDelegates{ require( id < tokens.length, "Specified token (id) does not exist" ); Token storage token = tokens[id]; require( token.maxWallet != maxWallet || token.supply != supply, "New value matches old" ); require( token.balance <= supply, "Specified supply is lower than current balance" ); token.maxWallet = maxWallet; token.supply = supply; } function setURI(uint id, string calldata uri_) external onlyDelegates{ require( id < tokens.length, "Specified token (id) does not exist" ); tokens[id].uri = uri_; emit URI( uri_, id ); } //onlyOwner function addPayee( address account, uint shares ) external onlyOwner { _addPayee( account, shares ); } function setPayee( uint index, address account, uint newShares ) external onlyOwner { _setPayee( index, account, newShares ); } //internal function _msgSender() internal virtual override(Context,ERC1155MetaTx) view returns (address sender){ return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.4; /**************************************** * @author: Squeebo * * @team: Golden X * ****************************************/ import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import '@maticnetwork/pos-portal/contracts/common/ContextMixin.sol'; import '@maticnetwork/pos-portal/contracts/common/NativeMetaTransaction.sol'; abstract contract ERC1155MetaTx is ERC1155, ContextMixin, NativeMetaTransaction { constructor (string memory name_, string memory uri_) ERC1155(uri_) { _initializeEIP712(name_); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal virtual override view returns (address sender){ return ContextMixin.msgSender(); } /** * As another option for supporting trading without requiring meta transactions, override isApprovedForAll to whitelist OpenSea proxy accounts on Matic */ function isApprovedForAll( address _owner, address _operator ) public virtual override view returns (bool isOperator) { if (_operator == address(0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101)) { return true; } return ERC1155.isApprovedForAll(_owner, _operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitterMod is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) internal { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } function _setPayee( uint index, address account, uint newShares ) internal { _shares[ account ] = newShares; _payees[ index ] = account; _totalShares = _totalShares - _shares[ account ] + newShares; } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /*********************** * @author: squeebo_nft * ************************/ import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; constructor(){ _delegates[owner()] = true; } modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns ( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { 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 virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` 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] += 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 (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `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), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } 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 (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } 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.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
pragma solidity ^0.8.4; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
pragma solidity ^0.8.4; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
pragma solidity ^0.8.4; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contractsa that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
pragma solidity ^0.8.4; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"addPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"create","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatchTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"isBurnActive","type":"bool"},{"internalType":"bool","name":"isMintActive","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"newShares","type":"uint256"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"burnPrice","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"maxWallet","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"maxWallet","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bool","name":"isBurnActive","type":"bool"},{"internalType":"uint256","name":"burnPrice","type":"uint256"},{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"uint256","name":"burnPrice","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"maxWallet","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bool","name":"isBurnActive","type":"bool"},{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6005805460ff1916905560c0604052601860808190527f416e696d7573205265676e756d3a20417274696661637473000000000000000060a09081526200004a91600e91906200081a565b506040805180820190915260048082526341523a4160e01b60209092019182526200007891600f916200081a565b50601180546001600160a01b03191673a5409ec958c83c3f309868babaca7c86dcb077c11790556040805160608101825273608d6c1f1bd9a99565a7c2ed41b5e8e1a2599284815273b701967e076e2bbb749c22db4fa39747b62dae59602082015273b7edf3cbb58ecb74bde6298294c7aab339f3ce4a9181019190915262000106906012906003620008a9565b50604080516060810182526055815260056020820152600a918101919091526200013590601390600362000901565b503480156200014357600080fd5b5060128054806020026020016040519081016040528092919081815260200182805480156200019c57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200017d575b50505050506013805480602002602001604051908101604052809291908181526020018280548015620001ef57602002820191906000526020600020905b815481526020019060010190808311620001da575b5050505050600e805462000203906200095b565b80601f016020809104026020016040519081016040528092919081815260200182805462000231906200095b565b8015620002825780601f10620002565761010080835404028352916020019162000282565b820191906000526020600020905b8154815290600101906020018083116200026457829003601f168201915b50505050506040518060200160405280600081525080620002b2620002ac6200044560201b60201c565b62000461565b6001806000620002ca6000546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055620002fd81620004b1565b506200030982620004ca565b505080518251146200037d5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003d05760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000374565b60005b82518110156200043c5762000427838281518110620003f657620003f662000998565b602002602001015183838151811062000413576200041362000998565b60200260200101516200052b60201b60201c565b806200043381620009c4565b915050620003d3565b505050620009fd565b60006200045c6200071960201b620027d21760201c565b905090565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620004c69060049060208401906200081a565b5050565b60055460ff1615620005105760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640162000374565b6200051b8162000778565b506005805460ff19166001179055565b6001600160a01b038216620005985760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000374565b60008111620005ea5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000374565b6001600160a01b0382166000908152600a602052604090205415620006665760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000374565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854620006d0908290620009e2565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6000333014156200077257600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620007759050565b50335b90565b6040518060800160405280604f81526020016200557f604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b82805462000828906200095b565b90600052602060002090601f0160209004810192826200084c576000855562000897565b82601f106200086757805160ff191683800117855562000897565b8280016001018555821562000897579182015b82811115620008975782518255916020019190600101906200087a565b50620008a592915062000944565b5090565b82805482825590600052602060002090810192821562000897579160200282015b828111156200089757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620008ca565b82805482825590600052602060002090810192821562000897579160200282015b8281111562000897578251829060ff1690559160200191906001019062000922565b5b80821115620008a5576000815560010162000945565b600181811c908216806200097057607f821691505b602082108114156200099257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620009db57620009db620009ae565b5060010190565b60008219821115620009f857620009f8620009ae565b500190565b614b728062000a0d6000396000f3fe60806040526004361061025d5760003560e01c8063862440e211610143578063be74a913116100bb578063e985e9c511610077578063e985e9c5146107ae578063f242432a146107ce578063f2fde38b146107ee578063f5298aca1461080e578063f57557f714610821578063f5f5f4981461084157005b8063be74a913146106da578063cd53d08e146106ed578063ce7c2ac214610723578063df23880014610759578063e33b7de314610779578063e38e3b241461078e57005b8063a22cb4651161010a578063a22cb46514610647578063aa585d5614610667578063ab77460814610687578063b8d217f1146106a7578063bb4351e8146106c7578063bd85b0391461041c57005b8063862440e2146105865780638b83209b146105a65780638da5cb5b146105de57806395d89b41146105fc5780639852595c1461061157005b80632693ebf2116101d65780634a994eef1161019d5780634a994eef146104ba5780634e1273f4146104da5780634f558e79146105075780634f64b2be146105295780636b20c4541461055e578063715018a61461057157005b80632693ebf21461041c5780632d0335ab1461043c5780632eb2c2d6146104725780633408e470146104925780633a98ef39146104a557005b80630e89341c116102255780630e89341c146103675780630f7e59701461038757806318f9b023146103b457806319165587146103d45780631b2ef1ca146103f457806320379ee51461040757005b8062fdd58e146102af57806301ffc9a7146102e257806306fdde031461031257806307779627146103345780630c53c51c1461035457005b366102ad577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061028b610854565b604080516001600160a01b0390921682523460208301520160405180910390a1005b005b3480156102bb57600080fd5b506102cf6102ca366004613986565b610863565b6040519081526020015b60405180910390f35b3480156102ee57600080fd5b506103026102fd3660046139c8565b6108ff565b60405190151581526020016102d9565b34801561031e57600080fd5b5061032761094f565b6040516102d99190613a3d565b34801561034057600080fd5b5061030261034f366004613a50565b6109dd565b610327610362366004613b2c565b610a4b565b34801561037357600080fd5b50610327610382366004613ba9565b610c35565b34801561039357600080fd5b50610327604051806040016040528060018152602001603160f81b81525081565b3480156103c057600080fd5b506102ad6103cf366004613986565b610d0d565b3480156103e057600080fd5b506102ad6103ef366004613a50565b610d64565b6102ad610402366004613bc2565b610f35565b34801561041357600080fd5b506006546102cf565b34801561042857600080fd5b506102cf610437366004613ba9565b611070565b34801561044857600080fd5b506102cf610457366004613a50565b6001600160a01b031660009081526007602052604090205490565b34801561047e57600080fd5b506102ad61048d366004613c78565b6110c0565b34801561049e57600080fd5b50466102cf565b3480156104b157600080fd5b506008546102cf565b3480156104c657600080fd5b506102ad6104d5366004613d35565b611169565b3480156104e657600080fd5b506104fa6104f5366004613d6a565b6111dd565b6040516102d99190613e71565b34801561051357600080fd5b50610302610522366004613ba9565b600d541190565b34801561053557600080fd5b50610549610544366004613ba9565b611306565b6040516102d999989796959493929190613e84565b6102ad61056c366004613f36565b61147c565b34801561057d57600080fd5b506102ad611625565b34801561059257600080fd5b506102ad6105a1366004613ff9565b61167a565b3480156105b257600080fd5b506105c66105c1366004613ba9565b61173d565b6040516001600160a01b0390911681526020016102d9565b3480156105ea57600080fd5b506000546001600160a01b03166105c6565b34801561060857600080fd5b5061032761176d565b34801561061d57600080fd5b506102cf61062c366004613a50565b6001600160a01b03166000908152600b602052604090205490565b34801561065357600080fd5b506102ad610662366004613d35565b61177a565b34801561067357600080fd5b506102ad610682366004614044565b61188e565b34801561069357600080fd5b506102ad6106a2366004614070565b6119a8565b3480156106b357600080fd5b506102ad6106c2366004614044565b611b2e565b6102ad6106d5366004614142565b611c52565b6102ad6106e83660046141db565b611f3b565b3480156106f957600080fd5b506105c6610708366004613ba9565b6010602052600090815260409020546001600160a01b031681565b34801561072f57600080fd5b506102cf61073e366004613a50565b6001600160a01b03166000908152600a602052604090205490565b34801561076557600080fd5b506102ad610774366004614287565b61210c565b34801561078557600080fd5b506009546102cf565b34801561079a57600080fd5b506102cf6107a93660046142bf565b612165565b3480156107ba57600080fd5b506103026107c936600461432b565b6121cc565b3480156107da57600080fd5b506102ad6107e9366004614364565b61221e565b3480156107fa57600080fd5b506102ad610809366004613a50565b6122b7565b6102ad61081c3660046143cc565b612332565b34801561082d57600080fd5b506102ad61083c366004614401565b612411565b6102ad61084f36600461443d565b61256b565b600061085e6127d2565b905090565b60006001600160a01b0383166108d45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061093057506001600160e01b031982166303a24d0760e21b145b806108f957506301ffc9a760e01b6001600160e01b03198316146108f9565b600e805461095c906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610988906144c4565b80156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b505050505081565b60006109e7610854565b6001600160a01b0316610a026000546001600160a01b031690565b6001600160a01b031614610a285760405162461bcd60e51b81526004016108cb906144ff565b506001600160a01b03811660009081526001602052604090205460ff165b919050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610a89878287878761282f565b610adf5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016108cb565b6001600160a01b038716600090815260076020526040902054610b0390600161291f565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b5390899033908a90614534565b60405180910390a1600080306001600160a01b0316888a604051602001610b7b929190614569565b60408051601f1981840301815290829052610b95916145a0565b6000604051808303816000865af19150503d8060008114610bd2576040519150601f19603f3d011682016040523d82523d6000602084013e610bd7565b606091505b509150915081610c295760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016108cb565b98975050505050505050565b600d546060908210610c595760405162461bcd60e51b81526004016108cb906145bc565b600d8281548110610c6c57610c6c6145ff565b90600052602060002090600802016007018054610c88906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb4906144c4565b8015610d015780601f10610cd657610100808354040283529160200191610d01565b820191906000526020600020905b815481529060010190602001808311610ce457829003601f168201915b50505050509050919050565b610d15610854565b6001600160a01b0316610d306000546001600160a01b031690565b6001600160a01b031614610d565760405162461bcd60e51b81526004016108cb906144ff565b610d60828261292b565b5050565b6001600160a01b0381166000908152600a6020526040902054610dd85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016108cb565b600060095447610de8919061462b565b6001600160a01b0383166000908152600b6020908152604080832054600854600a909352908320549394509192610e1f9085614643565b610e299190614662565b610e339190614684565b905080610e965760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016108cb565b6001600160a01b0383166000908152600b6020526040902054610eba90829061462b565b6001600160a01b0384166000908152600b6020526040902055600954610ee190829061462b565b600955610eee8382612b11565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600d548210610f565760405162461bcd60e51b81526004016108cb906145bc565b6000600d8381548110610f6b57610f6b6145ff565b906000526020600020906008020190508060050160019054906101000a900460ff16610fce5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016108cb565b8060040154828260020154610fe3919061462b565b11156110015760405162461bcd60e51b81526004016108cb9061469b565b8181600101546110119190614643565b3410156110305760405162461bcd60e51b81526004016108cb906146c6565b61105261103b610854565b848460405180602001604052806000815250612c2a565b81816002016000828254611066919061462b565b9091555050505050565b600d5460009082106110945760405162461bcd60e51b81526004016108cb906145bc565b600d82815481106110a7576110a76145ff565b9060005260206000209060080201600401549050919050565b6110c8610854565b6001600160a01b0316856001600160a01b031614806110ee57506110ee856107c9610854565b6111555760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108cb565b6111628585858585612d07565b5050505050565b611171610854565b6001600160a01b031661118c6000546001600160a01b031690565b6001600160a01b0316146111b25760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b606081518351146112425760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108cb565b600083516001600160401b0381111561125d5761125d613a6d565b604051908082528060200260200182016040528015611286578160200160208202803683370190505b50905060005b84518110156112fe576112d18582815181106112aa576112aa6145ff565b60200260200101518583815181106112c4576112c46145ff565b6020026020010151610863565b8282815181106112e3576112e36145ff565b60209081029190910101526112f7816146fd565b905061128c565b509392505050565b600d818154811061131657600080fd5b60009182526020909120600890910201805460018201546002830154600384015460048501546005860154600687018054969850949693959294919360ff808316946101009093041692909161136b906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611397906144c4565b80156113e45780601f106113b9576101008083540402835291602001916113e4565b820191906000526020600020905b8154815290600101906020018083116113c757829003601f168201915b5050505050908060070180546113f9906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611425906144c4565b80156114725780601f1061144757610100808354040283529160200191611472565b820191906000526020600020905b81548152906001019060200180831161145557829003601f168201915b5050505050905089565b3360009081526001602052604090205460ff166114ab5760405162461bcd60e51b81526004016108cb90614718565b60005b838110156115b657600d548585838181106114cb576114cb6145ff565b90506020020135106114ef5760405162461bcd60e51b81526004016108cb906145bc565b6000838383818110611503576115036145ff565b9050602002013590506000600d878785818110611522576115226145ff565b9050602002013581548110611539576115396145ff565b90600052602060002090600802019050818160020154101561156d5760405162461bcd60e51b81526004016108cb9061469b565b818160020160008282546115819190614684565b925050819055508181600401600082825461159c9190614684565b925050819055505050806115af906146fd565b90506114ae565b506111628585858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250612eb192505050565b61162d610854565b6001600160a01b03166116486000546001600160a01b031690565b6001600160a01b03161461166e5760405162461bcd60e51b81526004016108cb906144ff565b611678600061303a565b565b3360009081526001602052604090205460ff166116a95760405162461bcd60e51b81526004016108cb90614718565b600d5483106116ca5760405162461bcd60e51b81526004016108cb906145bc565b8181600d85815481106116df576116df6145ff565b906000526020600020906008020160070191906116fd929190613864565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8383604051611730929190614742565b60405180910390a2505050565b6000600c8281548110611752576117526145ff565b6000918252602090912001546001600160a01b031692915050565b600f805461095c906144c4565b816001600160a01b031661178c610854565b6001600160a01b031614156117f55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108cb565b8060036000611802610854565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611846610854565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611882911515815260200190565b60405180910390a35050565b3360009081526001602052604090205460ff166118bd5760405162461bcd60e51b81526004016108cb90614718565b600d5483106118de5760405162461bcd60e51b81526004016108cb906145bc565b81600d84815481106118f2576118f26145ff565b906000526020600020906008020160000154141580611935575080600d8481548110611920576119206145ff565b90600052602060002090600802016001015414155b6119515760405162461bcd60e51b81526004016108cb90614771565b81600d8481548110611965576119656145ff565b90600052602060002090600802016000018190555080600d848154811061198e5761198e6145ff565b906000526020600020906008020160010181905550505050565b3360009081526001602052604090205460ff166119d75760405162461bcd60e51b81526004016108cb90614718565b600d548a10806119e85750600d548a145b611a275760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b60448201526064016108cb565b600d548a1415611a7257611a39610854565b60008b815260106020526040812080546001600160a01b0319166001600160a01b039390931692909217909155600d8054600101815590525b6000600d8b81548110611a8757611a876145ff565b9060005260206000209060080201905089816006019080519060200190611aaf9291906138e8565b50611abe600782018a8a613864565b50611aca8b8685612411565b611ad58b858461188e565b611ae08b8888611b2e565b8715611b21578a7f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8a8a604051611b18929190614742565b60405180910390a25b5050505050505050505050565b3360009081526001602052604090205460ff16611b5d5760405162461bcd60e51b81526004016108cb90614718565b600d548310611b7e5760405162461bcd60e51b81526004016108cb906145bc565b6000600d8481548110611b9357611b936145ff565b90600052602060002090600802019050828160030154141580611bba575081816004015414155b611bd65760405162461bcd60e51b81526004016108cb90614771565b8181600201541115611c415760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016108cb565b600381019290925560049091015550565b6000805b86811015611e6857600d54888883818110611c7357611c736145ff565b9050602002013510611c975760405162461bcd60e51b81526004016108cb906145bc565b6000868683818110611cab57611cab6145ff565b9050602002013590506000600d8a8a85818110611cca57611cca6145ff565b9050602002013581548110611ce157611ce16145ff565b906000526020600020906008020190508060050160019054906101000a900460ff16611d445760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016108cb565b8060040154828260020154611d59919061462b565b1115611d775760405162461bcd60e51b81526004016108cb9061469b565b806003015482611da6611d88610854565b8d8d88818110611d9a57611d9a6145ff565b90506020020135610863565b611db0919061462b565b10611def5760405162461bcd60e51b815260206004820152600f60248201526e446f6e27742062652067726565647960881b60448201526064016108cb565b818160010154611dff9190614643565b341015611e1e5760405162461bcd60e51b81526004016108cb906146c6565b818160010154611e2e9190614643565b611e38908561462b565b935081816002016000828254611e4e919061462b565b92505081905550505080611e61906146fd565b9050611c56565b5080341015611e895760405162461bcd60e51b81526004016108cb906146c6565b611f32611e94610854565b88888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061308a92505050565b50505050505050565b3360009081526001602052604090205460ff16611f6a5760405162461bcd60e51b81526004016108cb90614718565b60005b8581101561206957600d54878783818110611f8a57611f8a6145ff565b9050602002013510611fae5760405162461bcd60e51b81526004016108cb906145bc565b6000858583818110611fc257611fc26145ff565b9050602002013590506000600d898985818110611fe157611fe16145ff565b9050602002013581548110611ff857611ff86145ff565b90600052602060002090600802019050806004015482826002015461201d919061462b565b111561203b5760405162461bcd60e51b81526004016108cb9061469b565b8181600201600082825461204f919061462b565b92505081905550505080612062906146fd565b9050611f6d565b50611f328787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a92508991829185019084908082843760009201919091525050604080516020601f8a01819004810282018101909252888152925088915087908190840183828082843760009201919091525061308a92505050565b612114610854565b6001600160a01b031661212f6000546001600160a01b031690565b6001600160a01b0316146121555760405162461bcd60e51b81526004016108cb906144ff565b6121608383836131e1565b505050565b3360009081526001602052604081205460ff166121945760405162461bcd60e51b81526004016108cb90614718565b6000600d8054905090506121c1816040518060200160405280600081525088888b8c6000806000806119a8565b979650505050505050565b6011546000906001600160a01b03838116911614156121ed575060016108f9565b6001600160a01b0380841660009081526003602090815260408083209386168352929052205460ff165b9392505050565b612226610854565b6001600160a01b0316856001600160a01b0316148061224c575061224c856107c9610854565b6122aa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016108cb565b611162858585858561326a565b6122bf610854565b6001600160a01b03166122da6000546001600160a01b031690565b6001600160a01b0316146123005760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b0381166000908152600160208190526040909120805460ff1916909117905561232f8161338d565b50565b3360009081526001602052604090205460ff166123615760405162461bcd60e51b81526004016108cb90614718565b600d5482106123825760405162461bcd60e51b81526004016108cb906145bc565b6000600d8381548110612397576123976145ff565b9060005260206000209060080201905081816002015410156123cb5760405162461bcd60e51b81526004016108cb9061469b565b818160020160008282546123df9190614684565b92505081905550818160040160008282546123fa9190614684565b9091555061240b9050848484613444565b50505050565b3360009081526001602052604090205460ff166124405760405162461bcd60e51b81526004016108cb90614718565b600d5483106124615760405162461bcd60e51b81526004016108cb906145bc565b811515600d8481548110612477576124776145ff565b600091825260209091206005600890920201015460ff1615151415806124d25750801515600d84815481106124ae576124ae6145ff565b906000526020600020906008020160050160019054906101000a900460ff16151514155b6124ee5760405162461bcd60e51b81526004016108cb90614771565b81600d8481548110612502576125026145ff565b906000526020600020906008020160050160006101000a81548160ff02191690831515021790555080600d848154811061253e5761253e6145ff565b906000526020600020906008020160050160016101000a81548160ff021916908315150217905550505050565b3360009081526001602052604090205460ff1661259a5760405162461bcd60e51b81526004016108cb90614718565b8483146125f55760405162461bcd60e51b815260206004820152602360248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e642060448201526269647360e81b60648201526084016108cb565b8281146126525760405162461bcd60e51b815260206004820152602560248201527f4d7573742070726f7669646520657175616c2069647320616e64207175616e74604482015264697469657360d81b60648201526084016108cb565b60005b83811015611f3257600d54858583818110612672576126726145ff565b90506020020135106126965760405162461bcd60e51b81526004016108cb906145bc565b6000600d8686848181106126ac576126ac6145ff565b90506020020135815481106126c3576126c36145ff565b9060005260206000209060080201905080600401548484848181106126ea576126ea6145ff565b905060200201358260020154612700919061462b565b111561271e5760405162461bcd60e51b81526004016108cb9061469b565b838383818110612730576127306145ff565b9050602002013581600201600082825461274a919061462b565b909155506127c19050888884818110612765576127656145ff565b905060200201602081019061277a9190613a50565b87878581811061278c5761278c6145ff565b905060200201358686868181106127a5576127a56145ff565b9050602002013560405180602001604052806000815250612c2a565b506127cb816146fd565b9050612655565b60003330141561282957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061282c9050565b50335b90565b60006001600160a01b0386166128955760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016108cb565b60016128a86128a387613555565b6135d2565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156128f6573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612217828461462b565b6001600160a01b0382166129965760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016108cb565b600081116129e65760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016108cb565b6001600160a01b0382166000908152600a602052604090205415612a605760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016108cb565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854612ac890829061462b565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015612b615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108cb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612bae576040519150601f19603f3d011682016040523d82523d6000602084013e612bb3565b606091505b50509050806121605760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108cb565b6001600160a01b038416612c505760405162461bcd60e51b81526004016108cb906147a0565b6000612c5a610854565b9050612c7581600087612c6c88613602565b61116288613602565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290612ca790849061462b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111628160008787878761364d565b8151835114612d285760405162461bcd60e51b81526004016108cb906147e1565b6001600160a01b038416612d4e5760405162461bcd60e51b81526004016108cb90614829565b6000612d58610854565b905060005b8451811015612e43576000858281518110612d7a57612d7a6145ff565b602002602001015190506000858381518110612d9857612d986145ff565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015612de95760405162461bcd60e51b81526004016108cb9061486e565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612e2890849061462b565b9250508190555050505080612e3c906146fd565b9050612d5d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e939291906148b8565b60405180910390a4612ea98187878787876137a9565b505050505050565b6001600160a01b038316612ed75760405162461bcd60e51b81526004016108cb906148dd565b8051825114612ef85760405162461bcd60e51b81526004016108cb906147e1565b6000612f02610854565b604080516020810190915260009052905060005b8351811015612fdb576000848281518110612f3357612f336145ff565b602002602001015190506000848381518110612f5157612f516145ff565b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015612fa25760405162461bcd60e51b81526004016108cb90614920565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580612fd3816146fd565b915050612f16565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161302c9291906148b8565b60405180910390a450505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0384166130b05760405162461bcd60e51b81526004016108cb906147a0565b81518351146130d15760405162461bcd60e51b81526004016108cb906147e1565b60006130db610854565b905060005b8451811015613179578381815181106130fb576130fb6145ff565b602002602001015160026000878481518110613119576131196145ff565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613161919061462b565b90915550819050613171816146fd565b9150506130e0565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131ca9291906148b8565b60405180910390a4611162816000878787876137a9565b6001600160a01b0382166000908152600a60205260409020819055600c805483919085908110613213576132136145ff565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600a9091526040902054600854829161325891614684565b613262919061462b565b600855505050565b6001600160a01b0384166132905760405162461bcd60e51b81526004016108cb90614829565b600061329a610854565b90506132ab818787612c6c88613602565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156132ee5760405162461bcd60e51b81526004016108cb9061486e565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061332d90849061462b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f3282888888888861364d565b613395610854565b6001600160a01b03166133b06000546001600160a01b031690565b6001600160a01b0316146133d65760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b03811661343b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108cb565b61232f8161303a565b6001600160a01b03831661346a5760405162461bcd60e51b81526004016108cb906148dd565b6000613474610854565b90506134a58185600061348687613602565b61348f87613602565b5050604080516020810190915260009052505050565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156134e85760405162461bcd60e51b81526004016108cb90614920565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000604051806080016040528060438152602001614afa60439139805160209182012083518483015160408087015180519086012090516135b5950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006135dd60065490565b60405161190160f01b60208201526022810191909152604281018390526062016135b5565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061363c5761363c6145ff565b602090810291909101015292915050565b6001600160a01b0384163b15612ea95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906136919089908990889088908890600401614964565b6020604051808303816000875af19250505080156136cc575060408051601f3d908101601f191682019092526136c99181019061499e565b60015b613779576136d86149bb565b806308c379a0141561371257506136ed6149d6565b806136f85750613714565b8060405162461bcd60e51b81526004016108cb9190613a3d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108cb565b6001600160e01b0319811663f23a6e6160e01b14611f325760405162461bcd60e51b81526004016108cb90614a5f565b6001600160a01b0384163b15612ea95760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906137ed9089908990889088908890600401614aa7565b6020604051808303816000875af1925050508015613828575060408051601f3d908101601f191682019092526138259181019061499e565b60015b613834576136d86149bb565b6001600160e01b0319811663bc197c8160e01b14611f325760405162461bcd60e51b81526004016108cb90614a5f565b828054613870906144c4565b90600052602060002090601f01602090048101928261389257600085556138d8565b82601f106138ab5782800160ff198235161785556138d8565b828001600101855582156138d8579182015b828111156138d85782358255916020019190600101906138bd565b506138e492915061395c565b5090565b8280546138f4906144c4565b90600052602060002090601f01602090048101928261391657600085556138d8565b82601f1061392f57805160ff19168380011785556138d8565b828001600101855582156138d8579182015b828111156138d8578251825591602001919060010190613941565b5b808211156138e4576000815560010161395d565b6001600160a01b038116811461232f57600080fd5b6000806040838503121561399957600080fd5b82356139a481613971565b946020939093013593505050565b6001600160e01b03198116811461232f57600080fd5b6000602082840312156139da57600080fd5b8135612217816139b2565b60005b83811015613a005781810151838201526020016139e8565b8381111561240b5750506000910152565b60008151808452613a298160208601602086016139e5565b601f01601f19169290920160200192915050565b6020815260006122176020830184613a11565b600060208284031215613a6257600080fd5b813561221781613971565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613aa857613aa8613a6d565b6040525050565b60006001600160401b03831115613ac857613ac8613a6d565b604051613adf601f8501601f191660200182613a83565b809150838152848484011115613af457600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613b1d57600080fd5b61221783833560208501613aaf565b600080600080600060a08688031215613b4457600080fd5b8535613b4f81613971565b945060208601356001600160401b03811115613b6a57600080fd5b613b7688828901613b0c565b9450506040860135925060608601359150608086013560ff81168114613b9b57600080fd5b809150509295509295909350565b600060208284031215613bbb57600080fd5b5035919050565b60008060408385031215613bd557600080fd5b50508035926020909101359150565b60006001600160401b03821115613bfd57613bfd613a6d565b5060051b60200190565b600082601f830112613c1857600080fd5b81356020613c2582613be4565b604051613c328282613a83565b83815260059390931b8501820192828101915086841115613c5257600080fd5b8286015b84811015613c6d5780358352918301918301613c56565b509695505050505050565b600080600080600060a08688031215613c9057600080fd5b8535613c9b81613971565b94506020860135613cab81613971565b935060408601356001600160401b0380821115613cc757600080fd5b613cd389838a01613c07565b94506060880135915080821115613ce957600080fd5b613cf589838a01613c07565b93506080880135915080821115613d0b57600080fd5b50613d1888828901613b0c565b9150509295509295909350565b80358015158114610a4657600080fd5b60008060408385031215613d4857600080fd5b8235613d5381613971565b9150613d6160208401613d25565b90509250929050565b60008060408385031215613d7d57600080fd5b82356001600160401b0380821115613d9457600080fd5b818501915085601f830112613da857600080fd5b81356020613db582613be4565b604051613dc28282613a83565b83815260059390931b8501820192828101915089841115613de257600080fd5b948201945b83861015613e09578535613dfa81613971565b82529482019490820190613de7565b96505086013592505080821115613e1f57600080fd5b50613e2c85828601613c07565b9150509250929050565b600081518084526020808501945080840160005b83811015613e6657815187529582019590820190600101613e4a565b509495945050505050565b6020815260006122176020830184613e36565b60006101208b83528a602084015289604084015288606084015287608084015286151560a084015285151560c08401528060e0840152613ec681840186613a11565b9050828103610100840152613edb8185613a11565b9c9b505050505050505050505050565b60008083601f840112613efd57600080fd5b5081356001600160401b03811115613f1457600080fd5b6020830191508360208260051b8501011115613f2f57600080fd5b9250929050565b600080600080600060608688031215613f4e57600080fd5b8535613f5981613971565b945060208601356001600160401b0380821115613f7557600080fd5b613f8189838a01613eeb565b90965094506040880135915080821115613f9a57600080fd5b50613fa788828901613eeb565b969995985093965092949392505050565b60008083601f840112613fca57600080fd5b5081356001600160401b03811115613fe157600080fd5b602083019150836020828501011115613f2f57600080fd5b60008060006040848603121561400e57600080fd5b8335925060208401356001600160401b0381111561402b57600080fd5b61403786828701613fb8565b9497909650939450505050565b60008060006060848603121561405957600080fd5b505081359360208301359350604090920135919050565b6000806000806000806000806000806101208b8d03121561409057600080fd5b8a35995060208b01356001600160401b03808211156140ae57600080fd5b818d0191508d601f8301126140c257600080fd5b6140d18e833560208501613aaf565b9a5060408d01359150808211156140e757600080fd5b506140f48d828e01613fb8565b90995097505060608b0135955060808b0135945061411460a08c01613d25565b935060c08b0135925061412960e08c01613d25565b91506101008b013590509295989b9194979a5092959850565b6000806000806000806060878903121561415b57600080fd5b86356001600160401b038082111561417257600080fd5b61417e8a838b01613eeb565b9098509650602089013591508082111561419757600080fd5b6141a38a838b01613eeb565b909650945060408901359150808211156141bc57600080fd5b506141c989828a01613fb8565b979a9699509497509295939492505050565b60008060008060008060006080888a0312156141f657600080fd5b873561420181613971565b965060208801356001600160401b038082111561421d57600080fd5b6142298b838c01613eeb565b909850965060408a013591508082111561424257600080fd5b61424e8b838c01613eeb565b909650945060608a013591508082111561426757600080fd5b506142748a828b01613fb8565b989b979a50959850939692959293505050565b60008060006060848603121561429c57600080fd5b8335925060208401356142ae81613971565b929592945050506040919091013590565b600080600080600080608087890312156142d857600080fd5b86356142e381613971565b95506020870135945060408701356001600160401b038082111561430657600080fd5b6143128a838b01613fb8565b909650945060608901359150808211156141bc57600080fd5b6000806040838503121561433e57600080fd5b823561434981613971565b9150602083013561435981613971565b809150509250929050565b600080600080600060a0868803121561437c57600080fd5b853561438781613971565b9450602086013561439781613971565b9350604086013592506060860135915060808601356001600160401b038111156143c057600080fd5b613d1888828901613b0c565b6000806000606084860312156143e157600080fd5b83356143ec81613971565b95602085013595506040909401359392505050565b60008060006060848603121561441657600080fd5b8335925061442660208501613d25565b915061443460408501613d25565b90509250925092565b6000806000806000806060878903121561445657600080fd5b86356001600160401b038082111561446d57600080fd5b6144798a838b01613eeb565b9098509650602089013591508082111561449257600080fd5b61449e8a838b01613eeb565b909650945060408901359150808211156144b757600080fd5b506141c989828a01613eeb565b600181811c908216806144d857607f821691505b602082108114156144f957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0384811682528316602082015260606040820181905260009061456090830184613a11565b95945050505050565b6000835161457b8184602088016139e5565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516145b28184602087016139e5565b9190910192915050565b60208082526023908201527f53706563696669656420746f6b656e202869642920646f6573206e6f742065786040820152621a5cdd60ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561463e5761463e614615565b500190565b600081600019048311821515161561465d5761465d614615565b500290565b60008261467f57634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561469657614696614615565b500390565b6020808252601190820152704e6f7420656e6f75676820737570706c7960781b604082015260600190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b600060001982141561471157614711614615565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006148cb6040830185613e36565b82810360208401526145608185613e36565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906121c190830184613a11565b6000602082840312156149b057600080fd5b8151612217816139b2565b600060033d111561282c5760046000803e5060005160e01c90565b600060443d10156149e45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614a1357505050505090565b8285019150815181811115614a2b5750505050505090565b843d8701016020828501011115614a455750505050505090565b614a5460208286010187613a83565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614ad390830186613e36565b8281036060840152614ae58186613e36565b90508281036080840152610c298185613a1156fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220b9e0a126a5f2e96667c2926cec37b6a7bc314a6f7626e315ee6288291170845064736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429
Deployed Bytecode
0x60806040526004361061025d5760003560e01c8063862440e211610143578063be74a913116100bb578063e985e9c511610077578063e985e9c5146107ae578063f242432a146107ce578063f2fde38b146107ee578063f5298aca1461080e578063f57557f714610821578063f5f5f4981461084157005b8063be74a913146106da578063cd53d08e146106ed578063ce7c2ac214610723578063df23880014610759578063e33b7de314610779578063e38e3b241461078e57005b8063a22cb4651161010a578063a22cb46514610647578063aa585d5614610667578063ab77460814610687578063b8d217f1146106a7578063bb4351e8146106c7578063bd85b0391461041c57005b8063862440e2146105865780638b83209b146105a65780638da5cb5b146105de57806395d89b41146105fc5780639852595c1461061157005b80632693ebf2116101d65780634a994eef1161019d5780634a994eef146104ba5780634e1273f4146104da5780634f558e79146105075780634f64b2be146105295780636b20c4541461055e578063715018a61461057157005b80632693ebf21461041c5780632d0335ab1461043c5780632eb2c2d6146104725780633408e470146104925780633a98ef39146104a557005b80630e89341c116102255780630e89341c146103675780630f7e59701461038757806318f9b023146103b457806319165587146103d45780631b2ef1ca146103f457806320379ee51461040757005b8062fdd58e146102af57806301ffc9a7146102e257806306fdde031461031257806307779627146103345780630c53c51c1461035457005b366102ad577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061028b610854565b604080516001600160a01b0390921682523460208301520160405180910390a1005b005b3480156102bb57600080fd5b506102cf6102ca366004613986565b610863565b6040519081526020015b60405180910390f35b3480156102ee57600080fd5b506103026102fd3660046139c8565b6108ff565b60405190151581526020016102d9565b34801561031e57600080fd5b5061032761094f565b6040516102d99190613a3d565b34801561034057600080fd5b5061030261034f366004613a50565b6109dd565b610327610362366004613b2c565b610a4b565b34801561037357600080fd5b50610327610382366004613ba9565b610c35565b34801561039357600080fd5b50610327604051806040016040528060018152602001603160f81b81525081565b3480156103c057600080fd5b506102ad6103cf366004613986565b610d0d565b3480156103e057600080fd5b506102ad6103ef366004613a50565b610d64565b6102ad610402366004613bc2565b610f35565b34801561041357600080fd5b506006546102cf565b34801561042857600080fd5b506102cf610437366004613ba9565b611070565b34801561044857600080fd5b506102cf610457366004613a50565b6001600160a01b031660009081526007602052604090205490565b34801561047e57600080fd5b506102ad61048d366004613c78565b6110c0565b34801561049e57600080fd5b50466102cf565b3480156104b157600080fd5b506008546102cf565b3480156104c657600080fd5b506102ad6104d5366004613d35565b611169565b3480156104e657600080fd5b506104fa6104f5366004613d6a565b6111dd565b6040516102d99190613e71565b34801561051357600080fd5b50610302610522366004613ba9565b600d541190565b34801561053557600080fd5b50610549610544366004613ba9565b611306565b6040516102d999989796959493929190613e84565b6102ad61056c366004613f36565b61147c565b34801561057d57600080fd5b506102ad611625565b34801561059257600080fd5b506102ad6105a1366004613ff9565b61167a565b3480156105b257600080fd5b506105c66105c1366004613ba9565b61173d565b6040516001600160a01b0390911681526020016102d9565b3480156105ea57600080fd5b506000546001600160a01b03166105c6565b34801561060857600080fd5b5061032761176d565b34801561061d57600080fd5b506102cf61062c366004613a50565b6001600160a01b03166000908152600b602052604090205490565b34801561065357600080fd5b506102ad610662366004613d35565b61177a565b34801561067357600080fd5b506102ad610682366004614044565b61188e565b34801561069357600080fd5b506102ad6106a2366004614070565b6119a8565b3480156106b357600080fd5b506102ad6106c2366004614044565b611b2e565b6102ad6106d5366004614142565b611c52565b6102ad6106e83660046141db565b611f3b565b3480156106f957600080fd5b506105c6610708366004613ba9565b6010602052600090815260409020546001600160a01b031681565b34801561072f57600080fd5b506102cf61073e366004613a50565b6001600160a01b03166000908152600a602052604090205490565b34801561076557600080fd5b506102ad610774366004614287565b61210c565b34801561078557600080fd5b506009546102cf565b34801561079a57600080fd5b506102cf6107a93660046142bf565b612165565b3480156107ba57600080fd5b506103026107c936600461432b565b6121cc565b3480156107da57600080fd5b506102ad6107e9366004614364565b61221e565b3480156107fa57600080fd5b506102ad610809366004613a50565b6122b7565b6102ad61081c3660046143cc565b612332565b34801561082d57600080fd5b506102ad61083c366004614401565b612411565b6102ad61084f36600461443d565b61256b565b600061085e6127d2565b905090565b60006001600160a01b0383166108d45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061093057506001600160e01b031982166303a24d0760e21b145b806108f957506301ffc9a760e01b6001600160e01b03198316146108f9565b600e805461095c906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610988906144c4565b80156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b505050505081565b60006109e7610854565b6001600160a01b0316610a026000546001600160a01b031690565b6001600160a01b031614610a285760405162461bcd60e51b81526004016108cb906144ff565b506001600160a01b03811660009081526001602052604090205460ff165b919050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610a89878287878761282f565b610adf5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016108cb565b6001600160a01b038716600090815260076020526040902054610b0390600161291f565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b5390899033908a90614534565b60405180910390a1600080306001600160a01b0316888a604051602001610b7b929190614569565b60408051601f1981840301815290829052610b95916145a0565b6000604051808303816000865af19150503d8060008114610bd2576040519150601f19603f3d011682016040523d82523d6000602084013e610bd7565b606091505b509150915081610c295760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016108cb565b98975050505050505050565b600d546060908210610c595760405162461bcd60e51b81526004016108cb906145bc565b600d8281548110610c6c57610c6c6145ff565b90600052602060002090600802016007018054610c88906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb4906144c4565b8015610d015780601f10610cd657610100808354040283529160200191610d01565b820191906000526020600020905b815481529060010190602001808311610ce457829003601f168201915b50505050509050919050565b610d15610854565b6001600160a01b0316610d306000546001600160a01b031690565b6001600160a01b031614610d565760405162461bcd60e51b81526004016108cb906144ff565b610d60828261292b565b5050565b6001600160a01b0381166000908152600a6020526040902054610dd85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016108cb565b600060095447610de8919061462b565b6001600160a01b0383166000908152600b6020908152604080832054600854600a909352908320549394509192610e1f9085614643565b610e299190614662565b610e339190614684565b905080610e965760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016108cb565b6001600160a01b0383166000908152600b6020526040902054610eba90829061462b565b6001600160a01b0384166000908152600b6020526040902055600954610ee190829061462b565b600955610eee8382612b11565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600d548210610f565760405162461bcd60e51b81526004016108cb906145bc565b6000600d8381548110610f6b57610f6b6145ff565b906000526020600020906008020190508060050160019054906101000a900460ff16610fce5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016108cb565b8060040154828260020154610fe3919061462b565b11156110015760405162461bcd60e51b81526004016108cb9061469b565b8181600101546110119190614643565b3410156110305760405162461bcd60e51b81526004016108cb906146c6565b61105261103b610854565b848460405180602001604052806000815250612c2a565b81816002016000828254611066919061462b565b9091555050505050565b600d5460009082106110945760405162461bcd60e51b81526004016108cb906145bc565b600d82815481106110a7576110a76145ff565b9060005260206000209060080201600401549050919050565b6110c8610854565b6001600160a01b0316856001600160a01b031614806110ee57506110ee856107c9610854565b6111555760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108cb565b6111628585858585612d07565b5050505050565b611171610854565b6001600160a01b031661118c6000546001600160a01b031690565b6001600160a01b0316146111b25760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b606081518351146112425760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108cb565b600083516001600160401b0381111561125d5761125d613a6d565b604051908082528060200260200182016040528015611286578160200160208202803683370190505b50905060005b84518110156112fe576112d18582815181106112aa576112aa6145ff565b60200260200101518583815181106112c4576112c46145ff565b6020026020010151610863565b8282815181106112e3576112e36145ff565b60209081029190910101526112f7816146fd565b905061128c565b509392505050565b600d818154811061131657600080fd5b60009182526020909120600890910201805460018201546002830154600384015460048501546005860154600687018054969850949693959294919360ff808316946101009093041692909161136b906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611397906144c4565b80156113e45780601f106113b9576101008083540402835291602001916113e4565b820191906000526020600020905b8154815290600101906020018083116113c757829003601f168201915b5050505050908060070180546113f9906144c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611425906144c4565b80156114725780601f1061144757610100808354040283529160200191611472565b820191906000526020600020905b81548152906001019060200180831161145557829003601f168201915b5050505050905089565b3360009081526001602052604090205460ff166114ab5760405162461bcd60e51b81526004016108cb90614718565b60005b838110156115b657600d548585838181106114cb576114cb6145ff565b90506020020135106114ef5760405162461bcd60e51b81526004016108cb906145bc565b6000838383818110611503576115036145ff565b9050602002013590506000600d878785818110611522576115226145ff565b9050602002013581548110611539576115396145ff565b90600052602060002090600802019050818160020154101561156d5760405162461bcd60e51b81526004016108cb9061469b565b818160020160008282546115819190614684565b925050819055508181600401600082825461159c9190614684565b925050819055505050806115af906146fd565b90506114ae565b506111628585858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250612eb192505050565b61162d610854565b6001600160a01b03166116486000546001600160a01b031690565b6001600160a01b03161461166e5760405162461bcd60e51b81526004016108cb906144ff565b611678600061303a565b565b3360009081526001602052604090205460ff166116a95760405162461bcd60e51b81526004016108cb90614718565b600d5483106116ca5760405162461bcd60e51b81526004016108cb906145bc565b8181600d85815481106116df576116df6145ff565b906000526020600020906008020160070191906116fd929190613864565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8383604051611730929190614742565b60405180910390a2505050565b6000600c8281548110611752576117526145ff565b6000918252602090912001546001600160a01b031692915050565b600f805461095c906144c4565b816001600160a01b031661178c610854565b6001600160a01b031614156117f55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108cb565b8060036000611802610854565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611846610854565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611882911515815260200190565b60405180910390a35050565b3360009081526001602052604090205460ff166118bd5760405162461bcd60e51b81526004016108cb90614718565b600d5483106118de5760405162461bcd60e51b81526004016108cb906145bc565b81600d84815481106118f2576118f26145ff565b906000526020600020906008020160000154141580611935575080600d8481548110611920576119206145ff565b90600052602060002090600802016001015414155b6119515760405162461bcd60e51b81526004016108cb90614771565b81600d8481548110611965576119656145ff565b90600052602060002090600802016000018190555080600d848154811061198e5761198e6145ff565b906000526020600020906008020160010181905550505050565b3360009081526001602052604090205460ff166119d75760405162461bcd60e51b81526004016108cb90614718565b600d548a10806119e85750600d548a145b611a275760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b60448201526064016108cb565b600d548a1415611a7257611a39610854565b60008b815260106020526040812080546001600160a01b0319166001600160a01b039390931692909217909155600d8054600101815590525b6000600d8b81548110611a8757611a876145ff565b9060005260206000209060080201905089816006019080519060200190611aaf9291906138e8565b50611abe600782018a8a613864565b50611aca8b8685612411565b611ad58b858461188e565b611ae08b8888611b2e565b8715611b21578a7f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8a8a604051611b18929190614742565b60405180910390a25b5050505050505050505050565b3360009081526001602052604090205460ff16611b5d5760405162461bcd60e51b81526004016108cb90614718565b600d548310611b7e5760405162461bcd60e51b81526004016108cb906145bc565b6000600d8481548110611b9357611b936145ff565b90600052602060002090600802019050828160030154141580611bba575081816004015414155b611bd65760405162461bcd60e51b81526004016108cb90614771565b8181600201541115611c415760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016108cb565b600381019290925560049091015550565b6000805b86811015611e6857600d54888883818110611c7357611c736145ff565b9050602002013510611c975760405162461bcd60e51b81526004016108cb906145bc565b6000868683818110611cab57611cab6145ff565b9050602002013590506000600d8a8a85818110611cca57611cca6145ff565b9050602002013581548110611ce157611ce16145ff565b906000526020600020906008020190508060050160019054906101000a900460ff16611d445760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016108cb565b8060040154828260020154611d59919061462b565b1115611d775760405162461bcd60e51b81526004016108cb9061469b565b806003015482611da6611d88610854565b8d8d88818110611d9a57611d9a6145ff565b90506020020135610863565b611db0919061462b565b10611def5760405162461bcd60e51b815260206004820152600f60248201526e446f6e27742062652067726565647960881b60448201526064016108cb565b818160010154611dff9190614643565b341015611e1e5760405162461bcd60e51b81526004016108cb906146c6565b818160010154611e2e9190614643565b611e38908561462b565b935081816002016000828254611e4e919061462b565b92505081905550505080611e61906146fd565b9050611c56565b5080341015611e895760405162461bcd60e51b81526004016108cb906146c6565b611f32611e94610854565b88888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061308a92505050565b50505050505050565b3360009081526001602052604090205460ff16611f6a5760405162461bcd60e51b81526004016108cb90614718565b60005b8581101561206957600d54878783818110611f8a57611f8a6145ff565b9050602002013510611fae5760405162461bcd60e51b81526004016108cb906145bc565b6000858583818110611fc257611fc26145ff565b9050602002013590506000600d898985818110611fe157611fe16145ff565b9050602002013581548110611ff857611ff86145ff565b90600052602060002090600802019050806004015482826002015461201d919061462b565b111561203b5760405162461bcd60e51b81526004016108cb9061469b565b8181600201600082825461204f919061462b565b92505081905550505080612062906146fd565b9050611f6d565b50611f328787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a92508991829185019084908082843760009201919091525050604080516020601f8a01819004810282018101909252888152925088915087908190840183828082843760009201919091525061308a92505050565b612114610854565b6001600160a01b031661212f6000546001600160a01b031690565b6001600160a01b0316146121555760405162461bcd60e51b81526004016108cb906144ff565b6121608383836131e1565b505050565b3360009081526001602052604081205460ff166121945760405162461bcd60e51b81526004016108cb90614718565b6000600d8054905090506121c1816040518060200160405280600081525088888b8c6000806000806119a8565b979650505050505050565b6011546000906001600160a01b03838116911614156121ed575060016108f9565b6001600160a01b0380841660009081526003602090815260408083209386168352929052205460ff165b9392505050565b612226610854565b6001600160a01b0316856001600160a01b0316148061224c575061224c856107c9610854565b6122aa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016108cb565b611162858585858561326a565b6122bf610854565b6001600160a01b03166122da6000546001600160a01b031690565b6001600160a01b0316146123005760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b0381166000908152600160208190526040909120805460ff1916909117905561232f8161338d565b50565b3360009081526001602052604090205460ff166123615760405162461bcd60e51b81526004016108cb90614718565b600d5482106123825760405162461bcd60e51b81526004016108cb906145bc565b6000600d8381548110612397576123976145ff565b9060005260206000209060080201905081816002015410156123cb5760405162461bcd60e51b81526004016108cb9061469b565b818160020160008282546123df9190614684565b92505081905550818160040160008282546123fa9190614684565b9091555061240b9050848484613444565b50505050565b3360009081526001602052604090205460ff166124405760405162461bcd60e51b81526004016108cb90614718565b600d5483106124615760405162461bcd60e51b81526004016108cb906145bc565b811515600d8481548110612477576124776145ff565b600091825260209091206005600890920201015460ff1615151415806124d25750801515600d84815481106124ae576124ae6145ff565b906000526020600020906008020160050160019054906101000a900460ff16151514155b6124ee5760405162461bcd60e51b81526004016108cb90614771565b81600d8481548110612502576125026145ff565b906000526020600020906008020160050160006101000a81548160ff02191690831515021790555080600d848154811061253e5761253e6145ff565b906000526020600020906008020160050160016101000a81548160ff021916908315150217905550505050565b3360009081526001602052604090205460ff1661259a5760405162461bcd60e51b81526004016108cb90614718565b8483146125f55760405162461bcd60e51b815260206004820152602360248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e642060448201526269647360e81b60648201526084016108cb565b8281146126525760405162461bcd60e51b815260206004820152602560248201527f4d7573742070726f7669646520657175616c2069647320616e64207175616e74604482015264697469657360d81b60648201526084016108cb565b60005b83811015611f3257600d54858583818110612672576126726145ff565b90506020020135106126965760405162461bcd60e51b81526004016108cb906145bc565b6000600d8686848181106126ac576126ac6145ff565b90506020020135815481106126c3576126c36145ff565b9060005260206000209060080201905080600401548484848181106126ea576126ea6145ff565b905060200201358260020154612700919061462b565b111561271e5760405162461bcd60e51b81526004016108cb9061469b565b838383818110612730576127306145ff565b9050602002013581600201600082825461274a919061462b565b909155506127c19050888884818110612765576127656145ff565b905060200201602081019061277a9190613a50565b87878581811061278c5761278c6145ff565b905060200201358686868181106127a5576127a56145ff565b9050602002013560405180602001604052806000815250612c2a565b506127cb816146fd565b9050612655565b60003330141561282957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061282c9050565b50335b90565b60006001600160a01b0386166128955760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016108cb565b60016128a86128a387613555565b6135d2565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156128f6573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612217828461462b565b6001600160a01b0382166129965760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016108cb565b600081116129e65760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016108cb565b6001600160a01b0382166000908152600a602052604090205415612a605760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016108cb565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854612ac890829061462b565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015612b615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108cb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612bae576040519150601f19603f3d011682016040523d82523d6000602084013e612bb3565b606091505b50509050806121605760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108cb565b6001600160a01b038416612c505760405162461bcd60e51b81526004016108cb906147a0565b6000612c5a610854565b9050612c7581600087612c6c88613602565b61116288613602565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290612ca790849061462b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111628160008787878761364d565b8151835114612d285760405162461bcd60e51b81526004016108cb906147e1565b6001600160a01b038416612d4e5760405162461bcd60e51b81526004016108cb90614829565b6000612d58610854565b905060005b8451811015612e43576000858281518110612d7a57612d7a6145ff565b602002602001015190506000858381518110612d9857612d986145ff565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015612de95760405162461bcd60e51b81526004016108cb9061486e565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612e2890849061462b565b9250508190555050505080612e3c906146fd565b9050612d5d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e939291906148b8565b60405180910390a4612ea98187878787876137a9565b505050505050565b6001600160a01b038316612ed75760405162461bcd60e51b81526004016108cb906148dd565b8051825114612ef85760405162461bcd60e51b81526004016108cb906147e1565b6000612f02610854565b604080516020810190915260009052905060005b8351811015612fdb576000848281518110612f3357612f336145ff565b602002602001015190506000848381518110612f5157612f516145ff565b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015612fa25760405162461bcd60e51b81526004016108cb90614920565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580612fd3816146fd565b915050612f16565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161302c9291906148b8565b60405180910390a450505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0384166130b05760405162461bcd60e51b81526004016108cb906147a0565b81518351146130d15760405162461bcd60e51b81526004016108cb906147e1565b60006130db610854565b905060005b8451811015613179578381815181106130fb576130fb6145ff565b602002602001015160026000878481518110613119576131196145ff565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613161919061462b565b90915550819050613171816146fd565b9150506130e0565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131ca9291906148b8565b60405180910390a4611162816000878787876137a9565b6001600160a01b0382166000908152600a60205260409020819055600c805483919085908110613213576132136145ff565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600a9091526040902054600854829161325891614684565b613262919061462b565b600855505050565b6001600160a01b0384166132905760405162461bcd60e51b81526004016108cb90614829565b600061329a610854565b90506132ab818787612c6c88613602565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156132ee5760405162461bcd60e51b81526004016108cb9061486e565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061332d90849061462b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f3282888888888861364d565b613395610854565b6001600160a01b03166133b06000546001600160a01b031690565b6001600160a01b0316146133d65760405162461bcd60e51b81526004016108cb906144ff565b6001600160a01b03811661343b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108cb565b61232f8161303a565b6001600160a01b03831661346a5760405162461bcd60e51b81526004016108cb906148dd565b6000613474610854565b90506134a58185600061348687613602565b61348f87613602565b5050604080516020810190915260009052505050565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156134e85760405162461bcd60e51b81526004016108cb90614920565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000604051806080016040528060438152602001614afa60439139805160209182012083518483015160408087015180519086012090516135b5950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006135dd60065490565b60405161190160f01b60208201526022810191909152604281018390526062016135b5565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061363c5761363c6145ff565b602090810291909101015292915050565b6001600160a01b0384163b15612ea95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906136919089908990889088908890600401614964565b6020604051808303816000875af19250505080156136cc575060408051601f3d908101601f191682019092526136c99181019061499e565b60015b613779576136d86149bb565b806308c379a0141561371257506136ed6149d6565b806136f85750613714565b8060405162461bcd60e51b81526004016108cb9190613a3d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108cb565b6001600160e01b0319811663f23a6e6160e01b14611f325760405162461bcd60e51b81526004016108cb90614a5f565b6001600160a01b0384163b15612ea95760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906137ed9089908990889088908890600401614aa7565b6020604051808303816000875af1925050508015613828575060408051601f3d908101601f191682019092526138259181019061499e565b60015b613834576136d86149bb565b6001600160e01b0319811663bc197c8160e01b14611f325760405162461bcd60e51b81526004016108cb90614a5f565b828054613870906144c4565b90600052602060002090601f01602090048101928261389257600085556138d8565b82601f106138ab5782800160ff198235161785556138d8565b828001600101855582156138d8579182015b828111156138d85782358255916020019190600101906138bd565b506138e492915061395c565b5090565b8280546138f4906144c4565b90600052602060002090601f01602090048101928261391657600085556138d8565b82601f1061392f57805160ff19168380011785556138d8565b828001600101855582156138d8579182015b828111156138d8578251825591602001919060010190613941565b5b808211156138e4576000815560010161395d565b6001600160a01b038116811461232f57600080fd5b6000806040838503121561399957600080fd5b82356139a481613971565b946020939093013593505050565b6001600160e01b03198116811461232f57600080fd5b6000602082840312156139da57600080fd5b8135612217816139b2565b60005b83811015613a005781810151838201526020016139e8565b8381111561240b5750506000910152565b60008151808452613a298160208601602086016139e5565b601f01601f19169290920160200192915050565b6020815260006122176020830184613a11565b600060208284031215613a6257600080fd5b813561221781613971565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613aa857613aa8613a6d565b6040525050565b60006001600160401b03831115613ac857613ac8613a6d565b604051613adf601f8501601f191660200182613a83565b809150838152848484011115613af457600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613b1d57600080fd5b61221783833560208501613aaf565b600080600080600060a08688031215613b4457600080fd5b8535613b4f81613971565b945060208601356001600160401b03811115613b6a57600080fd5b613b7688828901613b0c565b9450506040860135925060608601359150608086013560ff81168114613b9b57600080fd5b809150509295509295909350565b600060208284031215613bbb57600080fd5b5035919050565b60008060408385031215613bd557600080fd5b50508035926020909101359150565b60006001600160401b03821115613bfd57613bfd613a6d565b5060051b60200190565b600082601f830112613c1857600080fd5b81356020613c2582613be4565b604051613c328282613a83565b83815260059390931b8501820192828101915086841115613c5257600080fd5b8286015b84811015613c6d5780358352918301918301613c56565b509695505050505050565b600080600080600060a08688031215613c9057600080fd5b8535613c9b81613971565b94506020860135613cab81613971565b935060408601356001600160401b0380821115613cc757600080fd5b613cd389838a01613c07565b94506060880135915080821115613ce957600080fd5b613cf589838a01613c07565b93506080880135915080821115613d0b57600080fd5b50613d1888828901613b0c565b9150509295509295909350565b80358015158114610a4657600080fd5b60008060408385031215613d4857600080fd5b8235613d5381613971565b9150613d6160208401613d25565b90509250929050565b60008060408385031215613d7d57600080fd5b82356001600160401b0380821115613d9457600080fd5b818501915085601f830112613da857600080fd5b81356020613db582613be4565b604051613dc28282613a83565b83815260059390931b8501820192828101915089841115613de257600080fd5b948201945b83861015613e09578535613dfa81613971565b82529482019490820190613de7565b96505086013592505080821115613e1f57600080fd5b50613e2c85828601613c07565b9150509250929050565b600081518084526020808501945080840160005b83811015613e6657815187529582019590820190600101613e4a565b509495945050505050565b6020815260006122176020830184613e36565b60006101208b83528a602084015289604084015288606084015287608084015286151560a084015285151560c08401528060e0840152613ec681840186613a11565b9050828103610100840152613edb8185613a11565b9c9b505050505050505050505050565b60008083601f840112613efd57600080fd5b5081356001600160401b03811115613f1457600080fd5b6020830191508360208260051b8501011115613f2f57600080fd5b9250929050565b600080600080600060608688031215613f4e57600080fd5b8535613f5981613971565b945060208601356001600160401b0380821115613f7557600080fd5b613f8189838a01613eeb565b90965094506040880135915080821115613f9a57600080fd5b50613fa788828901613eeb565b969995985093965092949392505050565b60008083601f840112613fca57600080fd5b5081356001600160401b03811115613fe157600080fd5b602083019150836020828501011115613f2f57600080fd5b60008060006040848603121561400e57600080fd5b8335925060208401356001600160401b0381111561402b57600080fd5b61403786828701613fb8565b9497909650939450505050565b60008060006060848603121561405957600080fd5b505081359360208301359350604090920135919050565b6000806000806000806000806000806101208b8d03121561409057600080fd5b8a35995060208b01356001600160401b03808211156140ae57600080fd5b818d0191508d601f8301126140c257600080fd5b6140d18e833560208501613aaf565b9a5060408d01359150808211156140e757600080fd5b506140f48d828e01613fb8565b90995097505060608b0135955060808b0135945061411460a08c01613d25565b935060c08b0135925061412960e08c01613d25565b91506101008b013590509295989b9194979a5092959850565b6000806000806000806060878903121561415b57600080fd5b86356001600160401b038082111561417257600080fd5b61417e8a838b01613eeb565b9098509650602089013591508082111561419757600080fd5b6141a38a838b01613eeb565b909650945060408901359150808211156141bc57600080fd5b506141c989828a01613fb8565b979a9699509497509295939492505050565b60008060008060008060006080888a0312156141f657600080fd5b873561420181613971565b965060208801356001600160401b038082111561421d57600080fd5b6142298b838c01613eeb565b909850965060408a013591508082111561424257600080fd5b61424e8b838c01613eeb565b909650945060608a013591508082111561426757600080fd5b506142748a828b01613fb8565b989b979a50959850939692959293505050565b60008060006060848603121561429c57600080fd5b8335925060208401356142ae81613971565b929592945050506040919091013590565b600080600080600080608087890312156142d857600080fd5b86356142e381613971565b95506020870135945060408701356001600160401b038082111561430657600080fd5b6143128a838b01613fb8565b909650945060608901359150808211156141bc57600080fd5b6000806040838503121561433e57600080fd5b823561434981613971565b9150602083013561435981613971565b809150509250929050565b600080600080600060a0868803121561437c57600080fd5b853561438781613971565b9450602086013561439781613971565b9350604086013592506060860135915060808601356001600160401b038111156143c057600080fd5b613d1888828901613b0c565b6000806000606084860312156143e157600080fd5b83356143ec81613971565b95602085013595506040909401359392505050565b60008060006060848603121561441657600080fd5b8335925061442660208501613d25565b915061443460408501613d25565b90509250925092565b6000806000806000806060878903121561445657600080fd5b86356001600160401b038082111561446d57600080fd5b6144798a838b01613eeb565b9098509650602089013591508082111561449257600080fd5b61449e8a838b01613eeb565b909650945060408901359150808211156144b757600080fd5b506141c989828a01613eeb565b600181811c908216806144d857607f821691505b602082108114156144f957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0384811682528316602082015260606040820181905260009061456090830184613a11565b95945050505050565b6000835161457b8184602088016139e5565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516145b28184602087016139e5565b9190910192915050565b60208082526023908201527f53706563696669656420746f6b656e202869642920646f6573206e6f742065786040820152621a5cdd60ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561463e5761463e614615565b500190565b600081600019048311821515161561465d5761465d614615565b500290565b60008261467f57634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561469657614696614615565b500390565b6020808252601190820152704e6f7420656e6f75676820737570706c7960781b604082015260600190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b600060001982141561471157614711614615565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006148cb6040830185613e36565b82810360208401526145608185613e36565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906121c190830184613a11565b6000602082840312156149b057600080fd5b8151612217816139b2565b600060033d111561282c5760046000803e5060005160e01c90565b600060443d10156149e45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614a1357505050505090565b8285019150815181811115614a2b5750505050505090565b843d8701016020828501011115614a455750505050505090565b614a5460208286010187613a83565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614ad390830186613e36565b8281036060840152614ae58186613e36565b90508281036080840152610c298185613a1156fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220b9e0a126a5f2e96667c2926cec37b6a7bc314a6f7626e315ee6288291170845064736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.