ERC-1155
Overview
Max Total Supply
194 GMGN
Holders
120
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:
GmGn
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./AbstractERC1155Factory.sol"; /// @custom:security-contact [email protected] contract GmGn is AbstractERC1155Factory, PaymentSplitter { using SafeMath for uint256; uint256 public constant MAX_SUPPLY = 1000; uint256 public constant MAX_TEAM_SUPPLY = 22; uint256 public constant MAX_AIRDROP_SUPPLY = 68; uint8 public maxAmountPerTx = 3; uint256 public mintPrice = 100000000000000000; uint256 public publicSaleOpens = 0; uint256 public publicSaleCloses = 1; event Purchased(uint256 indexed index, address indexed account, uint256 amount); constructor(string memory _name, string memory _symbol, string memory _uri, address _governor, address[] memory payees, uint256[] memory shares_) ERC1155(_uri) PaymentSplitter(payees, shares_) { name_ = _name; symbol_ = _symbol; _mintGmGnForTeam(_governor); } function release(address payable account) public override { require(msg.sender == account || msg.sender == owner(), "release: no permission"); super.release(account); } function editWindow( uint256 _publicSaleOpens, uint256 _publicSaleCloses ) external onlyOwner { require( _publicSaleCloses > _publicSaleOpens, "Time combination not allowed" ); publicSaleOpens = _publicSaleOpens; publicSaleCloses = _publicSaleCloses; } function airdrop(address[] memory accounts) external onlyOwner { for (uint256 i = 0; i < accounts.length; i++) { super.safeTransferFrom(msg.sender, accounts[i], 0, 1, "0x00"); } } function purchaseGmGn(uint256 amount) external payable whenNotPaused { require(block.timestamp >= publicSaleOpens && block.timestamp <= publicSaleCloses, "purchaseGmGn: window closed"); _purchase(0, amount); } function _purchase(uint256 id, uint256 amount) private { require(msg.sender == tx.origin, "_purchase: sender != origin"); require(amount > 0 && amount <= maxAmountPerTx, "_purchase: exceed max per tx"); require(totalSupply(id) + amount <= MAX_SUPPLY, "_purchase: exceed max supply"); require(msg.value == amount * mintPrice, "_purchase: Incorrect value"); _mint(msg.sender, id, amount, ""); emit Purchased(id, msg.sender, amount); } function _mintGmGnForTeam(address governor) private onlyOwner { require(totalSupply(0) == 0, "GmGn for team already minted"); _mint(governor, 0, MAX_TEAM_SUPPLY + MAX_AIRDROP_SUPPLY, ""); } function supportsInterface(bytes4 interfaceId) public view override(ERC1155) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.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. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, 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; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @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 total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @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 amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][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 = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @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_) private { 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_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /// @custom:security-contact [email protected] abstract contract AbstractERC1155Factory is ERC1155, Ownable, Pausable, ERC1155Supply { string internal name_; string internal symbol_; function setURI(string memory newuri) public onlyOwner { _setURI(newuri); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function uri(uint256 id) public view override returns (string memory) { require(exists(id), "uri: token not exist"); return string(abi.encodePacked(super.uri(id), Strings.toString(id), ".json")); } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal whenNotPaused override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_governor","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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"}],"name":"Paused","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":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_AIRDROP_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TEAM_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleOpens","type":"uint256"},{"internalType":"uint256","name":"_publicSaleCloses","type":"uint256"}],"name":"editWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmountPerTx","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchaseGmGn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","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":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"unpause","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
6080604052600e805460ff1916600317905567016345785d8a0000600f55600060105560016011553480156200003457600080fd5b506040516200427138038062004271833981016040819052620000579162000d4d565b818185620000658162000216565b506200007a620000746200022f565b62000234565b6003805460ff60a01b191690558051825114620000f95760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200014c5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000f0565b60005b8251811015620001d057620001bb8382815181106200017e57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620001a757634e487b7160e01b600052603260045260246000fd5b60200260200101516200028660201b60201c565b80620001c78162000fbd565b9150506200014f565b50508651620001e89150600590602089019062000af8565b508451620001fe90600690602088019062000af8565b506200020a8362000474565b505050505050620010ba565b80516200022b90600290602084019062000af8565b5050565b335b90565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002f35760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000f0565b60008111620003455760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000f0565b6001600160a01b03821660009081526009602052604090205415620003c15760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000f0565b600b8054600181019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b03841690811790915560009081526009602052604090208190556007546200042b90829062000ee9565b600755604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6200047e6200022f565b6001600160a01b03166200049a6003546001600160a01b031690565b6001600160a01b031614620004f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620000f0565b620004fe60006200057a565b156200054d5760405162461bcd60e51b815260206004820152601c60248201527f476d476e20666f72207465616d20616c7265616479206d696e746564000000006044820152606401620000f0565b62000577816000620005626044601662000ee9565b6040805160208101909152600081526200058f565b50565b6000818152600460205260409020545b919050565b6001600160a01b038416620005f15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620000f0565b6000620005fd6200022f565b905062000624816000876200061288620006bf565b6200061d88620006bf565b8762000719565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200065690849062000ee9565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620006b88160008787878762000792565b5050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200070857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6200072d600354600160a01b900460ff1690565b156200076f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000f0565b6200078a8686868686866200097860201b620012df1760201c565b505050505050565b620007b1846001600160a01b031662000ae960201b6200142d1760201c565b156200078a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620007ed908990899088908890889060040162000e67565b602060405180830381600087803b1580156200080857600080fd5b505af19250505080156200083b575060408051601f3d908101601f19168201909252620008389181019062000d1c565b60015b620008fc576200084a62001007565b806308c379a014156200088b5750620008626200101f565b806200086f57506200088d565b8060405162461bcd60e51b8152600401620000f0919062000eae565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620000f0565b6001600160e01b0319811663f23a6e6160e01b146200096f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620000f0565b50505050505050565b620009938686868686866200078a60201b620014251760201c565b6001600160a01b03851662000a3f5760005b835181101562000a3d57828181518110620009d057634e487b7160e01b600052603260045260246000fd5b602002602001015160046000868481518110620009fd57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825462000a24919062000ee9565b9091555062000a3590508162000fbd565b9050620009a5565b505b6001600160a01b0384166200078a5760005b83518110156200096f5782818151811062000a7c57634e487b7160e01b600052603260045260246000fd5b60200260200101516004600086848151811062000aa957634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825462000ad0919062000f04565b9091555062000ae190508162000fbd565b905062000a51565b6001600160a01b03163b151590565b82805462000b069062000f51565b90600052602060002090601f01602090048101928262000b2a576000855562000b75565b82601f1062000b4557805160ff191683800117855562000b75565b8280016001018555821562000b75579182015b8281111562000b7557825182559160200191906001019062000b58565b5062000b8392915062000b87565b5090565b5b8082111562000b83576000815560010162000b88565b80516001600160a01b03811681146200058a57600080fd5b600082601f83011262000bc7578081fd5b8151602062000bd68262000ec3565b60405162000be5828262000f8e565b83815282810191508583018385028701840188101562000c03578586fd5b855b8581101562000c2c5762000c198262000b9e565b8452928401929084019060010162000c05565b5090979650505050505050565b600082601f83011262000c4a578081fd5b8151602062000c598262000ec3565b60405162000c68828262000f8e565b83815282810191508583018385028701840188101562000c86578586fd5b855b8581101562000c2c5781518452928401929084019060010162000c88565b600082601f83011262000cb7578081fd5b81516001600160401b0381111562000cd35762000cd362000ff1565b60405162000cec601f8301601f19166020018262000f8e565b81815284602083860101111562000d01578283fd5b62000d1482602083016020870162000f1e565b949350505050565b60006020828403121562000d2e578081fd5b81516001600160e01b03198116811462000d46578182fd5b9392505050565b60008060008060008060c0878903121562000d66578182fd5b86516001600160401b038082111562000d7d578384fd5b62000d8b8a838b0162000ca6565b9750602089015191508082111562000da1578384fd5b62000daf8a838b0162000ca6565b9650604089015191508082111562000dc5578384fd5b62000dd38a838b0162000ca6565b955062000de360608a0162000b9e565b9450608089015191508082111562000df9578384fd5b62000e078a838b0162000bb6565b935060a089015191508082111562000e1d578283fd5b5062000e2c89828a0162000c39565b9150509295509295509295565b6000815180845262000e5381602086016020860162000f1e565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000ea39083018462000e39565b979650505050505050565b60006020825262000d46602083018462000e39565b60006001600160401b0382111562000edf5762000edf62000ff1565b5060209081020190565b6000821982111562000eff5762000eff62000fdb565b500190565b60008282101562000f195762000f1962000fdb565b500390565b60005b8381101562000f3b57818101518382015260200162000f21565b8381111562000f4b576000848401525b50505050565b60028104600182168062000f6657607f821691505b6020821081141562000f8857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000fb65762000fb662000ff1565b6040525050565b600060001982141562000fd45762000fd462000fdb565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156200023157600481823e5160e01c90565b600060443d1015620010315762000231565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156200106457505050505062000231565b8285019150815181811115620010805750505050505062000231565b843d87010160208285010111156200109e5750505050505062000231565b620010af6020828601018762000f8e565b509094505050505090565b6131a780620010ca6000396000f3fe6080604052600436106102285760003560e01c80638456cb5911610123578063bdb2f9cd116100ab578063e33b7de31161006f578063e33b7de3146106ff578063e830bc5214610714578063e985e9c51461072a578063f242432a14610773578063f2fde38b1461079357610278565b8063bdb2f9cd14610649578063ce7c2ac21461065e578063d79779b214610694578063db4eb3a1146106ca578063def0c275146106ea57610278565b806395d89b41116100f257806395d89b411461059e5780639852595c146105b3578063a22cb465146105e9578063bd85b03914610609578063bdad2ccc1461063657610278565b80638456cb591461050757806385b27c851461051c5780638b83209b146105485780638da5cb5b1461058057610278565b80633a98ef39116101b15780634f558e79116101755780634f558e791461046d5780635c975abb1461049c5780636817c76c146104bc578063715018a6146104d2578063729ad39e146104e757610278565b80633a98ef39146103b05780633f4ba83a146103c5578063406072a9146103da57806348b75044146104205780634e1273f41461044057610278565b80630e89341c116101f85780630e89341c14610324578063191655871461034457806326e5c5a7146103645780632eb2c2d61461037a57806332cb6b0c1461039a57610278565b8062fdd58e1461027d57806301ffc9a7146102b057806302fe5305146102e057806306fdde031461030257610278565b36610278577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102566107b3565b604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561028957600080fd5b5061029d6102983660046129d0565b6107b8565b6040519081526020015b60405180910390f35b3480156102bc57600080fd5b506102d06102cb366004612aab565b61084f565b60405190151581526020016102a7565b3480156102ec57600080fd5b506103006102fb366004612af5565b610862565b005b34801561030e57600080fd5b506103176108b7565b6040516102a79190612d26565b34801561033057600080fd5b5061031761033f366004612b3b565b610949565b34801561035057600080fd5b5061030061035f36600461283e565b6109d7565b34801561037057600080fd5b5061029d60115481565b34801561038657600080fd5b50610300610395366004612892565b610a46565b3480156103a657600080fd5b5061029d6103e881565b3480156103bc57600080fd5b5060075461029d565b3480156103d157600080fd5b50610300610aef565b3480156103e657600080fd5b5061029d6103f5366004612ae3565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b34801561042c57600080fd5b5061030061043b366004612ae3565b610b42565b34801561044c57600080fd5b5061046061045b366004612a2e565b610d2f565b6040516102a79190612ce5565b34801561047957600080fd5b506102d0610488366004612b3b565b600090815260046020526040902054151590565b3480156104a857600080fd5b506102d0600354600160a01b900460ff1690565b3480156104c857600080fd5b5061029d600f5481565b3480156104de57600080fd5b50610300610e91565b3480156104f357600080fd5b506103006105023660046129fb565b610ee4565b34801561051357600080fd5b50610300610fa1565b34801561052857600080fd5b50600e546105369060ff1681565b60405160ff90911681526020016102a7565b34801561055457600080fd5b50610568610563366004612b3b565b610ff2565b6040516001600160a01b0390911681526020016102a7565b34801561058c57600080fd5b506003546001600160a01b0316610568565b3480156105aa57600080fd5b50610317611030565b3480156105bf57600080fd5b5061029d6105ce36600461283e565b6001600160a01b03166000908152600a602052604090205490565b3480156105f557600080fd5b506103006106043660046129a3565b61103f565b34801561061557600080fd5b5061029d610624366004612b3b565b60009081526004602052604090205490565b610300610644366004612b3b565b611051565b34801561065557600080fd5b5061029d604481565b34801561066a57600080fd5b5061029d61067936600461283e565b6001600160a01b031660009081526009602052604090205490565b3480156106a057600080fd5b5061029d6106af36600461283e565b6001600160a01b03166000908152600c602052604090205490565b3480156106d657600080fd5b506103006106e5366004612b6b565b6110ec565b3480156106f657600080fd5b5061029d601681565b34801561070b57600080fd5b5060085461029d565b34801561072057600080fd5b5061029d60105481565b34801561073657600080fd5b506102d061074536600461285a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077f57600080fd5b5061030061078e36600461293c565b61118f565b34801561079f57600080fd5b506103006107ae36600461283e565b611228565b335b90565b60006001600160a01b0383166108295760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061085a8261143c565b90505b919050565b61086a6107b3565b6001600160a01b03166108856003546001600160a01b031690565b6001600160a01b0316146108ab5760405162461bcd60e51b815260040161082090612ecb565b6108b48161148c565b50565b6060600580546108c690612fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546108f290612fb6565b801561093f5780601f106109145761010080835404028352916020019161093f565b820191906000526020600020905b81548152906001019060200180831161092257829003601f168201915b5050505050905090565b60008181526004602052604090205460609061099e5760405162461bcd60e51b81526020600482015260146024820152731d5c9a4e881d1bdad95b881b9bdd08195e1a5cdd60621b6044820152606401610820565b6109a78261149f565b6109b083611533565b6040516020016109c1929190612c0e565b6040516020818303038152906040529050919050565b336001600160a01b03821614806109f857506003546001600160a01b031633145b610a3d5760405162461bcd60e51b81526020600482015260166024820152753932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b6044820152606401610820565b6108b481611656565b610a4e6107b3565b6001600160a01b0316856001600160a01b03161480610a745750610a74856107456107b3565b610adb5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610820565b610ae8858585858561177f565b5050505050565b610af76107b3565b6001600160a01b0316610b126003546001600160a01b031690565b6001600160a01b031614610b385760405162461bcd60e51b815260040161082090612ecb565b610b40611989565b565b6001600160a01b038116600090815260096020526040902054610b775760405162461bcd60e51b815260040161082090612d81565b6001600160a01b0382166000908152600c60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610bcf57600080fd5b505afa158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c079190612b53565b610c119190612f24565b90506000610c4f8383610c4a87876001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b611a32565b905080610c6e5760405162461bcd60e51b815260040161082090612dc7565b6001600160a01b038085166000908152600d6020908152604080832093871683529290529081208054839290610ca5908490612f24565b90915550506001600160a01b0384166000908152600c602052604081208054839290610cd2908490612f24565b90915550610ce39050848483611a7a565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60608151835114610d945760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610820565b6000835167ffffffffffffffff811115610dbe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610de7578160200160208202803683370190505b50905060005b8451811015610e8957610e4e858281518110610e1957634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e4157634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610e6e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e828161301e565b9050610ded565b509392505050565b610e996107b3565b6001600160a01b0316610eb46003546001600160a01b031690565b6001600160a01b031614610eda5760405162461bcd60e51b815260040161082090612ecb565b610b406000611ad1565b610eec6107b3565b6001600160a01b0316610f076003546001600160a01b031690565b6001600160a01b031614610f2d5760405162461bcd60e51b815260040161082090612ecb565b60005b8151811015610f9d57610f8b33838381518110610f5d57634e487b7160e01b600052603260045260246000fd5b602002602001015160006001604051806040016040528060048152602001630307830360e41b81525061118f565b80610f958161301e565b915050610f30565b5050565b610fa96107b3565b6001600160a01b0316610fc46003546001600160a01b031690565b6001600160a01b031614610fea5760405162461bcd60e51b815260040161082090612ecb565b610b40611b23565b6000600b828154811061101557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6060600680546108c690612fb6565b610f9d61104a6107b3565b8383611b8f565b611064600354600160a01b900460ff1690565b156110815760405162461bcd60e51b815260040161082090612e12565b601054421015801561109557506011544211155b6110e15760405162461bcd60e51b815260206004820152601b60248201527f7075726368617365476d476e3a2077696e646f7720636c6f73656400000000006044820152606401610820565b6108b4600082611c70565b6110f46107b3565b6001600160a01b031661110f6003546001600160a01b031690565b6001600160a01b0316146111355760405162461bcd60e51b815260040161082090612ecb565b8181116111845760405162461bcd60e51b815260206004820152601c60248201527f54696d6520636f6d62696e6174696f6e206e6f7420616c6c6f776564000000006044820152606401610820565b601091909155601155565b6111976107b3565b6001600160a01b0316856001600160a01b031614806111bd57506111bd856107456107b3565b61121b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610820565b610ae88585858585611e43565b6112306107b3565b6001600160a01b031661124b6003546001600160a01b031690565b6001600160a01b0316146112715760405162461bcd60e51b815260040161082090612ecb565b6001600160a01b0381166112d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b6108b481611ad1565b6001600160a01b0385166113825760005b83518110156113805782818151811061131957634e487b7160e01b600052603260045260246000fd5b60200260200101516004600086848151811061134557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461136a9190612f24565b9091555061137990508161301e565b90506112f0565b505b6001600160a01b0384166114255760005b8351811015611423578281815181106113bc57634e487b7160e01b600052603260045260246000fd5b6020026020010151600460008684815181106113e857634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461140d9190612f6f565b9091555061141c90508161301e565b9050611393565b505b505050505050565b6001600160a01b03163b151590565b60006001600160e01b03198216636cdb3d1360e11b148061146d57506001600160e01b031982166303a24d0760e21b145b8061085a57506301ffc9a760e01b6001600160e01b031983161461085a565b8051610f9d906002906020840190612648565b6060600280546114ae90612fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546114da90612fb6565b80156115275780601f106114fc57610100808354040283529160200191611527565b820191906000526020600020905b81548152906001019060200180831161150a57829003601f168201915b50505050509050919050565b60608161155857506040805180820190915260018152600360fc1b602082015261085d565b8160005b8115611582578061156c8161301e565b915061157b9050600a83612f3c565b915061155c565b60008167ffffffffffffffff8111156115ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115d5576020820181803683370190505b5090505b841561164e576115ea600183612f6f565b91506115f7600a86613039565b611602906030612f24565b60f81b81838151811061162557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611647600a86612f3c565b94506115d9565b949350505050565b6001600160a01b03811660009081526009602052604090205461168b5760405162461bcd60e51b815260040161082090612d81565b600061169660085490565b6116a09047612f24565b905060006116c88383610c4a866001600160a01b03166000908152600a602052604090205490565b9050806116e75760405162461bcd60e51b815260040161082090612dc7565b6001600160a01b0383166000908152600a60205260408120805483929061170f908490612f24565b9250508190555080600860008282546117289190612f24565b9091555061173890508382611f71565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b81518351146117e15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610820565b6001600160a01b0384166118075760405162461bcd60e51b815260040161082090612e3c565b60006118116107b3565b905061182181878787878761208a565b60005b845181101561192357600085828151811061184f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061187b57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118cb5760405162461bcd60e51b815260040161082090612e81565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611908908490612f24565b925050819055505050508061191c9061301e565b9050611824565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611973929190612cf8565b60405180910390a46114258187878787876120c8565b61199c600354600160a01b900460ff1690565b6119df5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a156107b3565b6040516001600160a01b03909116815260200160405180910390a1565b6007546001600160a01b03841660009081526009602052604081205490918391611a5c9086612f50565b611a669190612f3c565b611a709190612f6f565b90505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611acc908490612233565b505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b36600354600160a01b900460ff1690565b15611b535760405162461bcd60e51b815260040161082090612e12565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a156107b3565b816001600160a01b0316836001600160a01b03161415611c035760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610820565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b333214611cbf5760405162461bcd60e51b815260206004820152601b60248201527f5f70757263686173653a2073656e64657220213d206f726967696e00000000006044820152606401610820565b600081118015611cd45750600e5460ff168111155b611d205760405162461bcd60e51b815260206004820152601c60248201527f5f70757263686173653a20657863656564206d617820706572207478000000006044820152606401610820565b6103e881611d3a8460009081526004602052604090205490565b611d449190612f24565b1115611d925760405162461bcd60e51b815260206004820152601c60248201527f5f70757263686173653a20657863656564206d617820737570706c79000000006044820152606401610820565b600f54611d9f9082612f50565b3414611ded5760405162461bcd60e51b815260206004820152601a60248201527f5f70757263686173653a20496e636f72726563742076616c75650000000000006044820152606401610820565b611e0833838360405180602001604052806000815250612305565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a35050565b6001600160a01b038416611e695760405162461bcd60e51b815260040161082090612e3c565b6000611e736107b3565b9050611e93818787611e8488612411565b611e8d88612411565b8761208a565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611ed45760405162461bcd60e51b815260040161082090612e81565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f11908490612f24565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461142382888888888861246a565b80471015611fc15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610820565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461200e576040519150601f19603f3d011682016040523d82523d6000602084013e612013565b606091505b5050905080611acc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610820565b61209d600354600160a01b900460ff1690565b156120ba5760405162461bcd60e51b815260040161082090612e12565b6114258686868686866112df565b6001600160a01b0384163b156114255760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061210c9089908990889088908890600401612c4d565b602060405180830381600087803b15801561212657600080fd5b505af1925050508015612156575060408051601f3d908101601f1916820190925261215391810190612ac7565b60015b6122035761216261308f565b806308c379a0141561219c57506121776130a6565b80612182575061219e565b8060405162461bcd60e51b81526004016108209190612d26565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610820565b6001600160e01b0319811663bc197c8160e01b146114235760405162461bcd60e51b815260040161082090612d39565b6000612288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125349092919063ffffffff16565b805190915015611acc57808060200190518101906122a69190612a8f565b611acc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610820565b6001600160a01b0384166123655760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610820565b600061236f6107b3565b905061238181600087611e8488612411565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906123b1908490612f24565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ae88160008787878761246a565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061245957634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156114255760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124ae9089908990889088908890600401612cab565b602060405180830381600087803b1580156124c857600080fd5b505af19250505080156124f8575060408051601f3d908101601f191682019092526124f591810190612ac7565b60015b6125045761216261308f565b6001600160e01b0319811663f23a6e6160e01b146114235760405162461bcd60e51b815260040161082090612d39565b6060611a708484600085856001600160a01b0385163b6125965760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610820565b600080866001600160a01b031685876040516125b29190612bf2565b60006040518083038185875af1925050503d80600081146125ef576040519150601f19603f3d011682016040523d82523d6000602084013e6125f4565b606091505b509150915061260482828661260f565b979650505050505050565b6060831561261e575081611a73565b82511561262e5782518084602001fd5b8160405162461bcd60e51b81526004016108209190612d26565b82805461265490612fb6565b90600052602060002090601f01602090048101928261267657600085556126bc565b82601f1061268f57805160ff19168380011785556126bc565b828001600101855582156126bc579182015b828111156126bc5782518255916020019190600101906126a1565b506126c89291506126cc565b5090565b5b808211156126c857600081556001016126cd565b600067ffffffffffffffff8311156126fb576126fb613079565b604051612712601f8501601f191660200182612ff1565b80915083815284848401111561272757600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261274f578081fd5b8135602061275c82612f00565b6040516127698282612ff1565b838152828101915085830183850287018401881015612786578586fd5b855b858110156127ad57813561279b81613138565b84529284019290840190600101612788565b5090979650505050505050565b600082601f8301126127ca578081fd5b813560206127d782612f00565b6040516127e48282612ff1565b838152828101915085830183850287018401881015612801578586fd5b855b858110156127ad57813584529284019290840190600101612803565b600082601f83011261282f578081fd5b611a73838335602085016126e1565b60006020828403121561284f578081fd5b8135611a7381613138565b6000806040838503121561286c578081fd5b823561287781613138565b9150602083013561288781613138565b809150509250929050565b600080600080600060a086880312156128a9578081fd5b85356128b481613138565b945060208601356128c481613138565b9350604086013567ffffffffffffffff808211156128e0578283fd5b6128ec89838a016127ba565b94506060880135915080821115612901578283fd5b61290d89838a016127ba565b93506080880135915080821115612922578283fd5b5061292f8882890161281f565b9150509295509295909350565b600080600080600060a08688031215612953578081fd5b853561295e81613138565b9450602086013561296e81613138565b93506040860135925060608601359150608086013567ffffffffffffffff811115612997578182fd5b61292f8882890161281f565b600080604083850312156129b5578182fd5b82356129c081613138565b915060208301356128878161314d565b600080604083850312156129e2578182fd5b82356129ed81613138565b946020939093013593505050565b600060208284031215612a0c578081fd5b813567ffffffffffffffff811115612a22578182fd5b61164e8482850161273f565b60008060408385031215612a40578182fd5b823567ffffffffffffffff80821115612a57578384fd5b612a638683870161273f565b93506020850135915080821115612a78578283fd5b50612a85858286016127ba565b9150509250929050565b600060208284031215612aa0578081fd5b8151611a738161314d565b600060208284031215612abc578081fd5b8135611a738161315b565b600060208284031215612ad8578081fd5b8151611a738161315b565b6000806040838503121561286c578182fd5b600060208284031215612b06578081fd5b813567ffffffffffffffff811115612b1c578182fd5b8201601f81018413612b2c578182fd5b61164e848235602084016126e1565b600060208284031215612b4c578081fd5b5035919050565b600060208284031215612b64578081fd5b5051919050565b60008060408385031215612b7d578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015612bbb57815187529582019590820190600101612b9f565b509495945050505050565b60008151808452612bde816020860160208601612f86565b601f01601f19169290920160200192915050565b60008251612c04818460208701612f86565b9190910192915050565b60008351612c20818460208801612f86565b835190830190612c34818360208801612f86565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612c7990830186612b8c565b8281036060840152612c8b8186612b8c565b90508281036080840152612c9f8185612bc6565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061260490830184612bc6565b600060208252611a736020830184612b8c565b600060408252612d0b6040830185612b8c565b8281036020840152612d1d8185612b8c565b95945050505050565b600060208252611a736020830184612bc6565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600067ffffffffffffffff821115612f1a57612f1a613079565b5060209081020190565b60008219821115612f3757612f3761304d565b500190565b600082612f4b57612f4b613063565b500490565b6000816000190483118215151615612f6a57612f6a61304d565b500290565b600082821015612f8157612f8161304d565b500390565b60005b83811015612fa1578181015183820152602001612f89565b83811115612fb0576000848401525b50505050565b600281046001821680612fca57607f821691505b60208210811415612feb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561301757613017613079565b6040525050565b60006000198214156130325761303261304d565b5060010190565b60008261304857613048613063565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156107b557600481823e5160e01c90565b600060443d10156130b6576107b5565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156130e85750505050506107b5565b8285019150815181811115613102575050505050506107b5565b843d870101602082850101111561311e575050505050506107b5565b61312d60208286010187612ff1565b509094505050505090565b6001600160a01b03811681146108b457600080fd5b80151581146108b457600080fd5b6001600160e01b0319811681146108b457600080fdfea2646970667358221220c72de1e20f2583f4eb854710a31e5fec75a93a10d11e2b27a437539390927f2c64736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000067aafd1851035a806541b57d4bc16c1836068d8e00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000000c50726f6a65637420474d474e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004474d474e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b68747470733a2f2f6675747572697374736f6369616c636c75622e6d7970696e6174612e636c6f75642f697066732f6261667962656964747065347979356164376c71796d32776178766666783567736634796a7435366263326d6d6264796b667879727870636c6e752f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000d5481575130a7decf4503c81a50152b3753031f9000000000000000000000000f780f7fb557d1fb226f33629da8396bc1f4d42cc000000000000000000000000ad99a67ac78b80e00c0b07bb3f526cd26b84361100000000000000000000000085ac012b6e71b31fc4f5e52c18ba963ddbae452a0000000000000000000000005ca0fe06576956a3203ad116fd52e2a66d83dfb50000000000000000000000005e50ab77b874a047c2214ccf77ff8de51c8f3dae000000000000000000000000623c17b5eddd5f05233ace70beb1927e3c032f7d0000000000000000000000007927181040b2e297a7db0b9f490921a65868255f00000000000000000000000002287fdee953df10c0504d362db557fdeb4db8ac0000000000000000000000005626349f2b11a49a8b814fae3a3fbfe243deac4e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005
Deployed Bytecode
0x6080604052600436106102285760003560e01c80638456cb5911610123578063bdb2f9cd116100ab578063e33b7de31161006f578063e33b7de3146106ff578063e830bc5214610714578063e985e9c51461072a578063f242432a14610773578063f2fde38b1461079357610278565b8063bdb2f9cd14610649578063ce7c2ac21461065e578063d79779b214610694578063db4eb3a1146106ca578063def0c275146106ea57610278565b806395d89b41116100f257806395d89b411461059e5780639852595c146105b3578063a22cb465146105e9578063bd85b03914610609578063bdad2ccc1461063657610278565b80638456cb591461050757806385b27c851461051c5780638b83209b146105485780638da5cb5b1461058057610278565b80633a98ef39116101b15780634f558e79116101755780634f558e791461046d5780635c975abb1461049c5780636817c76c146104bc578063715018a6146104d2578063729ad39e146104e757610278565b80633a98ef39146103b05780633f4ba83a146103c5578063406072a9146103da57806348b75044146104205780634e1273f41461044057610278565b80630e89341c116101f85780630e89341c14610324578063191655871461034457806326e5c5a7146103645780632eb2c2d61461037a57806332cb6b0c1461039a57610278565b8062fdd58e1461027d57806301ffc9a7146102b057806302fe5305146102e057806306fdde031461030257610278565b36610278577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102566107b3565b604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561028957600080fd5b5061029d6102983660046129d0565b6107b8565b6040519081526020015b60405180910390f35b3480156102bc57600080fd5b506102d06102cb366004612aab565b61084f565b60405190151581526020016102a7565b3480156102ec57600080fd5b506103006102fb366004612af5565b610862565b005b34801561030e57600080fd5b506103176108b7565b6040516102a79190612d26565b34801561033057600080fd5b5061031761033f366004612b3b565b610949565b34801561035057600080fd5b5061030061035f36600461283e565b6109d7565b34801561037057600080fd5b5061029d60115481565b34801561038657600080fd5b50610300610395366004612892565b610a46565b3480156103a657600080fd5b5061029d6103e881565b3480156103bc57600080fd5b5060075461029d565b3480156103d157600080fd5b50610300610aef565b3480156103e657600080fd5b5061029d6103f5366004612ae3565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b34801561042c57600080fd5b5061030061043b366004612ae3565b610b42565b34801561044c57600080fd5b5061046061045b366004612a2e565b610d2f565b6040516102a79190612ce5565b34801561047957600080fd5b506102d0610488366004612b3b565b600090815260046020526040902054151590565b3480156104a857600080fd5b506102d0600354600160a01b900460ff1690565b3480156104c857600080fd5b5061029d600f5481565b3480156104de57600080fd5b50610300610e91565b3480156104f357600080fd5b506103006105023660046129fb565b610ee4565b34801561051357600080fd5b50610300610fa1565b34801561052857600080fd5b50600e546105369060ff1681565b60405160ff90911681526020016102a7565b34801561055457600080fd5b50610568610563366004612b3b565b610ff2565b6040516001600160a01b0390911681526020016102a7565b34801561058c57600080fd5b506003546001600160a01b0316610568565b3480156105aa57600080fd5b50610317611030565b3480156105bf57600080fd5b5061029d6105ce36600461283e565b6001600160a01b03166000908152600a602052604090205490565b3480156105f557600080fd5b506103006106043660046129a3565b61103f565b34801561061557600080fd5b5061029d610624366004612b3b565b60009081526004602052604090205490565b610300610644366004612b3b565b611051565b34801561065557600080fd5b5061029d604481565b34801561066a57600080fd5b5061029d61067936600461283e565b6001600160a01b031660009081526009602052604090205490565b3480156106a057600080fd5b5061029d6106af36600461283e565b6001600160a01b03166000908152600c602052604090205490565b3480156106d657600080fd5b506103006106e5366004612b6b565b6110ec565b3480156106f657600080fd5b5061029d601681565b34801561070b57600080fd5b5060085461029d565b34801561072057600080fd5b5061029d60105481565b34801561073657600080fd5b506102d061074536600461285a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561077f57600080fd5b5061030061078e36600461293c565b61118f565b34801561079f57600080fd5b506103006107ae36600461283e565b611228565b335b90565b60006001600160a01b0383166108295760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061085a8261143c565b90505b919050565b61086a6107b3565b6001600160a01b03166108856003546001600160a01b031690565b6001600160a01b0316146108ab5760405162461bcd60e51b815260040161082090612ecb565b6108b48161148c565b50565b6060600580546108c690612fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546108f290612fb6565b801561093f5780601f106109145761010080835404028352916020019161093f565b820191906000526020600020905b81548152906001019060200180831161092257829003601f168201915b5050505050905090565b60008181526004602052604090205460609061099e5760405162461bcd60e51b81526020600482015260146024820152731d5c9a4e881d1bdad95b881b9bdd08195e1a5cdd60621b6044820152606401610820565b6109a78261149f565b6109b083611533565b6040516020016109c1929190612c0e565b6040516020818303038152906040529050919050565b336001600160a01b03821614806109f857506003546001600160a01b031633145b610a3d5760405162461bcd60e51b81526020600482015260166024820152753932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b6044820152606401610820565b6108b481611656565b610a4e6107b3565b6001600160a01b0316856001600160a01b03161480610a745750610a74856107456107b3565b610adb5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610820565b610ae8858585858561177f565b5050505050565b610af76107b3565b6001600160a01b0316610b126003546001600160a01b031690565b6001600160a01b031614610b385760405162461bcd60e51b815260040161082090612ecb565b610b40611989565b565b6001600160a01b038116600090815260096020526040902054610b775760405162461bcd60e51b815260040161082090612d81565b6001600160a01b0382166000908152600c60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610bcf57600080fd5b505afa158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c079190612b53565b610c119190612f24565b90506000610c4f8383610c4a87876001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b611a32565b905080610c6e5760405162461bcd60e51b815260040161082090612dc7565b6001600160a01b038085166000908152600d6020908152604080832093871683529290529081208054839290610ca5908490612f24565b90915550506001600160a01b0384166000908152600c602052604081208054839290610cd2908490612f24565b90915550610ce39050848483611a7a565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60608151835114610d945760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610820565b6000835167ffffffffffffffff811115610dbe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610de7578160200160208202803683370190505b50905060005b8451811015610e8957610e4e858281518110610e1957634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e4157634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610e6e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e828161301e565b9050610ded565b509392505050565b610e996107b3565b6001600160a01b0316610eb46003546001600160a01b031690565b6001600160a01b031614610eda5760405162461bcd60e51b815260040161082090612ecb565b610b406000611ad1565b610eec6107b3565b6001600160a01b0316610f076003546001600160a01b031690565b6001600160a01b031614610f2d5760405162461bcd60e51b815260040161082090612ecb565b60005b8151811015610f9d57610f8b33838381518110610f5d57634e487b7160e01b600052603260045260246000fd5b602002602001015160006001604051806040016040528060048152602001630307830360e41b81525061118f565b80610f958161301e565b915050610f30565b5050565b610fa96107b3565b6001600160a01b0316610fc46003546001600160a01b031690565b6001600160a01b031614610fea5760405162461bcd60e51b815260040161082090612ecb565b610b40611b23565b6000600b828154811061101557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6060600680546108c690612fb6565b610f9d61104a6107b3565b8383611b8f565b611064600354600160a01b900460ff1690565b156110815760405162461bcd60e51b815260040161082090612e12565b601054421015801561109557506011544211155b6110e15760405162461bcd60e51b815260206004820152601b60248201527f7075726368617365476d476e3a2077696e646f7720636c6f73656400000000006044820152606401610820565b6108b4600082611c70565b6110f46107b3565b6001600160a01b031661110f6003546001600160a01b031690565b6001600160a01b0316146111355760405162461bcd60e51b815260040161082090612ecb565b8181116111845760405162461bcd60e51b815260206004820152601c60248201527f54696d6520636f6d62696e6174696f6e206e6f7420616c6c6f776564000000006044820152606401610820565b601091909155601155565b6111976107b3565b6001600160a01b0316856001600160a01b031614806111bd57506111bd856107456107b3565b61121b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610820565b610ae88585858585611e43565b6112306107b3565b6001600160a01b031661124b6003546001600160a01b031690565b6001600160a01b0316146112715760405162461bcd60e51b815260040161082090612ecb565b6001600160a01b0381166112d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b6108b481611ad1565b6001600160a01b0385166113825760005b83518110156113805782818151811061131957634e487b7160e01b600052603260045260246000fd5b60200260200101516004600086848151811061134557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461136a9190612f24565b9091555061137990508161301e565b90506112f0565b505b6001600160a01b0384166114255760005b8351811015611423578281815181106113bc57634e487b7160e01b600052603260045260246000fd5b6020026020010151600460008684815181106113e857634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461140d9190612f6f565b9091555061141c90508161301e565b9050611393565b505b505050505050565b6001600160a01b03163b151590565b60006001600160e01b03198216636cdb3d1360e11b148061146d57506001600160e01b031982166303a24d0760e21b145b8061085a57506301ffc9a760e01b6001600160e01b031983161461085a565b8051610f9d906002906020840190612648565b6060600280546114ae90612fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546114da90612fb6565b80156115275780601f106114fc57610100808354040283529160200191611527565b820191906000526020600020905b81548152906001019060200180831161150a57829003601f168201915b50505050509050919050565b60608161155857506040805180820190915260018152600360fc1b602082015261085d565b8160005b8115611582578061156c8161301e565b915061157b9050600a83612f3c565b915061155c565b60008167ffffffffffffffff8111156115ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115d5576020820181803683370190505b5090505b841561164e576115ea600183612f6f565b91506115f7600a86613039565b611602906030612f24565b60f81b81838151811061162557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611647600a86612f3c565b94506115d9565b949350505050565b6001600160a01b03811660009081526009602052604090205461168b5760405162461bcd60e51b815260040161082090612d81565b600061169660085490565b6116a09047612f24565b905060006116c88383610c4a866001600160a01b03166000908152600a602052604090205490565b9050806116e75760405162461bcd60e51b815260040161082090612dc7565b6001600160a01b0383166000908152600a60205260408120805483929061170f908490612f24565b9250508190555080600860008282546117289190612f24565b9091555061173890508382611f71565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b81518351146117e15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610820565b6001600160a01b0384166118075760405162461bcd60e51b815260040161082090612e3c565b60006118116107b3565b905061182181878787878761208a565b60005b845181101561192357600085828151811061184f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061187b57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118cb5760405162461bcd60e51b815260040161082090612e81565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611908908490612f24565b925050819055505050508061191c9061301e565b9050611824565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611973929190612cf8565b60405180910390a46114258187878787876120c8565b61199c600354600160a01b900460ff1690565b6119df5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a156107b3565b6040516001600160a01b03909116815260200160405180910390a1565b6007546001600160a01b03841660009081526009602052604081205490918391611a5c9086612f50565b611a669190612f3c565b611a709190612f6f565b90505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611acc908490612233565b505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b36600354600160a01b900460ff1690565b15611b535760405162461bcd60e51b815260040161082090612e12565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a156107b3565b816001600160a01b0316836001600160a01b03161415611c035760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610820565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b333214611cbf5760405162461bcd60e51b815260206004820152601b60248201527f5f70757263686173653a2073656e64657220213d206f726967696e00000000006044820152606401610820565b600081118015611cd45750600e5460ff168111155b611d205760405162461bcd60e51b815260206004820152601c60248201527f5f70757263686173653a20657863656564206d617820706572207478000000006044820152606401610820565b6103e881611d3a8460009081526004602052604090205490565b611d449190612f24565b1115611d925760405162461bcd60e51b815260206004820152601c60248201527f5f70757263686173653a20657863656564206d617820737570706c79000000006044820152606401610820565b600f54611d9f9082612f50565b3414611ded5760405162461bcd60e51b815260206004820152601a60248201527f5f70757263686173653a20496e636f72726563742076616c75650000000000006044820152606401610820565b611e0833838360405180602001604052806000815250612305565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a35050565b6001600160a01b038416611e695760405162461bcd60e51b815260040161082090612e3c565b6000611e736107b3565b9050611e93818787611e8488612411565b611e8d88612411565b8761208a565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611ed45760405162461bcd60e51b815260040161082090612e81565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f11908490612f24565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461142382888888888861246a565b80471015611fc15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610820565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461200e576040519150601f19603f3d011682016040523d82523d6000602084013e612013565b606091505b5050905080611acc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610820565b61209d600354600160a01b900460ff1690565b156120ba5760405162461bcd60e51b815260040161082090612e12565b6114258686868686866112df565b6001600160a01b0384163b156114255760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061210c9089908990889088908890600401612c4d565b602060405180830381600087803b15801561212657600080fd5b505af1925050508015612156575060408051601f3d908101601f1916820190925261215391810190612ac7565b60015b6122035761216261308f565b806308c379a0141561219c57506121776130a6565b80612182575061219e565b8060405162461bcd60e51b81526004016108209190612d26565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610820565b6001600160e01b0319811663bc197c8160e01b146114235760405162461bcd60e51b815260040161082090612d39565b6000612288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125349092919063ffffffff16565b805190915015611acc57808060200190518101906122a69190612a8f565b611acc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610820565b6001600160a01b0384166123655760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610820565b600061236f6107b3565b905061238181600087611e8488612411565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906123b1908490612f24565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ae88160008787878761246a565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061245957634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156114255760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124ae9089908990889088908890600401612cab565b602060405180830381600087803b1580156124c857600080fd5b505af19250505080156124f8575060408051601f3d908101601f191682019092526124f591810190612ac7565b60015b6125045761216261308f565b6001600160e01b0319811663f23a6e6160e01b146114235760405162461bcd60e51b815260040161082090612d39565b6060611a708484600085856001600160a01b0385163b6125965760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610820565b600080866001600160a01b031685876040516125b29190612bf2565b60006040518083038185875af1925050503d80600081146125ef576040519150601f19603f3d011682016040523d82523d6000602084013e6125f4565b606091505b509150915061260482828661260f565b979650505050505050565b6060831561261e575081611a73565b82511561262e5782518084602001fd5b8160405162461bcd60e51b81526004016108209190612d26565b82805461265490612fb6565b90600052602060002090601f01602090048101928261267657600085556126bc565b82601f1061268f57805160ff19168380011785556126bc565b828001600101855582156126bc579182015b828111156126bc5782518255916020019190600101906126a1565b506126c89291506126cc565b5090565b5b808211156126c857600081556001016126cd565b600067ffffffffffffffff8311156126fb576126fb613079565b604051612712601f8501601f191660200182612ff1565b80915083815284848401111561272757600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261274f578081fd5b8135602061275c82612f00565b6040516127698282612ff1565b838152828101915085830183850287018401881015612786578586fd5b855b858110156127ad57813561279b81613138565b84529284019290840190600101612788565b5090979650505050505050565b600082601f8301126127ca578081fd5b813560206127d782612f00565b6040516127e48282612ff1565b838152828101915085830183850287018401881015612801578586fd5b855b858110156127ad57813584529284019290840190600101612803565b600082601f83011261282f578081fd5b611a73838335602085016126e1565b60006020828403121561284f578081fd5b8135611a7381613138565b6000806040838503121561286c578081fd5b823561287781613138565b9150602083013561288781613138565b809150509250929050565b600080600080600060a086880312156128a9578081fd5b85356128b481613138565b945060208601356128c481613138565b9350604086013567ffffffffffffffff808211156128e0578283fd5b6128ec89838a016127ba565b94506060880135915080821115612901578283fd5b61290d89838a016127ba565b93506080880135915080821115612922578283fd5b5061292f8882890161281f565b9150509295509295909350565b600080600080600060a08688031215612953578081fd5b853561295e81613138565b9450602086013561296e81613138565b93506040860135925060608601359150608086013567ffffffffffffffff811115612997578182fd5b61292f8882890161281f565b600080604083850312156129b5578182fd5b82356129c081613138565b915060208301356128878161314d565b600080604083850312156129e2578182fd5b82356129ed81613138565b946020939093013593505050565b600060208284031215612a0c578081fd5b813567ffffffffffffffff811115612a22578182fd5b61164e8482850161273f565b60008060408385031215612a40578182fd5b823567ffffffffffffffff80821115612a57578384fd5b612a638683870161273f565b93506020850135915080821115612a78578283fd5b50612a85858286016127ba565b9150509250929050565b600060208284031215612aa0578081fd5b8151611a738161314d565b600060208284031215612abc578081fd5b8135611a738161315b565b600060208284031215612ad8578081fd5b8151611a738161315b565b6000806040838503121561286c578182fd5b600060208284031215612b06578081fd5b813567ffffffffffffffff811115612b1c578182fd5b8201601f81018413612b2c578182fd5b61164e848235602084016126e1565b600060208284031215612b4c578081fd5b5035919050565b600060208284031215612b64578081fd5b5051919050565b60008060408385031215612b7d578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015612bbb57815187529582019590820190600101612b9f565b509495945050505050565b60008151808452612bde816020860160208601612f86565b601f01601f19169290920160200192915050565b60008251612c04818460208701612f86565b9190910192915050565b60008351612c20818460208801612f86565b835190830190612c34818360208801612f86565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612c7990830186612b8c565b8281036060840152612c8b8186612b8c565b90508281036080840152612c9f8185612bc6565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061260490830184612bc6565b600060208252611a736020830184612b8c565b600060408252612d0b6040830185612b8c565b8281036020840152612d1d8185612b8c565b95945050505050565b600060208252611a736020830184612bc6565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600067ffffffffffffffff821115612f1a57612f1a613079565b5060209081020190565b60008219821115612f3757612f3761304d565b500190565b600082612f4b57612f4b613063565b500490565b6000816000190483118215151615612f6a57612f6a61304d565b500290565b600082821015612f8157612f8161304d565b500390565b60005b83811015612fa1578181015183820152602001612f89565b83811115612fb0576000848401525b50505050565b600281046001821680612fca57607f821691505b60208210811415612feb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561301757613017613079565b6040525050565b60006000198214156130325761303261304d565b5060010190565b60008261304857613048613063565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156107b557600481823e5160e01c90565b600060443d10156130b6576107b5565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156130e85750505050506107b5565b8285019150815181811115613102575050505050506107b5565b843d870101602082850101111561311e575050505050506107b5565b61312d60208286010187612ff1565b509094505050505090565b6001600160a01b03811681146108b457600080fd5b80151581146108b457600080fd5b6001600160e01b0319811681146108b457600080fdfea2646970667358221220c72de1e20f2583f4eb854710a31e5fec75a93a10d11e2b27a437539390927f2c64736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000067aafd1851035a806541b57d4bc16c1836068d8e00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000000c50726f6a65637420474d474e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004474d474e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b68747470733a2f2f6675747572697374736f6369616c636c75622e6d7970696e6174612e636c6f75642f697066732f6261667962656964747065347979356164376c71796d32776178766666783567736634796a7435366263326d6d6264796b667879727870636c6e752f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000d5481575130a7decf4503c81a50152b3753031f9000000000000000000000000f780f7fb557d1fb226f33629da8396bc1f4d42cc000000000000000000000000ad99a67ac78b80e00c0b07bb3f526cd26b84361100000000000000000000000085ac012b6e71b31fc4f5e52c18ba963ddbae452a0000000000000000000000005ca0fe06576956a3203ad116fd52e2a66d83dfb50000000000000000000000005e50ab77b874a047c2214ccf77ff8de51c8f3dae000000000000000000000000623c17b5eddd5f05233ace70beb1927e3c032f7d0000000000000000000000007927181040b2e297a7db0b9f490921a65868255f00000000000000000000000002287fdee953df10c0504d362db557fdeb4db8ac0000000000000000000000005626349f2b11a49a8b814fae3a3fbfe243deac4e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005
-----Decoded View---------------
Arg [0] : _name (string): Project GMGN
Arg [1] : _symbol (string): GMGN
Arg [2] : _uri (string): https://futuristsocialclub.mypinata.cloud/ipfs/bafybeidtpe4yy5ad7lqym2waxvffx5gsf4yjt56bc2mmbdykfxyrxpclnu/
Arg [3] : _governor (address): 0x67AAfD1851035a806541B57d4BC16c1836068d8E
Arg [4] : payees (address[]): 0xd5481575130a7DeCF4503c81a50152B3753031F9,0xf780f7fB557d1Fb226f33629dA8396BC1F4d42CC,0xaD99a67ac78b80E00C0B07bB3F526Cd26B843611,0x85Ac012b6e71b31Fc4F5E52C18bA963ddBAe452a,0x5Ca0fe06576956A3203AD116FD52e2a66d83Dfb5,0x5E50Ab77b874a047c2214CCF77ff8de51C8F3dAe,0x623C17B5eDdD5F05233ACe70beB1927E3C032f7d,0x7927181040b2e297a7DB0B9f490921a65868255F,0x02287fDEe953dF10C0504d362Db557fdEb4DB8AC,0x5626349F2B11a49A8B814FAe3A3FbFE243DeAC4e
Arg [5] : shares_ (uint256[]): 30,20,15,5,5,5,5,5,5,5
-----Encoded View---------------
37 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000067aafd1851035a806541b57d4bc16c1836068d8e
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 50726f6a65637420474d474e0000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 474d474e00000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000006b
Arg [11] : 68747470733a2f2f6675747572697374736f6369616c636c75622e6d7970696e
Arg [12] : 6174612e636c6f75642f697066732f6261667962656964747065347979356164
Arg [13] : 376c71796d32776178766666783567736634796a7435366263326d6d6264796b
Arg [14] : 667879727870636c6e752f000000000000000000000000000000000000000000
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [16] : 000000000000000000000000d5481575130a7decf4503c81a50152b3753031f9
Arg [17] : 000000000000000000000000f780f7fb557d1fb226f33629da8396bc1f4d42cc
Arg [18] : 000000000000000000000000ad99a67ac78b80e00c0b07bb3f526cd26b843611
Arg [19] : 00000000000000000000000085ac012b6e71b31fc4f5e52c18ba963ddbae452a
Arg [20] : 0000000000000000000000005ca0fe06576956a3203ad116fd52e2a66d83dfb5
Arg [21] : 0000000000000000000000005e50ab77b874a047c2214ccf77ff8de51c8f3dae
Arg [22] : 000000000000000000000000623c17b5eddd5f05233ace70beb1927e3c032f7d
Arg [23] : 0000000000000000000000007927181040b2e297a7db0b9f490921a65868255f
Arg [24] : 00000000000000000000000002287fdee953df10c0504d362db557fdeb4db8ac
Arg [25] : 0000000000000000000000005626349f2b11a49a8b814fae3a3fbfe243deac4e
Arg [26] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [27] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [29] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000005
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.