Token EXENO
Note: This token's displayed name does not match its contract's Name function.
Overview ERC-20
Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
100,000,000 EXN
Holders:
128 addresses
Transfers:
-
Contract:
Decimals:
18
Official Site:
[ Download CSV Export ]
[ Download CSV Export ]
OVERVIEW
EXENO is developing multichain blockchain solutions from the ground up to drive this sector forward. The company was created by experts interested in developing an entire ecosystem of innovative digital solutions for cryptocurrency owners.Update? Click here to update the token ICO / general information
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ExenoToken_Layer2
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-15 */ // SPDX-License-Identifier: MIT // File: contracts/maticnetwork/pos-portal/contracts/common/ContextMixin.sol pragma solidity 0.8.4; abstract contract ContextMixin { function msgSender() internal view returns (address sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = msg.sender; } return sender; } } // File: contracts/maticnetwork/pos-portal/contracts/common/Initializable.sol pragma solidity 0.8.4; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } } // File: contracts/maticnetwork/pos-portal/contracts/common/EIP712Base.sol pragma solidity 0.8.4; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contractsa that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // 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; } } } // File: contracts/maticnetwork/pos-portal/contracts/common/NativeMetaTransaction.sol pragma solidity 0.8.4; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } } // File: contracts/maticnetwork/pos-portal/contracts/child/ChildToken/IChildToken.sol pragma solidity 0.8.4; interface IChildToken { function deposit(address user, bytes calldata depositData) external; } // File: erc-payable-token/contracts/token/ERC1363/IERC1363Spender.sol pragma solidity ^0.8.0; /** * @title IERC1363Spender Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for any contract that wants to support approveAndCall * from ERC1363 token contracts as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363Spender { /** * @notice Handle the approval of ERC1363 tokens * @dev Any ERC1363 smart contract calls this function on the recipient * after an `approve`. This function MAY throw to revert and reject the * approval. Return of other than the magic value MUST result in the * transaction being reverted. * Note: the token contract address is always the message sender. * @param sender address The address which called `approveAndCall` function * @param amount uint256 The amount of tokens to be spent * @param data bytes Additional data with no specified format * @return `bytes4(keccak256("onApprovalReceived(address,uint256,bytes)"))` unless throwing */ function onApprovalReceived( address sender, uint256 amount, bytes calldata data ) external returns (bytes4); } // File: erc-payable-token/contracts/token/ERC1363/IERC1363Receiver.sol pragma solidity ^0.8.0; /** * @title IERC1363Receiver Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for any contract that wants to support transferAndCall or transferFromAndCall * from ERC1363 token contracts as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363Receiver { /** * @notice Handle the receipt of ERC1363 tokens * @dev Any ERC1363 smart contract calls this function on the recipient * after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the * transfer. Return of other than the magic value MUST result in the * transaction being reverted. * Note: the token contract address is always the message sender. * @param operator address The address which called `transferAndCall` or `transferFromAndCall` function * @param sender address The address which are token transferred from * @param amount uint256 The amount of tokens transferred * @param data bytes Additional data with no specified format * @return `bytes4(keccak256("onTransferReceived(address,address,uint256,bytes)"))` unless throwing */ function onTransferReceived( address operator, address sender, uint256 amount, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.1 (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/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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/introspection/IERC165.sol // 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); } // File: erc-payable-token/contracts/token/ERC1363/IERC1363.sol pragma solidity ^0.8.0; /** * @title IERC1363 Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for a Payable Token contract as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363 is IERC20, IERC165 { /** * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @return true unless throwing */ function transferAndCall(address recipient, uint256 amount) external returns (bool); /** * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @param data bytes Additional data with no specified format, sent in call to `recipient` * @return true unless throwing */ function transferAndCall( address recipient, uint256 amount, bytes calldata data ) external returns (bool); /** * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver * @param sender address The address which you want to send tokens from * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @return true unless throwing */ function transferFromAndCall( address sender, address recipient, uint256 amount ) external returns (bool); /** * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver * @param sender address The address which you want to send tokens from * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @param data bytes Additional data with no specified format, sent in call to `recipient` * @return true unless throwing */ function transferFromAndCall( address sender, address recipient, uint256 amount, bytes calldata data ) external returns (bool); /** * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender * and then call `onApprovalReceived` on spender. * 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 * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent */ function approveAndCall(address spender, uint256 amount) external returns (bool); /** * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender * and then call `onApprovalReceived` on spender. * 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 * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent * @param data bytes Additional data with no specified format, sent in call to `spender` */ function approveAndCall( address spender, uint256 amount, bytes calldata data ) external returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/utils/Strings.sol // 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); } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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: erc-payable-token/contracts/token/ERC1363/ERC1363.sol pragma solidity ^0.8.0; /** * @title ERC1363 * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ abstract contract ERC1363 is ERC20, IERC1363, ERC165 { using Address for address; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1363).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Transfer tokens to a specified address and then execute a callback on recipient. * @param recipient The address to transfer to. * @param amount The amount to be transferred. * @return A boolean that indicates if the operation was successful. */ function transferAndCall(address recipient, uint256 amount) public virtual override returns (bool) { return transferAndCall(recipient, amount, ""); } /** * @dev Transfer tokens to a specified address and then execute a callback on recipient. * @param recipient The address to transfer to * @param amount The amount to be transferred * @param data Additional data with no specified format * @return A boolean that indicates if the operation was successful. */ function transferAndCall( address recipient, uint256 amount, bytes memory data ) public virtual override returns (bool) { transfer(recipient, amount); require(_checkAndCallTransfer(_msgSender(), recipient, amount, data), "ERC1363: _checkAndCallTransfer reverts"); return true; } /** * @dev Transfer tokens from one address to another and then execute a callback on recipient. * @param sender The address which you want to send tokens from * @param recipient The address which you want to transfer to * @param amount The amount of tokens to be transferred * @return A boolean that indicates if the operation was successful. */ function transferFromAndCall( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { return transferFromAndCall(sender, recipient, amount, ""); } /** * @dev Transfer tokens from one address to another and then execute a callback on recipient. * @param sender The address which you want to send tokens from * @param recipient The address which you want to transfer to * @param amount The amount of tokens to be transferred * @param data Additional data with no specified format * @return A boolean that indicates if the operation was successful. */ function transferFromAndCall( address sender, address recipient, uint256 amount, bytes memory data ) public virtual override returns (bool) { transferFrom(sender, recipient, amount); require(_checkAndCallTransfer(sender, recipient, amount, data), "ERC1363: _checkAndCallTransfer reverts"); return true; } /** * @dev Approve spender to transfer tokens and then execute a callback on recipient. * @param spender The address allowed to transfer to * @param amount The amount allowed to be transferred * @return A boolean that indicates if the operation was successful. */ function approveAndCall(address spender, uint256 amount) public virtual override returns (bool) { return approveAndCall(spender, amount, ""); } /** * @dev Approve spender to transfer tokens and then execute a callback on recipient. * @param spender The address allowed to transfer to. * @param amount The amount allowed to be transferred. * @param data Additional data with no specified format. * @return A boolean that indicates if the operation was successful. */ function approveAndCall( address spender, uint256 amount, bytes memory data ) public virtual override returns (bool) { approve(spender, amount); require(_checkAndCallApprove(spender, amount, data), "ERC1363: _checkAndCallApprove reverts"); return true; } /** * @dev Internal function to invoke `onTransferReceived` on a target address * The call is not executed if the target address is not a contract * @param sender address Representing the previous owner of the given token value * @param recipient address Target address that will receive the tokens * @param amount uint256 The amount mount of tokens to be transferred * @param data bytes Optional data to send along with the call * @return whether the call correctly returned the expected magic value */ function _checkAndCallTransfer( address sender, address recipient, uint256 amount, bytes memory data ) internal virtual returns (bool) { if (!recipient.isContract()) { return false; } bytes4 retval = IERC1363Receiver(recipient).onTransferReceived(_msgSender(), sender, amount, data); return (retval == IERC1363Receiver(recipient).onTransferReceived.selector); } /** * @dev Internal function to invoke `onApprovalReceived` on a target address * The call is not executed if the target address is not a contract * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent * @param data bytes Optional data to send along with the call * @return whether the call correctly returned the expected magic value */ function _checkAndCallApprove( address spender, uint256 amount, bytes memory data ) internal virtual returns (bool) { if (!spender.isContract()) { return false; } bytes4 retval = IERC1363Spender(spender).onApprovalReceived(_msgSender(), amount, data); return (retval == IERC1363Spender(spender).onApprovalReceived.selector); } } // File: @openzeppelin/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin/contracts/access/AccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/maticnetwork/pos-portal/contracts/common/AccessControlMixin.sol pragma solidity 0.8.4; contract AccessControlMixin is AccessControl { string private _revertMsg; function _setupContractId(string memory contractId) internal { _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS")); } modifier only(bytes32 role) { require( hasRole(role, _msgSender()), _revertMsg ); _; } } // File: contracts/ExenoToken_Layer2.sol pragma solidity 0.8.4; contract ExenoToken_Layer2 is IChildToken, AccessControlMixin, NativeMetaTransaction, ContextMixin, ERC1363 { string private constant NAME = "EXENO COIN"; string private constant SYMBOL = "EXN"; bytes32 public constant DEPOSITOR_ROLE = keccak256("DEPOSITOR_ROLE"); constructor( address childChainManager ) ERC20(NAME, SYMBOL) { require(childChainManager != address(0), "ExenoToken_Layer2: invalid address"); _setupContractId("ExenoToken"); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(DEPOSITOR_ROLE, childChainManager); _initializeEIP712(NAME); } /** * @notice This is to support Native meta transactions * @dev Never use `msg.sender` directly, use `_msgSender()` instead */ function _msgSender() internal override view returns(address sender) { return ContextMixin.msgSender(); } /** * @notice Called when token is deposited on root chain * @dev Should be callable only by ChildChainManager * Should handle deposit by minting the required amount for user * Make sure minting is done only by this function * @param user User address for whom deposit is being done * @param depositData ABI-encoded amount */ function deposit(address user, bytes calldata depositData) external override only(DEPOSITOR_ROLE) { uint256 amount = abi.decode(depositData, (uint256)); _mint(user, amount); } /** * @notice Called when user wants to withdraw tokens back to root chain * @dev Should burn user's tokens * This transaction will be verified when exiting on root chain * @param amount Amount of tokens to withdraw */ function withdraw(uint256 amount) external { _burn(_msgSender(), amount); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl,ERC1363) returns(bool) { return interfaceId == type(IAccessControl).interfaceId || interfaceId == type(IERC1363).interfaceId || super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"childChainManager","type":"address"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"approveAndCall","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":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","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":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferFromAndCall","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":"transferFromAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526007805460ff191690553480156200001b57600080fd5b50604051620027ec380380620027ec8339810160408190526200003e91620004c9565b6040518060400160405280600a81526020016922ac22a7279021a7a4a760b11b8152506040518060400160405280600381526020016222ac2760e91b81525081600390805190602001906200009592919062000423565b508051620000ab90600490602084019062000423565b5050506001600160a01b038116620001155760405162461bcd60e51b815260206004820152602260248201527f4578656e6f546f6b656e5f4c61796572323a20696e76616c6964206164647265604482015261737360f01b60648201526084015b60405180910390fd5b60408051808201909152600a81526922bc32b737aa37b5b2b760b11b60208201526200014190620001b6565b62000157600062000151620001f3565b6200020f565b620001837f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a9826200020f565b60408051808201909152600a81526922ac22a7279021a7a4a760b11b6020820152620001af906200021b565b5062000597565b80604051602001620001c99190620004f9565b60405160208183030381529060405260069080519060200190620001ef92919062000423565b5050565b60006200020a6200027c60201b62000e051760201c565b905090565b620001ef8282620002db565b60075460ff1615620002615760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064016200010c565b6200026c8162000381565b506007805460ff19166001179055565b600033301415620002d557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002d89050565b50335b90565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620001ef5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200033d620001f3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f81526020016200279d604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600855565b82805462000431906200055a565b90600052602060002090601f016020900481019282620004555760008555620004a0565b82601f106200047057805160ff1916838001178555620004a0565b82800160010185558215620004a0579182015b82811115620004a057825182559160200191906001019062000483565b50620004ae929150620004b2565b5090565b5b80821115620004ae5760008155600101620004b3565b600060208284031215620004db578081fd5b81516001600160a01b0381168114620004f2578182fd5b9392505050565b60008251815b818110156200051b5760208186018101518583015201620004ff565b818111156200052a5782828501525b507f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b600181811c908216806200056f57607f821691505b602082108114156200059157634e487b7160e01b600052602260045260246000fd5b50919050565b6121f680620005a76000396000f3fe6080604052600436106101e35760003560e01c806336568abe11610102578063a457c2d711610095578063cf2c52cb11610064578063cf2c52cb1461059e578063d547741f146105be578063d8fbe994146105de578063dd62ed3e146105fe57600080fd5b8063a457c2d71461051e578063a9059cbb1461053e578063c1d34b891461055e578063cae9ca511461057e57600080fd5b806391d14854116100d157806391d14854146104a057806395d89b41146104c0578063a217fddf146104d5578063a3b0b5a3146104ea57600080fd5b806336568abe1461040a578063395093511461042a5780634000aea01461044a57806370a082311461046a57600080fd5b806323b872dd1161017a5780632f2ff15d116101495780632f2ff15d1461039b578063313ce567146103bb5780633177029f146103d75780633408e470146103f757600080fd5b806323b872dd146102f3578063248a9ca3146103135780632d0335ab146103435780632e1a7d4d1461037957600080fd5b80630f7e5970116101b65780630f7e5970146102725780631296ee621461029f57806318160ddd146102bf57806320379ee5146102de57600080fd5b806301ffc9a7146101e857806306fdde031461021d578063095ea7b31461023f5780630c53c51c1461025f575b600080fd5b3480156101f457600080fd5b50610208610203366004611dab565b610644565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261068a565b6040516102149190611f70565b34801561024b57600080fd5b5061020861025a366004611cf3565b61071c565b61023261026d366004611c7a565b610739565b34801561027e57600080fd5b50610232604051806040016040528060018152602001603160f81b81525081565b3480156102ab57600080fd5b506102086102ba366004611cf3565b610928565b3480156102cb57600080fd5b506002545b604051908152602001610214565b3480156102ea57600080fd5b506008546102d0565b3480156102ff57600080fd5b5061020861030e366004611b5b565b61094b565b34801561031f57600080fd5b506102d061032e366004611d71565b60009081526005602052604090206001015490565b34801561034f57600080fd5b506102d061035e366004611b0f565b6001600160a01b031660009081526009602052604090205490565b34801561038557600080fd5b50610399610394366004611d71565b610a1c565b005b3480156103a757600080fd5b506103996103b6366004611d89565b610a30565b3480156103c757600080fd5b5060405160128152602001610214565b3480156103e357600080fd5b506102086103f2366004611cf3565b610a62565b34801561040357600080fd5b50466102d0565b34801561041657600080fd5b50610399610425366004611d89565b610a7e565b34801561043657600080fd5b50610208610445366004611cf3565b610b0c565b34801561045657600080fd5b50610208610465366004611d1c565b610b60565b34801561047657600080fd5b506102d0610485366004611b0f565b6001600160a01b031660009081526020819052604090205490565b3480156104ac57600080fd5b506102086104bb366004611d89565b610ba6565b3480156104cc57600080fd5b50610232610bd1565b3480156104e157600080fd5b506102d0600081565b3480156104f657600080fd5b506102d07f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b34801561052a57600080fd5b50610208610539366004611cf3565b610be0565b34801561054a57600080fd5b50610208610559366004611cf3565b610c8d565b34801561056a57600080fd5b50610208610579366004611b96565b610ca1565b34801561058a57600080fd5b50610208610599366004611d1c565b610cdf565b3480156105aa57600080fd5b506103996105b9366004611bfc565b610d51565b3480156105ca57600080fd5b506103996105d9366004611d89565b610dc0565b3480156105ea57600080fd5b506102086105f9366004611b5b565b610de8565b34801561060a57600080fd5b506102d0610619366004611b29565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006001600160e01b03198216637965db0b60e01b148061067557506001600160e01b0319821663b0202a1160e01b145b80610684575061068482610e62565b92915050565b60606003805461069990612100565b80601f01602080910402602001604051908101604052809291908181526020018280546106c590612100565b80156107125780601f106106e757610100808354040283529160200191610712565b820191906000526020600020905b8154815290600101906020018083116106f557829003601f168201915b5050505050905090565b6000610730610729610e87565b8484610e96565b50600192915050565b60408051606081810183526001600160a01b038816600081815260096020908152908590205484528301529181018690526107778782878787610fba565b6107d25760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6001600160a01b0387166000908152600960205260409020546107f69060016110aa565b6001600160a01b0388166000908152600960205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061084690899033908a90611ed7565b60405180910390a1600080306001600160a01b0316888a60405160200161086e929190611e2b565b60408051601f198184030181529082905261088891611e0f565b6000604051808303816000865af19150503d80600081146108c5576040519150601f19603f3d011682016040523d82523d6000602084013e6108ca565b606091505b50915091508161091c5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016107c9565b98975050505050505050565b6000610944838360405180602001604052806000815250610b60565b9392505050565b60006109588484846110b6565b6001600160a01b038416600090815260016020526040812081610979610e87565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156109fd5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107c9565b610a1185610a09610e87565b858403610e96565b506001949350505050565b610a2d610a27610e87565b82611286565b50565b600082815260056020526040902060010154610a5381610a4e610e87565b6113d4565b610a5d8383611438565b505050565b6000610944838360405180602001604052806000815250610cdf565b610a86610e87565b6001600160a01b0316816001600160a01b031614610afe5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016107c9565b610b0882826114bf565b5050565b6000610730610b19610e87565b848460016000610b27610e87565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054610b5b919061206f565b610e96565b6000610b6c8484610c8d565b50610b80610b78610e87565b858585611544565b610b9c5760405162461bcd60e51b81526004016107c990612029565b5060019392505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461069990612100565b60008060016000610bef610e87565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610c795760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107c9565b610b9c610c84610e87565b85858403610e96565b6000610730610c9a610e87565b84846110b6565b6000610cae85858561094b565b50610cbb85858585611544565b610a115760405162461bcd60e51b81526004016107c990612029565b949350505050565b6000610ceb848461071c565b50610cf7848484611608565b610b9c5760405162461bcd60e51b815260206004820152602560248201527f455243313336333a205f636865636b416e6443616c6c417070726f7665207265604482015264766572747360d81b60648201526084016107c9565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a9610d7e816104bb610e87565b600690610d9e5760405162461bcd60e51b81526004016107c99190611f83565b506000610dad83850185611d71565b9050610db985826116c9565b5050505050565b600082815260056020526040902060010154610dde81610a4e610e87565b610a5d83836114bf565b6000610cd784848460405180602001604052806000815250610ca1565b600033301415610e5c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150610e5f9050565b50335b90565b60006001600160e01b0319821663b0202a1160e01b14806106845750610684826117a8565b6000610e91610e05565b905090565b6001600160a01b038316610ef85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107c9565b6001600160a01b038216610f595760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107c9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b0386166110205760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016107c9565b600161103361102e876117dd565b61185a565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611081573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610944828461206f565b6001600160a01b03831661111a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107c9565b6001600160a01b03821661117c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107c9565b6001600160a01b038316600090815260208190526040902054818110156111f45760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107c9565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061122b90849061206f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161127791815260200190565b60405180910390a35b50505050565b6001600160a01b0382166112e65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107c9565b6001600160a01b0382166000908152602081905260409020548181101561135a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107c9565b6001600160a01b03831660009081526020819052604081208383039055600280548492906113899084906120a6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6113de8282610ba6565b610b08576113f6816001600160a01b0316601461188a565b61140183602061188a565b604051602001611412929190611e62565b60408051601f198184030181529082905262461bcd60e51b82526107c991600401611f70565b6114428282610ba6565b610b085760008281526005602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561147b610e87565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114c98282610ba6565b15610b085760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19169055611500610e87565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006001600160a01b0384163b61155d57506000610cd7565b6000846001600160a01b03166388a7ca5c611576610e87565b8887876040518563ffffffff1660e01b81526004016115989493929190611f0c565b602060405180830381600087803b1580156115b257600080fd5b505af11580156115c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ea9190611dc7565b6001600160e01b031916632229f29760e21b14915050949350505050565b60006001600160a01b0384163b61162157506000610944565b6000846001600160a01b0316637b04a2d061163a610e87565b86866040518463ffffffff1660e01b815260040161165a93929190611f49565b602060405180830381600087803b15801561167457600080fd5b505af1158015611688573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ac9190611dc7565b6001600160e01b0319166307b04a2d60e41b149150509392505050565b6001600160a01b03821661171f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107c9565b8060026000828254611731919061206f565b90915550506001600160a01b0382166000908152602081905260408120805483929061175e90849061206f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160e01b03198216637965db0b60e01b148061068457506301ffc9a760e01b6001600160e01b0319831614610684565b600060405180608001604052806043815260200161217e604391398051602091820120835184830151604080870151805190860120905161183d950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061186560085490565b60405161190160f01b602082015260228101919091526042810183905260620161183d565b60606000611899836002612087565b6118a490600261206f565b67ffffffffffffffff8111156118ca57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118f4576020820181803683370190505b509050600360fc1b8160008151811061191d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061195a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061197e846002612087565b61198990600161206f565b90505b6001811115611a1d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106119cb57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106119ef57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611a16816120e9565b905061198c565b5083156109445760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107c9565b80356001600160a01b0381168114611a8357600080fd5b919050565b600082601f830112611a98578081fd5b813567ffffffffffffffff80821115611ab357611ab3612151565b604051601f8301601f19908116603f01168101908282118183101715611adb57611adb612151565b81604052838152866020858801011115611af3578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611b20578081fd5b61094482611a6c565b60008060408385031215611b3b578081fd5b611b4483611a6c565b9150611b5260208401611a6c565b90509250929050565b600080600060608486031215611b6f578081fd5b611b7884611a6c565b9250611b8660208501611a6c565b9150604084013590509250925092565b60008060008060808587031215611bab578081fd5b611bb485611a6c565b9350611bc260208601611a6c565b925060408501359150606085013567ffffffffffffffff811115611be4578182fd5b611bf087828801611a88565b91505092959194509250565b600080600060408486031215611c10578283fd5b611c1984611a6c565b9250602084013567ffffffffffffffff80821115611c35578384fd5b818601915086601f830112611c48578384fd5b813581811115611c56578485fd5b876020828501011115611c67578485fd5b6020830194508093505050509250925092565b600080600080600060a08688031215611c91578081fd5b611c9a86611a6c565b9450602086013567ffffffffffffffff811115611cb5578182fd5b611cc188828901611a88565b9450506040860135925060608601359150608086013560ff81168114611ce5578182fd5b809150509295509295909350565b60008060408385031215611d05578182fd5b611d0e83611a6c565b946020939093013593505050565b600080600060608486031215611d30578283fd5b611d3984611a6c565b925060208401359150604084013567ffffffffffffffff811115611d5b578182fd5b611d6786828701611a88565b9150509250925092565b600060208284031215611d82578081fd5b5035919050565b60008060408385031215611d9b578182fd5b82359150611b5260208401611a6c565b600060208284031215611dbc578081fd5b813561094481612167565b600060208284031215611dd8578081fd5b815161094481612167565b60008151808452611dfb8160208601602086016120bd565b601f01601f19169290920160200192915050565b60008251611e218184602087016120bd565b9190910192915050565b60008351611e3d8184602088016120bd565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611e9a8160178501602088016120bd565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611ecb8160288401602088016120bd565b01602801949350505050565b6001600160a01b03848116825283166020820152606060408201819052600090611f0390830184611de3565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3f90830184611de3565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000611f036060830184611de3565b6020815260006109446020830184611de3565b6000602080835281845483600182811c915080831680611fa457607f831692505b858310811415611fc257634e487b7160e01b87526022600452602487fd5b878601838152602001818015611fdf5760018114611ff05761201a565b60ff1986168252878201965061201a565b60008b815260209020895b8681101561201457815484820152908501908901611ffb565b83019750505b50949998505050505050505050565b60208082526026908201527f455243313336333a205f636865636b416e6443616c6c5472616e73666572207260408201526565766572747360d01b606082015260800190565b600082198211156120825761208261213b565b500190565b60008160001904831182151516156120a1576120a161213b565b500290565b6000828210156120b8576120b861213b565b500390565b60005b838110156120d85781810151838201526020016120c0565b838111156112805750506000910152565b6000816120f8576120f861213b565b506000190190565b600181811c9082168061211457607f821691505b6020821081141561213557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a2d57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a264697066735822122026c95912e8ade1a450a82cd7249c5d39cc1d62892e73b8bedc92eb7e0b46bdff64736f6c63430008040033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa
-----Decoded View---------------
Arg [0] : childChainManager (address): 0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa
Deployed ByteCode Sourcemap
67005:2272:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68950:324;;;;;;;;;;-1:-1:-1;68950:324:0;;;;;:::i;:::-;;:::i;:::-;;;9332:14:1;;9325:22;9307:41;;9295:2;9280:18;68950:324:0;;;;;;;;39563:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;41730:169::-;;;;;;;;;;-1:-1:-1;41730:169:0;;;;;:::i;:::-;;:::i;11283:1151::-;;;;;;:::i;:::-;;:::i;1399:43::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1399:43:0;;;;;50447:163;;;;;;;;;;-1:-1:-1;50447:163:0;;;;;:::i;:::-;;:::i;40683:108::-;;;;;;;;;;-1:-1:-1;40771:12:0;;40683:108;;;9505:25:1;;;9493:2;9478:18;40683:108:0;9460:76:1;2409:101:0;;;;;;;;;;-1:-1:-1;2487:15:0;;2409:101;;42381:492;;;;;;;;;;-1:-1:-1;42381:492:0;;;;;:::i;:::-;;:::i;62851:123::-;;;;;;;;;;-1:-1:-1;62851:123:0;;;;;:::i;:::-;62917:7;62944:12;;;:6;:12;;;;;:22;;;;62851:123;12860:107;;;;;;;;;;-1:-1:-1;12860:107:0;;;;;:::i;:::-;-1:-1:-1;;;;;12947:12:0;12913:13;12947:12;;;:6;:12;;;;;;;12860:107;68837:105;;;;;;;;;;-1:-1:-1;68837:105:0;;;;;:::i;:::-;;:::i;:::-;;63236:147;;;;;;;;;;-1:-1:-1;63236:147:0;;;;;:::i;:::-;;:::i;40525:93::-;;;;;;;;;;-1:-1:-1;40525:93:0;;40608:2;19095:36:1;;19083:2;19068:18;40525:93:0;19050:87:1;53076:157:0;;;;;;;;;;-1:-1:-1;53076:157:0;;;;;:::i;:::-;;:::i;2518:161::-;;;;;;;;;;-1:-1:-1;2632:9:0;2518:161;;64284:218;;;;;;;;;;-1:-1:-1;64284:218:0;;;;;:::i;:::-;;:::i;43282:215::-;;;;;;;;;;-1:-1:-1;43282:215:0;;;;;:::i;:::-;;:::i;50968:342::-;;;;;;;;;;-1:-1:-1;50968:342:0;;;;;:::i;:::-;;:::i;40854:127::-;;;;;;;;;;-1:-1:-1;40854:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;40955:18:0;40928:7;40955:18;;;;;;;;;;;;40854:127;61736:139;;;;;;;;;;-1:-1:-1;61736:139:0;;;;;:::i;:::-;;:::i;39782:104::-;;;;;;;;;;;;;:::i;60827:49::-;;;;;;;;;;-1:-1:-1;60827:49:0;60872:4;60827:49;;67241:68;;;;;;;;;;;;67282:27;67241:68;;44000:413;;;;;;;;;;-1:-1:-1;44000:413:0;;;;;:::i;:::-;;:::i;41194:175::-;;;;;;;;;;-1:-1:-1;41194:175:0;;;;;:::i;:::-;;:::i;52392:377::-;;;;;;;;;;-1:-1:-1;52392:377:0;;;;;:::i;:::-;;:::i;53604:318::-;;;;;;;;;;-1:-1:-1;53604:318:0;;;;;:::i;:::-;;:::i;68363:212::-;;;;;;;;;;-1:-1:-1;68363:212:0;;;;;:::i;:::-;;:::i;63628:149::-;;;;;;;;;;-1:-1:-1;63628:149:0;;;;;:::i;:::-;;:::i;51706:229::-;;;;;;;;;;-1:-1:-1;51706:229:0;;;;;:::i;:::-;;:::i;41432:151::-;;;;;;;;;;-1:-1:-1;41432:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;41548:18:0;;;41521:7;41548:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;41432:151;68950:324;69066:4;-1:-1:-1;;;;;;69108:47:0;;-1:-1:-1;;;69108:47:0;;:105;;-1:-1:-1;;;;;;;69172:41:0;;-1:-1:-1;;;69172:41:0;69108:105;:158;;;;69230:36;69254:11;69230:23;:36::i;:::-;69088:178;68950:324;-1:-1:-1;;68950:324:0:o;39563:100::-;39617:13;39650:5;39643:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39563:100;:::o;41730:169::-;41813:4;41830:39;41839:12;:10;:12::i;:::-;41853:7;41862:6;41830:8;:39::i;:::-;-1:-1:-1;41887:4:0;41730:169;;;;:::o;11283:1151::-;11541:152;;;11484:12;11541:152;;;;;-1:-1:-1;;;;;11579:19:0;;11509:29;11579:19;;;:6;:19;;;;;;;;;11541:152;;;;;;;;;;;11728:45;11586:11;11541:152;11756:4;11762;11768;11728:6;:45::i;:::-;11706:128;;;;-1:-1:-1;;;11706:128:0;;16176:2:1;11706:128:0;;;16158:21:1;16215:2;16195:18;;;16188:30;16254:34;16234:18;;;16227:62;-1:-1:-1;;;16305:18:1;;;16298:31;16346:19;;11706:128:0;;;;;;;;;-1:-1:-1;;;;;11923:19:0;;;;;;:6;:19;;;;;;:26;;11947:1;11923:23;:26::i;:::-;-1:-1:-1;;;;;11901:19:0;;;;;;:6;:19;;;;;;;:48;;;;11967:126;;;;;11908:11;;12039:10;;12065:17;;11967:126;:::i;:::-;;;;;;;;12204:12;12218:23;12253:4;-1:-1:-1;;;;;12245:18:0;12295:17;12314:11;12278:48;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;12278:48:0;;;;;;;;;;12245:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12203:134;;;;12356:7;12348:48;;;;-1:-1:-1;;;12348:48:0;;14190:2:1;12348:48:0;;;14172:21:1;14229:2;14209:18;;;14202:30;14268;14248:18;;;14241:58;14316:18;;12348:48:0;14162:178:1;12348:48:0;12416:10;11283:1151;-1:-1:-1;;;;;;;;11283:1151:0:o;50447:163::-;50540:4;50564:38;50580:9;50591:6;50564:38;;;;;;;;;;;;:15;:38::i;:::-;50557:45;50447:163;-1:-1:-1;;;50447:163:0:o;42381:492::-;42521:4;42538:36;42548:6;42556:9;42567:6;42538:9;:36::i;:::-;-1:-1:-1;;;;;42614:19:0;;42587:24;42614:19;;;:11;:19;;;;;42587:24;42634:12;:10;:12::i;:::-;-1:-1:-1;;;;;42614:33:0;-1:-1:-1;;;;;42614:33:0;;;;;;;;;;;;;42587:60;;42686:6;42666:16;:26;;42658:79;;;;-1:-1:-1;;;42658:79:0;;15767:2:1;42658:79:0;;;15749:21:1;15806:2;15786:18;;;15779:30;15845:34;15825:18;;;15818:62;-1:-1:-1;;;15896:18:1;;;15889:38;15944:19;;42658:79:0;15739:230:1;42658:79:0;42773:57;42782:6;42790:12;:10;:12::i;:::-;42823:6;42804:16;:25;42773:8;:57::i;:::-;-1:-1:-1;42861:4:0;;42381:492;-1:-1:-1;;;;42381:492:0:o;68837:105::-;68907:27;68913:12;:10;:12::i;:::-;68927:6;68907:5;:27::i;:::-;68837:105;:::o;63236:147::-;62917:7;62944:12;;;:6;:12;;;;;:22;;;61318:30;61329:4;61335:12;:10;:12::i;:::-;61318:10;:30::i;:::-;63350:25:::1;63361:4;63367:7;63350:10;:25::i;:::-;63236:147:::0;;;:::o;53076:157::-;53166:4;53190:35;53205:7;53214:6;53190:35;;;;;;;;;;;;:14;:35::i;64284:218::-;64391:12;:10;:12::i;:::-;-1:-1:-1;;;;;64380:23:0;:7;-1:-1:-1;;;;;64380:23:0;;64372:83;;;;-1:-1:-1;;;64372:83:0;;18197:2:1;64372:83:0;;;18179:21:1;18236:2;18216:18;;;18209:30;18275:34;18255:18;;;18248:62;-1:-1:-1;;;18326:18:1;;;18319:45;18381:19;;64372:83:0;18169:237:1;64372:83:0;64468:26;64480:4;64486:7;64468:11;:26::i;:::-;64284:218;;:::o;43282:215::-;43370:4;43387:80;43396:12;:10;:12::i;:::-;43410:7;43456:10;43419:11;:25;43431:12;:10;:12::i;:::-;-1:-1:-1;;;;;43419:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;43419:25:0;;;:34;;;;;;;;;;:47;;;;:::i;:::-;43387:8;:80::i;50968:342::-;51114:4;51131:27;51140:9;51151:6;51131:8;:27::i;:::-;;51177:60;51199:12;:10;:12::i;:::-;51213:9;51224:6;51232:4;51177:21;:60::i;:::-;51169:111;;;;-1:-1:-1;;;51169:111:0;;;;;;;:::i;:::-;-1:-1:-1;51298:4:0;50968:342;;;;;:::o;61736:139::-;61814:4;61838:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;61838:29:0;;;;;;;;;;;;;;;61736:139::o;39782:104::-;39838:13;39871:7;39864:14;;;;;:::i;44000:413::-;44093:4;44110:24;44137:11;:25;44149:12;:10;:12::i;:::-;-1:-1:-1;;;;;44137:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;44137:25:0;;;:34;;;;;;;;;;;-1:-1:-1;44190:35:0;;;;44182:85;;;;-1:-1:-1;;;44182:85:0;;17791:2:1;44182:85:0;;;17773:21:1;17830:2;17810:18;;;17803:30;17869:34;17849:18;;;17842:62;-1:-1:-1;;;17920:18:1;;;17913:35;17965:19;;44182:85:0;17763:227:1;44182:85:0;44303:67;44312:12;:10;:12::i;:::-;44326:7;44354:15;44335:16;:34;44303:8;:67::i;41194:175::-;41280:4;41297:42;41307:12;:10;:12::i;:::-;41321:9;41332:6;41297:9;:42::i;52392:377::-;52567:4;52584:39;52597:6;52605:9;52616:6;52584:12;:39::i;:::-;;52642:54;52664:6;52672:9;52683:6;52691:4;52642:21;:54::i;:::-;52634:105;;;;-1:-1:-1;;;52634:105:0;;;;;;;:::i;52392:377::-;;;;;;;:::o;53604:318::-;53747:4;53764:24;53772:7;53781:6;53764:7;:24::i;:::-;;53807:43;53828:7;53837:6;53845:4;53807:20;:43::i;:::-;53799:93;;;;-1:-1:-1;;;53799:93:0;;13784:2:1;53799:93:0;;;13766:21:1;13823:2;13803:18;;;13796:30;13862:34;13842:18;;;13835:62;-1:-1:-1;;;13913:18:1;;;13906:35;13958:19;;53799:93:0;13756:227:1;68363:212:0;67282:27;66829;66837:4;66843:12;:10;:12::i;66829:27::-;66871:10;66807:85;;;;;-1:-1:-1;;;66807:85:0;;;;;;;;:::i;:::-;-1:-1:-1;68486:14:0::1;68503:34;::::0;;::::1;68514:11:::0;68503:34:::1;:::i;:::-;68486:51;;68548:19;68554:4;68560:6;68548:5;:19::i;:::-;66903:1;68363:212:::0;;;;:::o;63628:149::-;62917:7;62944:12;;;:6;:12;;;;;:22;;;61318:30;61329:4;61335:12;:10;:12::i;61318:30::-;63743:26:::1;63755:4;63761:7;63743:11;:26::i;51706:229::-:0;51853:4;51877:50;51897:6;51905:9;51916:6;51877:50;;;;;;;;;;;;:19;:50::i;179:633::-;250:14;286:10;308:4;286:27;282:499;;;330:18;351:8;;330:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;390:8:0;601:17;595:24;-1:-1:-1;;;;;569:134:0;;-1:-1:-1;429:289:0;;-1:-1:-1;429:289:0;;-1:-1:-1;759:10:0;282:499;179:633;:::o;49933:215::-;50035:4;-1:-1:-1;;;;;;50059:41:0;;-1:-1:-1;;;50059:41:0;;:81;;;50104:36;50128:11;50104:23;:36::i;67849:133::-;67911:14;67950:24;:22;:24::i;:::-;67943:31;;67849:133;:::o;47684:380::-;-1:-1:-1;;;;;47820:19:0;;47812:68;;;;-1:-1:-1;;;47812:68:0;;17386:2:1;47812:68:0;;;17368:21:1;17425:2;17405:18;;;17398:30;17464:34;17444:18;;;17437:62;-1:-1:-1;;;17515:18:1;;;17508:34;17559:19;;47812:68:0;17358:226:1;47812:68:0;-1:-1:-1;;;;;47899:21:0;;47891:68;;;;-1:-1:-1;;;47891:68:0;;13381:2:1;47891:68:0;;;13363:21:1;13420:2;13400:18;;;13393:30;13459:34;13439:18;;;13432:62;-1:-1:-1;;;13510:18:1;;;13503:32;13552:19;;47891:68:0;13353:224:1;47891:68:0;-1:-1:-1;;;;;47972:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;48024:32;;9505:25:1;;;48024:32:0;;9478:18:1;48024:32:0;;;;;;;47684:380;;;:::o;12975:486::-;13153:4;-1:-1:-1;;;;;13178:20:0;;13170:70;;;;-1:-1:-1;;;13170:70:0;;14954:2:1;13170:70:0;;;14936:21:1;14993:2;14973:18;;;14966:30;15032:34;15012:18;;;15005:62;-1:-1:-1;;;15083:18:1;;;15076:35;15128:19;;13170:70:0;14926:227:1;13170:70:0;13294:159;13322:47;13341:27;13361:6;13341:19;:27::i;:::-;13322:18;:47::i;:::-;13294:159;;;;;;;;;;;;10190:25:1;;;;10263:4;10251:17;;10231:18;;;10224:45;10285:18;;;10278:34;;;10328:18;;;10321:34;;;10162:19;;13294:159:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13271:182:0;:6;-1:-1:-1;;;;;13271:182:0;;13251:202;;12975:486;;;;;;;:::o;6175:98::-;6233:7;6260:5;6264:1;6260;:5;:::i;44903:733::-;-1:-1:-1;;;;;45043:20:0;;45035:70;;;;-1:-1:-1;;;45035:70:0;;16980:2:1;45035:70:0;;;16962:21:1;17019:2;16999:18;;;16992:30;17058:34;17038:18;;;17031:62;-1:-1:-1;;;17109:18:1;;;17102:35;17154:19;;45035:70:0;16952:227:1;45035:70:0;-1:-1:-1;;;;;45124:23:0;;45116:71;;;;-1:-1:-1;;;45116:71:0;;12574:2:1;45116:71:0;;;12556:21:1;12613:2;12593:18;;;12586:30;12652:34;12632:18;;;12625:62;-1:-1:-1;;;12703:18:1;;;12696:33;12746:19;;45116:71:0;12546:225:1;45116:71:0;-1:-1:-1;;;;;45284:17:0;;45260:21;45284:17;;;;;;;;;;;45320:23;;;;45312:74;;;;-1:-1:-1;;;45312:74:0;;14547:2:1;45312:74:0;;;14529:21:1;14586:2;14566:18;;;14559:30;14625:34;14605:18;;;14598:62;-1:-1:-1;;;14676:18:1;;;14669:36;14722:19;;45312:74:0;14519:228:1;45312:74:0;-1:-1:-1;;;;;45422:17:0;;;:9;:17;;;;;;;;;;;45442:22;;;45422:42;;45486:20;;;;;;;;:30;;45458:6;;45422:9;45486:30;;45458:6;;45486:30;:::i;:::-;;;;;;;;45551:9;-1:-1:-1;;;;;45534:35:0;45543:6;-1:-1:-1;;;;;45534:35:0;;45562:6;45534:35;;;;9505:25:1;;9493:2;9478:18;;9460:76;45534:35:0;;;;;;;;45582:46;44903:733;;;;:::o;46655:591::-;-1:-1:-1;;;;;46739:21:0;;46731:67;;;;-1:-1:-1;;;46731:67:0;;16578:2:1;46731:67:0;;;16560:21:1;16617:2;16597:18;;;16590:30;16656:34;16636:18;;;16629:62;-1:-1:-1;;;16707:18:1;;;16700:31;16748:19;;46731:67:0;16550:223:1;46731:67:0;-1:-1:-1;;;;;46898:18:0;;46873:22;46898:18;;;;;;;;;;;46935:24;;;;46927:71;;;;-1:-1:-1;;;46927:71:0;;12978:2:1;46927:71:0;;;12960:21:1;13017:2;12997:18;;;12990:30;13056:34;13036:18;;;13029:62;-1:-1:-1;;;13107:18:1;;;13100:32;13149:19;;46927:71:0;12950:224:1;46927:71:0;-1:-1:-1;;;;;47034:18:0;;:9;:18;;;;;;;;;;47055:23;;;47034:44;;47100:12;:22;;47072:6;;47034:9;47100:22;;47072:6;;47100:22;:::i;:::-;;;;-1:-1:-1;;47140:37:0;;9505:25:1;;;47166:1:0;;-1:-1:-1;;;;;47140:37:0;;;;;9493:2:1;9478:18;47140:37:0;;;;;;;63236:147;;;:::o;62165:497::-;62246:22;62254:4;62260:7;62246;:22::i;:::-;62241:414;;62434:41;62462:7;-1:-1:-1;;;;;62434:41:0;62472:2;62434:19;:41::i;:::-;62548:38;62576:4;62583:2;62548:19;:38::i;:::-;62339:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;62339:270:0;;;;;;;;;;-1:-1:-1;;;62285:358:0;;;;;;;:::i;65785:238::-;65869:22;65877:4;65883:7;65869;:22::i;:::-;65864:152;;65908:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;65908:29:0;;;;;;;;;:36;;-1:-1:-1;;65908:36:0;65940:4;65908:36;;;65991:12;:10;:12::i;:::-;-1:-1:-1;;;;;65964:40:0;65982:7;-1:-1:-1;;;;;65964:40:0;65976:4;65964:40;;;;;;;;;;65785:238;;:::o;66155:239::-;66239:22;66247:4;66253:7;66239;:22::i;:::-;66235:152;;;66310:5;66278:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;66278:29:0;;;;;;;;;:37;;-1:-1:-1;;66278:37:0;;;66362:12;:10;:12::i;:::-;-1:-1:-1;;;;;66335:40:0;66353:7;-1:-1:-1;;;;;66335:40:0;66347:4;66335:40;;;;;;;;;;66155:239;;:::o;54488:456::-;54658:4;-1:-1:-1;;;;;54680:20:0;;17574;54675:68;;-1:-1:-1;54726:5:0;54719:12;;54675:68;54753:13;54786:9;-1:-1:-1;;;;;54769:46:0;;54816:12;:10;:12::i;:::-;54830:6;54838;54846:4;54769:82;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;54870:65:0;-1:-1:-1;;;54870:65:0;;-1:-1:-1;;54488:456:0;;;;;;:::o;55404:412::-;55546:4;-1:-1:-1;;;;;55568:18:0;;17574:20;55563:66;;-1:-1:-1;55612:5:0;55605:12;;55563:66;55639:13;55671:7;-1:-1:-1;;;;;55655:43:0;;55699:12;:10;:12::i;:::-;55713:6;55721:4;55655:71;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;55745:62:0;-1:-1:-1;;;55745:62:0;;-1:-1:-1;;55404:412:0;;;;;:::o;45923:399::-;-1:-1:-1;;;;;46007:21:0;;45999:65;;;;-1:-1:-1;;;45999:65:0;;18613:2:1;45999:65:0;;;18595:21:1;18652:2;18632:18;;;18625:30;18691:33;18671:18;;;18664:61;18742:18;;45999:65:0;18585:181:1;45999:65:0;46155:6;46139:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;46172:18:0;;:9;:18;;;;;;;;;;:28;;46194:6;;46172:9;:28;;46194:6;;46172:28;:::i;:::-;;;;-1:-1:-1;;46216:37:0;;9505:25:1;;;-1:-1:-1;;;;;46216:37:0;;;46233:1;;46216:37;;9493:2:1;9478:18;46216:37:0;;;;;;;64284:218;;:::o;61440:204::-;61525:4;-1:-1:-1;;;;;;61549:47:0;;-1:-1:-1;;;61549:47:0;;:87;;-1:-1:-1;;;;;;;;;;34360:40:0;;;61600:36;34251:157;12442:410;12552:7;10619:100;;;;;;;;;;;;;;;;;10599:127;;;;;;;12706:12;;12741:11;;;;12785:24;;;;;12775:35;;;;;;12625:204;;;;;9772:25:1;;;9828:2;9813:18;;9806:34;;;;-1:-1:-1;;;;;9876:32:1;9871:2;9856:18;;9849:60;9940:2;9925:18;;9918:34;9759:3;9744:19;;9726:232;12625:204:0;;;;;;;;;;;;;12597:247;;;;;;12577:267;;12442:410;;;:::o;3048:258::-;3147:7;3249:20;2487:15;;;2409:101;3249:20;3220:63;;-1:-1:-1;;;3220:63:0;;;6918:27:1;6961:11;;;6954:27;;;;6997:12;;;6990:28;;;7034:12;;3220:63:0;6908:144:1;36081:451:0;36156:13;36182:19;36214:10;36218:6;36214:1;:10;:::i;:::-;:14;;36227:1;36214:14;:::i;:::-;36204:25;;;;;;-1:-1:-1;;;36204:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36204:25:0;;36182:47;;-1:-1:-1;;;36240:6:0;36247:1;36240:9;;;;;;-1:-1:-1;;;36240:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;36240:15:0;;;;;;;;;-1:-1:-1;;;36266:6:0;36273:1;36266:9;;;;;;-1:-1:-1;;;36266:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;36266:15:0;;;;;;;;-1:-1:-1;36297:9:0;36309:10;36313:6;36309:1;:10;:::i;:::-;:14;;36322:1;36309:14;:::i;:::-;36297:26;;36292:135;36329:1;36325;:5;36292:135;;;-1:-1:-1;;;36377:5:0;36385:3;36377:11;36364:25;;;;;-1:-1:-1;;;36364:25:0;;;;;;;;;;;;36352:6;36359:1;36352:9;;;;;;-1:-1:-1;;;36352:9:0;;;;;;;;;;;;:37;-1:-1:-1;;;;;36352:37:0;;;;;;;;-1:-1:-1;36414:1:0;36404:11;;;;;36332:3;;;:::i;:::-;;;36292:135;;;-1:-1:-1;36445:10:0;;36437:55;;;;-1:-1:-1;;;36437:55:0;;12213:2:1;36437:55:0;;;12195:21:1;;;12232:18;;;12225:30;12291:34;12271:18;;;12264:62;12343:18;;36437:55:0;12185:182:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:738::-;234:5;287:3;280:4;272:6;268:17;264:27;254:2;;309:5;302;295:20;254:2;349:6;336:20;375:18;412:2;408;405:10;402:2;;;418:18;;:::i;:::-;493:2;487:9;461:2;547:13;;-1:-1:-1;;543:22:1;;;567:2;539:31;535:40;523:53;;;591:18;;;611:22;;;588:46;585:2;;;637:18;;:::i;:::-;677:10;673:2;666:22;712:2;704:6;697:18;758:3;751:4;746:2;738:6;734:15;730:26;727:35;724:2;;;779:5;772;765:20;724:2;847;840:4;832:6;828:17;821:4;813:6;809:17;796:54;870:15;;;887:4;866:26;859:41;;;;-1:-1:-1;874:6:1;244:686;-1:-1:-1;;;244:686:1:o;935:196::-;994:6;1047:2;1035:9;1026:7;1022:23;1018:32;1015:2;;;1068:6;1060;1053:22;1015:2;1096:29;1115:9;1096:29;:::i;1136:270::-;1204:6;1212;1265:2;1253:9;1244:7;1240:23;1236:32;1233:2;;;1286:6;1278;1271:22;1233:2;1314:29;1333:9;1314:29;:::i;:::-;1304:39;;1362:38;1396:2;1385:9;1381:18;1362:38;:::i;:::-;1352:48;;1223:183;;;;;:::o;1411:338::-;1488:6;1496;1504;1557:2;1545:9;1536:7;1532:23;1528:32;1525:2;;;1578:6;1570;1563:22;1525:2;1606:29;1625:9;1606:29;:::i;:::-;1596:39;;1654:38;1688:2;1677:9;1673:18;1654:38;:::i;:::-;1644:48;;1739:2;1728:9;1724:18;1711:32;1701:42;;1515:234;;;;;:::o;1754:557::-;1849:6;1857;1865;1873;1926:3;1914:9;1905:7;1901:23;1897:33;1894:2;;;1948:6;1940;1933:22;1894:2;1976:29;1995:9;1976:29;:::i;:::-;1966:39;;2024:38;2058:2;2047:9;2043:18;2024:38;:::i;:::-;2014:48;;2109:2;2098:9;2094:18;2081:32;2071:42;;2164:2;2153:9;2149:18;2136:32;2191:18;2183:6;2180:30;2177:2;;;2228:6;2220;2213:22;2177:2;2256:49;2297:7;2288:6;2277:9;2273:22;2256:49;:::i;:::-;2246:59;;;1884:427;;;;;;;:::o;2316:715::-;2395:6;2403;2411;2464:2;2452:9;2443:7;2439:23;2435:32;2432:2;;;2485:6;2477;2470:22;2432:2;2513:29;2532:9;2513:29;:::i;:::-;2503:39;;2593:2;2582:9;2578:18;2565:32;2616:18;2657:2;2649:6;2646:14;2643:2;;;2678:6;2670;2663:22;2643:2;2721:6;2710:9;2706:22;2696:32;;2766:7;2759:4;2755:2;2751:13;2747:27;2737:2;;2793:6;2785;2778:22;2737:2;2838;2825:16;2864:2;2856:6;2853:14;2850:2;;;2885:6;2877;2870:22;2850:2;2935:7;2930:2;2921:6;2917:2;2913:15;2909:24;2906:37;2903:2;;;2961:6;2953;2946:22;2903:2;2997;2993;2989:11;2979:21;;3019:6;3009:16;;;;;2422:609;;;;;:::o;3036:719::-;3138:6;3146;3154;3162;3170;3223:3;3211:9;3202:7;3198:23;3194:33;3191:2;;;3245:6;3237;3230:22;3191:2;3273:29;3292:9;3273:29;:::i;:::-;3263:39;;3353:2;3342:9;3338:18;3325:32;3380:18;3372:6;3369:30;3366:2;;;3417:6;3409;3402:22;3366:2;3445:49;3486:7;3477:6;3466:9;3462:22;3445:49;:::i;:::-;3435:59;;;3541:2;3530:9;3526:18;3513:32;3503:42;;3592:2;3581:9;3577:18;3564:32;3554:42;;3646:3;3635:9;3631:19;3618:33;3691:4;3684:5;3680:16;3673:5;3670:27;3660:2;;3716:6;3708;3701:22;3660:2;3744:5;3734:15;;;3181:574;;;;;;;;:::o;3760:264::-;3828:6;3836;3889:2;3877:9;3868:7;3864:23;3860:32;3857:2;;;3910:6;3902;3895:22;3857:2;3938:29;3957:9;3938:29;:::i;:::-;3928:39;4014:2;3999:18;;;;3986:32;;-1:-1:-1;;;3847:177:1:o;4029:482::-;4115:6;4123;4131;4184:2;4172:9;4163:7;4159:23;4155:32;4152:2;;;4205:6;4197;4190:22;4152:2;4233:29;4252:9;4233:29;:::i;:::-;4223:39;;4309:2;4298:9;4294:18;4281:32;4271:42;;4364:2;4353:9;4349:18;4336:32;4391:18;4383:6;4380:30;4377:2;;;4428:6;4420;4413:22;4377:2;4456:49;4497:7;4488:6;4477:9;4473:22;4456:49;:::i;:::-;4446:59;;;4142:369;;;;;:::o;4516:190::-;4575:6;4628:2;4616:9;4607:7;4603:23;4599:32;4596:2;;;4649:6;4641;4634:22;4596:2;-1:-1:-1;4677:23:1;;4586:120;-1:-1:-1;4586:120:1:o;4711:264::-;4779:6;4787;4840:2;4828:9;4819:7;4815:23;4811:32;4808:2;;;4861:6;4853;4846:22;4808:2;4902:9;4889:23;4879:33;;4931:38;4965:2;4954:9;4950:18;4931:38;:::i;4980:255::-;5038:6;5091:2;5079:9;5070:7;5066:23;5062:32;5059:2;;;5112:6;5104;5097:22;5059:2;5156:9;5143:23;5175:30;5199:5;5175:30;:::i;5240:259::-;5309:6;5362:2;5350:9;5341:7;5337:23;5333:32;5330:2;;;5383:6;5375;5368:22;5330:2;5420:9;5414:16;5439:30;5463:5;5439:30;:::i;5699:257::-;5740:3;5778:5;5772:12;5805:6;5800:3;5793:19;5821:63;5877:6;5870:4;5865:3;5861:14;5854:4;5847:5;5843:16;5821:63;:::i;:::-;5938:2;5917:15;-1:-1:-1;;5913:29:1;5904:39;;;;5945:4;5900:50;;5748:208;-1:-1:-1;;5748:208:1:o;5961:274::-;6090:3;6128:6;6122:13;6144:53;6190:6;6185:3;6178:4;6170:6;6166:17;6144:53;:::i;:::-;6213:16;;;;;6098:137;-1:-1:-1;;6098:137:1:o;6240:415::-;6397:3;6435:6;6429:13;6451:53;6497:6;6492:3;6485:4;6477:6;6473:17;6451:53;:::i;:::-;6573:2;6569:15;;;;-1:-1:-1;;6565:53:1;6526:16;;;;6551:68;;;6646:2;6635:14;;6405:250;-1:-1:-1;;6405:250:1:o;7057:786::-;7468:25;7463:3;7456:38;7438:3;7523:6;7517:13;7539:62;7594:6;7589:2;7584:3;7580:12;7573:4;7565:6;7561:17;7539:62;:::i;:::-;-1:-1:-1;;;7660:2:1;7620:16;;;7652:11;;;7645:40;7710:13;;7732:63;7710:13;7781:2;7773:11;;7766:4;7754:17;;7732:63;:::i;:::-;7815:17;7834:2;7811:26;;7446:397;-1:-1:-1;;;;7446:397:1:o;7848:431::-;-1:-1:-1;;;;;8105:15:1;;;8087:34;;8157:15;;8152:2;8137:18;;8130:43;8209:2;8204;8189:18;;8182:30;;;8030:4;;8229:44;;8254:18;;8246:6;8229:44;:::i;:::-;8221:52;8039:240;-1:-1:-1;;;;;8039:240:1:o;8284:488::-;-1:-1:-1;;;;;8553:15:1;;;8535:34;;8605:15;;8600:2;8585:18;;8578:43;8652:2;8637:18;;8630:34;;;8700:3;8695:2;8680:18;;8673:31;;;8478:4;;8721:45;;8746:19;;8738:6;8721:45;:::i;:::-;8713:53;8487:285;-1:-1:-1;;;;;;8487:285:1:o;8777:385::-;9009:1;9005;9000:3;8996:11;8992:19;8984:6;8980:32;8969:9;8962:51;9049:6;9044:2;9033:9;9029:18;9022:34;9092:2;9087;9076:9;9072:18;9065:30;8943:4;9112:44;9152:2;9141:9;9137:18;9129:6;9112:44;:::i;10366:217::-;10513:2;10502:9;10495:21;10476:4;10533:44;10573:2;10562:9;10558:18;10550:6;10533:44;:::i;10812:1194::-;10921:4;10950:2;10979;10968:9;10961:21;11002:4;11038:6;11032:13;11068:4;11091:1;11119:9;11115:2;11111:18;11101:28;;11179:2;11168:9;11164:18;11201;11191:2;;11245:4;11237:6;11233:17;11223:27;;11191:2;11298;11290:6;11287:14;11267:18;11264:38;11261:2;;;-1:-1:-1;;;11325:34:1;;11382:4;11379:1;11372:15;11413:4;11332;11400:18;11261:2;11483:18;;;19360:19;;;19412:4;19403:14;11526:18;11553:100;;;;11667:1;11662:318;;;;11519:461;;11553:100;-1:-1:-1;;11586:24:1;;11574:37;;11631:12;;;;-1:-1:-1;11553:100:1;;11662:318;19189:4;19208:17;;;19258:4;19242:21;;11757:4;11774:165;11788:6;11785:1;11782:13;11774:165;;;11866:14;;11853:11;;;11846:35;11909:16;;;;11803:10;;11774:165;;;11959:11;;;-1:-1:-1;;11519:461:1;-1:-1:-1;11997:3:1;;10930:1076;-1:-1:-1;;;;;;;;;10930:1076:1:o;15158:402::-;15360:2;15342:21;;;15399:2;15379:18;;;15372:30;15438:34;15433:2;15418:18;;15411:62;-1:-1:-1;;;15504:2:1;15489:18;;15482:36;15550:3;15535:19;;15332:228::o;19428:128::-;19468:3;19499:1;19495:6;19492:1;19489:13;19486:2;;;19505:18;;:::i;:::-;-1:-1:-1;19541:9:1;;19476:80::o;19561:168::-;19601:7;19667:1;19663;19659:6;19655:14;19652:1;19649:21;19644:1;19637:9;19630:17;19626:45;19623:2;;;19674:18;;:::i;:::-;-1:-1:-1;19714:9:1;;19613:116::o;19734:125::-;19774:4;19802:1;19799;19796:8;19793:2;;;19807:18;;:::i;:::-;-1:-1:-1;19844:9:1;;19783:76::o;19864:258::-;19936:1;19946:113;19960:6;19957:1;19954:13;19946:113;;;20036:11;;;20030:18;20017:11;;;20010:39;19982:2;19975:10;19946:113;;;20077:6;20074:1;20071:13;20068:2;;;-1:-1:-1;;20112:1:1;20094:16;;20087:27;19917:205::o;20127:136::-;20166:3;20194:5;20184:2;;20203:18;;:::i;:::-;-1:-1:-1;;;20239:18:1;;20174:89::o;20268:380::-;20347:1;20343:12;;;;20390;;;20411:2;;20465:4;20457:6;20453:17;20443:27;;20411:2;20518;20510:6;20507:14;20487:18;20484:38;20481:2;;;20564:10;20559:3;20555:20;20552:1;20545:31;20599:4;20596:1;20589:15;20627:4;20624:1;20617:15;20481:2;;20323:325;;;:::o;20653:127::-;20714:10;20709:3;20705:20;20702:1;20695:31;20745:4;20742:1;20735:15;20769:4;20766:1;20759:15;20785:127;20846:10;20841:3;20837:20;20834:1;20827:31;20877:4;20874:1;20867:15;20901:4;20898:1;20891:15;20917:131;-1:-1:-1;;;;;;20991:32:1;;20981:43;;20971:2;;21038:1;21035;21028:12
Swarm Source
ipfs://26c95912e8ade1a450a82cd7249c5d39cc1d62892e73b8bedc92eb7e0b46bdff