diff --git a/.husky/pre-commit b/.husky/pre-commit index 95f1873d0..60adb205f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,6 @@ -#!/usr/bin/env sh - npx lint-staged -npm run doc + +# Update Solidity documentation only if .sol files were changed. +if git diff --cached --name-only | grep -E '\.sol$' > /dev/null; then + npm run doc +fi diff --git a/.prettierignore b/.prettierignore index 7b78b54a5..d9e25d8b1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,6 +4,11 @@ audit/ cache/ coverage/ coverage.json -deployments/ node_modules/ typechain/ + +# Autogenerated files +abis/ +deployments/ +docs/solidity/index.md +docs/solidity/templates/ diff --git a/.solcover.js b/.solcover.js index 6916aadee..2900cd7df 100644 --- a/.solcover.js +++ b/.solcover.js @@ -1,5 +1,3 @@ -const BASE_FOLDER = './coverage'; - module.exports = { /** * See https://github.com/sc-forks/solidity-coverage/issues/715 issue if @@ -15,13 +13,6 @@ module.exports = { mocha: { timeout: 600000, // double timeout }, - skipFiles: [ - 'tools/Migrations.sol', - 'tools/testing/ERC734Mock.sol', - 'tools/testing/ERC1271Mock.sol', - 'tools/testing/TestClient.sol', - 'tools/testing/TestReceiver.sol', - 'facets/SignatureVerifier.sol', - ], - istanbulFolder: BASE_FOLDER, + skipFiles: ['facets/SignatureVerifier.sol', 'tools/'], + istanbulFolder: './coverage', }; diff --git a/abis/contracts/Diamond.json b/abis/contracts/Diamond.json index 39188379b..9ceaba5e4 100644 --- a/abis/contracts/Diamond.json +++ b/abis/contracts/Diamond.json @@ -282,4 +282,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/IexecInterfaceNative.json b/abis/contracts/IexecInterfaceNative.json index f17de5719..5ae605c68 100644 --- a/abis/contracts/IexecInterfaceNative.json +++ b/abis/contracts/IexecInterfaceNative.json @@ -4396,4 +4396,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/IexecInterfaceToken.json b/abis/contracts/IexecInterfaceToken.json index 74edd3ea7..4001f846f 100644 --- a/abis/contracts/IexecInterfaceToken.json +++ b/abis/contracts/IexecInterfaceToken.json @@ -4407,4 +4407,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/external/interfaces/IERC734.json b/abis/contracts/external/interfaces/IERC734.json index b8728f624..97391a372 100644 --- a/abis/contracts/external/interfaces/IERC734.json +++ b/abis/contracts/external/interfaces/IERC734.json @@ -23,4 +23,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/external/interfaces/IOracleConsumer.json b/abis/contracts/external/interfaces/IOracleConsumer.json index 9ebc0ff83..3b8172207 100644 --- a/abis/contracts/external/interfaces/IOracleConsumer.json +++ b/abis/contracts/external/interfaces/IOracleConsumer.json @@ -17,4 +17,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/FacetBase.json b/abis/contracts/facets/FacetBase.json deleted file mode 100644 index 0637a088a..000000000 --- a/abis/contracts/facets/FacetBase.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abis/contracts/facets/IexecAccessorsABILegacyFacet.json b/abis/contracts/facets/IexecAccessorsABILegacyFacet.json index 422d15283..c3c5758e3 100644 --- a/abis/contracts/facets/IexecAccessorsABILegacyFacet.json +++ b/abis/contracts/facets/IexecAccessorsABILegacyFacet.json @@ -312,4 +312,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecCategoryManagerFacet.json b/abis/contracts/facets/IexecCategoryManagerFacet.json index 6e924bd3d..76b51d004 100644 --- a/abis/contracts/facets/IexecCategoryManagerFacet.json +++ b/abis/contracts/facets/IexecCategoryManagerFacet.json @@ -59,4 +59,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecConfigurationExtraFacet.json b/abis/contracts/facets/IexecConfigurationExtraFacet.json index a26a8e63c..88fc9ea50 100644 --- a/abis/contracts/facets/IexecConfigurationExtraFacet.json +++ b/abis/contracts/facets/IexecConfigurationExtraFacet.json @@ -22,4 +22,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecConfigurationFacet.json b/abis/contracts/facets/IexecConfigurationFacet.json index ba44c9cf9..873fe3f04 100644 --- a/abis/contracts/facets/IexecConfigurationFacet.json +++ b/abis/contracts/facets/IexecConfigurationFacet.json @@ -128,4 +128,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecERC20Core.json b/abis/contracts/facets/IexecERC20Core.json index e7ef0d5a6..fe1bdc880 100644 --- a/abis/contracts/facets/IexecERC20Core.json +++ b/abis/contracts/facets/IexecERC20Core.json @@ -49,4 +49,4 @@ "name": "Transfer", "type": "event" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecERC20Facet.json b/abis/contracts/facets/IexecERC20Facet.json index c7c52b667..8c1a814c2 100644 --- a/abis/contracts/facets/IexecERC20Facet.json +++ b/abis/contracts/facets/IexecERC20Facet.json @@ -203,4 +203,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecEscrow.json b/abis/contracts/facets/IexecEscrow.v8.json similarity index 99% rename from abis/contracts/facets/IexecEscrow.json rename to abis/contracts/facets/IexecEscrow.v8.json index 015b99c81..f8f92b4b0 100644 --- a/abis/contracts/facets/IexecEscrow.json +++ b/abis/contracts/facets/IexecEscrow.v8.json @@ -112,4 +112,4 @@ "name": "Unlock", "type": "event" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecEscrowNativeFacet.json b/abis/contracts/facets/IexecEscrowNativeFacet.json index 12ae21a07..55fca3fc6 100644 --- a/abis/contracts/facets/IexecEscrowNativeFacet.json +++ b/abis/contracts/facets/IexecEscrowNativeFacet.json @@ -169,4 +169,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecEscrowTokenFacet.json b/abis/contracts/facets/IexecEscrowTokenFacet.json index f8fb2f53a..70fa1cb79 100644 --- a/abis/contracts/facets/IexecEscrowTokenFacet.json +++ b/abis/contracts/facets/IexecEscrowTokenFacet.json @@ -214,4 +214,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecEscrowTokenSwapFacet.json b/abis/contracts/facets/IexecEscrowTokenSwapFacet.json deleted file mode 100644 index b4216d024..000000000 --- a/abis/contracts/facets/IexecEscrowTokenSwapFacet.json +++ /dev/null @@ -1,570 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [], - "name": "UniswapV2Router", - "outputs": [ - { - "internalType": "contract IUniswapV2Router02", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "depositEth", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "depositEthFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "eth", - "type": "uint256" - } - ], - "name": "estimateDepositEthSent", - "outputs": [ - { - "internalType": "uint256", - "name": "token", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "token", - "type": "uint256" - } - ], - "name": "estimateDepositTokenWanted", - "outputs": [ - { - "internalType": "uint256", - "name": "eth", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "eth", - "type": "uint256" - } - ], - "name": "estimateWithdrawEthWanted", - "outputs": [ - { - "internalType": "uint256", - "name": "token", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "token", - "type": "uint256" - } - ], - "name": "estimateWithdrawTokenSent", - "outputs": [ - { - "internalType": "uint256", - "name": "eth", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "app", - "type": "address" - }, - { - "internalType": "uint256", - "name": "appprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "datasetrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "workerpoolrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.AppOrder", - "name": "_apporder", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "dataset", - "type": "address" - }, - { - "internalType": "uint256", - "name": "datasetprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "apprestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "workerpoolrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.DatasetOrder", - "name": "_datasetorder", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "workerpool", - "type": "address" - }, - { - "internalType": "uint256", - "name": "workerpoolprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "trust", - "type": "uint256" - }, - { - "internalType": "address", - "name": "apprestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "datasetrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.WorkerpoolOrder", - "name": "_workerpoolorder", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "app", - "type": "address" - }, - { - "internalType": "uint256", - "name": "appmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "dataset", - "type": "address" - }, - { - "internalType": "uint256", - "name": "datasetmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "workerpool", - "type": "address" - }, - { - "internalType": "uint256", - "name": "workerpoolmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "requester", - "type": "address" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "trust", - "type": "uint256" - }, - { - "internalType": "address", - "name": "beneficiary", - "type": "address" - }, - { - "internalType": "address", - "name": "callback", - "type": "address" - }, - { - "internalType": "string", - "name": "params", - "type": "string" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.RequestOrder", - "name": "_requestorder", - "type": "tuple" - } - ], - "name": "matchOrdersWithEth", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "requestToken", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "requestTokenFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "minimum", - "type": "uint256" - } - ], - "name": "safeDepositEth", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "minimum", - "type": "uint256" - }, - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "safeDepositEthFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimum", - "type": "uint256" - } - ], - "name": "safeWithdrawEth", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimum", - "type": "uint256" - }, - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "safeWithdrawEthTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdrawEth", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "withdrawEthTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } -] \ No newline at end of file diff --git a/abis/contracts/facets/IexecOrderManagementFacet.json b/abis/contracts/facets/IexecOrderManagementFacet.json index 736b83c4c..2849d11d3 100644 --- a/abis/contracts/facets/IexecOrderManagementFacet.json +++ b/abis/contracts/facets/IexecOrderManagementFacet.json @@ -456,4 +456,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecPoco1Facet.json b/abis/contracts/facets/IexecPoco1Facet.json index 8664e0e7b..ea52d0f77 100644 --- a/abis/contracts/facets/IexecPoco1Facet.json +++ b/abis/contracts/facets/IexecPoco1Facet.json @@ -885,4 +885,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecPocoAccessorsFacet.json b/abis/contracts/facets/IexecPocoAccessorsFacet.json index 0be9d6936..8c14846f8 100644 --- a/abis/contracts/facets/IexecPocoAccessorsFacet.json +++ b/abis/contracts/facets/IexecPocoAccessorsFacet.json @@ -1163,4 +1163,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecPocoBoostAccessorsFacet.json b/abis/contracts/facets/IexecPocoBoostAccessorsFacet.json index 1c5452113..aea8f7eb5 100644 --- a/abis/contracts/facets/IexecPocoBoostAccessorsFacet.json +++ b/abis/contracts/facets/IexecPocoBoostAccessorsFacet.json @@ -90,4 +90,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecPocoBoostFacet.json b/abis/contracts/facets/IexecPocoBoostFacet.json index 8e7e6ce9f..753f46048 100644 --- a/abis/contracts/facets/IexecPocoBoostFacet.json +++ b/abis/contracts/facets/IexecPocoBoostFacet.json @@ -878,4 +878,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/IexecPocoCommon.json b/abis/contracts/facets/IexecPocoCommon.json deleted file mode 100644 index 0637a088a..000000000 --- a/abis/contracts/facets/IexecPocoCommon.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abis/contracts/facets/IexecRelayFacet.json b/abis/contracts/facets/IexecRelayFacet.json index 3b353f178..f683e6a09 100644 --- a/abis/contracts/facets/IexecRelayFacet.json +++ b/abis/contracts/facets/IexecRelayFacet.json @@ -569,4 +569,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/facets/SignatureVerifier.json b/abis/contracts/facets/SignatureVerifier.json deleted file mode 100644 index 0637a088a..000000000 --- a/abis/contracts/facets/SignatureVerifier.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abis/contracts/interfaces/IOwnable.json b/abis/contracts/interfaces/IOwnable.json index 12aceaa4f..bf9b9a1ab 100644 --- a/abis/contracts/interfaces/IOwnable.json +++ b/abis/contracts/interfaces/IOwnable.json @@ -51,4 +51,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecAccessorsABILegacy.json b/abis/contracts/interfaces/IexecAccessorsABILegacy.json index 587dbc740..1b5cc430c 100644 --- a/abis/contracts/interfaces/IexecAccessorsABILegacy.json +++ b/abis/contracts/interfaces/IexecAccessorsABILegacy.json @@ -312,4 +312,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecCategoryManager.json b/abis/contracts/interfaces/IexecCategoryManager.json index 52eb27289..f8f12d887 100644 --- a/abis/contracts/interfaces/IexecCategoryManager.json +++ b/abis/contracts/interfaces/IexecCategoryManager.json @@ -59,4 +59,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecConfiguration.json b/abis/contracts/interfaces/IexecConfiguration.json index 61f684793..640655b5f 100644 --- a/abis/contracts/interfaces/IexecConfiguration.json +++ b/abis/contracts/interfaces/IexecConfiguration.json @@ -128,4 +128,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecConfigurationExtra.json b/abis/contracts/interfaces/IexecConfigurationExtra.json index a8b255a94..620eff487 100644 --- a/abis/contracts/interfaces/IexecConfigurationExtra.json +++ b/abis/contracts/interfaces/IexecConfigurationExtra.json @@ -22,4 +22,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecERC20.json b/abis/contracts/interfaces/IexecERC20.json index e1a04e342..cf6b56a6a 100644 --- a/abis/contracts/interfaces/IexecERC20.json +++ b/abis/contracts/interfaces/IexecERC20.json @@ -203,4 +203,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecERC20Common.json b/abis/contracts/interfaces/IexecERC20Common.json index 6437e41f3..cea6073dc 100644 --- a/abis/contracts/interfaces/IexecERC20Common.json +++ b/abis/contracts/interfaces/IexecERC20Common.json @@ -87,4 +87,4 @@ "name": "Unlock", "type": "event" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecEscrowNative.json b/abis/contracts/interfaces/IexecEscrowNative.json index 40d842aa9..c4a681d8f 100644 --- a/abis/contracts/interfaces/IexecEscrowNative.json +++ b/abis/contracts/interfaces/IexecEscrowNative.json @@ -119,4 +119,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecEscrowToken.json b/abis/contracts/interfaces/IexecEscrowToken.json index 47bb24c25..d62ddb651 100644 --- a/abis/contracts/interfaces/IexecEscrowToken.json +++ b/abis/contracts/interfaces/IexecEscrowToken.json @@ -130,4 +130,4 @@ "stateMutability": "payable", "type": "receive" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecEscrowTokenSwap.json b/abis/contracts/interfaces/IexecEscrowTokenSwap.json deleted file mode 100644 index 377d4b0a0..000000000 --- a/abis/contracts/interfaces/IexecEscrowTokenSwap.json +++ /dev/null @@ -1,520 +0,0 @@ -[ - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [], - "name": "UniswapV2Router", - "outputs": [ - { - "internalType": "contract IUniswapV2Router02", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "depositEth", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "depositEthFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "estimateDepositEthSent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "estimateDepositTokenWanted", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "estimateWithdrawEthWanted", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "estimateWithdrawTokenSent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "app", - "type": "address" - }, - { - "internalType": "uint256", - "name": "appprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "datasetrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "workerpoolrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.AppOrder", - "name": "", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "dataset", - "type": "address" - }, - { - "internalType": "uint256", - "name": "datasetprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "apprestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "workerpoolrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.DatasetOrder", - "name": "", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "workerpool", - "type": "address" - }, - { - "internalType": "uint256", - "name": "workerpoolprice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "trust", - "type": "uint256" - }, - { - "internalType": "address", - "name": "apprestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "datasetrestrict", - "type": "address" - }, - { - "internalType": "address", - "name": "requesterrestrict", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.WorkerpoolOrder", - "name": "", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "address", - "name": "app", - "type": "address" - }, - { - "internalType": "uint256", - "name": "appmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "dataset", - "type": "address" - }, - { - "internalType": "uint256", - "name": "datasetmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "workerpool", - "type": "address" - }, - { - "internalType": "uint256", - "name": "workerpoolmaxprice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "requester", - "type": "address" - }, - { - "internalType": "uint256", - "name": "volume", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "tag", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "trust", - "type": "uint256" - }, - { - "internalType": "address", - "name": "beneficiary", - "type": "address" - }, - { - "internalType": "address", - "name": "callback", - "type": "address" - }, - { - "internalType": "string", - "name": "params", - "type": "string" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "sign", - "type": "bytes" - } - ], - "internalType": "struct IexecLibOrders_v5.RequestOrder", - "name": "", - "type": "tuple" - } - ], - "name": "matchOrdersWithEth", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "requestToken", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "requestTokenFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "safeDepositEth", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "safeDepositEthFor", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "safeWithdrawEth", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "safeWithdrawEthTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "withdrawEth", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "withdrawEthTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } -] \ No newline at end of file diff --git a/abis/contracts/interfaces/IexecOrderManagement.json b/abis/contracts/interfaces/IexecOrderManagement.json index 44295781f..f4a45b4be 100644 --- a/abis/contracts/interfaces/IexecOrderManagement.json +++ b/abis/contracts/interfaces/IexecOrderManagement.json @@ -456,4 +456,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPoco1.json b/abis/contracts/interfaces/IexecPoco1.json index 2b7d7f02a..2d95fce9e 100644 --- a/abis/contracts/interfaces/IexecPoco1.json +++ b/abis/contracts/interfaces/IexecPoco1.json @@ -761,4 +761,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPoco1Errors.json b/abis/contracts/interfaces/IexecPoco1Errors.json index 923c52f90..30b4bfd80 100644 --- a/abis/contracts/interfaces/IexecPoco1Errors.json +++ b/abis/contracts/interfaces/IexecPoco1Errors.json @@ -10,4 +10,4 @@ "name": "IncompatibleDatasetOrder", "type": "error" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPoco2.json b/abis/contracts/interfaces/IexecPoco2.json index 3b4dba873..78d97c0e9 100644 --- a/abis/contracts/interfaces/IexecPoco2.json +++ b/abis/contracts/interfaces/IexecPoco2.json @@ -409,4 +409,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPocoAccessors.json b/abis/contracts/interfaces/IexecPocoAccessors.json index ae35c2a96..47f02f454 100644 --- a/abis/contracts/interfaces/IexecPocoAccessors.json +++ b/abis/contracts/interfaces/IexecPocoAccessors.json @@ -1163,4 +1163,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPocoBoost.json b/abis/contracts/interfaces/IexecPocoBoost.json index a2ea66143..538df4abb 100644 --- a/abis/contracts/interfaces/IexecPocoBoost.json +++ b/abis/contracts/interfaces/IexecPocoBoost.json @@ -749,4 +749,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecPocoBoostAccessors.json b/abis/contracts/interfaces/IexecPocoBoostAccessors.json index 0eb868e17..06545ee58 100644 --- a/abis/contracts/interfaces/IexecPocoBoostAccessors.json +++ b/abis/contracts/interfaces/IexecPocoBoostAccessors.json @@ -90,4 +90,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecRelay.json b/abis/contracts/interfaces/IexecRelay.json index 1ac84c106..7c00070eb 100644 --- a/abis/contracts/interfaces/IexecRelay.json +++ b/abis/contracts/interfaces/IexecRelay.json @@ -569,4 +569,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/interfaces/IexecTokenSpender.json b/abis/contracts/interfaces/IexecTokenSpender.json index 03f578e35..90e46bcaa 100644 --- a/abis/contracts/interfaces/IexecTokenSpender.json +++ b/abis/contracts/interfaces/IexecTokenSpender.json @@ -33,4 +33,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/libs/IexecLibCore_v5.json b/abis/contracts/libs/IexecLibCore_v5.json deleted file mode 100644 index 0637a088a..000000000 --- a/abis/contracts/libs/IexecLibCore_v5.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abis/contracts/libs/IexecLibOrders_v5.json b/abis/contracts/libs/IexecLibOrders_v5.json index 964e5f7e0..3e2d61013 100644 --- a/abis/contracts/libs/IexecLibOrders_v5.json +++ b/abis/contracts/libs/IexecLibOrders_v5.json @@ -843,4 +843,4 @@ "stateMutability": "pure", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/libs/PocoStorageLib.json b/abis/contracts/libs/PocoStorageLib.json deleted file mode 100644 index 0637a088a..000000000 --- a/abis/contracts/libs/PocoStorageLib.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abis/contracts/libs/IRegistry.json b/abis/contracts/libs/PocoStorageLib.v8.json similarity index 99% rename from abis/contracts/libs/IRegistry.json rename to abis/contracts/libs/PocoStorageLib.v8.json index c1cecf1fb..554551b1d 100644 --- a/abis/contracts/libs/IRegistry.json +++ b/abis/contracts/libs/PocoStorageLib.v8.json @@ -359,4 +359,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/IRegistry.json b/abis/contracts/registries/IRegistry.json index 91766f066..0a675fd22 100644 --- a/abis/contracts/registries/IRegistry.json +++ b/abis/contracts/registries/IRegistry.json @@ -359,4 +359,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/Registry.json b/abis/contracts/registries/Registry.json index 8041b40b6..4fec3de32 100644 --- a/abis/contracts/registries/Registry.json +++ b/abis/contracts/registries/Registry.json @@ -599,4 +599,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/RegistryEntry.json b/abis/contracts/registries/RegistryEntry.json index 04aaea97b..1e6dca199 100644 --- a/abis/contracts/registries/RegistryEntry.json +++ b/abis/contracts/registries/RegistryEntry.json @@ -43,4 +43,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/apps/App.json b/abis/contracts/registries/apps/App.json index 925f4eb99..0d25f93c1 100644 --- a/abis/contracts/registries/apps/App.json +++ b/abis/contracts/registries/apps/App.json @@ -141,4 +141,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/apps/AppRegistry.json b/abis/contracts/registries/apps/AppRegistry.json index b4537f4e7..ea6b310b1 100644 --- a/abis/contracts/registries/apps/AppRegistry.json +++ b/abis/contracts/registries/apps/AppRegistry.json @@ -671,4 +671,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/apps/IApp.json b/abis/contracts/registries/apps/IApp.v8.json similarity index 99% rename from abis/contracts/registries/apps/IApp.json rename to abis/contracts/registries/apps/IApp.v8.json index db3941151..bfb3397ee 100644 --- a/abis/contracts/registries/apps/IApp.json +++ b/abis/contracts/registries/apps/IApp.v8.json @@ -77,4 +77,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/datasets/Dataset.json b/abis/contracts/registries/datasets/Dataset.json index 2806f9755..1790b1f42 100644 --- a/abis/contracts/registries/datasets/Dataset.json +++ b/abis/contracts/registries/datasets/Dataset.json @@ -105,4 +105,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/datasets/DatasetRegistry.json b/abis/contracts/registries/datasets/DatasetRegistry.json index c4def9e22..2938f339b 100644 --- a/abis/contracts/registries/datasets/DatasetRegistry.json +++ b/abis/contracts/registries/datasets/DatasetRegistry.json @@ -651,4 +651,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/datasets/IDataset.json b/abis/contracts/registries/datasets/IDataset.v8.json similarity index 99% rename from abis/contracts/registries/datasets/IDataset.json rename to abis/contracts/registries/datasets/IDataset.v8.json index f515fb2f9..b24bb83f2 100644 --- a/abis/contracts/registries/datasets/IDataset.json +++ b/abis/contracts/registries/datasets/IDataset.v8.json @@ -51,4 +51,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/workerpools/IWorkerpool.json b/abis/contracts/registries/workerpools/IWorkerpool.v8.json similarity index 99% rename from abis/contracts/registries/workerpools/IWorkerpool.json rename to abis/contracts/registries/workerpools/IWorkerpool.v8.json index eeac7561d..ca8581e8f 100644 --- a/abis/contracts/registries/workerpools/IWorkerpool.json +++ b/abis/contracts/registries/workerpools/IWorkerpool.v8.json @@ -51,4 +51,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/workerpools/Workerpool.json b/abis/contracts/registries/workerpools/Workerpool.json index 89893b1a5..a5da88c51 100644 --- a/abis/contracts/registries/workerpools/Workerpool.json +++ b/abis/contracts/registries/workerpools/Workerpool.json @@ -144,4 +144,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/contracts/registries/workerpools/WorkerpoolRegistry.json b/abis/contracts/registries/workerpools/WorkerpoolRegistry.json index 158f76e43..3e936d94d 100644 --- a/abis/contracts/registries/workerpools/WorkerpoolRegistry.json +++ b/abis/contracts/registries/workerpools/WorkerpoolRegistry.json @@ -631,4 +631,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/abis/human-readable-abis/@amxx/factory/contracts/v6/GenericFactory.sol/GenericFactory.json b/abis/human-readable-abis/@amxx/factory/contracts/v6/GenericFactory.sol/GenericFactory.json new file mode 100644 index 000000000..076826854 --- /dev/null +++ b/abis/human-readable-abis/@amxx/factory/contracts/v6/GenericFactory.sol/GenericFactory.json @@ -0,0 +1,7 @@ +[ + "event NewContract(address indexed)", + "function createContract(bytes,bytes32) returns (address)", + "function createContractAndCall(bytes,bytes32,bytes) returns (address)", + "function predictAddress(bytes,bytes32) view returns (address)", + "function predictAddressWithCall(bytes,bytes32,bytes) view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecClerk.sol/IexecClerkInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecClerk.sol/IexecClerkInterface.json new file mode 100644 index 000000000..85def9495 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecClerk.sol/IexecClerkInterface.json @@ -0,0 +1,53 @@ +[ + "event BroadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "event BroadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "event ClosedAppOrder(bytes32)", + "event ClosedDatasetOrder(bytes32)", + "event ClosedRequestOrder(bytes32)", + "event ClosedWorkerpoolOrder(bytes32)", + "event Deposit(address,uint256)", + "event DepositFor(address,uint256,address)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNotice(address indexed,bytes32)", + "event Seize(address,uint256,bytes32)", + "event Unlock(address,uint256)", + "event Withdraw(address,uint256)", + "function EIP712DOMAIN_SEPARATOR() view returns (bytes32)", + "function GROUPMEMBER_PURPOSE() view returns (uint256)", + "function KITTY_MIN() view returns (uint256)", + "function KITTY_RATIO() view returns (uint256)", + "function WORKERPOOL_STAKE_RATIO() view returns (uint256)", + "function broadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "function broadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "function cancelAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) returns (bool)", + "function cancelDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) returns (bool)", + "function cancelRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bool)", + "function cancelWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes)) returns (bool)", + "function deposit(uint256) returns (bool)", + "function depositFor(uint256,address) returns (bool)", + "function depositForArray(uint256[],address[]) returns (bool)", + "function iexechub() view returns (address)", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function signAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) returns (bool)", + "function signDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) returns (bool)", + "function signRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bool)", + "function signWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes)) returns (bool)", + "function token() view returns (address)", + "function verifySignature(address,bytes32,bytes) view returns (bool)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewAccountABILegacy(address) view returns (uint256, uint256)", + "function viewConfigABILegacy(bytes32) view returns (uint256, uint256, uint256, uint256, uint256, uint256)", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256))", + "function viewDealABILegacy_pt1(bytes32) view returns (address, address, uint256, address, address, uint256, address, address, uint256)", + "function viewDealABILegacy_pt2(bytes32) view returns (uint256, bytes32, address, address, address, string)", + "function viewPresigned(bytes32) view returns (bool)", + "function viewRequestDeals(bytes32) view returns (bytes32[])", + "function withdraw(uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecHub.sol/IexecHubInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecHub.sol/IexecHubInterface.json new file mode 100644 index 000000000..0ead33e72 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecHub.sol/IexecHubInterface.json @@ -0,0 +1,39 @@ +[ + "event AccurateContribution(address indexed,bytes32 indexed)", + "event CreateCategory(uint256,string,string,uint256)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "function CONSENSUS_DURATION_RATIO() view returns (uint256)", + "function REVEAL_DURATION_RATIO() view returns (uint256)", + "function appregistry() view returns (address)", + "function attachContracts(address,address,address,address)", + "function checkResources(address,address,address) view returns (bool)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function countCategory() view returns (uint256)", + "function createCategory(string,string,uint256) returns (uint256)", + "function datasetregistry() view returns (address)", + "function finalize(bytes32,bytes)", + "function iexecclerk() view returns (address)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function reopen(bytes32)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal(bytes32,bytes32)", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewCategoryABILegacy(uint256) view returns (string, string, uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address))", + "function viewContributionABILegacy(bytes32,address) view returns (uint8, bytes32, bytes32, address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes))", + "function viewTaskABILegacy(bytes32) view returns (uint8, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32, uint256, uint256, address[], bytes)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppInterface.json new file mode 100644 index 000000000..69501fd6b --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppInterface.json @@ -0,0 +1,8 @@ +[ + "function m_appChecksum() view returns (bytes32)", + "function m_appMREnclave() view returns (bytes)", + "function m_appMultiaddr() view returns (bytes)", + "function m_appName() view returns (string)", + "function m_appType() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppRegistryInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppRegistryInterface.json new file mode 100644 index 000000000..63b18b8d5 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/AppRegistryInterface.json @@ -0,0 +1,7 @@ +[ + "event CreateApp(address indexed,address)", + "function createApp(address,string,string,bytes,bytes32,bytes) returns (address)", + "function isRegistered(address) view returns (bool)", + "function viewCount(address) view returns (uint256)", + "function viewEntry(address,uint256) view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetInterface.json new file mode 100644 index 000000000..4a8ae17c8 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetInterface.json @@ -0,0 +1,6 @@ +[ + "function m_datasetChecksum() view returns (bytes32)", + "function m_datasetMultiaddr() view returns (bytes)", + "function m_datasetName() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetRegistryInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetRegistryInterface.json new file mode 100644 index 000000000..a998b5d84 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/DatasetRegistryInterface.json @@ -0,0 +1,7 @@ +[ + "event CreateDataset(address indexed,address)", + "function createDataset(address,string,bytes,bytes32) returns (address)", + "function isRegistered(address) view returns (bool)", + "function viewCount(address) view returns (uint256)", + "function viewEntry(address,uint256) view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolInterface.json new file mode 100644 index 000000000..220f223d8 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolInterface.json @@ -0,0 +1,8 @@ +[ + "event PolicyUpdate(uint256,uint256,uint256,uint256)", + "function changePolicy(uint256,uint256)", + "function m_schedulerRewardRatioPolicy() view returns (uint256)", + "function m_workerStakeRatioPolicy() view returns (uint256)", + "function m_workerpoolDescription() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolRegistryInterface.json b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolRegistryInterface.json new file mode 100644 index 000000000..de06284d7 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/IexecRegistries.sol/WorkerpoolRegistryInterface.json @@ -0,0 +1,7 @@ +[ + "event CreateWorkerpool(address indexed,address indexed,string)", + "function createWorkerpool(address,string) returns (address)", + "function isRegistered(address) view returns (bool)", + "function viewCount(address) view returns (uint256)", + "function viewEntry(address,uint256) view returns (address)" +] diff --git a/abis/human-readable-abis/@iexec/interface/contracts/libs/IexecODBLibOrders.sol/IexecODBLibOrders.json b/abis/human-readable-abis/@iexec/interface/contracts/libs/IexecODBLibOrders.sol/IexecODBLibOrders.json new file mode 100644 index 000000000..304014095 --- /dev/null +++ b/abis/human-readable-abis/@iexec/interface/contracts/libs/IexecODBLibOrders.sol/IexecODBLibOrders.json @@ -0,0 +1,13 @@ +[ + "function APPORDER_TYPEHASH() view returns (bytes32)", + "function DATASETORDER_TYPEHASH() view returns (bytes32)", + "function EIP712DOMAIN_TYPEHASH() view returns (bytes32)", + "function REQUESTORDER_TYPEHASH() view returns (bytes32)", + "function WORKERPOOLORDER_TYPEHASH() view returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(string,string,uint256,address)) pure returns (bytes32)", + "function toEthTypedStructHash(bytes32,bytes32) pure returns (bytes32)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracle.json b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracle.json new file mode 100644 index 000000000..b8c37e9ac --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracle.json @@ -0,0 +1,3 @@ +[ + "function resultFor(bytes32) view returns (bytes)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracleConsumer.json b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracleConsumer.json new file mode 100644 index 000000000..716a807f2 --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1154/IERC1154.sol/IOracleConsumer.json @@ -0,0 +1,3 @@ +[ + "function receiveResult(bytes32,bytes)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/ERC1271/IERC1271.sol/IERC1271.json b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1271/IERC1271.sol/IERC1271.json new file mode 100644 index 000000000..5d1f035c0 --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1271/IERC1271.sol/IERC1271.json @@ -0,0 +1,3 @@ +[ + "function isValidSignature(bytes,bytes) view returns (bytes4)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/ERC1654/IERC1654.sol/IERC1654.json b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1654/IERC1654.sol/IERC1654.json new file mode 100644 index 000000000..0e313bfd2 --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/ERC1654/IERC1654.sol/IERC1654.json @@ -0,0 +1,3 @@ +[ + "function isValidSignature(bytes32,bytes) view returns (bytes4)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/ERC734/IERC734.sol/IERC734.json b/abis/human-readable-abis/@iexec/solidity/contracts/ERC734/IERC734.sol/IERC734.json new file mode 100644 index 000000000..08980491f --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/ERC734/IERC734.sol/IERC734.json @@ -0,0 +1,21 @@ +[ + "event Approved(uint256 indexed,bool)", + "event Executed(uint256 indexed,address indexed,uint256 indexed,bytes)", + "event ExecutionFailed(uint256 indexed,address indexed,uint256 indexed,bytes)", + "event ExecutionRequested(uint256 indexed,address indexed,uint256 indexed,bytes)", + "event KeyAdded(bytes32 indexed,uint256 indexed,uint256 indexed)", + "event KeyRemoved(bytes32 indexed,uint256 indexed,uint256 indexed)", + "function ACTION_KEY() view returns (uint256)", + "function CLAIM_SIGNER_KEY() view returns (uint256)", + "function ECDSA_TYPE() view returns (uint256)", + "function ENCRYPTION_KEY() view returns (uint256)", + "function MANAGEMENT_KEY() view returns (uint256)", + "function RSA_TYPE() view returns (uint256)", + "function addKey(bytes32,uint256,uint256) returns (bool)", + "function approve(uint256,bool) returns (bool)", + "function execute(address,uint256,bytes) returns (uint256)", + "function getKey(bytes32) view returns (uint256[], uint256, bytes32)", + "function getKeysByPurpose(uint256) view returns (bytes32[])", + "function keyHasPurpose(bytes32,uint256) view returns (bool)", + "function removeKey(bytes32,uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/BaseUpgradeabilityProxy.sol/BaseUpgradeabilityProxy.json b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/BaseUpgradeabilityProxy.sol/BaseUpgradeabilityProxy.json new file mode 100644 index 000000000..1aaf81754 --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/BaseUpgradeabilityProxy.sol/BaseUpgradeabilityProxy.json @@ -0,0 +1,3 @@ +[ + "event Upgraded(address indexed)" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/InitializableUpgradeabilityProxy.sol/InitializableUpgradeabilityProxy.json b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/InitializableUpgradeabilityProxy.sol/InitializableUpgradeabilityProxy.json new file mode 100644 index 000000000..a7b36623f --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/InitializableUpgradeabilityProxy.sol/InitializableUpgradeabilityProxy.json @@ -0,0 +1,4 @@ +[ + "event Upgraded(address indexed)", + "function initialize(address,bytes) payable" +] diff --git a/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/Proxy.sol/Proxy.json b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/Proxy.sol/Proxy.json new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/abis/human-readable-abis/@iexec/solidity/contracts/Upgradeability/Proxy.sol/Proxy.json @@ -0,0 +1 @@ +[] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondCutFacet.sol/DiamondCutFacet.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondCutFacet.sol/DiamondCutFacet.json new file mode 100644 index 000000000..a6bffb1ce --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondCutFacet.sol/DiamondCutFacet.json @@ -0,0 +1,19 @@ +[ + "error CannotAddFunctionToDiamondThatAlreadyExists(bytes4)", + "error CannotAddSelectorsToZeroAddress(bytes4[])", + "error CannotRemoveFunctionThatDoesNotExist(bytes4)", + "error CannotRemoveImmutableFunction(bytes4)", + "error CannotReplaceFunctionThatDoesNotExists(bytes4)", + "error CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)", + "error CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])", + "error CannotReplaceImmutableFunction(bytes4)", + "error IncorrectFacetCutAction(uint8)", + "error InitializationFunctionReverted(address,bytes)", + "error NoBytecodeAtAddress(address,string)", + "error NoSelectorsProvidedForFacetForCut(address)", + "error NotContractOwner(address,address)", + "error RemoveFacetAddressMustBeZeroAddress(address)", + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)", + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)", + "function diamondCut(tuple(address,uint8,bytes4[])[],address,bytes)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondLoupeFacet.sol/DiamondLoupeFacet.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondLoupeFacet.sol/DiamondLoupeFacet.json new file mode 100644 index 000000000..509c76327 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/DiamondLoupeFacet.sol/DiamondLoupeFacet.json @@ -0,0 +1,7 @@ +[ + "function facetAddress(bytes4) view returns (address)", + "function facetAddresses() view returns (address[])", + "function facetFunctionSelectors(address) view returns (bytes4[])", + "function facets() view returns (tuple(address,bytes4[])[])", + "function supportsInterface(bytes4) view returns (bool)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/OwnershipFacet.sol/OwnershipFacet.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/OwnershipFacet.sol/OwnershipFacet.json new file mode 100644 index 000000000..18bdb4b91 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/facets/OwnershipFacet.sol/OwnershipFacet.json @@ -0,0 +1,7 @@ +[ + "error NotContractOwner(address,address)", + "event OwnershipTransferred(address indexed,address indexed)", + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamond.sol/IDiamond.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamond.sol/IDiamond.json new file mode 100644 index 000000000..c63a36453 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamond.sol/IDiamond.json @@ -0,0 +1,3 @@ +[ + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json new file mode 100644 index 000000000..f4fc5813c --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json @@ -0,0 +1,4 @@ +[ + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)", + "function diamondCut(tuple(address,uint8,bytes4[])[],address,bytes)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json new file mode 100644 index 000000000..ed3c49213 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json @@ -0,0 +1,6 @@ +[ + "function facetAddress(bytes4) view returns (address)", + "function facetAddresses() view returns (address[])", + "function facetFunctionSelectors(address) view returns (bytes4[])", + "function facets() view returns (tuple(address,bytes4[])[])" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC165.sol/IERC165.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC165.sol/IERC165.json new file mode 100644 index 000000000..86c9f4ecb --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC165.sol/IERC165.json @@ -0,0 +1,3 @@ +[ + "function supportsInterface(bytes4) view returns (bool)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC173.sol/IERC173.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC173.sol/IERC173.json new file mode 100644 index 000000000..d491bb015 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/interfaces/IERC173.sol/IERC173.json @@ -0,0 +1,5 @@ +[ + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/libraries/LibDiamond.sol/LibDiamond.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/libraries/LibDiamond.sol/LibDiamond.json new file mode 100644 index 000000000..6fb4cd7c1 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/libraries/LibDiamond.sol/LibDiamond.json @@ -0,0 +1,4 @@ +[ + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)", + "event OwnershipTransferred(address indexed,address indexed)" +] diff --git a/abis/human-readable-abis/@mudgen/diamond-1/contracts/upgradeInitializers/DiamondInit.sol/DiamondInit.json b/abis/human-readable-abis/@mudgen/diamond-1/contracts/upgradeInitializers/DiamondInit.sol/DiamondInit.json new file mode 100644 index 000000000..0e11dbc49 --- /dev/null +++ b/abis/human-readable-abis/@mudgen/diamond-1/contracts/upgradeInitializers/DiamondInit.sol/DiamondInit.json @@ -0,0 +1,3 @@ +[ + "function init()" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/access/Ownable.sol/Ownable.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/access/Ownable.sol/Ownable.json new file mode 100644 index 000000000..ca8fb71ba --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/access/Ownable.sol/Ownable.json @@ -0,0 +1,8 @@ +[ + "error OwnableInvalidOwner(address)", + "error OwnableUnauthorizedAccount(address)", + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function renounceOwnership()", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC1271.sol/IERC1271.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC1271.sol/IERC1271.json new file mode 100644 index 000000000..0e313bfd2 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC1271.sol/IERC1271.json @@ -0,0 +1,3 @@ +[ + "function isValidSignature(bytes32,bytes) view returns (bytes4)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC5313.sol/IERC5313.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC5313.sol/IERC5313.json new file mode 100644 index 000000000..881f47d25 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/interfaces/IERC5313.sol/IERC5313.json @@ -0,0 +1,3 @@ +[ + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC20/IERC20.sol/IERC20.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC20/IERC20.sol/IERC20.json new file mode 100644 index 000000000..e91e86deb --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC20/IERC20.sol/IERC20.json @@ -0,0 +1,10 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function allowance(address,address) view returns (uint256)", + "function approve(address,uint256) returns (bool)", + "function balanceOf(address) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/IERC721.sol/IERC721.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/IERC721.sol/IERC721.json new file mode 100644 index 000000000..3c92fdcff --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/IERC721.sol/IERC721.json @@ -0,0 +1,15 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/extensions/IERC721Enumerable.sol/IERC721Enumerable.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/extensions/IERC721Enumerable.sol/IERC721Enumerable.json new file mode 100644 index 000000000..143e3fd4c --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/token/ERC721/extensions/IERC721Enumerable.sol/IERC721Enumerable.json @@ -0,0 +1,18 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/Strings.sol/Strings.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/Strings.sol/Strings.json new file mode 100644 index 000000000..50a4c8c1d --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/Strings.sol/Strings.json @@ -0,0 +1,3 @@ +[ + "error StringsInsufficientHexLength(uint256,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/cryptography/ECDSA.sol/ECDSA.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/cryptography/ECDSA.sol/ECDSA.json new file mode 100644 index 000000000..36217f4ed --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/cryptography/ECDSA.sol/ECDSA.json @@ -0,0 +1,5 @@ +[ + "error ECDSAInvalidSignature()", + "error ECDSAInvalidSignatureLength(uint256)", + "error ECDSAInvalidSignatureS(bytes32)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/introspection/IERC165.sol/IERC165.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/introspection/IERC165.sol/IERC165.json new file mode 100644 index 000000000..86c9f4ecb --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/introspection/IERC165.sol/IERC165.json @@ -0,0 +1,3 @@ +[ + "function supportsInterface(bytes4) view returns (bool)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/Math.sol/Math.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/Math.sol/Math.json new file mode 100644 index 000000000..87d070fb7 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/Math.sol/Math.json @@ -0,0 +1,3 @@ +[ + "error MathOverflowedMulDiv()" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/SafeCast.sol/SafeCast.json b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/SafeCast.sol/SafeCast.json new file mode 100644 index 000000000..75f52ae4c --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts-v5/utils/math/SafeCast.sol/SafeCast.json @@ -0,0 +1,6 @@ +[ + "error SafeCastOverflowedIntDowncast(uint8,int256)", + "error SafeCastOverflowedIntToUint(int256)", + "error SafeCastOverflowedUintDowncast(uint8,uint256)", + "error SafeCastOverflowedUintToInt(uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json b/abis/human-readable-abis/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json new file mode 100644 index 000000000..940f1d81e --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json @@ -0,0 +1,13 @@ +[ + "event RoleAdminChanged(bytes32 indexed,bytes32 indexed,bytes32 indexed)", + "event RoleGranted(bytes32 indexed,address indexed,address indexed)", + "event RoleRevoked(bytes32 indexed,address indexed,address indexed)", + "function DEFAULT_ADMIN_ROLE() view returns (bytes32)", + "function getRoleAdmin(bytes32) view returns (bytes32)", + "function getRoleMember(bytes32,uint256) view returns (address)", + "function getRoleMemberCount(bytes32) view returns (uint256)", + "function grantRole(bytes32,address)", + "function hasRole(bytes32,address) view returns (bool)", + "function renounceRole(bytes32,address)", + "function revokeRole(bytes32,address)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/access/Ownable.sol/Ownable.json b/abis/human-readable-abis/@openzeppelin/contracts/access/Ownable.sol/Ownable.json new file mode 100644 index 000000000..c7766c087 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/access/Ownable.sol/Ownable.json @@ -0,0 +1,6 @@ +[ + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function renounceOwnership()", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/introspection/ERC165.sol/ERC165.json b/abis/human-readable-abis/@openzeppelin/contracts/introspection/ERC165.sol/ERC165.json new file mode 100644 index 000000000..86c9f4ecb --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/introspection/ERC165.sol/ERC165.json @@ -0,0 +1,3 @@ +[ + "function supportsInterface(bytes4) view returns (bool)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/introspection/IERC165.sol/IERC165.json b/abis/human-readable-abis/@openzeppelin/contracts/introspection/IERC165.sol/IERC165.json new file mode 100644 index 000000000..86c9f4ecb --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/introspection/IERC165.sol/IERC165.json @@ -0,0 +1,3 @@ +[ + "function supportsInterface(bytes4) view returns (bool)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json new file mode 100644 index 000000000..e91e86deb --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json @@ -0,0 +1,10 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function allowance(address,address) view returns (uint256)", + "function approve(address,uint256) returns (bool)", + "function balanceOf(address) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json new file mode 100644 index 000000000..323e5e04c --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json @@ -0,0 +1,23 @@ +[ + "constructor(string,string)", + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function baseURI() view returns (string)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function name() view returns (string)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function tokenURI(uint256) view returns (string)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json new file mode 100644 index 000000000..3c92fdcff --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json @@ -0,0 +1,15 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol/IERC721Enumerable.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol/IERC721Enumerable.json new file mode 100644 index 000000000..143e3fd4c --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol/IERC721Enumerable.json @@ -0,0 +1,18 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol/IERC721Metadata.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol/IERC721Metadata.json new file mode 100644 index 000000000..8b7dc09b3 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol/IERC721Metadata.json @@ -0,0 +1,18 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function name() view returns (string)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenURI(uint256) view returns (string)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json new file mode 100644 index 000000000..97f1c3858 --- /dev/null +++ b/abis/human-readable-abis/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json @@ -0,0 +1,3 @@ +[ + "function onERC721Received(address,address,uint256,bytes) returns (bytes4)" +] diff --git a/abis/human-readable-abis/contracts/Diamond.sol/Diamond.json b/abis/human-readable-abis/contracts/Diamond.sol/Diamond.json new file mode 100644 index 000000000..4a0d48d97 --- /dev/null +++ b/abis/human-readable-abis/contracts/Diamond.sol/Diamond.json @@ -0,0 +1,19 @@ +[ + "constructor(tuple(address,uint8,bytes4[])[],tuple(address,address,bytes)) payable", + "error CannotAddFunctionToDiamondThatAlreadyExists(bytes4)", + "error CannotAddSelectorsToZeroAddress(bytes4[])", + "error CannotRemoveFunctionThatDoesNotExist(bytes4)", + "error CannotRemoveImmutableFunction(bytes4)", + "error CannotReplaceFunctionThatDoesNotExists(bytes4)", + "error CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)", + "error CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])", + "error CannotReplaceImmutableFunction(bytes4)", + "error FunctionNotFound(bytes4)", + "error IncorrectFacetCutAction(uint8)", + "error InitializationFunctionReverted(address,bytes)", + "error NoBytecodeAtAddress(address,string)", + "error NoSelectorsProvidedForFacetForCut(address)", + "error RemoveFacetAddressMustBeZeroAddress(address)", + "event DiamondCut(tuple(address,uint8,bytes4[])[],address,bytes)", + "event OwnershipTransferred(address indexed,address indexed)" +] diff --git a/abis/human-readable-abis/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json b/abis/human-readable-abis/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json new file mode 100644 index 000000000..b5f35217c --- /dev/null +++ b/abis/human-readable-abis/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json @@ -0,0 +1,126 @@ +[ + "error IncompatibleDatasetOrder(string)", + "event AccurateContribution(address indexed,bytes32 indexed)", + "event Approval(address indexed,address indexed,uint256)", + "event BroadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "event BroadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "event ClosedAppOrder(bytes32)", + "event ClosedDatasetOrder(bytes32)", + "event ClosedRequestOrder(bytes32)", + "event ClosedWorkerpoolOrder(bytes32)", + "event CreateCategory(uint256,string,string,uint256)", + "event DealSponsored(bytes32,address)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNotice(address indexed,bytes32)", + "event Seize(address,uint256,bytes32)", + "event SignedAppOrder(bytes32)", + "event SignedDatasetOrder(bytes32)", + "event SignedRequestOrder(bytes32)", + "event SignedWorkerpoolOrder(bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function approve(address,uint256) returns (bool)", + "function approveAndCall(address,uint256,bytes) returns (bool)", + "function assertDatasetDealCompatibility(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),bytes32) view", + "function balanceOf(address) view returns (uint256)", + "function broadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "function broadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "function callbackgas() view returns (uint256)", + "function changeRegistries(address,address,address)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function configure(address,string,string,uint8,address,address,address,address)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function contributeAndFinalize(bytes32,bytes32,bytes,bytes,address,bytes,bytes)", + "function contribution_deadline_ratio() view returns (uint256)", + "function countCategory() view returns (uint256)", + "function createCategory(string,string,uint256) returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function decreaseAllowance(address,uint256) returns (bool)", + "function deposit() payable returns (bool)", + "function depositFor(address) payable returns (bool)", + "function depositForArray(uint256[],address[]) payable returns (bool)", + "function domain() view returns (tuple(string,string,uint256,address))", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() view returns (uint256)", + "function finalize(bytes32,bytes,bytes)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() view returns (uint256)", + "function importScore(address)", + "function increaseAllowance(address,uint256) returns (bool)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function kitty_address() view returns (address)", + "function kitty_min() view returns (uint256)", + "function kitty_ratio() view returns (uint256)", + "function manageAppOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageDatasetOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageRequestOrder(tuple(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes),uint8,bytes))", + "function manageWorkerpoolOrder(tuple(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),uint8,bytes))", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function receiveApproval(address,uint256,address,bytes) returns (bool)", + "function recover() returns (uint256)", + "function renounceOwnership()", + "function reopen(bytes32)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal(bytes32,bytes32)", + "function reveal_deadline_ratio() view returns (uint256)", + "function setCallbackGas(uint256)", + "function setTeeBroker(address)", + "function sponsorMatchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)", + "function transferOwnership(address)", + "function updateDomainSeparator()", + "function verifyPresignature(address,bytes32) view returns (bool)", + "function verifyPresignatureOrSignature(address,bytes32,bytes) view returns (bool)", + "function verifySignature(address,bytes32,bytes) view returns (bool)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewAccountABILegacy(address) view returns (uint256, uint256)", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewCategoryABILegacy(uint256) view returns (string, string, uint256)", + "function viewConfigABILegacy(bytes32) view returns (uint256, uint256, uint256, uint256, uint256, uint256)", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewContributionABILegacy(bytes32,address) view returns (uint8, bytes32, bytes32, address)", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewDealABILegacy_pt1(bytes32) view returns (address, address, uint256, address, address, uint256, address, address, uint256)", + "function viewDealABILegacy_pt2(bytes32) view returns (uint256, bytes32, address, address, address, string)", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewTaskABILegacy(bytes32) view returns (uint8, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32, uint256, uint256, address[], bytes)", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)", + "function workerpool_stake_ratio() view returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/IexecInterfaceToken.sol/IexecInterfaceToken.json b/abis/human-readable-abis/contracts/IexecInterfaceToken.sol/IexecInterfaceToken.json new file mode 100644 index 000000000..1b033cd32 --- /dev/null +++ b/abis/human-readable-abis/contracts/IexecInterfaceToken.sol/IexecInterfaceToken.json @@ -0,0 +1,126 @@ +[ + "error IncompatibleDatasetOrder(string)", + "event AccurateContribution(address indexed,bytes32 indexed)", + "event Approval(address indexed,address indexed,uint256)", + "event BroadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "event BroadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "event ClosedAppOrder(bytes32)", + "event ClosedDatasetOrder(bytes32)", + "event ClosedRequestOrder(bytes32)", + "event ClosedWorkerpoolOrder(bytes32)", + "event CreateCategory(uint256,string,string,uint256)", + "event DealSponsored(bytes32,address)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNotice(address indexed,bytes32)", + "event Seize(address,uint256,bytes32)", + "event SignedAppOrder(bytes32)", + "event SignedDatasetOrder(bytes32)", + "event SignedRequestOrder(bytes32)", + "event SignedWorkerpoolOrder(bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function approve(address,uint256) returns (bool)", + "function approveAndCall(address,uint256,bytes) returns (bool)", + "function assertDatasetDealCompatibility(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),bytes32) view", + "function balanceOf(address) view returns (uint256)", + "function broadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "function broadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "function callbackgas() view returns (uint256)", + "function changeRegistries(address,address,address)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function configure(address,string,string,uint8,address,address,address,address)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function contributeAndFinalize(bytes32,bytes32,bytes,bytes,address,bytes,bytes)", + "function contribution_deadline_ratio() view returns (uint256)", + "function countCategory() view returns (uint256)", + "function createCategory(string,string,uint256) returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function decreaseAllowance(address,uint256) returns (bool)", + "function deposit(uint256) returns (bool)", + "function depositFor(uint256,address) returns (bool)", + "function depositForArray(uint256[],address[]) returns (bool)", + "function domain() view returns (tuple(string,string,uint256,address))", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() view returns (uint256)", + "function finalize(bytes32,bytes,bytes)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() view returns (uint256)", + "function importScore(address)", + "function increaseAllowance(address,uint256) returns (bool)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function kitty_address() view returns (address)", + "function kitty_min() view returns (uint256)", + "function kitty_ratio() view returns (uint256)", + "function manageAppOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageDatasetOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageRequestOrder(tuple(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes),uint8,bytes))", + "function manageWorkerpoolOrder(tuple(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),uint8,bytes))", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function receiveApproval(address,uint256,address,bytes) returns (bool)", + "function recover() returns (uint256)", + "function renounceOwnership()", + "function reopen(bytes32)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal(bytes32,bytes32)", + "function reveal_deadline_ratio() view returns (uint256)", + "function setCallbackGas(uint256)", + "function setTeeBroker(address)", + "function sponsorMatchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)", + "function transferOwnership(address)", + "function updateDomainSeparator()", + "function verifyPresignature(address,bytes32) view returns (bool)", + "function verifyPresignatureOrSignature(address,bytes32,bytes) view returns (bool)", + "function verifySignature(address,bytes32,bytes) view returns (bool)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewAccountABILegacy(address) view returns (uint256, uint256)", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewCategoryABILegacy(uint256) view returns (string, string, uint256)", + "function viewConfigABILegacy(bytes32) view returns (uint256, uint256, uint256, uint256, uint256, uint256)", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewContributionABILegacy(bytes32,address) view returns (uint8, bytes32, bytes32, address)", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewDealABILegacy_pt1(bytes32) view returns (address, address, uint256, address, address, uint256, address, address, uint256)", + "function viewDealABILegacy_pt2(bytes32) view returns (uint256, bytes32, address, address, address, string)", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewTaskABILegacy(bytes32) view returns (uint8, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32, uint256, uint256, address[], bytes)", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)", + "function workerpool_stake_ratio() view returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/external/interfaces/IERC734.sol/IERC734.json b/abis/human-readable-abis/contracts/external/interfaces/IERC734.sol/IERC734.json new file mode 100644 index 000000000..c21df6475 --- /dev/null +++ b/abis/human-readable-abis/contracts/external/interfaces/IERC734.sol/IERC734.json @@ -0,0 +1,3 @@ +[ + "function keyHasPurpose(bytes32,uint256) view returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/external/interfaces/IOracleConsumer.sol/IOracleConsumer.json b/abis/human-readable-abis/contracts/external/interfaces/IOracleConsumer.sol/IOracleConsumer.json new file mode 100644 index 000000000..716a807f2 --- /dev/null +++ b/abis/human-readable-abis/contracts/external/interfaces/IOracleConsumer.sol/IOracleConsumer.json @@ -0,0 +1,3 @@ +[ + "function receiveResult(bytes32,bytes)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecAccessorsABILegacyFacet.sol/IexecAccessorsABILegacyFacet.json b/abis/human-readable-abis/contracts/facets/IexecAccessorsABILegacyFacet.sol/IexecAccessorsABILegacyFacet.json new file mode 100644 index 000000000..e65fdf381 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecAccessorsABILegacyFacet.sol/IexecAccessorsABILegacyFacet.json @@ -0,0 +1,9 @@ +[ + "function viewAccountABILegacy(address) view returns (uint256, uint256)", + "function viewCategoryABILegacy(uint256) view returns (string, string, uint256)", + "function viewConfigABILegacy(bytes32) view returns (uint256, uint256, uint256, uint256, uint256, uint256)", + "function viewContributionABILegacy(bytes32,address) view returns (uint8, bytes32, bytes32, address)", + "function viewDealABILegacy_pt1(bytes32) view returns (address, address, uint256, address, address, uint256, address, address, uint256)", + "function viewDealABILegacy_pt2(bytes32) view returns (uint256, bytes32, address, address, address, string)", + "function viewTaskABILegacy(bytes32) view returns (uint8, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32, uint256, uint256, address[], bytes)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecCategoryManagerFacet.sol/IexecCategoryManagerFacet.json b/abis/human-readable-abis/contracts/facets/IexecCategoryManagerFacet.sol/IexecCategoryManagerFacet.json new file mode 100644 index 000000000..9fbef3a35 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecCategoryManagerFacet.sol/IexecCategoryManagerFacet.json @@ -0,0 +1,4 @@ +[ + "event CreateCategory(uint256,string,string,uint256)", + "function createCategory(string,string,uint256) returns (uint256)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecConfigurationExtraFacet.sol/IexecConfigurationExtraFacet.json b/abis/human-readable-abis/contracts/facets/IexecConfigurationExtraFacet.sol/IexecConfigurationExtraFacet.json new file mode 100644 index 000000000..738993a2f --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecConfigurationExtraFacet.sol/IexecConfigurationExtraFacet.json @@ -0,0 +1,3 @@ +[ + "function changeRegistries(address,address,address)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecConfigurationFacet.sol/IexecConfigurationFacet.json b/abis/human-readable-abis/contracts/facets/IexecConfigurationFacet.sol/IexecConfigurationFacet.json new file mode 100644 index 000000000..a8a7694b7 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecConfigurationFacet.sol/IexecConfigurationFacet.json @@ -0,0 +1,8 @@ +[ + "function configure(address,string,string,uint8,address,address,address,address)", + "function domain() view returns (tuple(string,string,uint256,address))", + "function importScore(address)", + "function setCallbackGas(uint256)", + "function setTeeBroker(address)", + "function updateDomainSeparator()" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecERC20Core.sol/IexecERC20Core.json b/abis/human-readable-abis/contracts/facets/IexecERC20Core.sol/IexecERC20Core.json new file mode 100644 index 000000000..c145a777d --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecERC20Core.sol/IexecERC20Core.json @@ -0,0 +1,4 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecERC20Facet.sol/IexecERC20Facet.json b/abis/human-readable-abis/contracts/facets/IexecERC20Facet.sol/IexecERC20Facet.json new file mode 100644 index 000000000..0b8048246 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecERC20Facet.sol/IexecERC20Facet.json @@ -0,0 +1,10 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function approve(address,uint256) returns (bool)", + "function approveAndCall(address,uint256,bytes) returns (bool)", + "function decreaseAllowance(address,uint256) returns (bool)", + "function increaseAllowance(address,uint256) returns (bool)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecEscrow.v8.sol/IexecEscrow.json b/abis/human-readable-abis/contracts/facets/IexecEscrow.v8.sol/IexecEscrow.json new file mode 100644 index 000000000..1c6711547 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecEscrow.v8.sol/IexecEscrow.json @@ -0,0 +1,7 @@ +[ + "event Lock(address,uint256)", + "event Reward(address,uint256,bytes32)", + "event Seize(address,uint256,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecEscrowNativeFacet.sol/IexecEscrowNativeFacet.json b/abis/human-readable-abis/contracts/facets/IexecEscrowNativeFacet.sol/IexecEscrowNativeFacet.json new file mode 100644 index 000000000..9e2b8d669 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecEscrowNativeFacet.sol/IexecEscrowNativeFacet.json @@ -0,0 +1,10 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function deposit() payable returns (bool)", + "function depositFor(address) payable returns (bool)", + "function depositForArray(uint256[],address[]) payable returns (bool)", + "function recover() returns (uint256)", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecEscrowTokenFacet.sol/IexecEscrowTokenFacet.json b/abis/human-readable-abis/contracts/facets/IexecEscrowTokenFacet.sol/IexecEscrowTokenFacet.json new file mode 100644 index 000000000..a099f0ca2 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecEscrowTokenFacet.sol/IexecEscrowTokenFacet.json @@ -0,0 +1,11 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function deposit(uint256) returns (bool)", + "function depositFor(uint256,address) returns (bool)", + "function depositForArray(uint256[],address[]) returns (bool)", + "function receiveApproval(address,uint256,address,bytes) returns (bool)", + "function recover() returns (uint256)", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecOrderManagementFacet.sol/IexecOrderManagementFacet.json b/abis/human-readable-abis/contracts/facets/IexecOrderManagementFacet.sol/IexecOrderManagementFacet.json new file mode 100644 index 000000000..6a5901e9c --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecOrderManagementFacet.sol/IexecOrderManagementFacet.json @@ -0,0 +1,14 @@ +[ + "event ClosedAppOrder(bytes32)", + "event ClosedDatasetOrder(bytes32)", + "event ClosedRequestOrder(bytes32)", + "event ClosedWorkerpoolOrder(bytes32)", + "event SignedAppOrder(bytes32)", + "event SignedDatasetOrder(bytes32)", + "event SignedRequestOrder(bytes32)", + "event SignedWorkerpoolOrder(bytes32)", + "function manageAppOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageDatasetOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageRequestOrder(tuple(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes),uint8,bytes))", + "function manageWorkerpoolOrder(tuple(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),uint8,bytes))" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecPoco1Facet.sol/IexecPoco1Facet.json b/abis/human-readable-abis/contracts/facets/IexecPoco1Facet.sol/IexecPoco1Facet.json new file mode 100644 index 000000000..6797588d0 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecPoco1Facet.sol/IexecPoco1Facet.json @@ -0,0 +1,17 @@ +[ + "error IncompatibleDatasetOrder(string)", + "event DealSponsored(bytes32,address)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNotice(address indexed,bytes32)", + "event Seize(address,uint256,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function assertDatasetDealCompatibility(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),bytes32) view", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function sponsorMatchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function verifyPresignature(address,bytes32) view returns (bool)", + "function verifyPresignatureOrSignature(address,bytes32,bytes) view returns (bool)", + "function verifySignature(address,bytes32,bytes) view returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecPoco2Facet.sol/IexecPoco2Facet.json b/abis/human-readable-abis/contracts/facets/IexecPoco2Facet.sol/IexecPoco2Facet.json new file mode 100644 index 000000000..19ef5ebb3 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecPoco2Facet.sol/IexecPoco2Facet.json @@ -0,0 +1,27 @@ +[ + "error MathOverflowedMulDiv()", + "event AccurateContribution(address indexed,bytes32 indexed)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event Lock(address,uint256)", + "event Reward(address,uint256,bytes32)", + "event Seize(address,uint256,bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function contributeAndFinalize(bytes32,bytes32,bytes,bytes,address,bytes,bytes)", + "function finalize(bytes32,bytes,bytes)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function reopen(bytes32)", + "function reveal(bytes32,bytes32)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecPocoAccessorsFacet.sol/IexecPocoAccessorsFacet.json b/abis/human-readable-abis/contracts/facets/IexecPocoAccessorsFacet.sol/IexecPocoAccessorsFacet.json new file mode 100644 index 000000000..4deda5d62 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecPocoAccessorsFacet.sol/IexecPocoAccessorsFacet.json @@ -0,0 +1,38 @@ +[ + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function balanceOf(address) view returns (uint256)", + "function callbackgas() view returns (uint256)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function contribution_deadline_ratio() pure returns (uint256)", + "function countCategory() view returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() pure returns (uint256)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() pure returns (uint256)", + "function kitty_address() pure returns (address)", + "function kitty_min() pure returns (uint256)", + "function kitty_ratio() pure returns (uint256)", + "function name() view returns (string)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal_deadline_ratio() pure returns (uint256)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function workerpool_stake_ratio() pure returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecPocoBoostAccessorsFacet.sol/IexecPocoBoostAccessorsFacet.json b/abis/human-readable-abis/contracts/facets/IexecPocoBoostAccessorsFacet.sol/IexecPocoBoostAccessorsFacet.json new file mode 100644 index 000000000..4ac8c415c --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecPocoBoostAccessorsFacet.sol/IexecPocoBoostAccessorsFacet.json @@ -0,0 +1,3 @@ +[ + "function viewDealBoost(bytes32) view returns (tuple(address,uint96,address,uint96,address,uint96,address,uint96,address,uint40,uint16,uint16,bytes3,address))" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecPocoBoostFacet.sol/IexecPocoBoostFacet.json b/abis/human-readable-abis/contracts/facets/IexecPocoBoostFacet.sol/IexecPocoBoostFacet.json new file mode 100644 index 000000000..a9b60c326 --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecPocoBoostFacet.sol/IexecPocoBoostFacet.json @@ -0,0 +1,17 @@ +[ + "error SafeCastOverflowedUintDowncast(uint8,uint256)", + "event DealSponsoredBoost(bytes32,address)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event ResultPushedBoost(bytes32,uint256,bytes)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNoticeBoost(address indexed,bytes32,address,address,uint256,bytes32,string,address)", + "event Seize(address,uint256,bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function claimBoost(bytes32,uint256)", + "function matchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function pushResultBoost(bytes32,uint256,bytes,bytes,bytes,address,bytes)", + "function sponsorMatchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)" +] diff --git a/abis/human-readable-abis/contracts/facets/IexecRelayFacet.sol/IexecRelayFacet.json b/abis/human-readable-abis/contracts/facets/IexecRelayFacet.sol/IexecRelayFacet.json new file mode 100644 index 000000000..23b9e01bf --- /dev/null +++ b/abis/human-readable-abis/contracts/facets/IexecRelayFacet.sol/IexecRelayFacet.json @@ -0,0 +1,10 @@ +[ + "event BroadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "event BroadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "function broadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "function broadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IOwnable.sol/IOwnable.json b/abis/human-readable-abis/contracts/interfaces/IOwnable.sol/IOwnable.json new file mode 100644 index 000000000..c7766c087 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IOwnable.sol/IOwnable.json @@ -0,0 +1,6 @@ +[ + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function renounceOwnership()", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecAccessorsABILegacy.sol/IexecAccessorsABILegacy.json b/abis/human-readable-abis/contracts/interfaces/IexecAccessorsABILegacy.sol/IexecAccessorsABILegacy.json new file mode 100644 index 000000000..e65fdf381 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecAccessorsABILegacy.sol/IexecAccessorsABILegacy.json @@ -0,0 +1,9 @@ +[ + "function viewAccountABILegacy(address) view returns (uint256, uint256)", + "function viewCategoryABILegacy(uint256) view returns (string, string, uint256)", + "function viewConfigABILegacy(bytes32) view returns (uint256, uint256, uint256, uint256, uint256, uint256)", + "function viewContributionABILegacy(bytes32,address) view returns (uint8, bytes32, bytes32, address)", + "function viewDealABILegacy_pt1(bytes32) view returns (address, address, uint256, address, address, uint256, address, address, uint256)", + "function viewDealABILegacy_pt2(bytes32) view returns (uint256, bytes32, address, address, address, string)", + "function viewTaskABILegacy(bytes32) view returns (uint8, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32, uint256, uint256, address[], bytes)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecCategoryManager.sol/IexecCategoryManager.json b/abis/human-readable-abis/contracts/interfaces/IexecCategoryManager.sol/IexecCategoryManager.json new file mode 100644 index 000000000..9fbef3a35 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecCategoryManager.sol/IexecCategoryManager.json @@ -0,0 +1,4 @@ +[ + "event CreateCategory(uint256,string,string,uint256)", + "function createCategory(string,string,uint256) returns (uint256)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecConfiguration.sol/IexecConfiguration.json b/abis/human-readable-abis/contracts/interfaces/IexecConfiguration.sol/IexecConfiguration.json new file mode 100644 index 000000000..a8a7694b7 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecConfiguration.sol/IexecConfiguration.json @@ -0,0 +1,8 @@ +[ + "function configure(address,string,string,uint8,address,address,address,address)", + "function domain() view returns (tuple(string,string,uint256,address))", + "function importScore(address)", + "function setCallbackGas(uint256)", + "function setTeeBroker(address)", + "function updateDomainSeparator()" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecConfigurationExtra.sol/IexecConfigurationExtra.json b/abis/human-readable-abis/contracts/interfaces/IexecConfigurationExtra.sol/IexecConfigurationExtra.json new file mode 100644 index 000000000..738993a2f --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecConfigurationExtra.sol/IexecConfigurationExtra.json @@ -0,0 +1,3 @@ +[ + "function changeRegistries(address,address,address)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecERC20.sol/IexecERC20.json b/abis/human-readable-abis/contracts/interfaces/IexecERC20.sol/IexecERC20.json new file mode 100644 index 000000000..0b8048246 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecERC20.sol/IexecERC20.json @@ -0,0 +1,10 @@ +[ + "event Approval(address indexed,address indexed,uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "function approve(address,uint256) returns (bool)", + "function approveAndCall(address,uint256,bytes) returns (bool)", + "function decreaseAllowance(address,uint256) returns (bool)", + "function increaseAllowance(address,uint256) returns (bool)", + "function transfer(address,uint256) returns (bool)", + "function transferFrom(address,address,uint256) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecERC20Common.sol/IexecERC20Common.json b/abis/human-readable-abis/contracts/interfaces/IexecERC20Common.sol/IexecERC20Common.json new file mode 100644 index 000000000..e70f2078f --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecERC20Common.sol/IexecERC20Common.json @@ -0,0 +1,6 @@ +[ + "event Lock(address,uint256)", + "event Reward(address,uint256,bytes32)", + "event Seize(address,uint256,bytes32)", + "event Unlock(address,uint256)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecEscrowNative.sol/IexecEscrowNative.json b/abis/human-readable-abis/contracts/interfaces/IexecEscrowNative.sol/IexecEscrowNative.json new file mode 100644 index 000000000..fe50a0999 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecEscrowNative.sol/IexecEscrowNative.json @@ -0,0 +1,8 @@ +[ + "function deposit() payable returns (bool)", + "function depositFor(address) payable returns (bool)", + "function depositForArray(uint256[],address[]) payable returns (bool)", + "function recover() returns (uint256)", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecEscrowToken.sol/IexecEscrowToken.json b/abis/human-readable-abis/contracts/interfaces/IexecEscrowToken.sol/IexecEscrowToken.json new file mode 100644 index 000000000..4c8a87897 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecEscrowToken.sol/IexecEscrowToken.json @@ -0,0 +1,8 @@ +[ + "function deposit(uint256) returns (bool)", + "function depositFor(uint256,address) returns (bool)", + "function depositForArray(uint256[],address[]) returns (bool)", + "function recover() returns (uint256)", + "function withdraw(uint256) returns (bool)", + "function withdrawTo(uint256,address) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecOrderManagement.sol/IexecOrderManagement.json b/abis/human-readable-abis/contracts/interfaces/IexecOrderManagement.sol/IexecOrderManagement.json new file mode 100644 index 000000000..6a5901e9c --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecOrderManagement.sol/IexecOrderManagement.json @@ -0,0 +1,14 @@ +[ + "event ClosedAppOrder(bytes32)", + "event ClosedDatasetOrder(bytes32)", + "event ClosedRequestOrder(bytes32)", + "event ClosedWorkerpoolOrder(bytes32)", + "event SignedAppOrder(bytes32)", + "event SignedDatasetOrder(bytes32)", + "event SignedRequestOrder(bytes32)", + "event SignedWorkerpoolOrder(bytes32)", + "function manageAppOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageDatasetOrder(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),uint8,bytes))", + "function manageRequestOrder(tuple(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes),uint8,bytes))", + "function manageWorkerpoolOrder(tuple(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),uint8,bytes))" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPoco1.sol/IexecPoco1.json b/abis/human-readable-abis/contracts/interfaces/IexecPoco1.sol/IexecPoco1.json new file mode 100644 index 000000000..12527163f --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPoco1.sol/IexecPoco1.json @@ -0,0 +1,11 @@ +[ + "event DealSponsored(bytes32,address)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event SchedulerNotice(address indexed,bytes32)", + "function assertDatasetDealCompatibility(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),bytes32) view", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function sponsorMatchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function verifyPresignature(address,bytes32) view returns (bool)", + "function verifyPresignatureOrSignature(address,bytes32,bytes) view returns (bool)", + "function verifySignature(address,bytes32,bytes) view returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPoco1Errors.sol/IexecPoco1Errors.json b/abis/human-readable-abis/contracts/interfaces/IexecPoco1Errors.sol/IexecPoco1Errors.json new file mode 100644 index 000000000..c18d4de38 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPoco1Errors.sol/IexecPoco1Errors.json @@ -0,0 +1,3 @@ +[ + "error IncompatibleDatasetOrder(string)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPoco2.sol/IexecPoco2.json b/abis/human-readable-abis/contracts/interfaces/IexecPoco2.sol/IexecPoco2.json new file mode 100644 index 000000000..4f6582820 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPoco2.sol/IexecPoco2.json @@ -0,0 +1,21 @@ +[ + "event AccurateContribution(address indexed,bytes32 indexed)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function contributeAndFinalize(bytes32,bytes32,bytes,bytes,address,bytes,bytes)", + "function finalize(bytes32,bytes,bytes)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function reopen(bytes32)", + "function reveal(bytes32,bytes32)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPocoAccessors.sol/IexecPocoAccessors.json b/abis/human-readable-abis/contracts/interfaces/IexecPocoAccessors.sol/IexecPocoAccessors.json new file mode 100644 index 000000000..12fe61ddf --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPocoAccessors.sol/IexecPocoAccessors.json @@ -0,0 +1,38 @@ +[ + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function balanceOf(address) view returns (uint256)", + "function callbackgas() view returns (uint256)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function contribution_deadline_ratio() view returns (uint256)", + "function countCategory() view returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() view returns (uint256)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() view returns (uint256)", + "function kitty_address() view returns (address)", + "function kitty_min() view returns (uint256)", + "function kitty_ratio() view returns (uint256)", + "function name() view returns (string)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal_deadline_ratio() view returns (uint256)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function workerpool_stake_ratio() view returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPocoBoost.sol/IexecPocoBoost.json b/abis/human-readable-abis/contracts/interfaces/IexecPocoBoost.sol/IexecPocoBoost.json new file mode 100644 index 000000000..c7b522796 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPocoBoost.sol/IexecPocoBoost.json @@ -0,0 +1,11 @@ +[ + "event DealSponsoredBoost(bytes32,address)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event ResultPushedBoost(bytes32,uint256,bytes)", + "event SchedulerNoticeBoost(address indexed,bytes32,address,address,uint256,bytes32,string,address)", + "event TaskClaimed(bytes32 indexed)", + "function claimBoost(bytes32,uint256)", + "function matchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function pushResultBoost(bytes32,uint256,bytes,bytes,bytes,address,bytes)", + "function sponsorMatchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecPocoBoostAccessors.sol/IexecPocoBoostAccessors.json b/abis/human-readable-abis/contracts/interfaces/IexecPocoBoostAccessors.sol/IexecPocoBoostAccessors.json new file mode 100644 index 000000000..4ac8c415c --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecPocoBoostAccessors.sol/IexecPocoBoostAccessors.json @@ -0,0 +1,3 @@ +[ + "function viewDealBoost(bytes32) view returns (tuple(address,uint96,address,uint96,address,uint96,address,uint96,address,uint40,uint16,uint16,bytes3,address))" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecRelay.sol/IexecRelay.json b/abis/human-readable-abis/contracts/interfaces/IexecRelay.sol/IexecRelay.json new file mode 100644 index 000000000..23b9e01bf --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecRelay.sol/IexecRelay.json @@ -0,0 +1,10 @@ +[ + "event BroadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "event BroadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "event BroadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))", + "function broadcastAppOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastDatasetOrder(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes))", + "function broadcastRequestOrder(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes))", + "function broadcastWorkerpoolOrder(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes))" +] diff --git a/abis/human-readable-abis/contracts/interfaces/IexecTokenSpender.sol/IexecTokenSpender.json b/abis/human-readable-abis/contracts/interfaces/IexecTokenSpender.sol/IexecTokenSpender.json new file mode 100644 index 000000000..0d6a54116 --- /dev/null +++ b/abis/human-readable-abis/contracts/interfaces/IexecTokenSpender.sol/IexecTokenSpender.json @@ -0,0 +1,3 @@ +[ + "function receiveApproval(address,uint256,address,bytes) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/libs/IexecLibOrders_v5.sol/IexecLibOrders_v5.json b/abis/human-readable-abis/contracts/libs/IexecLibOrders_v5.sol/IexecLibOrders_v5.json new file mode 100644 index 000000000..21ee8bbe5 --- /dev/null +++ b/abis/human-readable-abis/contracts/libs/IexecLibOrders_v5.sol/IexecLibOrders_v5.json @@ -0,0 +1,20 @@ +[ + "function APPORDEROPERATION_TYPEHASH() view returns (bytes32)", + "function APPORDER_TYPEHASH() view returns (bytes32)", + "function DATASETORDEROPERATION_TYPEHASH() view returns (bytes32)", + "function DATASETORDER_TYPEHASH() view returns (bytes32)", + "function EIP712DOMAIN_TYPEHASH() view returns (bytes32)", + "function REQUESTORDEROPERATION_TYPEHASH() view returns (bytes32)", + "function REQUESTORDER_TYPEHASH() view returns (bytes32)", + "function WORKERPOOLORDEROPERATION_TYPEHASH() view returns (bytes32)", + "function WORKERPOOLORDER_TYPEHASH() view returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes),IexecLibOrders_v5.OrderOperationEnum,bytes)) pure returns (bytes32)", + "function hash(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),IexecLibOrders_v5.OrderOperationEnum,bytes)) pure returns (bytes32)", + "function hash(tuple(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),IexecLibOrders_v5.OrderOperationEnum,bytes)) pure returns (bytes32)", + "function hash(tuple(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),IexecLibOrders_v5.OrderOperationEnum,bytes)) pure returns (bytes32)", + "function hash(tuple(string,string,uint256,address)) pure returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) pure returns (bytes32)", + "function hash(tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes)) pure returns (bytes32)" +] diff --git a/abis/human-readable-abis/contracts/libs/PocoStorageLib.v8.sol/IRegistry.json b/abis/human-readable-abis/contracts/libs/PocoStorageLib.v8.sol/IRegistry.json new file mode 100644 index 000000000..9e17a4272 --- /dev/null +++ b/abis/human-readable-abis/contracts/libs/PocoStorageLib.v8.sol/IRegistry.json @@ -0,0 +1,19 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/contracts/registries/IRegistry.sol/IRegistry.json b/abis/human-readable-abis/contracts/registries/IRegistry.sol/IRegistry.json new file mode 100644 index 000000000..9e17a4272 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/IRegistry.sol/IRegistry.json @@ -0,0 +1,19 @@ +[ + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function getApproved(uint256) view returns (address)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function ownerOf(uint256) view returns (address)", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function supportsInterface(bytes4) view returns (bool)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)" +] diff --git a/abis/human-readable-abis/contracts/registries/Registry.sol/Registry.json b/abis/human-readable-abis/contracts/registries/Registry.sol/Registry.json new file mode 100644 index 000000000..9135b720a --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/Registry.sol/Registry.json @@ -0,0 +1,36 @@ +[ + "constructor(address,string,string)", + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function baseURI() view returns (string)", + "function getApproved(uint256) view returns (address)", + "function initialize(address)", + "function initialized() view returns (bool)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function master() view returns (address)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function ownerOf(uint256) view returns (address)", + "function previous() view returns (address)", + "function proxyCode() view returns (bytes)", + "function proxyCodeHash() view returns (bytes32)", + "function renounceOwnership()", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function setBaseURI(string)", + "function setName(address,string)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function tokenURI(uint256) view returns (string)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/registries/RegistryEntry.sol/RegistryEntry.json b/abis/human-readable-abis/contracts/registries/RegistryEntry.sol/RegistryEntry.json new file mode 100644 index 000000000..ef8cf3100 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/RegistryEntry.sol/RegistryEntry.json @@ -0,0 +1,5 @@ +[ + "function owner() view returns (address)", + "function registry() view returns (address)", + "function setName(address,string)" +] diff --git a/abis/human-readable-abis/contracts/registries/apps/App.sol/App.json b/abis/human-readable-abis/contracts/registries/apps/App.sol/App.json new file mode 100644 index 000000000..0163548c3 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/apps/App.sol/App.json @@ -0,0 +1,11 @@ +[ + "function initialize(string,string,bytes,bytes32,bytes)", + "function m_appChecksum() view returns (bytes32)", + "function m_appMREnclave() view returns (bytes)", + "function m_appMultiaddr() view returns (bytes)", + "function m_appName() view returns (string)", + "function m_appType() view returns (string)", + "function owner() view returns (address)", + "function registry() view returns (address)", + "function setName(address,string)" +] diff --git a/abis/human-readable-abis/contracts/registries/apps/AppRegistry.sol/AppRegistry.json b/abis/human-readable-abis/contracts/registries/apps/AppRegistry.sol/AppRegistry.json new file mode 100644 index 000000000..8d5fdcde9 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/apps/AppRegistry.sol/AppRegistry.json @@ -0,0 +1,38 @@ +[ + "constructor()", + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function baseURI() view returns (string)", + "function createApp(address,string,string,bytes,bytes32,bytes) returns (address)", + "function getApproved(uint256) view returns (address)", + "function initialize(address)", + "function initialized() view returns (bool)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function master() view returns (address)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function ownerOf(uint256) view returns (address)", + "function predictApp(address,string,string,bytes,bytes32,bytes) view returns (address)", + "function previous() view returns (address)", + "function proxyCode() view returns (bytes)", + "function proxyCodeHash() view returns (bytes32)", + "function renounceOwnership()", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function setBaseURI(string)", + "function setName(address,string)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function tokenURI(uint256) view returns (string)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/registries/apps/IApp.v8.sol/IApp.json b/abis/human-readable-abis/contracts/registries/apps/IApp.v8.sol/IApp.json new file mode 100644 index 000000000..69501fd6b --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/apps/IApp.v8.sol/IApp.json @@ -0,0 +1,8 @@ +[ + "function m_appChecksum() view returns (bytes32)", + "function m_appMREnclave() view returns (bytes)", + "function m_appMultiaddr() view returns (bytes)", + "function m_appName() view returns (string)", + "function m_appType() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/registries/datasets/Dataset.sol/Dataset.json b/abis/human-readable-abis/contracts/registries/datasets/Dataset.sol/Dataset.json new file mode 100644 index 000000000..feef24fb6 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/datasets/Dataset.sol/Dataset.json @@ -0,0 +1,9 @@ +[ + "function initialize(string,bytes,bytes32)", + "function m_datasetChecksum() view returns (bytes32)", + "function m_datasetMultiaddr() view returns (bytes)", + "function m_datasetName() view returns (string)", + "function owner() view returns (address)", + "function registry() view returns (address)", + "function setName(address,string)" +] diff --git a/abis/human-readable-abis/contracts/registries/datasets/DatasetRegistry.sol/DatasetRegistry.json b/abis/human-readable-abis/contracts/registries/datasets/DatasetRegistry.sol/DatasetRegistry.json new file mode 100644 index 000000000..6a790d80f --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/datasets/DatasetRegistry.sol/DatasetRegistry.json @@ -0,0 +1,38 @@ +[ + "constructor()", + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function baseURI() view returns (string)", + "function createDataset(address,string,bytes,bytes32) returns (address)", + "function getApproved(uint256) view returns (address)", + "function initialize(address)", + "function initialized() view returns (bool)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function master() view returns (address)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function ownerOf(uint256) view returns (address)", + "function predictDataset(address,string,bytes,bytes32) view returns (address)", + "function previous() view returns (address)", + "function proxyCode() view returns (bytes)", + "function proxyCodeHash() view returns (bytes32)", + "function renounceOwnership()", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function setBaseURI(string)", + "function setName(address,string)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function tokenURI(uint256) view returns (string)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/registries/datasets/IDataset.v8.sol/IDataset.json b/abis/human-readable-abis/contracts/registries/datasets/IDataset.v8.sol/IDataset.json new file mode 100644 index 000000000..4a8ae17c8 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/datasets/IDataset.v8.sol/IDataset.json @@ -0,0 +1,6 @@ +[ + "function m_datasetChecksum() view returns (bytes32)", + "function m_datasetMultiaddr() view returns (bytes)", + "function m_datasetName() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/registries/workerpools/IWorkerpool.v8.sol/IWorkerpool.json b/abis/human-readable-abis/contracts/registries/workerpools/IWorkerpool.v8.sol/IWorkerpool.json new file mode 100644 index 000000000..773e65206 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/workerpools/IWorkerpool.v8.sol/IWorkerpool.json @@ -0,0 +1,6 @@ +[ + "function m_schedulerRewardRatioPolicy() view returns (uint256)", + "function m_workerStakeRatioPolicy() view returns (uint256)", + "function m_workerpoolDescription() view returns (string)", + "function owner() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/registries/workerpools/Workerpool.sol/Workerpool.json b/abis/human-readable-abis/contracts/registries/workerpools/Workerpool.sol/Workerpool.json new file mode 100644 index 000000000..1a399fcf8 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/workerpools/Workerpool.sol/Workerpool.json @@ -0,0 +1,11 @@ +[ + "event PolicyUpdate(uint256,uint256,uint256,uint256)", + "function changePolicy(uint256,uint256)", + "function initialize(string)", + "function m_schedulerRewardRatioPolicy() view returns (uint256)", + "function m_workerStakeRatioPolicy() view returns (uint256)", + "function m_workerpoolDescription() view returns (string)", + "function owner() view returns (address)", + "function registry() view returns (address)", + "function setName(address,string)" +] diff --git a/abis/human-readable-abis/contracts/registries/workerpools/WorkerpoolRegistry.sol/WorkerpoolRegistry.json b/abis/human-readable-abis/contracts/registries/workerpools/WorkerpoolRegistry.sol/WorkerpoolRegistry.json new file mode 100644 index 000000000..ce7b905c0 --- /dev/null +++ b/abis/human-readable-abis/contracts/registries/workerpools/WorkerpoolRegistry.sol/WorkerpoolRegistry.json @@ -0,0 +1,38 @@ +[ + "constructor()", + "event Approval(address indexed,address indexed,uint256 indexed)", + "event ApprovalForAll(address indexed,address indexed,bool)", + "event OwnershipTransferred(address indexed,address indexed)", + "event Transfer(address indexed,address indexed,uint256 indexed)", + "function approve(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function baseURI() view returns (string)", + "function createWorkerpool(address,string) returns (address)", + "function getApproved(uint256) view returns (address)", + "function initialize(address)", + "function initialized() view returns (bool)", + "function isApprovedForAll(address,address) view returns (bool)", + "function isRegistered(address) view returns (bool)", + "function master() view returns (address)", + "function name() view returns (string)", + "function owner() view returns (address)", + "function ownerOf(uint256) view returns (address)", + "function predictWorkerpool(address,string) view returns (address)", + "function previous() view returns (address)", + "function proxyCode() view returns (bytes)", + "function proxyCodeHash() view returns (bytes32)", + "function renounceOwnership()", + "function safeTransferFrom(address,address,uint256)", + "function safeTransferFrom(address,address,uint256,bytes)", + "function setApprovalForAll(address,bool)", + "function setBaseURI(string)", + "function setName(address,string)", + "function supportsInterface(bytes4) view returns (bool)", + "function symbol() view returns (string)", + "function tokenByIndex(uint256) view returns (uint256)", + "function tokenOfOwnerByIndex(address,uint256) view returns (uint256)", + "function tokenURI(uint256) view returns (string)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256)", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/tools/TimelockController.sol/TimelockController.json b/abis/human-readable-abis/contracts/tools/TimelockController.sol/TimelockController.json new file mode 100644 index 000000000..ad707adbf --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/TimelockController.sol/TimelockController.json @@ -0,0 +1,34 @@ +[ + "constructor(uint256,address[],address[],address[])", + "event CallExecuted(bytes32 indexed,uint256 indexed,address,uint256,bytes)", + "event CallScheduled(bytes32 indexed,uint256 indexed,address,uint256,bytes,bytes32,uint256)", + "event Cancelled(bytes32 indexed)", + "event MinDelayChange(uint256,uint256)", + "event RoleAdminChanged(bytes32 indexed,bytes32 indexed,bytes32 indexed)", + "event RoleGranted(bytes32 indexed,address indexed,address indexed)", + "event RoleRevoked(bytes32 indexed,address indexed,address indexed)", + "function DEFAULT_ADMIN_ROLE() view returns (bytes32)", + "function EXECUTOR_ROLE() view returns (bytes32)", + "function PROPOSER_ROLE() view returns (bytes32)", + "function TIMELOCK_ADMIN_ROLE() view returns (bytes32)", + "function cancel(bytes32)", + "function execute(address,uint256,bytes,bytes32,bytes32) payable", + "function executeBatch(address[],uint256[],bytes[],bytes32,bytes32) payable", + "function getMinDelay() view returns (uint256)", + "function getRoleAdmin(bytes32) view returns (bytes32)", + "function getRoleMember(bytes32,uint256) view returns (address)", + "function getRoleMemberCount(bytes32) view returns (uint256)", + "function getTimestamp(bytes32) view returns (uint256)", + "function grantRole(bytes32,address)", + "function hasRole(bytes32,address) view returns (bool)", + "function hashOperation(address,uint256,bytes,bytes32,bytes32) pure returns (bytes32)", + "function hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32) pure returns (bytes32)", + "function isOperationDone(bytes32) view returns (bool)", + "function isOperationPending(bytes32) view returns (bool)", + "function isOperationReady(bytes32) view returns (bool)", + "function renounceRole(bytes32,address)", + "function revokeRole(bytes32,address)", + "function schedule(address,uint256,bytes,bytes32,bytes32,uint256)", + "function scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)", + "function updateDelay(uint256)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/ERC1271Mock.sol/ERC1271Mock.json b/abis/human-readable-abis/contracts/tools/testing/ERC1271Mock.sol/ERC1271Mock.json new file mode 100644 index 000000000..a7582fc3f --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/ERC1271Mock.sol/ERC1271Mock.json @@ -0,0 +1,3 @@ +[ + "function isValidSignature(bytes32,bytes) pure returns (bytes4)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/ERC734Mock.sol/ERC734Mock.json b/abis/human-readable-abis/contracts/tools/testing/ERC734Mock.sol/ERC734Mock.json new file mode 100644 index 000000000..c4d1e5a0a --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/ERC734Mock.sol/ERC734Mock.json @@ -0,0 +1,4 @@ +[ + "function keyHasPurpose(bytes32,uint256) view returns (bool)", + "function setKeyHasPurpose(bytes32,uint256)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/GasWasterClient.sol/GasWasterClient.json b/abis/human-readable-abis/contracts/tools/testing/GasWasterClient.sol/GasWasterClient.json new file mode 100644 index 000000000..f2a459c56 --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/GasWasterClient.sol/GasWasterClient.json @@ -0,0 +1,5 @@ +[ + "event GotResult(bytes32 indexed,bytes)", + "function counter() view returns (uint256)", + "function receiveResult(bytes32,bytes)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/IexecEscrowTestContract.sol/IexecEscrowTestContract.json b/abis/human-readable-abis/contracts/tools/testing/IexecEscrowTestContract.sol/IexecEscrowTestContract.json new file mode 100644 index 000000000..8ba4f7fbf --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/IexecEscrowTestContract.sol/IexecEscrowTestContract.json @@ -0,0 +1,14 @@ +[ + "event Lock(address,uint256)", + "event Reward(address,uint256,bytes32)", + "event Seize(address,uint256,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function balanceOf(address) view returns (uint256)", + "function frozenOf(address) view returns (uint256)", + "function lock_(address,uint256)", + "function reward_(address,uint256,bytes32)", + "function seize_(address,uint256,bytes32)", + "function setBalance(address,uint256)", + "function unlock_(address,uint256)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/IexecPocoBoostCompositeFacet.sol/IexecPocoBoostCompositeFacet.json b/abis/human-readable-abis/contracts/tools/testing/IexecPocoBoostCompositeFacet.sol/IexecPocoBoostCompositeFacet.json new file mode 100644 index 000000000..c05089d16 --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/IexecPocoBoostCompositeFacet.sol/IexecPocoBoostCompositeFacet.json @@ -0,0 +1,54 @@ +[ + "error SafeCastOverflowedUintDowncast(uint8,uint256)", + "event DealSponsoredBoost(bytes32,address)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event ResultPushedBoost(bytes32,uint256,bytes)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNoticeBoost(address indexed,bytes32,address,address,uint256,bytes32,string,address)", + "event Seize(address,uint256,bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function balanceOf(address) view returns (uint256)", + "function callbackgas() view returns (uint256)", + "function claimBoost(bytes32,uint256)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function contribution_deadline_ratio() pure returns (uint256)", + "function countCategory() view returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() pure returns (uint256)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() pure returns (uint256)", + "function kitty_address() pure returns (address)", + "function kitty_min() pure returns (uint256)", + "function kitty_ratio() pure returns (uint256)", + "function matchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function name() view returns (string)", + "function pushResultBoost(bytes32,uint256,bytes,bytes,bytes,address,bytes)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal_deadline_ratio() pure returns (uint256)", + "function sponsorMatchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewDealBoost(bytes32) view returns (tuple(address,uint96,address,uint96,address,uint96,address,uint96,address,uint40,uint16,uint16,bytes3,address))", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function workerpool_stake_ratio() pure returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/OwnableMock.sol/OwnableMock.json b/abis/human-readable-abis/contracts/tools/testing/OwnableMock.sol/OwnableMock.json new file mode 100644 index 000000000..13074a5f2 --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/OwnableMock.sol/OwnableMock.json @@ -0,0 +1,9 @@ +[ + "constructor()", + "error OwnableInvalidOwner(address)", + "error OwnableUnauthorizedAccount(address)", + "event OwnershipTransferred(address indexed,address indexed)", + "function owner() view returns (address)", + "function renounceOwnership()", + "function transferOwnership(address)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/TestClient.sol/TestClient.json b/abis/human-readable-abis/contracts/tools/testing/TestClient.sol/TestClient.json new file mode 100644 index 000000000..c97d15eaf --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/TestClient.sol/TestClient.json @@ -0,0 +1,7 @@ +[ + "constructor()", + "event GotResult(bytes32 indexed,bytes)", + "function gstore(bytes32) view returns (uint256)", + "function receiveResult(bytes32,bytes)", + "function store(bytes32) view returns (bytes)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/TestReceiver.sol/TestReceiver.json b/abis/human-readable-abis/contracts/tools/testing/TestReceiver.sol/TestReceiver.json new file mode 100644 index 000000000..c8282c533 --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/TestReceiver.sol/TestReceiver.json @@ -0,0 +1,5 @@ +[ + "constructor()", + "event GotApproval(address,uint256,address,bytes)", + "function receiveApproval(address,uint256,address,bytes) returns (bool)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/slither/Slither.sol/Slither.json b/abis/human-readable-abis/contracts/tools/testing/slither/Slither.sol/Slither.json new file mode 100644 index 000000000..64a34952a --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/slither/Slither.sol/Slither.json @@ -0,0 +1,73 @@ +[ + "error IncompatibleDatasetOrder(string)", + "error MathOverflowedMulDiv()", + "event AccurateContribution(address indexed,bytes32 indexed)", + "event DealSponsored(bytes32,address)", + "event FaultyContribution(address indexed,bytes32 indexed)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNotice(address indexed,bytes32)", + "event Seize(address,uint256,bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event TaskConsensus(bytes32 indexed,bytes32)", + "event TaskContribute(bytes32 indexed,address indexed,bytes32)", + "event TaskFinalize(bytes32 indexed,bytes)", + "event TaskInitialize(bytes32 indexed,address indexed)", + "event TaskReopen(bytes32 indexed)", + "event TaskReveal(bytes32 indexed,address indexed,bytes32)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function allowance(address,address) view returns (uint256)", + "function appregistry() view returns (address)", + "function assertDatasetDealCompatibility(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),bytes32) view", + "function balanceOf(address) view returns (uint256)", + "function callbackgas() view returns (uint256)", + "function claim(bytes32)", + "function claimArray(bytes32[]) returns (bool)", + "function computeDealVolume(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) view returns (uint256)", + "function contribute(bytes32,bytes32,bytes32,address,bytes,bytes)", + "function contributeAndFinalize(bytes32,bytes32,bytes,bytes,address,bytes,bytes)", + "function contribution_deadline_ratio() pure returns (uint256)", + "function countCategory() view returns (uint256)", + "function datasetregistry() view returns (address)", + "function decimals() view returns (uint8)", + "function eip712domain_separator() view returns (bytes32)", + "function final_deadline_ratio() pure returns (uint256)", + "function finalize(bytes32,bytes,bytes)", + "function frozenOf(address) view returns (uint256)", + "function groupmember_purpose() pure returns (uint256)", + "function initialize(bytes32,uint256) returns (bytes32)", + "function initializeAndClaimArray(bytes32[],uint256[]) returns (bool)", + "function initializeArray(bytes32[],uint256[]) returns (bool)", + "function kitty_address() pure returns (address)", + "function kitty_min() pure returns (uint256)", + "function kitty_ratio() pure returns (uint256)", + "function matchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function name() view returns (string)", + "function reopen(bytes32)", + "function resultFor(bytes32) view returns (bytes)", + "function reveal(bytes32,bytes32)", + "function reveal_deadline_ratio() pure returns (uint256)", + "function sponsorMatchOrders(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function symbol() view returns (string)", + "function teebroker() view returns (address)", + "function token() view returns (address)", + "function totalSupply() view returns (uint256)", + "function verifyPresignature(address,bytes32) view returns (bool)", + "function verifyPresignatureOrSignature(address,bytes32,bytes) view returns (bool)", + "function verifySignature(address,bytes32,bytes) view returns (bool)", + "function viewAccount(address) view returns (tuple(uint256,uint256))", + "function viewApp(address) view returns (tuple(address,string,string,bytes,bytes32,bytes))", + "function viewCategory(uint256) view returns (tuple(string,string,uint256))", + "function viewConsumed(bytes32) view returns (uint256)", + "function viewContribution(bytes32,address) view returns (tuple(uint8,bytes32,bytes32,address,uint256))", + "function viewDataset(address) view returns (tuple(address,string,bytes,bytes32))", + "function viewDeal(bytes32) view returns (tuple(tuple(address,address,uint256),tuple(address,address,uint256),tuple(address,address,uint256),uint256,uint256,bytes32,address,address,address,string,uint256,uint256,uint256,uint256,uint256,address))", + "function viewPresigned(bytes32) view returns (address)", + "function viewScore(address) view returns (uint256)", + "function viewTask(bytes32) view returns (tuple(uint8,bytes32,uint256,uint256,uint256,uint256,uint256,bytes32,uint256,uint256,address[],bytes32,bytes,uint256,bytes))", + "function viewWorkerpool(address) view returns (tuple(address,string,uint256,uint256))", + "function workerpool_stake_ratio() pure returns (uint256)", + "function workerpoolregistry() view returns (address)" +] diff --git a/abis/human-readable-abis/contracts/tools/testing/slither/SlitherBoost.sol/SlitherBoost.json b/abis/human-readable-abis/contracts/tools/testing/slither/SlitherBoost.sol/SlitherBoost.json new file mode 100644 index 000000000..02b2f7a96 --- /dev/null +++ b/abis/human-readable-abis/contracts/tools/testing/slither/SlitherBoost.sol/SlitherBoost.json @@ -0,0 +1,18 @@ +[ + "error SafeCastOverflowedUintDowncast(uint8,uint256)", + "event DealSponsoredBoost(bytes32,address)", + "event Lock(address,uint256)", + "event OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256)", + "event ResultPushedBoost(bytes32,uint256,bytes)", + "event Reward(address,uint256,bytes32)", + "event SchedulerNoticeBoost(address indexed,bytes32,address,address,uint256,bytes32,string,address)", + "event Seize(address,uint256,bytes32)", + "event TaskClaimed(bytes32 indexed)", + "event Transfer(address indexed,address indexed,uint256)", + "event Unlock(address,uint256)", + "function claimBoost(bytes32,uint256)", + "function matchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function pushResultBoost(bytes32,uint256,bytes,bytes,bytes,address,bytes)", + "function sponsorMatchOrdersBoost(tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,address,address,address,bytes32,bytes),tuple(address,uint256,uint256,bytes32,uint256,uint256,address,address,address,bytes32,bytes),tuple(address,uint256,address,uint256,address,uint256,address,uint256,bytes32,uint256,uint256,address,address,string,bytes32,bytes)) returns (bytes32)", + "function viewDealBoost(bytes32) view returns (tuple(address,uint96,address,uint96,address,uint96,address,uint96,address,uint40,uint16,uint16,bytes3,address))" +] diff --git a/abis/human-readable-abis/createx/src/ICreateX.sol/ICreateX.json b/abis/human-readable-abis/createx/src/ICreateX.sol/ICreateX.json new file mode 100644 index 000000000..527fc1d34 --- /dev/null +++ b/abis/human-readable-abis/createx/src/ICreateX.sol/ICreateX.json @@ -0,0 +1,34 @@ +[ + "error FailedContractCreation(address)", + "error FailedContractInitialisation(address,bytes)", + "error FailedEtherTransfer(address,bytes)", + "error InvalidNonceValue(address)", + "error InvalidSalt(address)", + "event ContractCreation(address indexed,bytes32 indexed)", + "event ContractCreation(address indexed)", + "event Create3ProxyContractCreation(address indexed,bytes32 indexed)", + "function computeCreate2Address(bytes32,bytes32) view returns (address)", + "function computeCreate2Address(bytes32,bytes32,address) pure returns (address)", + "function computeCreate3Address(bytes32,address) pure returns (address)", + "function computeCreate3Address(bytes32) view returns (address)", + "function computeCreateAddress(uint256) view returns (address)", + "function computeCreateAddress(address,uint256) view returns (address)", + "function deployCreate(bytes) payable returns (address)", + "function deployCreate2(bytes32,bytes) payable returns (address)", + "function deployCreate2(bytes) payable returns (address)", + "function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256),address) payable returns (address)", + "function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256)) payable returns (address)", + "function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256),address) payable returns (address)", + "function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256)) payable returns (address)", + "function deployCreate2Clone(bytes32,address,bytes) payable returns (address)", + "function deployCreate2Clone(address,bytes) payable returns (address)", + "function deployCreate3(bytes) payable returns (address)", + "function deployCreate3(bytes32,bytes) payable returns (address)", + "function deployCreate3AndInit(bytes32,bytes,bytes,tuple(uint256,uint256)) payable returns (address)", + "function deployCreate3AndInit(bytes,bytes,tuple(uint256,uint256)) payable returns (address)", + "function deployCreate3AndInit(bytes32,bytes,bytes,tuple(uint256,uint256),address) payable returns (address)", + "function deployCreate3AndInit(bytes,bytes,tuple(uint256,uint256),address) payable returns (address)", + "function deployCreateAndInit(bytes,bytes,tuple(uint256,uint256)) payable returns (address)", + "function deployCreateAndInit(bytes,bytes,tuple(uint256,uint256),address) payable returns (address)", + "function deployCreateClone(address,bytes) payable returns (address)" +] diff --git a/abis/human-readable-abis/rlc-faucet-contract/contracts/ERC20.sol/ERC20.json b/abis/human-readable-abis/rlc-faucet-contract/contracts/ERC20.sol/ERC20.json new file mode 100644 index 000000000..970fb9d7d --- /dev/null +++ b/abis/human-readable-abis/rlc-faucet-contract/contracts/ERC20.sol/ERC20.json @@ -0,0 +1,10 @@ +[ + "function approve(address,uint256) returns (bool)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256) returns (bool)", + "function balanceOf(address) view returns (uint256)", + "function transfer(address,uint256) returns (bool)", + "function allowance(address,address) view returns (uint256)", + "event Transfer(address indexed,address indexed,uint256)", + "event Approval(address indexed,address indexed,uint256)" +] diff --git a/abis/human-readable-abis/rlc-faucet-contract/contracts/Ownable.sol/Ownable.json b/abis/human-readable-abis/rlc-faucet-contract/contracts/Ownable.sol/Ownable.json new file mode 100644 index 000000000..b0edcab51 --- /dev/null +++ b/abis/human-readable-abis/rlc-faucet-contract/contracts/Ownable.sol/Ownable.json @@ -0,0 +1,5 @@ +[ + "function owner() view returns (address)", + "function transferOwnership(address)", + "constructor()" +] diff --git a/abis/human-readable-abis/rlc-faucet-contract/contracts/RLC.sol/RLC.json b/abis/human-readable-abis/rlc-faucet-contract/contracts/RLC.sol/RLC.json new file mode 100644 index 000000000..3c3161fdc --- /dev/null +++ b/abis/human-readable-abis/rlc-faucet-contract/contracts/RLC.sol/RLC.json @@ -0,0 +1,24 @@ +[ + "function name() view returns (string)", + "function approve(address,uint256) returns (bool)", + "function refill(address,uint256) returns (bool)", + "function totalSupply() view returns (uint256)", + "function transferFrom(address,address,uint256) returns (bool)", + "function decimals() view returns (uint8)", + "function initialSupply() view returns (uint256)", + "function burn(uint256) returns (bool)", + "function version() view returns (string)", + "function forceApprove(address,address,uint256) returns (bool)", + "function balanceOf(address) view returns (uint256)", + "function owner() view returns (address)", + "function symbol() view returns (string)", + "function transfer(address,uint256) returns (bool)", + "function approveAndCall(address,uint256,bytes)", + "function locked() view returns (bool)", + "function allowance(address,address) view returns (uint256)", + "function forceBurn(address,uint256) returns (bool)", + "function transferOwnership(address)", + "constructor()", + "event Transfer(address indexed,address indexed,uint256)", + "event Approval(address indexed,address indexed,uint256)" +] diff --git a/abis/human-readable-abis/rlc-faucet-contract/contracts/TokenSpender.sol/TokenSpender.json b/abis/human-readable-abis/rlc-faucet-contract/contracts/TokenSpender.sol/TokenSpender.json new file mode 100644 index 000000000..d910e6ef6 --- /dev/null +++ b/abis/human-readable-abis/rlc-faucet-contract/contracts/TokenSpender.sol/TokenSpender.json @@ -0,0 +1,3 @@ +[ + "function receiveApproval(address,uint256,address,bytes)" +] diff --git a/contracts/facets/IexecEscrowTokenSwapFacet.sol b/contracts/facets/IexecEscrowTokenSwapFacet.sol deleted file mode 100644 index 62bce85a1..000000000 --- a/contracts/facets/IexecEscrowTokenSwapFacet.sol +++ /dev/null @@ -1,214 +0,0 @@ -// SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH -// SPDX-License-Identifier: Apache-2.0 - -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "./IexecERC20Core.sol"; -import "./SignatureVerifier.sol"; -import "./FacetBase.sol"; -import "../interfaces/IexecEscrowTokenSwap.sol"; -import {PocoStorageLib} from "../libs/PocoStorageLib.sol"; -import "../interfaces/IexecPoco1.sol"; - -contract IexecEscrowTokenSwapFacet is - IexecEscrowTokenSwap, - FacetBase, - IexecERC20Core, - SignatureVerifier -{ - using SafeMathExtended for uint256; - using IexecLibOrders_v5 for IexecLibOrders_v5.AppOrder; - using IexecLibOrders_v5 for IexecLibOrders_v5.DatasetOrder; - using IexecLibOrders_v5 for IexecLibOrders_v5.WorkerpoolOrder; - using IexecLibOrders_v5 for IexecLibOrders_v5.RequestOrder; - - IUniswapV2Router02 internal constant router = - IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); - - /*************************************************************************** - * Accessor * - ***************************************************************************/ - function UniswapV2Router() external view override returns (IUniswapV2Router02) { - return router; - } - - /*************************************************************************** - * Uniswap path - Internal * - ***************************************************************************/ - function _eth2token() internal view returns (address[] memory) { - PocoStorageLib.PocoStorage storage $ = PocoStorageLib.getPocoStorage(); - address[] memory path = new address[](2); - path[0] = router.WETH(); - path[1] = address($.m_baseToken); - return path; - } - - function _token2eth() internal view returns (address[] memory) { - PocoStorageLib.PocoStorage storage $ = PocoStorageLib.getPocoStorage(); - address[] memory path = new address[](2); - path[0] = address($.m_baseToken); - path[1] = router.WETH(); - return path; - } - - /*************************************************************************** - * Prediction methods - Public * - ***************************************************************************/ - function estimateDepositEthSent(uint256 eth) external view override returns (uint256 token) { - return router.getAmountsOut(eth, _eth2token())[1]; - } - function estimateDepositTokenWanted( - uint256 token - ) external view override returns (uint256 eth) { - return router.getAmountsIn(token, _eth2token())[0]; - } - function estimateWithdrawTokenSent(uint256 token) external view override returns (uint256 eth) { - return router.getAmountsOut(token, _token2eth())[1]; - } - function estimateWithdrawEthWanted(uint256 eth) external view override returns (uint256 token) { - return router.getAmountsIn(eth, _token2eth())[0]; - } - - /*************************************************************************** - * Swapping methods - Public * - ***************************************************************************/ - receive() external payable override { - address sender = _msgSender(); - if (sender != address(router)) { - _deposit(sender, msg.value, 0); - } - } - - fallback() external payable override { - revert("fallback-disabled"); - } - - function depositEth() external payable override { - _deposit(_msgSender(), msg.value, 0); - } - function depositEthFor(address target) external payable override { - _deposit(target, msg.value, 0); - } - function safeDepositEth(uint256 minimum) external payable override { - _deposit(_msgSender(), msg.value, minimum); - } - function safeDepositEthFor(uint256 minimum, address target) external payable override { - _deposit(target, msg.value, minimum); - } - function requestToken(uint256 amount) external payable override { - _request(_msgSender(), msg.value, amount); - } - function requestTokenFor(uint256 amount, address target) external payable override { - _request(target, msg.value, amount); - } - function withdrawEth(uint256 amount) external override { - _withdraw(_msgSender(), amount, 0); - } - function withdrawEthTo(uint256 amount, address target) external override { - _withdraw(target, amount, 0); - } - function safeWithdrawEth(uint256 amount, uint256 minimum) external override { - _withdraw(_msgSender(), amount, minimum); - } - function safeWithdrawEthTo(uint256 amount, uint256 minimum, address target) external override { - _withdraw(target, amount, minimum); - } - - /*************************************************************************** - * Swapping methods - Internal * - ***************************************************************************/ - function _deposit(address target, uint256 value, uint256 minimum) internal { - uint256[] memory amounts = router.swapExactETHForTokens{value: value}( - minimum, - _eth2token(), - address(this), - now + 1 - ); - _mint(target, amounts[1]); - } - - function _request(address target, uint256 value, uint256 amount) internal { - uint256[] memory amounts = router.swapETHForExactTokens{value: value}( - amount, - _eth2token(), - address(this), - now + 1 - ); - _mint(target, amounts[1]); - // Refund remaining ETH - (bool success, ) = _msgSender().call{value: value.sub(amounts[0])}(""); - require(success, "native-transfer-failed"); - } - - function _withdraw(address target, uint256 amount, uint256 minimum) internal { - PocoStorageLib.PocoStorage storage $ = PocoStorageLib.getPocoStorage(); - $.m_baseToken.approve(address(router), amount); - uint256[] memory amounts = router.swapExactTokensForETH( - amount, - minimum, - _token2eth(), - target, - now + 1 - ); - _burn(_msgSender(), amounts[0]); - } - - /*************************************************************************** - * Extra public methods * - ***************************************************************************/ - function matchOrdersWithEth( - IexecLibOrders_v5.AppOrder memory _apporder, - IexecLibOrders_v5.DatasetOrder memory _datasetorder, - IexecLibOrders_v5.WorkerpoolOrder memory _workerpoolorder, - IexecLibOrders_v5.RequestOrder memory _requestorder - ) public payable override returns (bytes32) { - PocoStorageLib.PocoStorage storage $ = PocoStorageLib.getPocoStorage(); - uint256 volume; - volume = _apporder.volume.sub( - $.m_consumed[keccak256(_toEthTypedStruct(_apporder.hash(), $.m_eip712DomainSeparator))] - ); - if (_datasetorder.dataset != address(0)) - volume = volume.min( - _datasetorder.volume.sub( - $.m_consumed[ - keccak256( - _toEthTypedStruct(_datasetorder.hash(), $.m_eip712DomainSeparator) - ) - ] - ) - ); - volume = volume.min( - _workerpoolorder.volume.sub( - $.m_consumed[ - keccak256(_toEthTypedStruct(_workerpoolorder.hash(), $.m_eip712DomainSeparator)) - ] - ) - ); - volume = volume.min( - _requestorder.volume.sub( - $.m_consumed[ - keccak256(_toEthTypedStruct(_requestorder.hash(), $.m_eip712DomainSeparator)) - ] - ) - ); - - _request( - _requestorder.requester, - msg.value, - _apporder - .appprice - .add(_datasetorder.dataset != address(0) ? _datasetorder.datasetprice : 0) - .add(_workerpoolorder.workerpoolprice) - .mul(volume) - ); - - return - IexecPoco1(address(this)).matchOrders( - _apporder, - _datasetorder, - _workerpoolorder, - _requestorder - ); - } -} diff --git a/contracts/interfaces/IexecEscrowTokenSwap.sol b/contracts/interfaces/IexecEscrowTokenSwap.sol deleted file mode 100644 index 660bb88a7..000000000 --- a/contracts/interfaces/IexecEscrowTokenSwap.sol +++ /dev/null @@ -1,38 +0,0 @@ -// SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH -// SPDX-License-Identifier: Apache-2.0 - -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; -import "../libs/IexecLibOrders_v5.sol"; - -// TODO add this to IexecInterfaceToken when the facet is deployed. -interface IexecEscrowTokenSwap { - receive() external payable; - fallback() external payable; - - function UniswapV2Router() external view returns (IUniswapV2Router02); - function estimateDepositEthSent(uint256) external view returns (uint256); - function estimateDepositTokenWanted(uint256) external view returns (uint256); - function estimateWithdrawTokenSent(uint256) external view returns (uint256); - function estimateWithdrawEthWanted(uint256) external view returns (uint256); - - function depositEth() external payable; - function depositEthFor(address) external payable; - function safeDepositEth(uint256) external payable; - function safeDepositEthFor(uint256, address) external payable; - function requestToken(uint256) external payable; - function requestTokenFor(uint256, address) external payable; - function withdrawEth(uint256) external; - function withdrawEthTo(uint256, address) external; - function safeWithdrawEth(uint256, uint256) external; - function safeWithdrawEthTo(uint256, uint256, address) external; - - function matchOrdersWithEth( - IexecLibOrders_v5.AppOrder memory, - IexecLibOrders_v5.DatasetOrder memory, - IexecLibOrders_v5.WorkerpoolOrder memory, - IexecLibOrders_v5.RequestOrder memory - ) external payable returns (bytes32); -} diff --git a/deploy/0_deploy.ts b/deploy/0_deploy.ts index 6a3402465..fb612bfa6 100644 --- a/deploy/0_deploy.ts +++ b/deploy/0_deploy.ts @@ -102,7 +102,6 @@ export default async function deploy() { new IexecConfigurationFacet__factory(iexecLibOrders), new IexecERC20Facet__factory(), isTokenMode ? new IexecEscrowTokenFacet__factory() : new IexecEscrowNativeFacet__factory(), - // new IexecEscrowTokenSwapFacet__factory(), not deployed. new IexecOrderManagementFacet__factory(iexecLibOrders), new IexecPoco1Facet__factory(iexecLibOrders), new IexecPoco2Facet__factory(), diff --git a/hardhat.config.ts b/hardhat.config.ts index f87b74197..1709e316e 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -1,6 +1,7 @@ import '@nomicfoundation/hardhat-toolbox'; import 'dotenv/config'; import * as fs from 'fs'; +import 'hardhat-abi-exporter'; import 'hardhat-dependency-compiler'; import 'hardhat-deploy'; import { HardhatUserConfig, task } from 'hardhat/config'; @@ -9,7 +10,6 @@ import { defaultHardhatNetworkParams, defaultLocalhostNetworkParams, } from 'hardhat/internal/core/config/default-config'; -import * as path from 'path'; import 'solidity-docgen'; import { cleanupDeployments, copyDeployments } from './scripts/tools/copy-deployments'; import chainConfig from './utils/config'; @@ -241,7 +241,6 @@ const config: HardhatUserConfig = { 'facets/FacetBase.sol', // duplicated in FacetBase.v8.sol 'facets/IexecAccessorsABILegacyFacet.sol', // not relevant // kept for events 'facets/IexecERC20Core.sol', // contains only internal/private - 'facets/IexecEscrowTokenSwapFacet.sol', // not relevant // kept for events 'facets/IexecEscrow.v8.sol', // contains only internal/private 'facets/IexecPocoCommon.sol', // contains only internal/private 'facets/SignatureVerifier.sol', // contains only internal/private @@ -254,6 +253,32 @@ const config: HardhatUserConfig = { ], }, mocha: { timeout: 300000 }, + abiExporter: [ + // ABIs of PoCo contracts for integration with other tools. + { + path: './abis/contracts', + format: 'json', + runOnCompile: true, + clear: true, + only: ['^contracts/'], + except: [ + // !!! Update package.json#files if this is modified. + // TODO reorganize utility contracts. + '^contracts/tools/testing/', + '^contracts/tools/diagrams/', + '^contracts/tools/TimelockController', + ], + rename: (sourceName, contractName) => + `${sourceName.replace('contracts/', '').replace('.sol', '')}`, + }, + // ABIs of all contracts in a human readable format for easier upgrade debugging. + { + path: './abis/human-readable-abis', + format: 'minimal', + runOnCompile: true, + clear: true, + }, + ], }; /** @@ -276,6 +301,10 @@ task('docgen').setAction(async (taskArgs, hre, runSuper) => { }); }); +/** + * Override `test` task to copy deployments of Arbitrum Sepolia if running tests on + * a forked Arbitrum Sepolia network and clean them up afterwards. + */ task('test').setAction(async (taskArgs: any, hre, runSuper) => { let deploymentsCopied = false; let networkName = ''; @@ -292,37 +321,6 @@ task('test').setAction(async (taskArgs: any, hre, runSuper) => { } }); -// Automatically update ABIs after compiling contracts. -task('compile').setAction(async (taskArgs: any, hre, runSuper) => { - await runSuper(taskArgs); - await hre.run('abis'); -}); - -task('abis', 'Generate contract ABIs').setAction(async (taskArgs, hre) => { - const abisDir = './abis'; - // Remove old ABIs folder if it exists. - if (fs.existsSync(abisDir)) { - fs.rmSync(abisDir, { recursive: true, force: true }); - } - fs.mkdirSync(abisDir); - const contracts = (await hre.artifacts.getAllFullyQualifiedNames()) - // Keep only "contracts/" folder - .filter((name) => name.startsWith('contracts/')) - // Remove non relevant contracts - // !!! Update package.json#files if this is updated. - .filter((name) => !name.startsWith('contracts/tools/testing')) - .filter((name) => !name.startsWith('contracts/tools/diagrams')) - .filter((name) => !name.startsWith('contracts/tools/TimelockController')); - for (const contractFile of contracts) { - const artifact = await hre.artifacts.readArtifact(contractFile); - const abiFileDir = `${abisDir}/${path.dirname(contractFile)}`; - const abiFile = `${abiFileDir}/${artifact.contractName}.json`; - fs.mkdirSync(abiFileDir, { recursive: true }); - fs.writeFileSync(abiFile, JSON.stringify(artifact.abi, null, 2)); - } - console.log(`Saved ${contracts.length} ABI files to ${abisDir} folder`); -}); - function _getPrivateKeys() { const ZERO_PRIVATE_KEY = '0x0000000000000000000000000000000000000000000000000000000000000000'; const deployerKey = process.env.DEPLOYER_PRIVATE_KEY || ZERO_PRIVATE_KEY; diff --git a/package-lock.json b/package-lock.json index 8d3a7ae71..28689dced 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "@openzeppelin/upgrades-core": "^1.37.1", "dotenv": "^16.5.0", "hardhat": "^2.22.18", + "hardhat-abi-exporter": "^2.11.0", "hardhat-dependency-compiler": "^1.2.1", "hardhat-deploy": "^0.11.43", "husky": "^9.1.6", @@ -2335,6 +2336,16 @@ "node": ">=8" } }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -4188,6 +4199,25 @@ "node": ">=0.4.0" } }, + "node_modules/delete-empty": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/delete-empty/-/delete-empty-3.0.0.tgz", + "integrity": "sha512-ZUyiwo76W+DYnKsL3Kim6M/UOavPdBJgDYWOmuQhYaZvJH0AXAHbUNyEDtRbBra8wqqr686+63/0azfEk1ebUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-colors": "^4.1.0", + "minimist": "^1.2.0", + "path-starts-with": "^2.0.0", + "rimraf": "^2.6.2" + }, + "bin": { + "delete-empty": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/devtools-protocol": { "version": "0.0.981744", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.981744.tgz", @@ -4409,15 +4439,6 @@ "node": ">=8.6" } }, - "node_modules/enquirer/node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", @@ -6434,6 +6455,23 @@ } } }, + "node_modules/hardhat-abi-exporter": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/hardhat-abi-exporter/-/hardhat-abi-exporter-2.11.0.tgz", + "integrity": "sha512-hBC4Xzncew9pdqVpzWoEEBJUthp99TCH39cHlMehVxBBQ6EIsIFyj3N0yd0hkVDfM8/s/FMRAuO5jntZBpwCZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "delete-empty": "^3.0.0" + }, + "engines": { + "node": ">=14.14.0" + }, + "peerDependencies": { + "hardhat": "^2.0.0" + } + }, "node_modules/hardhat-dependency-compiler": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/hardhat-dependency-compiler/-/hardhat-dependency-compiler-1.2.1.tgz", @@ -8574,15 +8612,6 @@ "node": ">= 14.0.0" } }, - "node_modules/mocha/node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/mocha/node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -9252,6 +9281,16 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-starts-with": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-starts-with/-/path-starts-with-2.0.1.tgz", + "integrity": "sha512-wZ3AeiRBRlNwkdUxvBANh0+esnt38DLffHDujZyRHkqkaKHTglnY2EP5UX3b8rdeiSutgO4y9NEJwXezNP5vHg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/pathval": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", @@ -9973,6 +10012,20 @@ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, "node_modules/ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", @@ -14644,6 +14697,12 @@ } } }, + "ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true + }, "ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -16054,6 +16113,18 @@ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, + "delete-empty": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/delete-empty/-/delete-empty-3.0.0.tgz", + "integrity": "sha512-ZUyiwo76W+DYnKsL3Kim6M/UOavPdBJgDYWOmuQhYaZvJH0AXAHbUNyEDtRbBra8wqqr686+63/0azfEk1ebUQ==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.0", + "minimist": "^1.2.0", + "path-starts-with": "^2.0.0", + "rimraf": "^2.6.2" + } + }, "devtools-protocol": { "version": "0.0.981744", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.981744.tgz", @@ -16230,14 +16301,6 @@ "dev": true, "requires": { "ansi-colors": "^4.1.1" - }, - "dependencies": { - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true - } } }, "entities": { @@ -18014,6 +18077,16 @@ } } }, + "hardhat-abi-exporter": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/hardhat-abi-exporter/-/hardhat-abi-exporter-2.11.0.tgz", + "integrity": "sha512-hBC4Xzncew9pdqVpzWoEEBJUthp99TCH39cHlMehVxBBQ6EIsIFyj3N0yd0hkVDfM8/s/FMRAuO5jntZBpwCZQ==", + "dev": true, + "requires": { + "@ethersproject/abi": "^5.7.0", + "delete-empty": "^3.0.0" + } + }, "hardhat-dependency-compiler": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/hardhat-dependency-compiler/-/hardhat-dependency-compiler-1.2.1.tgz", @@ -19363,12 +19436,6 @@ "yargs-unparser": "^2.0.0" }, "dependencies": { - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true - }, "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -19862,6 +19929,12 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "path-starts-with": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-starts-with/-/path-starts-with-2.0.1.tgz", + "integrity": "sha512-wZ3AeiRBRlNwkdUxvBANh0+esnt38DLffHDujZyRHkqkaKHTglnY2EP5UX3b8rdeiSutgO4y9NEJwXezNP5vHg==", + "dev": true + }, "pathval": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", @@ -20381,6 +20454,15 @@ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, "ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", diff --git a/package.json b/package.json index 470780de7..3dbacb86e 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,8 @@ "!/artifacts/contracts/**/*.dbg.json" ], "__filesComment": [ - "!!! @dev Update Hardhat `abis` task if this is updated", - "TODO remove artifacts/ from NPM package when releasing a major version" + "!!! @dev Update `abiExporter` config if this is modified", + "TODO [Major] remove artifacts/ from NPM package when releasing a major version" ], "lint-staged": { "*.{js,ts,sol,json,yml}": [ @@ -66,6 +66,7 @@ "@openzeppelin/upgrades-core": "^1.37.1", "dotenv": "^16.5.0", "hardhat": "^2.22.18", + "hardhat-abi-exporter": "^2.11.0", "hardhat-dependency-compiler": "^1.2.1", "hardhat-deploy": "^0.11.43", "husky": "^9.1.6", diff --git a/scripts/tools/sol-to-uml.mjs b/scripts/tools/sol-to-uml.mjs index 10067105f..81599c023 100644 --- a/scripts/tools/sol-to-uml.mjs +++ b/scripts/tools/sol-to-uml.mjs @@ -14,7 +14,7 @@ await generateClassDiagramOfDirectory('registries'); await generateClassDiagramOfContracts(['IexecPoco1Facet', 'IexecPoco2Facet'], 'IexecPocoFacets'); await generateClassDiagramOfContracts( - ['IexecEscrowNativeFacet', 'IexecEscrowTokenFacet', 'IexecEscrowTokenSwapFacet', 'IexecEscrow'], + ['IexecEscrowNativeFacet', 'IexecEscrowTokenFacet', 'IexecEscrow'], 'IexecEscrows', ); diff --git a/utils/proxy-tools.ts b/utils/proxy-tools.ts index 8cc80b1fe..b678d4527 100644 --- a/utils/proxy-tools.ts +++ b/utils/proxy-tools.ts @@ -18,7 +18,6 @@ import { IexecERC20Facet__factory, IexecEscrowNativeFacet__factory, IexecEscrowTokenFacet__factory, - IexecEscrowTokenSwapFacet__factory, IexecOrderManagementFacet__factory, IexecPoco1Facet__factory, IexecPoco2Facet__factory, @@ -145,7 +144,6 @@ function getAllLocalFacetFunctions(): Map { IexecERC20Facet__factory.createInterface(), IexecEscrowNativeFacet__factory.createInterface(), IexecEscrowTokenFacet__factory.createInterface(), - IexecEscrowTokenSwapFacet__factory.createInterface(), IexecOrderManagementFacet__factory.createInterface(), IexecPoco1Facet__factory.createInterface(), IexecPoco2Facet__factory.createInterface(),