Contract 0x7fe3aedfc76d7c6dd84b617081a9346de81236dc 2

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x235be4308f5b2a93bef327a2ac56e75f3216b5f5b4b0a4d670370b85248b35860x47153f82286760472022-05-23 15:31:114 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004844186708 35.108399224
0xf28463c1769101cf53cfeb19a02e7e038e52113c55775163d5e6d196c30887300x47153f82286760002022-05-23 15:29:336 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005388540991 34.382360016
0xcc47068363294253f45b84138fae8b26184310460eb3ed9d7eb720093ddc616e0x47153f82286759272022-05-23 15:27:038 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004725992009 34.271401605
0x0e591bc39fb4ab5ebb63dcbe9b5e2132ebc5502102445ada97a24e050e9884aa0x47153f82286759132022-05-23 15:26:359 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005350896746 34.271401605
0x1871985e33b0f6a2ba74d50a4c69c54e4333c68fe0850dcbe30a4696dc11f2770x47153f82286758272022-05-23 15:23:3512 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005379668779 34.261914578
0x6e3aeb56a7d9aca16ecfa3d12162723aa1b3af6782e5914fe098c53cd211e35d0x47153f82286757572022-05-23 15:21:1114 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004114732717 34.058127864
0xa0ba4adba0582e55a52598c0fb273590687fc684de32037007b5511aeebe51730x47153f82286757142022-05-23 15:19:4515 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005369665782 34.237675154
0xef8a7d8ecbbc185e70c6f1e72220c5818fba2649df00ee0280fb247c99f54e1a0x47153f82286757052022-05-23 15:19:2316 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004122935079 34.237675154
0xf1cf1ba87fdcf450899d3ee39f84c7318249f6df3edaa0d9cab7c45915c243a30x47153f82286756452022-05-23 15:17:1918 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002433469835 35.312715286
0x0b1d89f40817ab5487cf6f67bbed00b03eff291eb2415bf3b724770f834e9cd90x47153f82286756412022-05-23 15:17:1118 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004849248001 35.312715286
0xf4c1a65a46c92029f42f4aea1613f4db3fb917005832a4f0e846af346cc415610x47153f82286756272022-05-23 15:16:4318 mins ago0x2ed3352c124c9f3dd32623779a69ee1fbe110742 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002659047461 35.312715286
0x43334d49d85d842e70b4051f739e98b28f36b4bbb3203195a9dd9ac14c77b0c20x47153f82286756252022-05-23 15:16:3919 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005531171846 35.312715286
0x59e0e57b7dd89d20db2ba5512e86daa364196aaa0f94b25b6453a393406930ee0x47153f82286755322022-05-23 15:13:2922 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.003272332978 35.4056628
0xe2b24ff023d9653f4ce186219e7c5b752ab247b515173fb03c33998b4a21aa920x47153f82286755062022-05-23 15:12:3323 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.004859564686 35.402021498
0x20f862d80a9c07a7f4a8a5869579180754b77581b5b8b7889825ddcfbc20b8f00x47153f82286754792022-05-23 15:11:3924 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005527848646 35.402021498
0x10de991632a8aadcab15d819f5fe336620c586891775d36cfc723180f4100b440x47153f82286754222022-05-23 15:09:4125 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002666458738 35.420546475
0x3ec2fe43e0237ce4b7738a3dcb8ca19cb0d8c7a06359ecbe2ba6e7f2fc2b1f490x47153f82286754172022-05-23 15:09:3126 mins ago0x623347acc7bfdb1e0627cab2fef5473585c0649f IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002667592196 35.420546475
0x8a17b37d8b1f8f312897af5c46c7fbbf73f75f8969019cbf2f419f3d341936f60x47153f82286754152022-05-23 15:09:2726 mins ago0x2ed3352c124c9f3dd32623779a69ee1fbe110742 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002449826676 35.420546475
0xb4e568d7a7d5e73081db70d546e80f4a66f17ac5be724d6322c563426b7c17030x47153f82286754152022-05-23 15:09:2726 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005552383183 35.420546475
0x89d031c189a3227f3e8c17f238423e98c5b176f53954ec83c7b1e9829031ae810x47153f82286753962022-05-23 15:08:4826 mins ago0x2ed3352c124c9f3dd32623779a69ee1fbe110742 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.00563550197 35.983385715
0x6f19a0085da038adef21a053eff2060a11b55d15ef2795229a4fb65ef4133a540x47153f82286753952022-05-23 15:08:4626 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002709548944 35.983385715
0xd9426ebc393625b924bc1913ecef95282634f0ae3450578fc1e306043ab6db490x47153f82286753702022-05-23 15:07:5227 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.003152576389 35.983385715
0x7ab46978560e2ecfa9e8ac404d80fbccae18d48d46e671c1d97887d2b3d9a8860x47153f82286752622022-05-23 15:04:0831 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005558350655 35.51661761
0x704ae6a4564ed950b8500289148c7ca47da7bfb7b4fc4ed6f07e5678cc5c37cd0x47153f82286752332022-05-23 15:03:1032 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.005547162921 35.51661761
0x5714042ae60c635bca2a1ac50ba9c0dcb1e2a392df2f7b941e79c04e634107a30x47153f82286750902022-05-23 14:58:1637 mins ago0x0853f256308a9d2efdb18f5ab9d6ce0cd4a622b4 IN  0x7fe3aedfc76d7c6dd84b617081a9346de81236dc0 MATIC0.002592910926 35.25851138
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WRLD_Forwarder_Polygon

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : WRLD_Forwarder_Polygon.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (metatx/MinimalForwarder.sol)

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";

