ERC-20
Overview
Max Total Supply
593,212.538579261022168768 vaultedSOLAR
Holders
1,308
Market
Price
$0.00 @ 0.000000 GLMR
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
90 vaultedSOLARValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
VaultedSolarBeamToken
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at moonbeam.moonscan.io on 2022-01-20 */ // Sources flattened with hardhat v2.7.0 https://hardhat.org // File contracts/flare/VaultedSolarBeamToken.sol // Sources flattened with hardhat v2.7.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/utils/[email protected] /** * @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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/utils/[email protected] /** * @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); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ∟%V% 2 + 1, and for v in (302): v �♥�� {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File @openzeppelin/contracts/utils/[email protected] /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File @openzeppelin/contracts/access/[email protected] /** * @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); } } // File contracts/libraries/IBoringERC20.sol interface IBoringERC20 { function mint(address to, uint256 amount) external; function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval( address indexed owner, address indexed spender, uint256 value ); /// @notice EIP 2612 function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } // File contracts/libraries/BoringERC20.sol // solhint-disable avoid-low-level-calls library BoringERC20 { bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol() bytes4 private constant SIG_NAME = 0x06fdde03; // name() bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals() bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256) bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256) function returnDataToString(bytes memory data) internal pure returns (string memory) { if (data.length >= 64) { return abi.decode(data, (string)); } else if (data.length == 32) { uint8 i = 0; while (i < 32 && data[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 32 && data[i] != 0; i++) { bytesArray[i] = data[i]; } return string(bytesArray); } else { return "???"; } } /// @notice Provides a safe ERC20.symbol version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token symbol. function safeSymbol(IBoringERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_SYMBOL) ); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.name version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token name. function safeName(IBoringERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_NAME) ); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.decimals version which returns '18' as fallback value. /// @param token The address of the ERC-20 token contract. /// @return (uint8) Token decimals. function safeDecimals(IBoringERC20 token) internal view returns (uint8) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_DECIMALS) ); return success && data.length == 32 ? abi.decode(data, (uint8)) : 18; } /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransfer( IBoringERC20 token, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call( abi.encodeWithSelector(SIG_TRANSFER, to, amount) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed" ); } /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param from Transfer tokens from. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransferFrom( IBoringERC20 token, address from, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call( abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed" ); } } // File contracts/vaulted/VaultedSolarBeamToken.sol contract VaultedSolarBeamToken is ERC20Permit, Ownable { using BoringERC20 for IBoringERC20; /* =============== EVENTS ==================== */ constructor() ERC20("Vaulted Solarbeam Token", "vaultedSOLAR") ERC20Permit("vaultedSOLAR") {} function multimint( address[] memory _contributors, uint256[] memory _balances ) public onlyOwner { require(_contributors.length <= 200); for (uint8 i = 0; i < _contributors.length; i++) { _mint(_contributors[i], _balances[i]); (bool sent, ) = _contributors[i].call{value: 0.07 ether}(""); require(sent, "Failed to send Ether"); } } receive() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contributors","type":"address[]"},{"internalType":"uint256[]","name":"_balances","type":"uint256[]"}],"name":"multimint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506040518060400160405280600c81526020016b3b30bab63a32b229a7a620a960a11b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280601781526020017f5661756c74656420536f6c61726265616d20546f6b656e0000000000000000008152506040518060400160405280600c81526020016b3b30bab63a32b229a7a620a960a11b8152508160039080519060200190620000eb9291906200020c565b508051620001019060049060208401906200020c565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060601b60c0526101205250620001b09350620001aa925050620001b69050565b620001ba565b620002ef565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021a90620002b2565b90600052602060002090601f0160209004810192826200023e576000855562000289565b82601f106200025957805160ff191683800117855562000289565b8280016001018555821562000289579182015b82811115620002895782518255916020019190600101906200026c565b50620002979291506200029b565b5090565b5b808211156200029757600081556001016200029c565b600181811c90821680620002c757607f821691505b60208210811415620002e957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160601c60e051610100516101205161014051611ca06200034d60003960006109c801526000611267015260006112b601526000611291015260006111ea015260006112140152600061123e0152611ca06000f3fe60806040526004361061012d5760003560e01c8063715018a6116100a5578063a457c2d711610074578063d505accf11610059578063d505accf14610348578063dd62ed3e14610368578063f2fde38b146103bb57600080fd5b8063a457c2d714610308578063a9059cbb1461032857600080fd5b8063715018a6146102895780637ecebe001461029e5780638da5cb5b146102be57806395d89b41146102f357600080fd5b806323b872dd116100fc5780633644e515116100e15780633644e51514610211578063395093511461022657806370a082311461024657600080fd5b806323b872dd146101d5578063313ce567146101f557600080fd5b806306fdde0314610139578063095ea7b31461016457806314004ef31461019457806318160ddd146101b657600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061014e6103db565b60405161015b9190611a42565b60405180910390f35b34801561017057600080fd5b5061018461017f366004611951565b61046d565b604051901515815260200161015b565b3480156101a057600080fd5b506101b46101af36600461197b565b610483565b005b3480156101c257600080fd5b506002545b60405190815260200161015b565b3480156101e157600080fd5b506101846101f03660046118a2565b61066e565b34801561020157600080fd5b506040516012815260200161015b565b34801561021d57600080fd5b506101c7610754565b34801561023257600080fd5b50610184610241366004611951565b610763565b34801561025257600080fd5b506101c761026136600461184d565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561029557600080fd5b506101b46107ac565b3480156102aa57600080fd5b506101c76102b936600461184d565b610839565b3480156102ca57600080fd5b5060065460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015b565b3480156102ff57600080fd5b5061014e610866565b34801561031457600080fd5b50610184610323366004611951565b610875565b34801561033457600080fd5b50610184610343366004611951565b61094d565b34801561035457600080fd5b506101b46103633660046118de565b61095a565b34801561037457600080fd5b506101c761038336600461186f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b3480156103c757600080fd5b506101b46103d636600461184d565b610b19565b6060600380546103ea90611b40565b80601f016020809104026020016040519081016040528092919081815260200182805461041690611b40565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b5050505050905090565b600061047a338484610c49565b50600192915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60c88251111561051857600080fd5b60005b82518160ff16101561066957610569838260ff168151811061053f5761053f611c0c565b6020026020010151838360ff168151811061055c5761055c611c0c565b6020026020010151610dfc565b6000838260ff168151811061058057610580611c0c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1666f8b0a10e47000060405160006040518083038185875af1925050503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e6105eb565b606091505b5050905080610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610500565b508061066181611b8e565b91505061051b565b505050565b600061067b848484610f1c565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602090815260408083203384529091529020548281101561073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610500565b6107498533858403610c49565b506001949350505050565b600061075e6111d0565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161047a9185906107a7908690611b28565b610c49565b60065473ffffffffffffffffffffffffffffffffffffffff16331461082d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610500565b6108376000611304565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120545b92915050565b6060600480546103ea90611b40565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610500565b6109433385858403610c49565b5060019392505050565b600061047a338484610f1c565b834211156109c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610500565b60007f00000000000000000000000000000000000000000000000000000000000000008888886109f38c61137b565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610a5b826113b0565b90506000610a6b82878787611419565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610500565b610b0d8a8a8a610c49565b50505050505050505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610b9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610500565b73ffffffffffffffffffffffffffffffffffffffff8116610c3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610500565b610c4681611304565b50565b73ffffffffffffffffffffffffffffffffffffffff8316610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff8216610d8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216610e79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610500565b8060026000828254610e8b9190611b28565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290610ec5908490611b28565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8316610fbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff8216611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015611118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526020819052604080822085850390559185168152908120805484929061115c908490611b28565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111c291815260200190565b60405180910390a350505050565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561123657507f000000000000000000000000000000000000000000000000000000000000000046145b1561126057507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b60006108606113bd6111d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061142a87878787611441565b9150915061143781611559565b5095945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156114785750600090506003611550565b8460ff16601b1415801561149057508460ff16601c14155b156114a15750600090506004611550565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156114f5573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661154957600060019250925050611550565b9150600090505b94509492505050565b600081600481111561156d5761156d611bdd565b14156115765750565b600181600481111561158a5761158a611bdd565b14156115f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610500565b600281600481111561160657611606611bdd565b141561166e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610500565b600381600481111561168257611682611bdd565b1415611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610500565b600481600481111561172457611724611bdd565b1415610c46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610500565b803573ffffffffffffffffffffffffffffffffffffffff811681146117d657600080fd5b919050565b600082601f8301126117ec57600080fd5b813560206118016117fc83611b04565b611ab5565b80838252828201915082860187848660051b890101111561182157600080fd5b60005b8581101561184057813584529284019290840190600101611824565b5090979650505050505050565b60006020828403121561185f57600080fd5b611868826117b2565b9392505050565b6000806040838503121561188257600080fd5b61188b836117b2565b9150611899602084016117b2565b90509250929050565b6000806000606084860312156118b757600080fd5b6118c0846117b2565b92506118ce602085016117b2565b9150604084013590509250925092565b600080600080600080600060e0888a0312156118f957600080fd5b611902886117b2565b9650611910602089016117b2565b95506040880135945060608801359350608088013560ff8116811461193457600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561196457600080fd5b61196d836117b2565b946020939093013593505050565b6000806040838503121561198e57600080fd5b823567ffffffffffffffff808211156119a657600080fd5b818501915085601f8301126119ba57600080fd5b813560206119ca6117fc83611b04565b8083825282820191508286018a848660051b89010111156119ea57600080fd5b600096505b84871015611a1457611a00816117b2565b8352600196909601959183019183016119ef565b5096505086013592505080821115611a2b57600080fd5b50611a38858286016117db565b9150509250929050565b600060208083528351808285015260005b81811015611a6f57858101830151858201604001528201611a53565b81811115611a81576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611afc57611afc611c3b565b604052919050565b600067ffffffffffffffff821115611b1e57611b1e611c3b565b5060051b60200190565b60008219821115611b3b57611b3b611bae565b500190565b600181811c90821680611b5457607f821691505b602082108114156113aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060ff821660ff811415611ba557611ba5611bae565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220ba21b26f791f94ec61abe95071a86a4583ac5f013076466ff941f01771d945a864736f6c63430008070033
Deployed Bytecode
0x60806040526004361061012d5760003560e01c8063715018a6116100a5578063a457c2d711610074578063d505accf11610059578063d505accf14610348578063dd62ed3e14610368578063f2fde38b146103bb57600080fd5b8063a457c2d714610308578063a9059cbb1461032857600080fd5b8063715018a6146102895780637ecebe001461029e5780638da5cb5b146102be57806395d89b41146102f357600080fd5b806323b872dd116100fc5780633644e515116100e15780633644e51514610211578063395093511461022657806370a082311461024657600080fd5b806323b872dd146101d5578063313ce567146101f557600080fd5b806306fdde0314610139578063095ea7b31461016457806314004ef31461019457806318160ddd146101b657600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061014e6103db565b60405161015b9190611a42565b60405180910390f35b34801561017057600080fd5b5061018461017f366004611951565b61046d565b604051901515815260200161015b565b3480156101a057600080fd5b506101b46101af36600461197b565b610483565b005b3480156101c257600080fd5b506002545b60405190815260200161015b565b3480156101e157600080fd5b506101846101f03660046118a2565b61066e565b34801561020157600080fd5b506040516012815260200161015b565b34801561021d57600080fd5b506101c7610754565b34801561023257600080fd5b50610184610241366004611951565b610763565b34801561025257600080fd5b506101c761026136600461184d565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561029557600080fd5b506101b46107ac565b3480156102aa57600080fd5b506101c76102b936600461184d565b610839565b3480156102ca57600080fd5b5060065460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015b565b3480156102ff57600080fd5b5061014e610866565b34801561031457600080fd5b50610184610323366004611951565b610875565b34801561033457600080fd5b50610184610343366004611951565b61094d565b34801561035457600080fd5b506101b46103633660046118de565b61095a565b34801561037457600080fd5b506101c761038336600461186f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b3480156103c757600080fd5b506101b46103d636600461184d565b610b19565b6060600380546103ea90611b40565b80601f016020809104026020016040519081016040528092919081815260200182805461041690611b40565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b5050505050905090565b600061047a338484610c49565b50600192915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60c88251111561051857600080fd5b60005b82518160ff16101561066957610569838260ff168151811061053f5761053f611c0c565b6020026020010151838360ff168151811061055c5761055c611c0c565b6020026020010151610dfc565b6000838260ff168151811061058057610580611c0c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1666f8b0a10e47000060405160006040518083038185875af1925050503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e6105eb565b606091505b5050905080610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610500565b508061066181611b8e565b91505061051b565b505050565b600061067b848484610f1c565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602090815260408083203384529091529020548281101561073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610500565b6107498533858403610c49565b506001949350505050565b600061075e6111d0565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161047a9185906107a7908690611b28565b610c49565b60065473ffffffffffffffffffffffffffffffffffffffff16331461082d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610500565b6108376000611304565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120545b92915050565b6060600480546103ea90611b40565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610500565b6109433385858403610c49565b5060019392505050565b600061047a338484610f1c565b834211156109c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610500565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109f38c61137b565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610a5b826113b0565b90506000610a6b82878787611419565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610500565b610b0d8a8a8a610c49565b50505050505050505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610b9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610500565b73ffffffffffffffffffffffffffffffffffffffff8116610c3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610500565b610c4681611304565b50565b73ffffffffffffffffffffffffffffffffffffffff8316610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff8216610d8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216610e79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610500565b8060026000828254610e8b9190611b28565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290610ec5908490611b28565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8316610fbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff8216611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015611118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610500565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526020819052604080822085850390559185168152908120805484929061115c908490611b28565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111c291815260200190565b60405180910390a350505050565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000006763cfd3cfc88bce52dfac3a9346c55b43e48def1614801561123657507f000000000000000000000000000000000000000000000000000000000000050446145b1561126057507f73e21930bd76f7e014bdfa3b774798c6910afda7986393f8aed913ac05fc344890565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f6c4879300fe5e39b21f9d5420a29f779a09ce29e02441d01c7aba34f7bc9b5e9828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b60006108606113bd6111d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061142a87878787611441565b9150915061143781611559565b5095945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156114785750600090506003611550565b8460ff16601b1415801561149057508460ff16601c14155b156114a15750600090506004611550565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156114f5573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661154957600060019250925050611550565b9150600090505b94509492505050565b600081600481111561156d5761156d611bdd565b14156115765750565b600181600481111561158a5761158a611bdd565b14156115f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610500565b600281600481111561160657611606611bdd565b141561166e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610500565b600381600481111561168257611682611bdd565b1415611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610500565b600481600481111561172457611724611bdd565b1415610c46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610500565b803573ffffffffffffffffffffffffffffffffffffffff811681146117d657600080fd5b919050565b600082601f8301126117ec57600080fd5b813560206118016117fc83611b04565b611ab5565b80838252828201915082860187848660051b890101111561182157600080fd5b60005b8581101561184057813584529284019290840190600101611824565b5090979650505050505050565b60006020828403121561185f57600080fd5b611868826117b2565b9392505050565b6000806040838503121561188257600080fd5b61188b836117b2565b9150611899602084016117b2565b90509250929050565b6000806000606084860312156118b757600080fd5b6118c0846117b2565b92506118ce602085016117b2565b9150604084013590509250925092565b600080600080600080600060e0888a0312156118f957600080fd5b611902886117b2565b9650611910602089016117b2565b95506040880135945060608801359350608088013560ff8116811461193457600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561196457600080fd5b61196d836117b2565b946020939093013593505050565b6000806040838503121561198e57600080fd5b823567ffffffffffffffff808211156119a657600080fd5b818501915085601f8301126119ba57600080fd5b813560206119ca6117fc83611b04565b8083825282820191508286018a848660051b89010111156119ea57600080fd5b600096505b84871015611a1457611a00816117b2565b8352600196909601959183019183016119ef565b5096505086013592505080821115611a2b57600080fd5b50611a38858286016117db565b9150509250929050565b600060208083528351808285015260005b81811015611a6f57858101830151858201604001528201611a53565b81811115611a81576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611afc57611afc611c3b565b604052919050565b600067ffffffffffffffff821115611b1e57611b1e611c3b565b5060051b60200190565b60008219821115611b3b57611b3b611bae565b500190565b600181811c90821680611b5457607f821691505b602082108114156113aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060ff821660ff811415611ba557611ba5611bae565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220ba21b26f791f94ec61abe95071a86a4583ac5f013076466ff941f01771d945a864736f6c63430008070033
Deployed Bytecode Sourcemap
46598:750:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6614:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8781:169;;;;;;;;;;-1:-1:-1;8781:169:0;;;;;:::i;:::-;;:::i;:::-;;;4856:14:1;;4849:22;4831:41;;4819:2;4804:18;8781:169:0;4691:187:1;46882:426:0;;;;;;;;;;-1:-1:-1;46882:426:0;;;;;:::i;:::-;;:::i;:::-;;7734:108;;;;;;;;;;-1:-1:-1;7822:12:0;;7734:108;;;5029:25:1;;;5017:2;5002:18;7734:108:0;4883:177:1;9432:492:0;;;;;;;;;;-1:-1:-1;9432:492:0;;;;;:::i;:::-;;:::i;7576:93::-;;;;;;;;;;-1:-1:-1;7576:93:0;;7659:2;14142:36:1;;14130:2;14115:18;7576:93:0;14000:184:1;38612:115:0;;;;;;;;;;;;;:::i;10333:215::-;;;;;;;;;;-1:-1:-1;10333:215:0;;;;;:::i;:::-;;:::i;7905:127::-;;;;;;;;;;-1:-1:-1;7905:127:0;;;;;:::i;:::-;8006:18;;7979:7;8006:18;;;;;;;;;;;;7905:127;40712:103;;;;;;;;;;;;;:::i;38354:128::-;;;;;;;;;;-1:-1:-1;38354:128:0;;;;;:::i;:::-;;:::i;40061:87::-;;;;;;;;;;-1:-1:-1;40134:6:0;;40061:87;;40134:6;;;;4606:74:1;;4594:2;4579:18;40061:87:0;4460:226:1;6833:104:0;;;;;;;;;;;;;:::i;11051:413::-;;;;;;;;;;-1:-1:-1;11051:413:0;;;;;:::i;:::-;;:::i;8245:175::-;;;;;;;;;;-1:-1:-1;8245:175:0;;;;;:::i;:::-;;:::i;37643:645::-;;;;;;;;;;-1:-1:-1;37643:645:0;;;;;:::i;:::-;;:::i;8483:151::-;;;;;;;;;;-1:-1:-1;8483:151:0;;;;;:::i;:::-;8599:18;;;;8572:7;8599:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8483:151;40970:201;;;;;;;;;;-1:-1:-1;40970:201:0;;;;;:::i;:::-;;:::i;6614:100::-;6668:13;6701:5;6694:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6614:100;:::o;8781:169::-;8864:4;8881:39;4430:10;8904:7;8913:6;8881:8;:39::i;:::-;-1:-1:-1;8938:4:0;8781:169;;;;:::o;46882:426::-;40134:6;;40281:23;40134:6;4430:10;40281:23;40273:68;;;;;;;12082:2:1;40273:68:0;;;12064:21:1;;;12101:18;;;12094:30;12160:34;12140:18;;;12133:62;12212:18;;40273:68:0;;;;;;;;;47046:3:::1;47022:13;:20;:27;;47014:36;;;::::0;::::1;;47066:7;47061:240;47083:13;:20;47079:1;:24;;;47061:240;;;47125:37;47131:13;47145:1;47131:16;;;;;;;;;;:::i;:::-;;;;;;;47149:9;47159:1;47149:12;;;;;;;;;;:::i;:::-;;;;;;;47125:5;:37::i;:::-;47178:9;47193:13;47207:1;47193:16;;;;;;;;;;:::i;:::-;;;;;;;:21;;47222:10;47193:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47177:60;;;47260:4;47252:37;;;::::0;::::1;::::0;;10159:2:1;47252:37:0::1;::::0;::::1;10141:21:1::0;10198:2;10178:18;;;10171:30;10237:22;10217:18;;;10210:50;10277:18;;47252:37:0::1;9957:344:1::0;47252:37:0::1;-1:-1:-1::0;47105:3:0;::::1;::::0;::::1;:::i;:::-;;;;47061:240;;;;46882:426:::0;;:::o;9432:492::-;9572:4;9589:36;9599:6;9607:9;9618:6;9589:9;:36::i;:::-;9665:19;;;9638:24;9665:19;;;:11;:19;;;;;;;;4430:10;9665:33;;;;;;;;9717:26;;;;9709:79;;;;;;;11673:2:1;9709:79:0;;;11655:21:1;11712:2;11692:18;;;11685:30;11751:34;11731:18;;;11724:62;11822:10;11802:18;;;11795:38;11850:19;;9709:79:0;11471:404:1;9709:79:0;9824:57;9833:6;4430:10;9874:6;9855:16;:25;9824:8;:57::i;:::-;-1:-1:-1;9912:4:0;;9432:492;-1:-1:-1;;;;9432:492:0:o;38612:115::-;38672:7;38699:20;:18;:20::i;:::-;38692:27;;38612:115;:::o;10333:215::-;4430:10;10421:4;10470:25;;;:11;:25;;;;;;;;;:34;;;;;;;;;;10421:4;;10438:80;;10461:7;;10470:47;;10507:10;;10470:47;:::i;:::-;10438:8;:80::i;40712:103::-;40134:6;;40281:23;40134:6;4430:10;40281:23;40273:68;;;;;;;12082:2:1;40273:68:0;;;12064:21:1;;;12101:18;;;12094:30;12160:34;12140:18;;;12133:62;12212:18;;40273:68:0;11880:356:1;40273:68:0;40777:30:::1;40804:1;40777:18;:30::i;:::-;40712:103::o:0;38354:128::-;38450:14;;;38423:7;38450:14;;;:7;:14;;;;;35791;38450:24;38443:31;38354:128;-1:-1:-1;;38354:128:0:o;6833:104::-;6889:13;6922:7;6915:14;;;;;:::i;11051:413::-;4430:10;11144:4;11188:25;;;:11;:25;;;;;;;;;:34;;;;;;;;;;11241:35;;;;11233:85;;;;;;;13254:2:1;11233:85:0;;;13236:21:1;13293:2;13273:18;;;13266:30;13332:34;13312:18;;;13305:62;13403:7;13383:18;;;13376:35;13428:19;;11233:85:0;13052:401:1;11233:85:0;11354:67;4430:10;11377:7;11405:15;11386:16;:34;11354:8;:67::i;:::-;-1:-1:-1;11452:4:0;;11051:413;-1:-1:-1;;;11051:413:0:o;8245:175::-;8331:4;8348:42;4430:10;8372:9;8383:6;8348:9;:42::i;37643:645::-;37887:8;37868:15;:27;;37860:69;;;;;;;9394:2:1;37860:69:0;;;9376:21:1;9433:2;9413:18;;;9406:30;9472:31;9452:18;;;9445:59;9521:18;;37860:69:0;9192:353:1;37860:69:0;37942:18;37984:16;38002:5;38009:7;38018:5;38025:16;38035:5;38025:9;:16::i;:::-;37973:79;;;;;;5352:25:1;;;;5396:42;5474:15;;;5454:18;;;5447:43;5526:15;;;;5506:18;;;5499:43;5558:18;;;5551:34;5601:19;;;5594:35;5645:19;;;5638:35;;;5324:19;;37973:79:0;;;;;;;;;;;;37963:90;;;;;;37942:111;;38066:12;38081:28;38098:10;38081:16;:28::i;:::-;38066:43;;38122:14;38139:28;38153:4;38159:1;38162;38165;38139:13;:28::i;:::-;38122:45;;38196:5;38186:15;;:6;:15;;;38178:58;;;;;;;11314:2:1;38178:58:0;;;11296:21:1;11353:2;11333:18;;;11326:30;11392:32;11372:18;;;11365:60;11442:18;;38178:58:0;11112:354:1;38178:58:0;38249:31;38258:5;38265:7;38274:5;38249:8;:31::i;:::-;37849:439;;;37643:645;;;;;;;:::o;40970:201::-;40134:6;;40281:23;40134:6;4430:10;40281:23;40273:68;;;;;;;12082:2:1;40273:68:0;;;12064:21:1;;;12101:18;;;12094:30;12160:34;12140:18;;;12133:62;12212:18;;40273:68:0;11880:356:1;40273:68:0;41059:22:::1;::::0;::::1;41051:73;;;::::0;::::1;::::0;;8584:2:1;41051:73:0::1;::::0;::::1;8566:21:1::0;8623:2;8603:18;;;8596:30;8662:34;8642:18;;;8635:62;8733:8;8713:18;;;8706:36;8759:19;;41051:73:0::1;8382:402:1::0;41051:73:0::1;41135:28;41154:8;41135:18;:28::i;:::-;40970:201:::0;:::o;14735:380::-;14871:19;;;14863:68;;;;;;;12849:2:1;14863:68:0;;;12831:21:1;12888:2;12868:18;;;12861:30;12927:34;12907:18;;;12900:62;12998:6;12978:18;;;12971:34;13022:19;;14863:68:0;12647:400:1;14863:68:0;14950:21;;;14942:68;;;;;;;8991:2:1;14942:68:0;;;8973:21:1;9030:2;9010:18;;;9003:30;9069:34;9049:18;;;9042:62;9140:4;9120:18;;;9113:32;9162:19;;14942:68:0;8789:398:1;14942:68:0;15023:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;15075:32;;5029:25:1;;;15075:32:0;;5002:18:1;15075:32:0;;;;;;;14735:380;;;:::o;12974:399::-;13058:21;;;13050:65;;;;;;;13660:2:1;13050:65:0;;;13642:21:1;13699:2;13679:18;;;13672:30;13738:33;13718:18;;;13711:61;13789:18;;13050:65:0;13458:355:1;13050:65:0;13206:6;13190:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;13223:18:0;;;:9;:18;;;;;;;;;;:28;;13245:6;;13223:9;:28;;13245:6;;13223:28;:::i;:::-;;;;-1:-1:-1;;13267:37:0;;5029:25:1;;;13267:37:0;;;;13284:1;;13267:37;;5017:2:1;5002:18;13267:37:0;;;;;;;12974:399;;:::o;11954:733::-;12094:20;;;12086:70;;;;;;;12443:2:1;12086:70:0;;;12425:21:1;12482:2;12462:18;;;12455:30;12521:34;12501:18;;;12494:62;12592:7;12572:18;;;12565:35;12617:19;;12086:70:0;12241:401:1;12086:70:0;12175:23;;;12167:71;;;;;;;7820:2:1;12167:71:0;;;7802:21:1;7859:2;7839:18;;;7832:30;7898:34;7878:18;;;7871:62;7969:5;7949:18;;;7942:33;7992:19;;12167:71:0;7618:399:1;12167:71:0;12335:17;;;12311:21;12335:17;;;;;;;;;;;12371:23;;;;12363:74;;;;;;;9752:2:1;12363:74:0;;;9734:21:1;9791:2;9771:18;;;9764:30;9830:34;9810:18;;;9803:62;9901:8;9881:18;;;9874:36;9927:19;;12363:74:0;9550:402:1;12363:74:0;12473:17;;;;:9;:17;;;;;;;;;;;12493:22;;;12473:42;;12537:20;;;;;;;;:30;;12509:6;;12473:9;12537:30;;12509:6;;12537:30;:::i;:::-;;;;;;;;12602:9;12585:35;;12594:6;12585:35;;;12613:6;12585:35;;;;5029:25:1;;5017:2;5002:18;;4883:177;12585:35:0;;;;;;;;12075:612;11954:733;;;:::o;33504:314::-;33557:7;33589:4;33581:29;33598:12;33581:29;;:66;;;;;33631:16;33614:13;:33;33581:66;33577:234;;;-1:-1:-1;33671:24:0;;33504:314::o;33577:234::-;-1:-1:-1;34007:73:0;;;33757:10;34007:73;;;;5943:25:1;;;;33769:12:0;5984:18:1;;;5977:34;33783:15:0;6027:18:1;;;6020:34;34051:13:0;6070:18:1;;;6063:34;34074:4:0;6113:19:1;;;;6106:84;;;;34007:73:0;;;;;;;;;;5915:19:1;;;;34007:73:0;;;33997:84;;;;;;38612:115::o;41331:191::-;41424:6;;;;41441:17;;;;;;;;;;;41474:40;;41424:6;;;41441:17;41424:6;;41474:40;;41405:16;;41474:40;41394:128;41331:191;:::o;38865:207::-;38986:14;;;38925:15;38986:14;;;:7;:14;;;;;35791;;35928:1;35910:19;;;;35791:14;39047:17;38942:130;38865:207;;;:::o;34731:167::-;34808:7;34835:55;34857:20;:18;:20::i;:::-;34879:10;30298:57;;4071:66:1;30298:57:0;;;4059:79:1;4154:11;;;4147:27;;;4190:12;;;4183:28;;;30261:7:0;;4227:12:1;;30298:57:0;;;;;;;;;;;;30288:68;;;;;;30281:75;;30168:196;;;;;28477:279;28605:7;28626:17;28645:18;28667:25;28678:4;28684:1;28687;28690;28667:10;:25::i;:::-;28625:67;;;;28703:18;28715:5;28703:11;:18::i;:::-;-1:-1:-1;28739:9:0;28477:279;-1:-1:-1;;;;;28477:279:0:o;26693:1645::-;26824:7;;27771:66;27758:79;;27754:163;;;-1:-1:-1;27870:1:0;;-1:-1:-1;27874:30:0;27854:51;;27754:163;27931:1;:7;;27936:2;27931:7;;:18;;;;;27942:1;:7;;27947:2;27942:7;;27931:18;27927:102;;;-1:-1:-1;27982:1:0;;-1:-1:-1;27986:30:0;27966:51;;27927:102;28143:24;;;28126:14;28143:24;;;;;;;;;6428:25:1;;;6501:4;6489:17;;6469:18;;;6462:45;;;;6523:18;;;6516:34;;;6566:18;;;6559:34;;;28143:24:0;;6400:19:1;;28143:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28143:24:0;;;;;;-1:-1:-1;;28182:20:0;;;28178:103;;28235:1;28239:29;28219:50;;;;;;;28178:103;28301:6;-1:-1:-1;28309:20:0;;-1:-1:-1;26693:1645:0;;;;;;;;:::o;21355:643::-;21433:20;21424:5;:29;;;;;;;;:::i;:::-;;21420:571;;;21355:643;:::o;21420:571::-;21531:29;21522:5;:38;;;;;;;;:::i;:::-;;21518:473;;;21577:34;;;;;7467:2:1;21577:34:0;;;7449:21:1;7506:2;7486:18;;;7479:30;7545:26;7525:18;;;7518:54;7589:18;;21577:34:0;7265:348:1;21518:473:0;21642:35;21633:5;:44;;;;;;;;:::i;:::-;;21629:362;;;21694:41;;;;;8224:2:1;21694:41:0;;;8206:21:1;8263:2;8243:18;;;8236:30;8302:33;8282:18;;;8275:61;8353:18;;21694:41:0;8022:355:1;21629:362:0;21766:30;21757:5;:39;;;;;;;;:::i;:::-;;21753:238;;;21813:44;;;;;10508:2:1;21813:44:0;;;10490:21:1;10547:2;10527:18;;;10520:30;10586:34;10566:18;;;10559:62;10657:4;10637:18;;;10630:32;10679:19;;21813:44:0;10306:398:1;21753:238:0;21888:30;21879:5;:39;;;;;;;;:::i;:::-;;21875:116;;;21935:44;;;;;10911:2:1;21935:44:0;;;10893:21:1;10950:2;10930:18;;;10923:30;10989:34;10969:18;;;10962:62;11060:4;11040:18;;;11033:32;11082:19;;21935:44:0;10709:398:1;14:196;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:673::-;269:5;322:3;315:4;307:6;303:17;299:27;289:55;;340:1;337;330:12;289:55;376:6;363:20;402:4;426:60;442:43;482:2;442:43;:::i;:::-;426:60;:::i;:::-;508:3;532:2;527:3;520:15;560:2;555:3;551:12;544:19;;595:2;587:6;583:15;647:3;642:2;636;633:1;629:10;621:6;617:23;613:32;610:41;607:61;;;664:1;661;654:12;607:61;686:1;696:163;710:2;707:1;704:9;696:163;;;767:17;;755:30;;805:12;;;;837;;;;728:1;721:9;696:163;;;-1:-1:-1;877:5:1;;215:673;-1:-1:-1;;;;;;;215:673:1:o;893:186::-;952:6;1005:2;993:9;984:7;980:23;976:32;973:52;;;1021:1;1018;1011:12;973:52;1044:29;1063:9;1044:29;:::i;:::-;1034:39;893:186;-1:-1:-1;;;893:186:1:o;1084:260::-;1152:6;1160;1213:2;1201:9;1192:7;1188:23;1184:32;1181:52;;;1229:1;1226;1219:12;1181:52;1252:29;1271:9;1252:29;:::i;:::-;1242:39;;1300:38;1334:2;1323:9;1319:18;1300:38;:::i;:::-;1290:48;;1084:260;;;;;:::o;1349:328::-;1426:6;1434;1442;1495:2;1483:9;1474:7;1470:23;1466:32;1463:52;;;1511:1;1508;1501:12;1463:52;1534:29;1553:9;1534:29;:::i;:::-;1524:39;;1582:38;1616:2;1605:9;1601:18;1582:38;:::i;:::-;1572:48;;1667:2;1656:9;1652:18;1639:32;1629:42;;1349:328;;;;;:::o;1682:693::-;1793:6;1801;1809;1817;1825;1833;1841;1894:3;1882:9;1873:7;1869:23;1865:33;1862:53;;;1911:1;1908;1901:12;1862:53;1934:29;1953:9;1934:29;:::i;:::-;1924:39;;1982:38;2016:2;2005:9;2001:18;1982:38;:::i;:::-;1972:48;;2067:2;2056:9;2052:18;2039:32;2029:42;;2118:2;2107:9;2103:18;2090:32;2080:42;;2172:3;2161:9;2157:19;2144:33;2217:4;2210:5;2206:16;2199:5;2196:27;2186:55;;2237:1;2234;2227:12;2186:55;1682:693;;;;-1:-1:-1;1682:693:1;;;;2260:5;2312:3;2297:19;;2284:33;;-1:-1:-1;2364:3:1;2349:19;;;2336:33;;1682:693;-1:-1:-1;;1682:693:1:o;2380:254::-;2448:6;2456;2509:2;2497:9;2488:7;2484:23;2480:32;2477:52;;;2525:1;2522;2515:12;2477:52;2548:29;2567:9;2548:29;:::i;:::-;2538:39;2624:2;2609:18;;;;2596:32;;-1:-1:-1;;;2380:254:1:o;2639:1157::-;2757:6;2765;2818:2;2806:9;2797:7;2793:23;2789:32;2786:52;;;2834:1;2831;2824:12;2786:52;2874:9;2861:23;2903:18;2944:2;2936:6;2933:14;2930:34;;;2960:1;2957;2950:12;2930:34;2998:6;2987:9;2983:22;2973:32;;3043:7;3036:4;3032:2;3028:13;3024:27;3014:55;;3065:1;3062;3055:12;3014:55;3101:2;3088:16;3123:4;3147:60;3163:43;3203:2;3163:43;:::i;3147:60::-;3229:3;3253:2;3248:3;3241:15;3281:2;3276:3;3272:12;3265:19;;3312:2;3308;3304:11;3360:7;3355:2;3349;3346:1;3342:10;3338:2;3334:19;3330:28;3327:41;3324:61;;;3381:1;3378;3371:12;3324:61;3403:1;3394:10;;3413:169;3427:2;3424:1;3421:9;3413:169;;;3484:23;3503:3;3484:23;:::i;:::-;3472:36;;3445:1;3438:9;;;;;3528:12;;;;3560;;3413:169;;;-1:-1:-1;3601:5:1;-1:-1:-1;;3644:18:1;;3631:32;;-1:-1:-1;;3675:16:1;;;3672:36;;;3704:1;3701;3694:12;3672:36;;3727:63;3782:7;3771:8;3760:9;3756:24;3727:63;:::i;:::-;3717:73;;;2639:1157;;;;;:::o;6604:656::-;6716:4;6745:2;6774;6763:9;6756:21;6806:6;6800:13;6849:6;6844:2;6833:9;6829:18;6822:34;6874:1;6884:140;6898:6;6895:1;6892:13;6884:140;;;6993:14;;;6989:23;;6983:30;6959:17;;;6978:2;6955:26;6948:66;6913:10;;6884:140;;;7042:6;7039:1;7036:13;7033:91;;;7112:1;7107:2;7098:6;7087:9;7083:22;7079:31;7072:42;7033:91;-1:-1:-1;7176:2:1;7164:15;7181:66;7160:88;7145:104;;;;7251:2;7141:113;;6604:656;-1:-1:-1;;;6604:656:1:o;14189:334::-;14260:2;14254:9;14316:2;14306:13;;14321:66;14302:86;14290:99;;14419:18;14404:34;;14440:22;;;14401:62;14398:88;;;14466:18;;:::i;:::-;14502:2;14495:22;14189:334;;-1:-1:-1;14189:334:1:o;14528:183::-;14588:4;14621:18;14613:6;14610:30;14607:56;;;14643:18;;:::i;:::-;-1:-1:-1;14688:1:1;14684:14;14700:4;14680:25;;14528:183::o;14716:128::-;14756:3;14787:1;14783:6;14780:1;14777:13;14774:39;;;14793:18;;:::i;:::-;-1:-1:-1;14829:9:1;;14716:128::o;14849:437::-;14928:1;14924:12;;;;14971;;;14992:61;;15046:4;15038:6;15034:17;15024:27;;14992:61;15099:2;15091:6;15088:14;15068:18;15065:38;15062:218;;;15136:77;15133:1;15126:88;15237:4;15234:1;15227:15;15265:4;15262:1;15255:15;15291:175;15328:3;15372:4;15365:5;15361:16;15401:4;15392:7;15389:17;15386:43;;;15409:18;;:::i;:::-;15458:1;15445:15;;15291:175;-1:-1:-1;;15291:175:1:o;15471:184::-;15523:77;15520:1;15513:88;15620:4;15617:1;15610:15;15644:4;15641:1;15634:15;15660:184;15712:77;15709:1;15702:88;15809:4;15806:1;15799:15;15833:4;15830:1;15823:15;15849:184;15901:77;15898:1;15891:88;15998:4;15995:1;15988:15;16022:4;16019:1;16012:15;16038:184;16090:77;16087:1;16080:88;16187:4;16184:1;16177:15;16211:4;16208:1;16201:15
Swarm Source
ipfs://ba21b26f791f94ec61abe95071a86a4583ac5f013076466ff941f01771d945a8
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.