diff --git a/cache_forge/solidity-files-cache.json b/cache_forge/solidity-files-cache.json new file mode 100644 index 0000000..e06abbe --- /dev/null +++ b/cache_forge/solidity-files-cache.json @@ -0,0 +1,1896 @@ +{ + "_format": "ethers-rs-sol-cache-3", + "paths": { + "artifacts": "out", + "build_infos": "out/build-info", + "sources": "contracts", + "tests": "forge-test", + "scripts": "script", + "libraries": [ + "lib", + "node_modules" + ] + }, + "files": { + "contracts/InstadappAdapter.sol": { + "lastModificationDate": 1682919419912, + "contentHash": "4368e681b31bff302099d7c1b60d03bf", + "sourceName": "contracts/InstadappAdapter.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "contracts/interfaces/IDSA.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "InstadappAdapter": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "InstadappAdapter.sol/InstadappAdapter.json" + } + } + }, + "contracts/InstadappTarget.sol": { + "lastModificationDate": 1682919436179, + "contentHash": "4ea09ce81e4453bb380b661688c6f933", + "sourceName": "contracts/InstadappTarget.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "contracts/InstadappAdapter.sol", + "contracts/interfaces/IDSA.sol", + "node_modules/@connext/interfaces/core/IConnext.sol", + "node_modules/@connext/interfaces/core/IXReceiver.sol", + "node_modules/@connext/interfaces/libraries/LibConnextStorage.sol", + "node_modules/@connext/interfaces/libraries/TokenId.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol", + "node_modules/@openzeppelin/contracts/utils/Address.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "InstadappTarget": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "InstadappTarget.sol/InstadappTarget.json" + } + } + }, + "contracts/Lock.sol": { + "lastModificationDate": 1682917111664, + "contentHash": "71406c34586c90d59a9b6540be011cc4", + "sourceName": "contracts/Lock.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "Lock": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Lock.sol/Lock.json" + } + } + }, + "contracts/interfaces/IDSA.sol": { + "lastModificationDate": 1682654700386, + "contentHash": "88eb0711db492555b613a27414ca8474", + "sourceName": "contracts/interfaces/IDSA.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "IDSA": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IDSA.sol/IDSA.json" + } + } + }, + "forge-test/InstadappAdapter.t.sol": { + "lastModificationDate": 1682919231829, + "contentHash": "6832381ef729699a12bd609d54e60f97", + "sourceName": "forge-test/InstadappAdapter.t.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "contracts/InstadappAdapter.sol", + "contracts/interfaces/IDSA.sol", + "forge-test/utils/TestHelper.sol", + "lib/forge-std/lib/ds-test/src/test.sol", + "lib/forge-std/src/Base.sol", + "lib/forge-std/src/StdAssertions.sol", + "lib/forge-std/src/StdChains.sol", + "lib/forge-std/src/StdCheats.sol", + "lib/forge-std/src/StdError.sol", + "lib/forge-std/src/StdInvariant.sol", + "lib/forge-std/src/StdJson.sol", + "lib/forge-std/src/StdMath.sol", + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/StdStyle.sol", + "lib/forge-std/src/StdUtils.sol", + "lib/forge-std/src/Test.sol", + "lib/forge-std/src/Vm.sol", + "lib/forge-std/src/console.sol", + "lib/forge-std/src/console2.sol", + "lib/forge-std/src/interfaces/IMulticall3.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.13", + "artifacts": { + "InstadappAdapterTest": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "InstadappAdapter.t.sol/InstadappAdapterTest.json" + }, + "MockInstadappReceiver": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "InstadappAdapter.t.sol/MockInstadappReceiver.json" + } + } + }, + "forge-test/InstadappTarget.t.sol": { + "lastModificationDate": 1682919246478, + "contentHash": "1d81a0a094a0b075490f36d19453034f", + "sourceName": "forge-test/InstadappTarget.t.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "contracts/InstadappAdapter.sol", + "contracts/InstadappTarget.sol", + "contracts/interfaces/IDSA.sol", + "forge-test/interfaces/IBridgeToken.sol", + "forge-test/utils/OZERC20.sol", + "forge-test/utils/TestERC20.sol", + "forge-test/utils/TestHelper.sol", + "lib/forge-std/lib/ds-test/src/test.sol", + "lib/forge-std/src/Base.sol", + "lib/forge-std/src/StdAssertions.sol", + "lib/forge-std/src/StdChains.sol", + "lib/forge-std/src/StdCheats.sol", + "lib/forge-std/src/StdError.sol", + "lib/forge-std/src/StdInvariant.sol", + "lib/forge-std/src/StdJson.sol", + "lib/forge-std/src/StdMath.sol", + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/StdStyle.sol", + "lib/forge-std/src/StdUtils.sol", + "lib/forge-std/src/Test.sol", + "lib/forge-std/src/Vm.sol", + "lib/forge-std/src/console.sol", + "lib/forge-std/src/console2.sol", + "lib/forge-std/src/interfaces/IMulticall3.sol", + "node_modules/@connext/interfaces/core/IConnext.sol", + "node_modules/@connext/interfaces/core/IXReceiver.sol", + "node_modules/@connext/interfaces/libraries/LibConnextStorage.sol", + "node_modules/@connext/interfaces/libraries/TokenId.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol", + "node_modules/@openzeppelin/contracts/utils/Address.sol", + "node_modules/@openzeppelin/contracts/utils/Counters.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.13", + "artifacts": { + "InstadappTargetTest": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "InstadappTarget.t.sol/InstadappTargetTest.json" + } + } + }, + "forge-test/interfaces/IBridgeToken.sol": { + "lastModificationDate": 1682917925534, + "contentHash": "b73ebcd16b5e651107b76b2a33aec834", + "sourceName": "forge-test/interfaces/IBridgeToken.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol" + ], + "versionRequirement": "^0.8.17", + "artifacts": { + "IBridgeToken": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IBridgeToken.sol/IBridgeToken.json" + } + } + }, + "forge-test/utils/OZERC20.sol": { + "lastModificationDate": 1682917939019, + "contentHash": "777bd02af720dc89e67d122896e76119", + "sourceName": "forge-test/utils/OZERC20.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "node_modules/@openzeppelin/contracts/utils/Counters.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.17", + "artifacts": { + "ERC20": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "OZERC20.sol/ERC20.json" + } + } + }, + "forge-test/utils/TestERC20.sol": { + "lastModificationDate": 1682917963145, + "contentHash": "d998499415e7e7203bf61ca940fc7805", + "sourceName": "forge-test/utils/TestERC20.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "forge-test/interfaces/IBridgeToken.sol", + "forge-test/utils/OZERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "node_modules/@openzeppelin/contracts/utils/Counters.sol", + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.17", + "artifacts": { + "TestERC20": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "TestERC20.sol/TestERC20.json" + } + } + }, + "forge-test/utils/TestHelper.sol": { + "lastModificationDate": 1682917535119, + "contentHash": "34142ed104fb8cb435b4ebfaf055feca", + "sourceName": "forge-test/utils/TestHelper.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/lib/ds-test/src/test.sol", + "lib/forge-std/src/Base.sol", + "lib/forge-std/src/StdAssertions.sol", + "lib/forge-std/src/StdChains.sol", + "lib/forge-std/src/StdCheats.sol", + "lib/forge-std/src/StdError.sol", + "lib/forge-std/src/StdInvariant.sol", + "lib/forge-std/src/StdJson.sol", + "lib/forge-std/src/StdMath.sol", + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/StdStyle.sol", + "lib/forge-std/src/StdUtils.sol", + "lib/forge-std/src/Test.sol", + "lib/forge-std/src/Vm.sol", + "lib/forge-std/src/console.sol", + "lib/forge-std/src/console2.sol", + "lib/forge-std/src/interfaces/IMulticall3.sol" + ], + "versionRequirement": "^0.8.15", + "artifacts": { + "TestHelper": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "TestHelper.sol/TestHelper.json" + } + } + }, + "lib/forge-std/lib/ds-test/src/test.sol": { + "lastModificationDate": 1682918914187, + "contentHash": "9febff9d09f18af5306669dc276c4c43", + "sourceName": "lib/forge-std/lib/ds-test/src/test.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.5.0", + "artifacts": { + "DSTest": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "test.sol/DSTest.json" + } + } + }, + "lib/forge-std/src/Base.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "8f04bbbb2c16f79e14fdc321695a8ec2", + "sourceName": "lib/forge-std/src/Base.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "CommonBase": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Base.sol/CommonBase.json" + }, + "ScriptBase": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Base.sol/ScriptBase.json" + }, + "TestBase": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Base.sol/TestBase.json" + } + } + }, + "lib/forge-std/src/StdAssertions.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "6cc2858240bcd443debbbf075490e325", + "sourceName": "lib/forge-std/src/StdAssertions.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/lib/ds-test/src/test.sol", + "lib/forge-std/src/StdMath.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "StdAssertions": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdAssertions.sol/StdAssertions.json" + } + } + }, + "lib/forge-std/src/StdChains.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "9c76820952c8f5e2fc02f872dc3afeb4", + "sourceName": "lib/forge-std/src/StdChains.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "StdChains": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdChains.sol/StdChains.json" + } + } + }, + "lib/forge-std/src/StdCheats.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "1f7c1fe2f20a051b847336e1630e4bb5", + "sourceName": "lib/forge-std/src/StdCheats.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "StdCheats": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdCheats.sol/StdCheats.json" + }, + "StdCheatsSafe": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdCheats.sol/StdCheatsSafe.json" + } + } + }, + "lib/forge-std/src/StdError.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "64c896e1276a291776e5ea5aecb3870a", + "sourceName": "lib/forge-std/src/StdError.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "stdError": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdError.sol/stdError.json" + } + } + }, + "lib/forge-std/src/StdInvariant.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "12c06010ec43ce935ed209d5aca30828", + "sourceName": "lib/forge-std/src/StdInvariant.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "StdInvariant": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdInvariant.sol/StdInvariant.json" + } + } + }, + "lib/forge-std/src/StdJson.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "2e1d13674e152408867795362d833c24", + "sourceName": "lib/forge-std/src/StdJson.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.6.0, <0.9.0", + "artifacts": { + "stdJson": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdJson.sol/stdJson.json" + } + } + }, + "lib/forge-std/src/StdMath.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "9da8f453eba6bb98f3d75bc6822bfb29", + "sourceName": "lib/forge-std/src/StdMath.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "stdMath": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdMath.sol/stdMath.json" + } + } + }, + "lib/forge-std/src/StdStorage.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "3cb9868082df39a53927db09dbc21f23", + "sourceName": "lib/forge-std/src/StdStorage.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "stdStorage": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdStorage.sol/stdStorage.json" + }, + "stdStorageSafe": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdStorage.sol/stdStorageSafe.json" + } + } + }, + "lib/forge-std/src/StdStyle.sol": { + "lastModificationDate": 1682918913301, + "contentHash": "820e6f6b7704f0c980fae604b1e34b18", + "sourceName": "lib/forge-std/src/StdStyle.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/Vm.sol" + ], + "versionRequirement": ">=0.4.22, <0.9.0", + "artifacts": { + "StdStyle": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdStyle.sol/StdStyle.json" + } + } + }, + "lib/forge-std/src/StdUtils.sol": { + "lastModificationDate": 1682918913302, + "contentHash": "3c8a13d3abf093886cea4e028158b601", + "sourceName": "lib/forge-std/src/StdUtils.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/src/Vm.sol", + "lib/forge-std/src/interfaces/IMulticall3.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "StdUtils": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "StdUtils.sol/StdUtils.json" + } + } + }, + "lib/forge-std/src/Test.sol": { + "lastModificationDate": 1682918913302, + "contentHash": "bc9d74a0c612e1c2b66cca2973bcc803", + "sourceName": "lib/forge-std/src/Test.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "lib/forge-std/lib/ds-test/src/test.sol", + "lib/forge-std/src/Base.sol", + "lib/forge-std/src/StdAssertions.sol", + "lib/forge-std/src/StdChains.sol", + "lib/forge-std/src/StdCheats.sol", + "lib/forge-std/src/StdError.sol", + "lib/forge-std/src/StdInvariant.sol", + "lib/forge-std/src/StdJson.sol", + "lib/forge-std/src/StdMath.sol", + "lib/forge-std/src/StdStorage.sol", + "lib/forge-std/src/StdStyle.sol", + "lib/forge-std/src/StdUtils.sol", + "lib/forge-std/src/Vm.sol", + "lib/forge-std/src/console.sol", + "lib/forge-std/src/console2.sol", + "lib/forge-std/src/interfaces/IMulticall3.sol" + ], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "Test": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Test.sol/Test.json" + } + } + }, + "lib/forge-std/src/Vm.sol": { + "lastModificationDate": 1682918913302, + "contentHash": "2873383b1217375a8baccae57b02f0b0", + "sourceName": "lib/forge-std/src/Vm.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "Vm": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Vm.sol/Vm.json" + }, + "VmSafe": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Vm.sol/VmSafe.json" + } + } + }, + "lib/forge-std/src/console.sol": { + "lastModificationDate": 1682918913302, + "contentHash": "100b8a33b917da1147740d7ab8b0ded3", + "sourceName": "lib/forge-std/src/console.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.4.22, <0.9.0", + "artifacts": { + "console": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "console.sol/console.json" + } + } + }, + "lib/forge-std/src/console2.sol": { + "lastModificationDate": 1682918913302, + "contentHash": "2096b4e5f252c5df9909cccbe3d2da2e", + "sourceName": "lib/forge-std/src/console2.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.4.22, <0.9.0", + "artifacts": { + "console2": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "console2.sol/console2.json" + } + } + }, + "lib/forge-std/src/interfaces/IMulticall3.sol": { + "lastModificationDate": 1682918913303, + "contentHash": "7b131ca1ca32ef6378b7b9ad5488b901", + "sourceName": "lib/forge-std/src/interfaces/IMulticall3.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": ">=0.6.2, <0.9.0", + "artifacts": { + "IMulticall3": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IMulticall3.sol/IMulticall3.json" + } + } + }, + "node_modules/@connext/interfaces/core/IConnext.sol": { + "lastModificationDate": 1682654815890, + "contentHash": "779ead8b9a51b366d4a722e3e46ad751", + "sourceName": "node_modules/@connext/interfaces/core/IConnext.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@connext/interfaces/libraries/LibConnextStorage.sol", + "node_modules/@connext/interfaces/libraries/TokenId.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "IConnext": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IConnext.sol/IConnext.json" + } + } + }, + "node_modules/@connext/interfaces/core/IXReceiver.sol": { + "lastModificationDate": 1682654815890, + "contentHash": "bdb597c337215e04702edd5fc5069e3a", + "sourceName": "node_modules/@connext/interfaces/core/IXReceiver.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "IXReceiver": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IXReceiver.sol/IXReceiver.json" + } + } + }, + "node_modules/@connext/interfaces/libraries/LibConnextStorage.sol": { + "lastModificationDate": 1682654815890, + "contentHash": "26c4843058bf695f58e62a24af9d694f", + "sourceName": "node_modules/@connext/interfaces/libraries/LibConnextStorage.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "LibConnextStorage": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "LibConnextStorage.sol/LibConnextStorage.json" + } + } + }, + "node_modules/@connext/interfaces/libraries/TokenId.sol": { + "lastModificationDate": 1682654815890, + "contentHash": "4259a1c7d7f0cd1604bcc35f448d0aa9", + "sourceName": "node_modules/@connext/interfaces/libraries/TokenId.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "TokenId": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "TokenId.sol/TokenId.json" + } + } + }, + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "ad7c2d0af148c8f9f097d65deeb4da6b", + "sourceName": "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "IERC20": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IERC20.sol/IERC20.json" + } + } + }, + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "909ab67fc5c25033fe6cd364f8c056f9", + "sourceName": "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "IERC20Metadata": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "IERC20Metadata.sol/IERC20Metadata.json" + } + } + }, + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "fb77f144244b9ab12533aa6ce85ef8c5", + "sourceName": "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "IERC20Permit": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "draft-IERC20Permit.sol/IERC20Permit.json" + } + } + }, + "node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "0320a90f714843ca19373ed143fc4466", + "sourceName": "node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", + "node_modules/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol", + "node_modules/@openzeppelin/contracts/utils/Address.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "SafeERC20": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "SafeERC20.sol/SafeERC20.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/Address.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "f31ad6fc4bbf9c06203987220156a6ba", + "sourceName": "node_modules/@openzeppelin/contracts/utils/Address.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.1", + "artifacts": { + "Address": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Address.sol/Address.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/Counters.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "74654e3ae5d7f39555055dfe244dab7a", + "sourceName": "node_modules/@openzeppelin/contracts/utils/Counters.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "Counters": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Counters.sol/Counters.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/Strings.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "396031251978f8febfd90cb62cb240ec", + "sourceName": "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "Strings": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Strings.sol/Strings.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "fe1190dbb6431c2464246925713f0f7f", + "sourceName": "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "ECDSA": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "ECDSA.sol/ECDSA.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "7c33eaa0f6dc029429ed8b986694c3a4", + "sourceName": "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [ + "node_modules/@openzeppelin/contracts/utils/Strings.sol", + "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol", + "node_modules/@openzeppelin/contracts/utils/math/Math.sol" + ], + "versionRequirement": "^0.8.0", + "artifacts": { + "EIP712": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "EIP712.sol/EIP712.json" + } + } + }, + "node_modules/@openzeppelin/contracts/utils/math/Math.sol": { + "lastModificationDate": 1682654853367, + "contentHash": "b9c58920ce74d6dc819161786112e7ee", + "sourceName": "node_modules/@openzeppelin/contracts/utils/math/Math.sol", + "solcConfig": { + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "ipfs", + "appendCBOR": true + }, + "outputSelection": { + "*": { + "": [ + "ast" + ], + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ] + } + }, + "evmVersion": "london", + "viaIR": true, + "libraries": {} + } + }, + "imports": [], + "versionRequirement": "^0.8.0", + "artifacts": { + "Math": { + "0.8.19+commit.7dd6d404.Darwin.appleclang": "Math.sol/Math.json" + } + } + } + } +} \ No newline at end of file diff --git a/forge-test/InstadappAdapter.t.sol b/forge-test/InstadappAdapter.t.sol index 42b483b..06c0f72 100644 --- a/forge-test/InstadappAdapter.t.sol +++ b/forge-test/InstadappAdapter.t.sol @@ -23,13 +23,16 @@ contract MockInstadappReceiver is InstadappAdapter { contract InstadappAdapterTest is TestHelper { // ============ Storage ============ address dsa = address(1); - MockInstadappReceiver instadappReceiver; - uint256 deadline = block.timestamp + 3600 seconds; + address instadappReceiver = 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f; + + uint256 deadline = 100; + uint256 timestamp = 90; // ============ Test set up ============ function setUp() public override { super.setUp(); - instadappReceiver = new MockInstadappReceiver(); + MockInstadappReceiver _instadappReceiver = new MockInstadappReceiver(); + vm.etch(instadappReceiver, address(_instadappReceiver).code); } // ============ Utils ============ @@ -59,7 +62,7 @@ contract InstadappAdapterTest is TestHelper { bytes32 salt = bytes32(abi.encode(1)); vm.expectRevert(bytes("Invalid Auth")); - instadappReceiver.tryAuthCast(dsa, auth, signature, castData, salt, deadline); + MockInstadappReceiver(instadappReceiver).tryAuthCast(dsa, auth, signature, castData, salt, deadline); } function test_InstadappAdapter__authCast_shouldRevertIfInvalidSignature() public { @@ -83,7 +86,7 @@ contract InstadappAdapterTest is TestHelper { address auth = originSender; bytes32 salt = bytes32(abi.encode(1)); vm.expectRevert(bytes("Invalid signature")); - instadappReceiver.tryAuthCast(dsa, auth, signature, castData, salt, deadline); + MockInstadappReceiver(instadappReceiver).tryAuthCast(dsa, auth, signature, castData, salt, deadline); } function test_InstadappAdapter__authCast_shouldWork() public { @@ -105,10 +108,11 @@ contract InstadappAdapterTest is TestHelper { InstadappAdapter.CastData memory castData = InstadappAdapter.CastData(_targetNames, _datas, _origin); bytes - memory signature = hex"e06eb18ed5fa1258094a9af413275fc057cb5139b4e48c979a7ef9d028e8748e39bfa2ea23722f296a07ae7a2d2fee26c7de3ad067a2c569819bec0fc3c9f0f51b"; + memory signature = hex"ac66d103e593be748af47496663fd93133970928dbfdade49bcca087d41773e95f4ead6a0897057adc61a67a6664de7730cc34055fdd500fded8c83b1e696fd61b"; address auth = originSender; - instadappReceiver.tryAuthCast{value: 1}(dsa, auth, signature, castData, salt, deadline); + vm.warp(timestamp); + MockInstadappReceiver(instadappReceiver).tryAuthCast{value: 1}(dsa, auth, signature, castData, salt, deadline); } // ============ InstadappAdapter.verify ============ @@ -131,10 +135,11 @@ contract InstadappAdapterTest is TestHelper { InstadappAdapter.CastData memory castData = InstadappAdapter.CastData(_targetNames, _datas, _origin); bytes - memory signature = hex"e06eb18ed5fa1258094a9af413275fc057cb5139b4e48c979a7ef9d028e8748e39bfa2ea23722f296a07ae7a2d2fee26c7de3ad067a2c569819bec0fc3c9f0f51b"; + memory signature = hex"ac66d103e593be748af47496663fd93133970928dbfdade49bcca087d41773e95f4ead6a0897057adc61a67a6664de7730cc34055fdd500fded8c83b1e696fd61b"; address auth = originSender; - assertEq(instadappReceiver.verify(auth, signature, castData, salt, deadline), true); + vm.warp(timestamp); + assertEq(MockInstadappReceiver(instadappReceiver).verify(auth, signature, castData, salt, deadline), true); } function test_InstadappAdapter__verify_shouldReturnFalse() public { @@ -157,6 +162,6 @@ contract InstadappAdapterTest is TestHelper { address auth = originSender; bytes32 salt = bytes32(abi.encode(1)); - assertEq(instadappReceiver.verify(auth, signature, castData, salt, deadline), false); + assertEq(MockInstadappReceiver(instadappReceiver).verify(auth, signature, castData, salt, deadline), false); } }