/**
 * @dev Simple minimal forwarder to be used together with an ERC2771 compatible contract. See {ERC2771Context}.
 */
contract WRLD_Forwarder_Polygon is EIP712 {
    using ECDSA for bytes32;

    struct ForwardRequest {
        address from;
        address to;
        uint256 value;
        uint256 gas;
        uint256 nonce;
        bytes data;
    }

    bytes32 private constant _TYPEHASH =
        keccak256("ForwardRequest(address from,address to,uint256 value,uint256 gas,uint256 nonce,bytes data)");

    mapping(address => uint256) private _nonces;

    constructor() EIP712("WRLD_Forwarder_Polygon", "1.0.0") {}

    function getNonce(address from) public view returns (uint256) {
        return _nonces[from];
    }

    function verify(ForwardRequest calldata req, bytes calldata signature) public view returns (bool) {
        address signer = _hashTypedDataV4(
            keccak256(abi.encode(_TYPEHASH, req.from, req.to, req.value, req.gas, req.nonce, keccak256(req.data)))
        ).recover(signature);
        return _nonces[req.from] == req.nonce && signer == req.from;
    }

    function execute(ForwardRequest calldata req, bytes calldata signature)
        public
        payable
        returns (bool, bytes memory)
    {
        require(verify(req, signature), "WRLD_Forwarder_Polygon: signature does not match request");
        _nonces[req.from] = req.nonce + 1;

        (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: req.value}(
            abi.encodePacked(req.data, req.from)
        );
        // Validate that the relayer has sent enough gas for the call.
        // See https://ronan.eth.link/blog/ethereum-gas-dangers/
        assert(gasleft() > req.gas / 63);

        return (success, returndata);
    }
}

File 2 of 4 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 4 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 4 of 4 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct WRLD_Forwarder_Polygon.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct WRLD_Forwarder_Polygon.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

61014060405234801561001157600080fd5b50604080518082018252601681527f57524c445f466f727761726465725f506f6c79676f6e000000000000000000006020808301918252835180850190945260058452640312e302e360dc1b908401528151902060e08190527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c6101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6100c48184846100dc565b6080523060601b60c052610120525061014292505050565b600083838346306040516020016100f7959493929190610116565b6040516020818303038152906040528051906020012090509392505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160601c60e0516101005161012051610f10610194600039600061051c0152600061055e0152600061053d0152600061049f015260006104c9015260006104f30152610f106000f3fe6080604052600436106100345760003560e01c80632d0335ab1461003957806347153f821461006f578063bf5d3bdb14610090575b600080fd5b34801561004557600080fd5b506100596100543660046109cd565b6100bd565b6040516100669190610dc8565b60405180910390f35b61008261007d366004610a08565b6100e5565b604051610066929190610b49565b34801561009c57600080fd5b506100b06100ab366004610a08565b6102c3565b6040516100669190610b3e565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b600060606100f48585856102c3565b610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012a90610d0e565b60405180910390fd5b61014260808601356001610e34565b60008061015260208901896109cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000808660200160208101906101a691906109cd565b73ffffffffffffffffffffffffffffffffffffffff16606088013560408901356101d360a08b018b610dd1565b6101e060208d018d6109cd565b6040516020016101f293929190610ab0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261022a91610aec565b600060405180830381858888f193505050503d8060008114610268576040519150601f19603f3d011682016040523d82523d6000602084013e61026d565b606091505b509092509050610282603f6060890135610e71565b5a116102b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b90969095509350505050565b6000806103a984848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103a392507fdd8f4b70b0f4393e889bd39128a30628a78b61816a9eb8199759e7a349657e489150610333905060208a018a6109cd565b61034360408b0160208c016109cd565b60408b013560608c013560808d013561035f60a08f018f610dd1565b60405161036d929190610aa0565b60405190819003812061038897969594939291602001610ba3565b60405160208183030381529060405280519060200120610448565b90610461565b905060808501356000806103c060208901896109cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414801561043f575061041060208601866109cd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b95945050505050565b600061045b610455610485565b83610588565b92915050565b600080600061047085856105bb565b9150915061047d8161062b565b509392505050565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480156104eb57507f000000000000000000000000000000000000000000000000000000000000000046145b1561051757507f0000000000000000000000000000000000000000000000000000000000000000610585565b6105827f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610840565b90505b90565b6000828260405160200161059d929190610b08565b60405160208183030381529060405280519060200120905092915050565b6000808251604114156105f25760208301516040840151606085015160001a6105e68782858561087a565b94509450505050610624565b82516040141561061c5760208301516040840151610611868383610985565b935093505050610624565b506000905060025b9250929050565b6000816004811115610666577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156106715761083d565b60018160048111156106ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156106e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012a90610c43565b600281600481111561071f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012a90610c7a565b6003816004811115610792577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156107ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012a90610cb1565b6004816004811115610805577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561083d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012a90610d6b565b50565b6000838383463060405160200161085b959493929190610bec565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156108b1575060009050600361097c565b8460ff16601b141580156108c957508460ff16601c14155b156108da575060009050600461097c565b6000600187878787604051600081526020016040526040516108ff9493929190610c25565b6020604051602081039080840390855afa158015610921573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166109755760006001925092505061097c565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b016109bf8782888561087a565b935093505050935093915050565b6000602082840312156109de578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610a01578182fd5b9392505050565b600080600060408486031215610a1c578182fd5b833567ffffffffffffffff80821115610a33578384fd5b9085019060c08288031215610a46578384fd5b90935060208501359080821115610a5b578384fd5b818601915086601f830112610a6e578384fd5b813581811115610a7c578485fd5b876020828501011115610a8d578485fd5b6020830194508093505050509250925092565b6000828483379101908152919050565b6000838583375060609190911b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169101908152601401919050565b60008251610afe818460208701610eaa565b9190910192915050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b901515815260200190565b60008315158252604060208301528251806040840152610b70816060850160208701610eaa565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016060019392505050565b96875273ffffffffffffffffffffffffffffffffffffffff95861660208801529390941660408601526060850191909152608084015260a083019190915260c082015260e00190565b94855260208501939093526040840191909152606083015273ffffffffffffffffffffffffffffffffffffffff16608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f57524c445f466f727761726465725f506f6c79676f6e3a207369676e6174757260408201527f6520646f6573206e6f74206d6174636820726571756573740000000000000000606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112610e05578283fd5b83018035915067ffffffffffffffff821115610e1f578283fd5b60200191503681900382131561062457600080fd5b60008219821115610e6c577f4e487b710000000000000000000000000000000000000000000000000000000081526011600452602481fd5b500190565b600082610ea5577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b60005b83811015610ec5578181015183820152602001610ead565b83811115610ed4576000848401525b5050505056fea26469706673582212208ee15e677a80f6973a02c3d3a78c486587d72031fa32acfa04ba52d53562884264736f6c63430008000033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.